Let version-to-list handle versions like "10.3d".
[bpt/emacs.git] / src / ChangeLog
CommitLineData
fe50eb41
KH
12010-08-26 Kenichi Handa <handa@m17n.org>
2
3 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4 on calling composition_compute_stop_pos.
5
f6aa6ec6
KH
62010-08-25 Kenichi Handa <handa@m17n.org>
7
9dfdbc0a
KH
8 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
9 :otf.
10
f6aa6ec6
KH
11 * composite.c (composition_compute_stop_pos): Don't break
12 composition at PT.
13 (composition_reseat_it): Likewise. Fix calculation of character
14 position starting a composition.
15 (Fcomposition_get_gstring): Don't limit the number of components
16 for automatic composition.
17
ff94e32c
KH
182010-08-25 Kenichi Handa <handa@m17n.org>
19
20 * composite.c (composition_compute_stop_pos): In forward search,
21 pay attention to the possibility that some character after ENDPOS
22 will be composed with charactrs before ENDPOS.
23
1c409d0b
CY
242010-08-24 Chong Yidong <cyd@stupidchicken.com>
25
26 * keyboard.c (command_loop_1): Don't clobber primary selection
27 during handle-switch-frame (Bug#6872).
28
0c372655
MA
292010-08-23 Michael Albinus <michael.albinus@gmx.de>
30
31 * dbusbind.c: Accept UNIX domain sockets as bus address.
32 (Fdbus_close_bus): New function.
33 (Vdbus_registered_buses): New variable.
34 (xd_initialize): Implement string as bus address.
35 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
36 (Fdbus_get_unique_name, Fdbus_call_method)
37 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
38 (Fdbus_method_error_internal, Fdbus_send_signal)
39 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
40 check. This is done in xd_initialize_bus. Adapt doc string, if
41 necessary.
42 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
43 Vdbus_registered_buses.
44 (Vdbus_registered_objects_table): Create hash.
45
7133b7ee
JL
462010-08-22 Juri Linkov <juri@jurta.org>
47
48 * keyboard.c (Fexecute_extended_command): Move reading a command name
49 with `completing-read' to a new Elisp function `read-extended-command'.
50 Call it to read a command to `function' (bug#5364, bug#5214).
51
198a7a97
CY
522010-08-22 Chong Yidong <cyd@stupidchicken.com>
53
54 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
55
b0126eac 562010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
57
58 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
59 instead of SAFE_ALLOCA.
60
b0126eac 612010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
62
63 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
64 (Bug#6214).
65
b0126eac 662010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
67
68 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
69
b0126eac
CY
702010-08-22 Jan Djärv <jan.h.d@swipnet.se>
71
72 * doc.c (Fsnarf_documentation): Initialize skip_file before
73 build-files test.
74
692f3ddc 752010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 76
692f3ddc
JB
77 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
78 New definitions.
b0126eac
CY
79 (HAVE_TERMIO): Remove.
80
5f2f0bc1
EZ
812010-08-22 Eli Zaretskii <eliz@gnu.org>
82
b613941b
EZ
83 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
84
a583bbef
EZ
85 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
86 for w32.
87
88 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
89 it's done in nt/config.nt.
90
91 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
92
5f2f0bc1
EZ
93 * unexcoff.c (report_error, make_hdr, write_segment)
94 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
95 Convert argument lists and prototypes to ANSI C.
96 (make_hdr, write_segment): Remove unused variables.
97 (unexec): Remove commented-out line. Initialize `new' to shut up
98 compiler warnings.
99
a7ebc409
DN
1002010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
101
102 Simplify termio code.
103 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
104 HAVE_TERMIO code is obsolete.
105 Replace HAVE_TERMIOS conditionals with !DOS_NT.
106 * systty.h: Do not define HAVE_TCATTR.
107 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
108 Do not define EMACS_HAVE_TTY_PGRP. Only define
109 EMACS_GET_TTY_PGRP for !DOS_NT.
110 * sysdep.c: Include sysselect.h unconditionally. Do not include
111 sys/ioctl.h and termios.h, systty.h does it. Use
112 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
113 (init_baud_rate): Remove HAVE_TERMIO code.
114 (child_setup_tty): Remove HAVE_TERMIO code.
115 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
116 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
117 (new_ltchars, new_tchars): Remove, unused.
118 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
119 code. Remove special casing for __mips__, it was a no-op. Remove
120 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
121 (init_sys_modes): Remove HPUX special case.
122 * process.c: Include stdlib.h unconditionally. Do not include
123 fcntl.h, systty.h does it. Remove conditional code for
124 HAVE_SERIAL, it is always true.
125 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
126 always true when SIGNALS_VIA_CHARACTERS is true.
127 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
128 !WINDOWSNT means HAVE_TERMIOS.
129 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
130 conditional, which is true for all HAVE_TERMIOS systems.
131 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
132 instead of HAVE_TERMIOS.
133 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
134 EMACS_HAVE_TTY_PGRP.
135 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
136 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
137 anyway.
138
40629f17
EZ
1392010-08-21 Eli Zaretskii <eliz@gnu.org>
140
141 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
142 mirroring pixel positions.
143
d931da8c
DN
1442010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
145
b5c76d0c
DN
146 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
147 write only.
148 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
149 malloc_sbrk_used, nothing uses them.
150
74815588
DN
151 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
152 defined, unconditionally defined in lisp.h.
153
f5817d1c
DN
154 * term.c: Do not include <termios.h>, systty.h does it.
155
d931da8c
DN
156 * s/unixware.h (HAVE_TCATTR):
157 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
158 systty.h defines it when HAVE_TERMIOS is defined.
159
ff2de6d2 1602010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 161
b43c883c 162 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 163 terminals: add one-character offset for R2L lines.
b43c883c 164
491a1546
EZ
165 * emacs.c <emacs_version>: Add a comment regarding
166 msdos/mainmake.v2's dependency on the syntax of this declaration.
167
2396cbba
EZ
1682010-08-20 Eli Zaretskii <eliz@gnu.org>
169
170 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
171 position for R2L lines by mirroring the pixel position wrt the
172 text are box. Improve commentary.
173
7df6150a
AS
1742010-08-20 Andreas Schwab <schwab@linux-m68k.org>
175
176 * image.c (imagemagick_clear_image): Remove debugging output.
177
a2e5caf7
SM
1782010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
179
180 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
181 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
182 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
183 self-insert-face.
184 (syms_of_cmds): Initialize the new vars.
185
20d60baf
JR
1862010-08-19 Jason Rumney <jasonr@gnu.org>
187
cc477da7
JR
188 * w32menu.c (set_frame_menubar): Remove call to undefined function.
189
20d60baf
JR
190 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
191
2c0ac867
J
1922010-08-19 Jan Djärv <jan.h.d@swipnet.se>
193
194 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
195
93352106
EZ
1962010-08-18 Eli Zaretskii <eliz@gnu.org>
197
198 * xterm.c (x_draw_bar_cursor):
199 * w32term.c (x_draw_bar_cursor): If the character under cursor is
200 R2L, draw the bar cursor on its right rather than on its left.
201
c785836d
SM
2022010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
203
0193499f
SM
204 * eval.c (Fdefmacro): Only obey one declaration.
205
c785836d
SM
206 * casefiddle.c (casify_region): Setup gl_state.
207
9cb728a5
J
2082010-08-18 Jan Djärv <jan.h.d@swipnet.se>
209
210 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
211
e1e18511
J
2122010-08-18 Jan Djärv <jan.h.d@swipnet.se>
213
214 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
215
64cb6c78
J
2162010-08-18 David De La Harpe Golden <david@harpegolden.net>
217
218 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
219 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
220 QPRIMARY => NXPrimaryPboard.
221 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
222 NXPrimaryPboard => QPRIMARY.
223 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
224 NXSecondaryPboard = SecondarySelection.
225 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
226
0c9b8993
GM
2272010-08-18 Joakim Verona <joakim@verona.se>
228
229 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
230 defined:
231 (imagemagick_image_p): New function to test for ImageMagic image.
232 (imagemagick_load): New function to load ImageMagick image.
233 (imagemagick_load_image): New function, helper for imagemagick_load.
234 (imagemagick-types): New function.
235 (Qimagemagick): New Lisp_object.
236 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 237
c3554f68
SM
2382010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
241 is a string.
242
1ff2e434
J
2432010-08-17 Jan Djärv <jan.h.d@swipnet.se>
244
245 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
246 x_set_tool_bar_position handler.
247
0cc56427
EZ
2482010-08-17 Eli Zaretskii <eliz@gnu.org>
249
250 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
251 x_set_tool_bar_position handler, needed to support changes from
252 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
253
e45a249b
JD
2542010-08-16 Jan Djärv <jan.h.d@swipnet.se>
255
921242c6
J
256 * nsselect.m: include keyboard.h for QPRIMARY, remove its
257 declaration (Bug#6863).
573d150b 258 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 259
e45a249b
JD
260 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
261
262 * keyboard.h (QPRIMARY): Declare (Bug#6864).
263
7c23dd44
CY
2642010-08-16 Chong Yidong <cyd@stupidchicken.com>
265
266 * keyboard.c (command_loop_1): Avoid setting selection twice,
267 since it's done in deactivate-mark as well.
268 (Vselect_active_regions): Change default to t. Replace `lazy'
269 with non-default value `only', meaning only set PRIMARY for
270 temporarily active regions.
271
272 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
273 select-active-regions.
274
0005830c
J
2752010-08-15 Jan Djärv <jan.h.d@swipnet.se>
276
277 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
278 isn't a string.
279
603dfc72
AS
2802010-08-15 Andreas Schwab <schwab@linux-m68k.org>
281
282 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
283
c25ce9d0
J
2842010-08-15 Jan Djärv <jan.h.d@swipnet.se>
285
c3554f68
SM
286 * keyboard.c (parse_tool_bar_item): malloc buf.
287 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
288 new_lbl (Bug#6855).
c25ce9d0 289
5872c762
EZ
2902010-08-14 Eli Zaretskii <eliz@gnu.org>
291
b236615c
EZ
292 * xterm.c (x_draw_stretch_glyph_string):
293 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
294 the cursor on the right edge of the stretch glyph.
295
c3554f68
SM
296 * xdisp.c (window_box_right_offset, window_box_right):
297 Fix commentary.
b236615c 298
5872c762
EZ
299 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
300 direction when point is inside a run of whitespace characters.
301
302 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
303
e66f9a1b
JR
3042010-08-14 Jason Rumney <jasonr@gnu.org>
305
306 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
307
79d6f59e
CY
3082010-08-14 Chong Yidong <cyd@stupidchicken.com>
309
310 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
311
1c9b4129
JR
3122010-08-13 Jason Rumney <jasonr@gnu.org>
313
314 * w32menu.c (simple_dialog_show): Use unicode message box if available.
315 (MessageBoxW_Proc): New function typedef.
316 (unicode-message-box): New function pointer.
317 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
318
2b4e6277
J
3192010-08-13 Jan Djärv <jan.h.d@swipnet.se>
320
321 * frame.h (Qtool_bar_position): Declare.
322
323 * xfns.c (Fx_create_frame): Call x_default_parameter for
324 Qtool_bar_position.
325
94c97d85
EZ
3262010-08-13 Eli Zaretskii <eliz@gnu.org>
327
8ee81892
EZ
328 * unexcoff.c: Remove the parts used when "emacs" is not defined.
329 (report_error, report_error_1): Ditto.
330 (write_segment): Remove "#if 0" unused code.
331 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
332 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
333 (start_of_text): Remove unused function (was used only if NO_REMAP
334 was NOT defined).
335
891ef8f7
EZ
336 * msdos.c (IT_set_face): Fix format string to match argument
337 types.
338 (IT_write_glyphs, IT_note_mode_line_highlight)
339 (IT_set_frame_parameters): Remove unused variables.
340 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
341 (IT_set_terminal_modes): Disambiguate expression in if clause.
342 (Fmsdos_remember_default_colors): Return Qnil.
343 (IT_set_frame_parameters): Add parens to disambiguate boolean
344 expression for logging the cursor type to termscript.
345 (keyboard_layout_list, keypad_translate_map)
346 (grey_key_translate_map): Add braces in inner initializers.
347 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
348 (dos_rawgetc): Remove unused label.
349 (XMenuActivate): Add braces to remove ambiguous `else'.
350 (dos_ttraw): Always return a value.
351 (spawnve): Declare.
352 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
353
354 * dosfns.h (x_set_title): Declare.
355
356 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
357 Remove unused variables.
358
359 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
360 variables.
361 (init_dosfns): Declare get_lim_data.
362 (system_process_attributes): Declare Fget_internal_run_time.
363
38e41e0e
EZ
364 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
365 list to be consistent with menu.h.
366
94c97d85
EZ
367 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
368 warnings due to mixing of "char *" and "const char *".
369
c5683ceb
SM
3702010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
371
372 Introduce a new comment style "c" flag.
373 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
374 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
375 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
376 (syntax_prefix_flag_p): New function.
377 (Fstring_to_syntax): Understand new "c" flag.
378 (Finternal_describe_syntax_value): Recognize new flag; use the
379 SYNTAX_FLAGS_* macros.
380 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
381 comment style to accomodate the new styles.
382 (back_comment, forw_comment, Fforward_comment, scan_lists)
383 (scan_sexps_forward): Update code to obey the new comment style flag.
384
385 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
386
387 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
388
7aee76f4
J
3892010-08-11 Jan Djärv <jan.h.d@swipnet.se>
390
3a46642b
J
391 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
392 first.
94dff98f 393 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
394
395 * gtkutil.h (xg_check_special_colors): Declare.
396
397 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
398 (xg_create_frame_widgets): Connect theme name changes to
399 style_changed_cb.
400
42ca4633
J
401 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
402 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
403 (x_term_init): Use char[] display_opt and name_opt instead of
404 string literal. file is const char*.
405
406 * xsmfns.c (NOSPLASH_OPT): Change to char[].
407 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
408 props. Free them at the end.
409
410 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
411
c5683ceb
SM
412 * xrdb.c (get_system_app): Make path const and use char *p for
413 non-const char.
42ca4633
J
414
415 * xmenu.c (Fx_popup_dialog): error_name is const char*.
416 (xmenu_show): error parameter is const char **. pane_string is const
417 char *.
418 (button_names): Is const char *.
419 (xdialog_show): error_name and pane_string is const.
420
421 * process.h (synch_process_death): Is const char*.
422
423 * w32menu.c (w32_menu_show):
424 * nsmenu.m (ns_menu_show): error parameter is const char **.
425
426 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
427 is const char **.
428
429 * menu.c (Fx_popup_menu): error_name is const.
430
431 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
432 with unsigned char and XtPointer with void *.
433
434 * gtkutil.h: Replace widget_value with struct _widget_value.
435 (enum button_type, struct _widget_value): Remove and use the one from
436 keyboard.h.
437
438 * gtkutil.c (get_utf8_string): Always return an allocated string.
439 Parameter is const.
440 (create_dialog, xg_create_one_menuitem, create_menus)
441 (xg_item_label_same_p, xg_update_menu_item): Free result from
442 get_utf8_string.
443 (xg_separator_p, xg_item_label_same_p): label is const.
444
445 * font.h (font_open_by_name): Make name const.
446
447 * font.c (font_open_by_name): Make name const.
448
449 * floatfns.c (matherr): Use a const char* variable for x->name.
450
451 * emacs.c (main): Pass char[] to putenv instead of literal.
452
453 * callproc.c (synch_process_death): Make const.
454 (Fcall_process): Make signame const.
455
9c5bd55a
J
456 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
457 (addDisplayItemWithImage): Use const char*.
458
459 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
460 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
461
462 * nsfont.m (ns_descriptor_to_entity): Use const char*.
463
464 * keyboard.h (_widget_value): name, value and key are const char*.
465
7aee76f4
J
466 * unexmacosx.c (unexec_error): Use const char *.
467
09d93395
DN
4682010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
469
470 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 471 (font_parse_name, font_open_by_name):
09d93395 472 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 473 (font_parse_name, font_open_by_name): Remove const.
09d93395 474
671d409f
AS
4752010-08-09 Andreas Schwab <schwab@linux-m68k.org>
476
477 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
478 definition.
479
480 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
481 * m/amdx86-64.h: Likewise.
482 * m/arm.h: Likewise.
483 * m/hp800.h: Likewise.
484 * m/ia64.h: Likewise.
485 * m/ibmrs6000.h: Likewise.
486 * m/ibms390.h: Likewise.
487 * m/intel386.h: Likewise.
488 * m/iris4d.h: Likewise.
489 * m/m68k.h: Likewise.
490 * m/macppc.h: Likewise.
491 * m/mips.h: Likewise.
492 * m/sh3.h: Likewise.
493 * m/sparc.h: Likewise.
494 * m/template.h: Likewise.
495 * m/vax.h: Likewise.
496 * m/xtensa.h: Likewise.
497 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
498 WORDS_BIG_ENDIAN.
499 * lisp.h: Likewise.
500 * md5.c: Likewise.
501 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
502
8ea90aa3
DN
5032010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
504
505 Use const char* instead of char*.
506 Reduce the number of warnings with -Wwrite-strings.
507 * xrdb.c (get_environ_db, get_system_name):
508 * unexelf.c (find_section):
509 * term.c (string_cost, string_cost_one_line, per_line_cost)
510 (get_named_tty, init_tty):
511 * sysdep.c (sys_subshell):
512 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
513 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
514 * search.c (Freplace_match):
515 * process.c (Fmake_network_process, send_process, init_process):
516 * lread.c (Fload, init_lread):
517 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
518 * keyboard.c (parse_tool_bar_item, struct event_head):
519 * gtkutil.h (xg_get_font_name):
520 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
521 (make_widget_for_menu_item, make_menu_item, create_menus)
522 (xg_make_tool_item):
523 * font.c (parse_matrix, font_parse_name):
524 * floatfns.c (rounding_driver, float_error_fn_name):
525 * filelock.c (get_boot_time_1, lock_file_1):
526 * fileio.c (barf_or_query_if_file_exists, check_writable):
527 * editfns.c (get_system_name, get_operating_system_release)
528 (Fencode_time, Fset_time_zone_rule):
529 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
530 * buffer.c (defvar_per_buffer): Use const.
531
7815fe19 5322010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 533
692f3ddc 534 * charset.c: Include <stdlib.h>.
7a84eee5
KH
535 (struct charset_sort_data): New struct.
536 (charset_compare): New function.
692f3ddc 537 (Fsort_charsets): New function.
7a84eee5
KH
538 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
539
540 * coding.c (decode_coding_iso_2022): Fix checking of dimension
541 number in CTEXT extended segment.
542
7815fe19 5432010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
544
545 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
546 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
547
7815fe19 5482010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
549
550 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
551 (Fhash_table_size): Fix typos in docstrings.
552 (Fmake_hash_table): Doc fix.
553
7815fe19 5542010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
555
556 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
557 Doc fix (bug#5625).
558
7815fe19 5592010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
560
561 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
562 the MSDOS definition.
563
1b6d8cf0
DN
5642010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
565
675e2c69
DN
566 Use const char* instead of char*.
567 * xterm.c (x_create_toolkit_scroll_bar):
568 * xfont.c (xfont_list_pattern):
569 * xfns.c (x_default_scroll_bar_color_parameter)
570 (xic_create_fontsetname, x_default_font_parameter)
571 (x_screen_planes):
572 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
573 (store_mode_line_string, decode_mode_spec, display_string):
574 * menu.c (digest_single_submenu):
575 * keymap.h (initial_define_key, initial_define_lispy_key):
576 * keymap.c (initial_define_key, initial_define_lispy_key):
577 * image.c (image_error, image_keyword):
578 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
579 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
580 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
581 (ftfont_list, ftfont_match):
582 * frame.c (frame_parm_table):
583 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
584 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
585 (font_add_log, font_deferred_log):
586 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
587 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
588 (font_add_log, font_deferred_log):
589 * emacs.c (argmatch):
590 * dispextern.h (struct it):
591 * coding.c (ENCODE_DESIGNATION):
592 * charset.c (define_charset_internal): Use const.
593
25717ca1
DN
594 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
595
c5683ceb
SM
596 * xrdb.c: Remove include guard.
597 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
598 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
599 realloc->xrealloc instead of using #defines.
600
efb41e21
EZ
6012010-08-08 Eli Zaretskii <eliz@gnu.org>
602
cd21226d 603 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
604 * editfns.c (Fline_beginning_position, Fline_end_position):
605 State in the doc strings that start and end of line are in the
606 logical order.
cd21226d 607
efb41e21
EZ
608 * xdisp.c (display_line): Move the handling of overlay arrow after
609 the call to find_row_edges. (Bug#6699)
610
746812d9
CY
6112010-08-07 Chong Yidong <cyd@stupidchicken.com>
612
613 * keyboard.c (command_loop_1):
614 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
615
9852377f
CY
6162010-08-07 Chong Yidong <cyd@stupidchicken.com>
617
618 * insdel.c (prepare_to_modify_buffer): Save active region text to
619 Vsaved_region_selection.
620
621 * xselect.c (QPRIMARY): Move to keyboard.c.
622
623 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
624 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
625 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 626
0e9c8657
JB
6272010-08-07 Juanma Barranquero <lekktu@gmail.com>
628
629 * alloc.c (lisp_malloc):
630 * buffer.c (set_buffer_internal, set_buffer_internal_1):
631 * charset.h (emacs_mule_charset):
632 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
633 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
634 (bitch_at_user):
635 * lisp.h (Fcheck_coding_system, Fget_text_property)
636 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
637 Remove duplicate declarations.
638
648801d1
DN
6392010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
640
32bc6709
DN
641 * process.c: Simplify include logic.
642
3ef1d108
DN
643 * keyboard.h (quit_char): Add declaration.
644 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
645 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
646 Add declarations.
3ef1d108
DN
647 * sysdep.c:
648 * w32.c: Remove the above declarations.
649
97ec208f
DN
650 Remove extern declarations in .c files, .h files have them.
651 * xterm.c:
652 * xdisp.c:
97ec208f
DN
653 * msdos.c:
654 * image.c:
655 * gtkutil.c:
656 * fileio.c:
657 * eval.c: Remove declarations.
658
94eed851
DN
659 * frame.c (frame_params): Make const.
660
36e053eb
DN
661 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
662
0e843971
DN
663 * emacs.c (emacs_copyright, emacs_version): Make static.
664 (Vinitial_window_system, Vauto_save_list_file_name)
665 (Vinhibit_redisplay): Remove declarations.
666 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
667 for AIX.
668
648801d1
DN
669 Use const for some arrays and functions.
670 * xterm.h (xg_set_icon_from_xpm_data):
671 * xfns.c (xg_set_icon_from_xpm_data):
672 * term.c (fkeys):
673 * keyboard.c (lispy_accent_keys, lispy_function_keys)
674 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
675 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
676 (frame.c frame_parms):
677 * emacs-icon.h (gnu_xpm_bits):
678 * callint.c (callint_argfuns): Use const.
679
8646d999
J
6802010-08-06 Jan Djärv <jan.h.d@swipnet.se>
681
682 * sysdep.c: Move include term.h last of includes (Bug#6812).
683
cb4545ad
EZ
6842010-08-06 Eli Zaretskii <eliz@gnu.org>
685
686 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
687
688 * msdos.c (IT_display_cursor): Log cursor position on termscript.
689
690 * .gdbinit (pgx): Display the avoid_cursor_p flag.
691
da7e2be6
JB
6922010-08-06 Juanma Barranquero <lekktu@gmail.com>
693
694 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
695
3d608a86
J
6962010-08-06 Jan Djärv <jan.h.d@swipnet.se>
697
7908fb60
J
698 * xterm.h (x_get_focus_frame): Declare.
699
700 * keyboard.h (poll_for_input_1): Unconditionally declare.
701
4094bf36
J
702 * nsterm.h (x_set_menu_bar_lines): Declare.
703
704 * window.c: Don't include menu.h, it depends on lots of other .h-files.
705
3d608a86
J
706 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
707
708 * window.c: Include menu.h.
709
710 * unexmacosx.c (print_region_list, print_regions)
711 (build_region_list, find_emacs_zone_regions)
712 (unexec_regions_merge, read_load_commands, dump_it)
713 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
714
715 * term.c: Check HAVE_SYS_IOCTL_H.
716
686b968e 717 * sysdep.c: Check HAVE_TERM_H.
3d608a86 718
686b968e 719 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
720
721 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
722 (ns_ring_bell, ns_defined_color, hide_hourglass)
723 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
724 Convert to ANSI C prototypes.
725 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
726 before code.
727
728 * nsterm.h : Include sysselect.h.
729 (x_sync, x_get_focus_frame, x_set_mouse_position)
730 (x_set_mouse_pixel_position, x_make_frame_visible)
731 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
732 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
733 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
734 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 735 Declare.
3d608a86
J
736
737 * nsmenu.m (popup_activated, name_is_separator)
738 (syms_of_nsmenu): Convert to ANSI C prototypes.
739 (runMenuAt): Prototypes and move declarations before code.
740
741 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
742
743 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
744 prototypes.
745
746 * nsfns.m (have_menus_p, ns_display_info_for_name)
747 (x_set_cursor_type, ns_appkit_version_str)
748 (ns_appkit_version_int, ns_do_applescript)
749 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
750 (syms_of_nsfns): Convert to ANSI C prototypes.
751
752 * menu.h (x_set_menu_bar_line): Declare.
753 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
754
755 * lisp.h (fmod_float): Declare.
756
757 * image.c (xpm_scan, xpm_make_color_table_v)
758 (xpm_put_color_table_v, xpm_get_color_table_v)
759 (xpm_make_color_table_h, xpm_put_color_table_h)
760 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
761 (xpm_load): Convert to ANSI C prototypes.
762
763 * emacs.c: Include nsterm.h if HAVE_NS.
764
765 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
766
fce70521
DN
7672010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
768
769 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
770 subprocesses, only MSDOS does not define HAVE_SOCKETS.
771 (socket_options): Use const char* for name.
772
a11889ab
JB
7732010-08-06 Juanma Barranquero <lekktu@gmail.com>
774
775 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
776
777 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
778 Don't declare xmalloc_widget_value and digest_single_submenu.
779
780 * w32font.c (Qlatin): Remove declaration.
781
782 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
783
c95b508f 784 * dired.c (compile_pattern): Restore declaration.
a11889ab 785
6254cdda
DN
7862010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
787
04bab72c
DN
788 Remove extern declarations in .c files, .h files have them.
789 * data.c:
790 * dired.c:
791 * editfns.c:
792 * filelock.c:
793 * fns.c:
794 * font.c:
795 * fontset.c:
796 * frame.c:
797 * fringe.c:
798 * ftfont.c:
799 * gtkutil.c:
800 * indent.c:
801 * keyboard.c:
802 * keymap.c:
803 * lread.c:
804 * menu.c:
805 * print.c:
806 * search.c:
807 * sound.c:
808 * window.c:
809 * xdisp.c:
810 * xfaces.c:
811 * xfns.c:
812 * xfont.c:
813 * xftfont.c:
814 * xmenu.c:
815 * xterm.c: Remove declarations.
816
dff94ed5
DN
817 Cleanup syssignal.h.
818 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
819 (main_thread): Move down to remove #ifdef.
820 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
821 Remove conditional definition following unconditional ones.
822
99f3388e
DN
823 * lisp.h: Remove HAVE_SHM code, unused.
824 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
825 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
826 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
827 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
828 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
829 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
830 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
831 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
832 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
833 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
834 (Qwindow_scroll_functions, Vafter_load_alist)
835 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
836 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
837 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
838 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
839 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
840 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
841 (initial_argv, last_nonmenu_event, load_in_progress)
842 (noninteractive_need_newline, scroll_margin): Add declarations.
843
844 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
845 declarations, menu.h has them.
846 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
847 (Vinput_method_function, Qinput_method_function)
848 (Qevent_symbol_element_mask, last_event_timestamp):
849 * dispextern.h (Voverflow_newline_into_fringe):
850 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
851 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
852 (syms_of_w32font, syms_of_nsfont):
853 * fontset.h (find_font_encoding, Qlatin):
854 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
855 (Vtool_bar_mode, set_frame_menubar):
856 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
857 * xterm.h (Qx_gtk_map_stock):
858 * keymap.h (meta_prefix_char): Add declarations.
859
9f5dd6f2
DN
860 * term.c: Remove dead code.
861
6254cdda
DN
862 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
863 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
864 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
865 which is what was there before BSD_PGRPS was removed.
866
29cf3e20
EZ
8672010-08-05 Eli Zaretskii <eliz@gnu.org>
868
869 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
870
871 * unexcoff.c: Renamed from unexec.c.
872
aaa0a19a
SM
8732010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
874
875 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
876
8d1d9587
JB
8772010-08-03 Johan Bockgård <bojohan@gnu.org>
878
879 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 880 (Bug#6744)
8d1d9587 881
9a747ba6
JD
8822010-08-02 Jan Djärv <jan.h.d@swipnet.se>
883
4d464ae4
JD
884 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
885 to TRUE if depth of screen is < 16.
886
ac01763e
JD
887 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
888 USE_GTK_TOOLTIP.
e0d62a9b
JB
889 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
890 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 891 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
892 USE_GTK_TOOLTIP.
893 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
894
895 * xterm.h (USE_GTK_TOOLTIP): New define.
896 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
897
9a747ba6
JD
898 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
899 to Control-D (Bug#6771).
900
7b0815ba
JB
9012010-08-02 Juanma Barranquero <lekktu@gmail.com>
902
903 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
904 Wording by Drew Adams <drew.adams@oracle.com>.
905
aa1859f5
J
9062010-08-01 Jan Djärv <jan.h.d@swipnet.se>
907
908 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
909 ttip_lbl.
910
911 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
912 calling gtk_widget_queue_draw.
913 (x_free_frame_resources): Call xg_free_frame_widgets.
914
915 * xfns.c (x_gtk_use_system_tooltips): New variable.
916 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
917 new gtkutil tooltip functions to show the tooltip.
918 (Fx_hide_tip): Call xg_hide_tooltip.
919 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
920
921 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
922 (xg_show_tooltip, xg_hide_tooltip): Declare.
923
924 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
925 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
926 New functions.
aa1859f5
J
927 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
928 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
929 Remove code that is commented out.
930
76417ef4
SM
9312010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
932
933 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
934
16041401
CY
9352010-07-31 Chong Yidong <cyd@stupidchicken.com>
936
937 * xselect.c (x_own_selection): Use list4.
938
2c09a58f
DN
9392010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
940
941 * buffer.c (Qwindow): Do not define, already defined in data.c.
942 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
943
59df9fdd 9442010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 945
59df9fdd
JB
946 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
947 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
948 * config.in: Undef HAVE_DIRENT_H.
1c97e857 949 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 950 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 951
1b231651
DN
9522010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
953
954 Rename s/usg5-4.h -> s/usg5-4-common.h.
955 * s/usg5-4.h: Rename file to ...
956 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
957 * s/unixware.h:
958 * s/sol2-6.h:
959 * s/irix6-5.h: Update includes accordingly.
960
bfeabdc3
JD
9612010-07-29 Jan Djärv <jan.h.d@swipnet.se>
962
2ebf1083
J
963 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
964
bfeabdc3 965 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
966 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
967 Remove toolbar_height.
968 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
969 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
970 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
971 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
972
973 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
974
975 * xfns.c (x_set_tool_bar_position): New function.
976 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
977 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 978 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
979
980 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
981 and FRAME_TOOLBAR_LEFT_WIDTH.
982
983 * gtkutil.h (xg_change_toolbar_position): Declare.
984
985 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
986 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
987 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
988 (xg_create_frame_widgets): Create a hobox for placing widgets
989 vertically. Use gtk_box_pack_start.
990 (xg_height_or_width_changed): Renamed from xg_height_changed.
991 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
992 (xg_update_frame_menubar, free_frame_menubar): Change to
993 xg_height_or_width_changed.
994 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
995 size correctly. Remove hardcoded 4, instead use handlebox size -
996 toolbar size.
997 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 998 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
999 (xg_pack_tool_bar): POS is a new parameter.
1000 Set orientation of tool bar based on pos.
1001 Only make handlebox_widget if NULL.
1002 Check if tool bar goes to vbox or hbox depending on pos.
1003 (xg_update_tool_bar_sizes): New function.
686b968e 1004 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1005 height, call xg_update_tool_bar_sizes instead.
1006 (free_frame_tool_bar): Remove from hbox or vbox depending on
1007 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1008 (xg_change_toolbar_position): New function.
1009
1010 * frame.h (struct frame): Add tool_bar_position.
1011 (Qbottom): Declare.
1012
1013 * frame.c (Qtool_bar_position): New variable.
1014 (make_frame): Set tool_bar_position to Qtop.
1015 (frame_parms): Add tool-bar-position.
1016 (x_report_frame_params): Store tool_bar_position.
1017 (x_set_fringe_width): Reset wm size hint after fringe changes.
1018
26469a38
DN
10192010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1020
1021 Make lisp_time_argument declaration work on all systems.
1022 * lisp.h (lisp_time_argument): Move declaration ...
1023 * systime.h (lisp_time_argument): ... here
1024 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1025
8848b728
JD
10262010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1027
1028 * vm-limit.c (POINTER): Add typedef for it.
1029 (start_of_data): Change return type from POINTER to char *.
1030
1031 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1032 HAVE_WINDOW_SYSTEM.
1033
76fd1ee9
DN
10342010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1035
0441987e
DN
1036 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1037 Remove reference to __osf__, unused.
1038
56a000c7
DN
1039 * mem-limits.h: Remove duplicated includes.
1040 (NULL): Remove definition, unused.
1041 (POINTER): Remove definition.
1042 (start_of_data): Use char* in prototype, as the function
1043 definition does.
1044
e6cba650
DN
1045 Remove extern declarations from .c files, and them to .h files.
1046 * keyboard.h (Qhelp_echo, waiting_for_input)
1047 (input_available_clear_time, ignore_mouse_drag_p)
1048 (Vdouble_click_time, real_this_command, Vthis_original_command):
1049 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1050 (Voverriding_local_map_menu_flag):
1051 * lisp.h (Qinteractive_form, use_file_dialog)
1052 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1053 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1054 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1055 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1056 (Qfunction, debug_on_next_call, Qfield)
1057 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1058 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1059 (Qfile_directory_p, Qinsert_file_contents)
1060 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1061 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1062 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1063 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1064 (Qminibuffer_prompt)
1065 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1066 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1067 (gray_bitmap_bits, xic_create_fontsetname):
1068 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1069
1070 * xsmfns.c (Vuser_login_name):
1071 * xrdb.c (Vdouble_click_time):
1072 * xfaces.c (xic_create_fontsetname):
1073 * w32select.c (waiting_for_input):
1074 * print.c (minibuffer_auto_raise):
1075 * msdos.c (Qhelp_echo):
1076 * macros.c (real_this_command):
1077 * keymap.c (Voverriding_local_map):
1078 * xterm.c (poll_for_input_1, gray_bitmap_width)
1079 (gray_bitmap_height, gray_bitmap_bits;
1080 * xmenu.c ( Voverriding_local_map)
1081 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1082 (use_file_dialog, Xt_app_con):
1083 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1084 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1085 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1086 (Qtool_bar_lines, ignore_mouse_drag_p):
1087 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1088 (Qrear_nonsticky, nconc2):
1089 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1090 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1091 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1092 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1093 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1094 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1095 (gc_in_progress):
1096 * doc.c (Voverriding_local_map, Qremap):
1097 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1098 (Vcompletion_regexp_list):
1099 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1100 (Qcompletion_ignore_case):
1101 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1102 (Vhistory_length, Vthis_original_command, real_this_command)
1103 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1104 * image.c (Qrisky_local_variable):
1105 * fontset.c (QCname):
1106 * fns.c (minibuffer_auto_raise, QCname):
1107 * dispnew.c (char_ins_del_cost):
1108 * composite.c (font_fill_lglyph_metrics):
1109 * cmds.c (Qface, Vtranslation_table_for_input):
1110 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1111 * ccl.c (charset_unicode):
1112 * callproc.c (Vtemporary_file_directory):
1113 * buffer.c (emacs_strerror): Remove extern declarations.
1114
1115 * data.c (Qwindow): Make non-static, used from other files too.
1116 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1117
76fd1ee9
DN
1118 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1119 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1120 * s/usg5-4.h (COFF):
1121 * s/template.h:
1122 * s/msdos.h (COFF, NO_REMAP):
1123 * s/ms-w32.h (NO_REMAP):
1124 * s/hpux10-20.h (NO_REMAP):
1125 * m/sparc.h (SEGMENT_MASK):
1126 * m/m68k.h (NO_REMAP):
1127 * m/intel386.h (SEGMENT_MASK):
1128 * m/arm.h (NO_REMAP):
1129 * m/alpha.h (COFF):
1130 * m/template.h: Remove references to unused defines.
1131
8a52f00a
JD
11322010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1133
1134 * xsettings.c (Ftool_bar_get_system_style): Also check for
1135 Qtext_image_horiz.
1136
1137 * xdisp.c (Qtext_image_horiz): Define.
1138 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1139 to documentation of tool-bar-style.
8a52f00a
JD
1140
1141 * lisp.h (Qtext_image_horiz): Declare.
1142
1143 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1144 style text_image_horiz.
1145
89dc303e
DN
11462010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1147
60799703
DN
1148 * emacs.c (Fkill_emacs): Remove return statement.
1149
37254dc1
DN
1150 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1151 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1152 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1153 local extern declarations.
1154
71c7345a
DN
1155 * xmenu.c: Do not included lwlib.h, not needed.
1156
6ba577cb
DN
1157 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1158
fdb183d6
DN
1159 * process.c: Move definitions earlier to minimize #ifdefs.
1160
1161 * xterm.h (x_get_customization_string, x_load_resources)
1162 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1163 (x_check_errors, x_property_data_to_lisp, defined_color)
1164 (xic_set_xfontset, x_defined_color): Use const.
1165
1166 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1167 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1168
1169 * xselect.c (selection_data_to_lisp_data)
1170 (x_property_data_to_lisp):
1171 * xrdb.c (x_get_string_resource, file_p)
1172 (x_get_customization_string, magic_file_p, search_magic_path)
1173 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1174 (x_get_string_resource): Use const.
1175
1176 * xfns.c: Include xlwmenu.h when USE_LUCID.
1177 (x_defined_color, xic_set_xfontset): Use const.
1178 (Fx_hide_tip): Remove local extern declaration.
1179
1180 * xfaces.c (Qmouse_face): Remove declaration.
1181 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1182 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1183
1184 * xdisp.c (do_mouse_tracking): Remove declaration.
1185 (add_to_log): Use const.
1186
1187 * minibuf.c (Qmouse_face): Remove declaration.
1188
1189 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1190
1191 * keyboard.h (do_mouse_tracking): Add declaration.
1192
1193 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1194 (QCdata, QCtype, Qcenter): Remove declarations.
1195
1196 * frame.c (x_get_resource_string, x_get_string_resource)
1197 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1198 (x_default_parameter): Use const.
1199
1200 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1201 (QCheight, QCsize, QCname): Remove declarations.
1202
1203 * emacs.c (main): Remove local extern declaration.
1204
1205 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1206 declarations.
1207
1208 * dispnew.c: Remove duplicate #include <unistd.h>.
1209 (update_window, update_frame_1, init_display): Remove local extern
1210 declarations.
1211
1212 * dispextern.h (add_to_log): Remove declaration.
1213 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1214 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1215
1216 * dired.c (scmp): Add const.
1217 (directory_files_internal): Remove local extern declaration.
1218
1219 * data.c (Finteractive_form): Use const.
1220
1221 * composite.c (syms_of_composite): Remove local extern declarations.
1222
1223 * charset.c (add_to_log): Remove declaration.
1224
1225 * character.c (strwidth, parse_str_to_multibyte): Add const.
1226
1227 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1228
1229 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1230
89dc303e 1231 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1232 (Lisp_Subr): Make doc and intspec constant.
1233 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1234 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1235 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1236 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1237 (display_arg): Add declarations.
89dc303e 1238
0ed082fe 12392010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1240
1241 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1242
0ed082fe
JB
1243 * window.c (Fwindow_height): Doc fix (bug#6518).
1244
12452010-07-27 Juanma Barranquero <lekktu@gmail.com>
1246
1247 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1248
ccaf0336
DN
12492010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1250
977105dc
DN
1251 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1252 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1253 functions.
1254
f5ada890
DN
1255 * frame.h (Qtty_color_mode): Add declaration.
1256
ccaf0336
DN
1257 * lisp.h (Ftop_level, Fexit_recursive_edit)
1258 (Fabort_recursive_edit): Mark as NO_RETURN.
1259
dfe3c90f
KH
12602010-07-26 Kenichi Handa <handa@m17n.org>
1261
1262 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1263 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1264
7d383292
JB
12652010-07-26 Juanma Barranquero <lekktu@gmail.com>
1266
1267 * lread.c (unreadpure, mapatoms_1): Make static.
1268
da31e629
JB
12692010-07-25 Juanma Barranquero <lekktu@gmail.com>
1270
1271 * terminfo.c (tparam): Fix prototype of tparm.
1272
7bfa6d77
AS
12732010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1274
dcc19aac
AS
1275 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1276 find start of text segment.
1277 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1278 is defined.
1279
7bfa6d77
AS
1280 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1281
63f9a672
KB
12822010-07-25 Ken Brown <kbrown@cornell.edu>
1283
1284 * vm-limit.c (check_memory_limits): Fix previous change;
1285 accidentally reverted an earlier change.
1286
24933075
KB
12872010-07-25 Ken Brown <kbrown@cornell.edu>
1288
1289 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1290 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1291
361358ea
JB
12922010-07-25 Juanma Barranquero <lekktu@gmail.com>
1293
1294 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1295 * dired.c (opendir, readdir): Fix prototypes.
1296 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1297 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1298 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1299 (telldir): Remove declaration.
1300 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1301 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1302 * syssignal.h (strsignal): Fix prototype.
1303 * term.c (tparam): Fix prototype.
1304 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1305 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1306 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1307 and __morecore.
1308 * w32gui.h (XParseGeometry): Fix prototype.
1309 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1310 * w32term.c (my_set_focus): Declare inside #if 0.
1311 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1312 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1313 (drain_message_queue, get_next_msg, post_msg, parse_button)
1314 (ClipboardSequence_Proc): Fix prototypes.
1315 (wait_for_sync): Remove declaration.
1316
630b9592
JB
13172010-07-24 Juanma Barranquero <lekktu@gmail.com>
1318
1319 * w32fns.c (w32_to_x_color): Remove, unused.
1320
6a0d6611
AS
13212010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1322
1323 * lisp.h: Remove leftover P_.
1324
4e8608ff
DN
13252010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1326
1327 * ecrt0.c, unexalpha.c: Remove files, unused.
1328
c8197983
AS
13292010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1330
1331 * cmds.c (internal_self_insert): Make static.
1332 * lisp.h (internal_self_insert): Remove declaration.
1333
97b372d7
JB
13342010-07-23 Juanma Barranquero <lekktu@gmail.com>
1335
33ac0414
JB
1336 * alloc.c (free_float):
1337 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1338 * frame.c (delete_frame_handler):
1339 * ralloc.c (reorder_bloc):
1340 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1341 Remove unused static functions.
1342
94da8397
JB
1343 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1344 it is called only from NS code.
1345
2e6c8532
JB
1346 * w32term.c (my_set_focus): #ifdef away; it is called only from
1347 "#ifdef 0" code.
1348
97b372d7
JB
1349 * w32fns.c (x_edge_detection):
1350 * xfaces.c (may_use_scalable_font_p):
1351 Remove obsolete static declarations.
1352
7c3320d8
JB
13532010-07-20 Juanma Barranquero <lekktu@gmail.com>
1354
1355 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1356 (emacs_blocked_realloc, uninterrupt_malloc):
1357 * fringe.c (w32_reset_fringes):
1358 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1359 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1360 * sound.c (be2hs, do_play_sound):
1361 * vm-limit.c (get_lim_data, ret_lim_data):
1362 * w32term.c (x_free_frame_resources):
1363 * xfaces.c (x_create_gc, x_free_gc):
1364 Convert definitions to standard C.
1365
d5273788
SM
13662010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1367
1368 * eval.c (Feval, Ffuncall): Use the new names.
1369
1370 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1371 (DEFUN): Add braces around the union initialisation and use ## to
1372 specify the right union alternative and avoid a cast.
1373
8d16a259
JB
13742010-07-18 Juanma Barranquero <lekktu@gmail.com>
1375
1376 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1377
3b8eff32
CY
13782010-07-17 Chong Yidong <cyd@stupidchicken.com>
1379
1380 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1381
499322ce
J
13822010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1383
1384 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1385 is related to the menu bar (Bug#6499).
a628ad9d 1386 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1387
f6003da5 13882010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1389
1390 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1391
1392 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1393
1394 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1395 i.e. don't put back ButtonRelease (Bug#6608).
1396
1397 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1398 instead of Window. Call xg_event_is_for_menubar when
1399 USE_GTK (Bug#6499).
1400
1401 * gtkutil.h (xg_event_is_for_menubar): Declare.
1402
1403 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1404
f6003da5 14052010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1406
1407 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1408 when it's the same as the old foreground. (Bug#6609)
1409
23243f29
J
14102010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1411
1412 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1413 widget is non-null (Bug#6645).
1414
2b23d2a6
AS
14152010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1416
01b564ff
AS
1417 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1418 Convert old-style definition.
1419
2b23d2a6
AS
1420 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1421 timestamp argument.
1422
c4affd2c
EZ
14232010-07-15 Eli Zaretskii <eliz@gnu.org>
1424
1425 * fringe.c (update_window_fringes): Restore mistakenly reverted
1426 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1427
cf28cebc
J
14282010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1429
1430 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1431 (SET_SAVED_KEY_EVENT): Remove (not used).
1432 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1433 remove size parameter.
1434 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1435 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1436 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1437 ButtonRelease.
6b2c4bd9
J
1438 (x_set_window_size_1): scroll_bar_actual_width is always
1439 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1440
1441 * xdisp.c (pending_menu_activation): Remove extern declaration.
1442 (prepare_menu_bars): Remove setting of pending_menu_activation.
1443
1444 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1445 (x_activate_menubar): Set popup_activated_flag for Xt also.
1446 Remove setting of pending_menu_activation.
cf28cebc
J
1447 (set_frame_menubar): Remove check of pending_menu_activation.
1448 Declare menubar_size before code. Correct spelling in comment.
1449
f6c1c771
KH
14502010-07-14 Kenichi Handa <handa@m17n.org>
1451
1452 * font.c (font_open_entity): Cancel previous change.
1453 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1454
20477505
EZ
14552010-07-13 Eli Zaretskii <eliz@gnu.org>
1456
77defa9a
EZ
1457 Remove subprocesses #ifdefs.
1458 * process.c <inhibit_sentinels>: Move to the common part.
1459 (Fwaiting_for_user_input_p): Move to the common part; return nil
1460 if async subprocesses aren't supported.
1461 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1462 MS-DOS. Remove "#ifdef subprocesses".
1463 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1464 (gettimeofday): Remove "#ifdef subprocesses".
1465 (wait_without_blocking): Remove function.
1466 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1467 Remove "#ifdef subprocesses".
1468 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1469 compiled on MS-DOS.
1470 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1471 wait_for_termination on MS-DOS.
1472 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1473 initialization of inhibit_sentinels.
1474 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1475 subprocesses" conditional.
1476 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1477 wait_for_termination, since `buffer' cannot be an integer when
1478 async subprocesses are not supported
1479 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1480 for ifdefing away the call to Fprocess_status.
1481
20477505
EZ
1482 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1483 away the entire body of the function.
1484
b3ffc17c
DN
14852010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1486
01faa934
DN
1487 Remove subprocesses #ifdefs from term.c.
1488 * process.c (add_keyboard_wait_descriptor)
1489 (delete_keyboard_wait_descriptor): Move to common section, do
1490 nothing when subprocesses is not defined.
a628ad9d
JB
1491 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1492 Remove subprocesses #ifdefs.
01faa934 1493
b3ffc17c
DN
1494 Convert maybe_fatal to standard C.
1495 * lisp.h (verror): Declare.
1496 * eval.c (verror): New function containing the code from ...
1497 (error): ... this. Call verror.
1498 * term.c (vfatal): New function containing the code from ...
1499 (fatal): ... this. Call vfatal.
1500 (maybe_fatal): Convert to standard C, use variable number of
1501 arguments. Declare as non-return.
1502 (init_tty): Fix maybe_fatal call.
1503
0521f580
DN
15042010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1505
1506 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1507 (_scroll_bar_note_movement): Convert definitions to standard C.
1508 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1509 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1510
ebd15611
DN
15112010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1512
1513 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1514 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1515 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1516 (xaw_jump_callback, xaw_scroll_callback)
1517 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1518 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1519 definitions to standard C.
1520 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1521 (popup_activate_callback, popup_deactivate_callback)
1522 (menu_highlight_callback, menubar_selection_callback)
1523 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1524 (free_frame_menubar, popup_selection_callback, as)
1525 (create_and_show_popup_menu, dialog_selection_callback)
1526 (create_and_show_dialog):
1527 * xfns.c (hack_wm_protocols, x_window):
1528 * xfaces.c (x_update_menu_appearance):
1529 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1530 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1531 (set_frame_size, update_wm_hints, setup_frame_gcs)
1532 (update_various_frame_slots, update_from_various_frame_slots)
1533 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1534 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1535 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1536
de06a2dd
AS
15372010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1538
a628ad9d 1539 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1540
fc549af9
EZ
15412010-07-12 Eli Zaretskii <eliz@gnu.org>
1542
1543 * process.c (setup_process_coding_systems): Move to the part
1544 shared by non-subprocesses systems, and make its body empty when
1545 subprocesses is not defined.
1546 (close_process_descs): Move to the part shared by non-subprocesses
1547 systems.
1408902e
EZ
1548 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1549 ANSI C.
fc549af9 1550
d5a3eaaf
AS
15512010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1552
1553 * editfns.c (transpose_markers): Convert old-style definition.
1554 * emacs.c (abort, shut_down_emacs, fixup_locale)
1555 (synchronize_system_time_locale)
1556 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1557 * floatfns.c (extract_float, matherr, init_floatfns)
1558 (syms_of_floatfns): Likewise.
1559 * fns.c (make_hash_table): Likewise.
1560 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1561 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1562 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1563 (ftfont_variation_glyphs): Likewise.
1564 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1565 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1566 * lread.c (read_filtered_event): Likewise.
1567 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1568 * process.c (wait_reading_process_output): Likewise.
1569 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1570 * search.c (search_buffer, boyer_moore): Likewise.
1571 * syntax.c (scan_sexps_forward): Likewise.
1572 * xdisp.c (try_scrolling): Likewise.
1573 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1574 (face_at_string_position): Likewise.
1575 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1576 * xselect.c (x_get_window_property, receive_incremental_selection)
1577 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1578 Likewise.
1579 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1580
6f704c76
DN
15812010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1582
ded80a25
DN
1583 * callproc.c (child_setup): Remove subprocesses conditional.
1584 Remove code dealing with SET_EMACS_PRIORITY, unused.
1585
49d937f4 1586 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1587 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1588
1589 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1590 (__do_global_dtors, __main): Use void in definition.
1591 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1592 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1593 the only users from ...
1594 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1595 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1596 (HAVE_VOLATILE): Remove, unused.
1597
6f704c76
DN
1598 Convert more function definitions to standard C.
1599 * xdisp.c (window_box_edges, handle_single_display_spec)
1600 (display_string): Convert definition to standard C.
1601 * scroll.c (do_direct_scrolling, scrolling_1):
1602 * dispnew.c (allocate_matrices_for_frame_redisplay)
1603 (mirrored_line_dance):
1604 * coding.c (code_convert_string):
1605 * charset.c (map_charset_chars):
1606 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1607 (Fregister_ccl_program, Fregister_code_conversion_map):
1608 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1609 (head_table): Make static and const.
1610
e6cfa7c3
AS
16112010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1612
1613 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1614 (PROFILING_LDFLAGS): Set from substitution.
1615 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1616 CFLAGS last.
1617
892dd565
KH
16182010-07-12 Kenichi Handa <handa@m17n.org>
1619
6f2cdcd1
KH
1620 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1621 (shortlisp): Likewise.
1622
892dd565
KH
1623 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1624
1625 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1626 of FONT_ENTITY_INDEX.
1627 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1628 property, get the property value dynamically.
1629 (Ffont_put): Accept font-entity and font-object too.
1630 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1631 return value changed.
1632 (syms_of_font): Adjusted for the above change.
1633
ae96d47a
AS
16342010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1635
c8fc18ee
AS
1636 * blockinput.h: Remove obsolete comment.
1637
89887d67
AS
1638 * lisp.h: Include <stddef.h>.
1639 (OFFSETOF): Don't define.
1640 (VECSIZE): Use offsetof instead of OFFSETOF.
1641 (PSEUDOVECSIZE): Likewise.
1642 * process.c (conv_sockaddr_to_lisp): Likewise.
1643 * alloc.c: Don't include <stddef.h>.
1644 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1645
ae96d47a
AS
1646 * process.c: Remove obsolete comment.
1647
635c0aa1
CY
16482010-07-11 Chong Yidong <cyd@stupidchicken.com>
1649
1650 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1651
a64df650
AS
16522010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1653
8966b757
AS
1654 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1655 index, rindex.
1656 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1657 * editfns.c (Fuser_full_name, Fformat): Likewise.
1658 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1659 * fileio.c (Ffile_symlink_p): Likewise.
1660 * filelock.c (current_lock_owner): Likewise.
1661 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1662 * fontset.c (fontset_pattern_regexp): Likewise.
1663 * lread.c (read1): Likewise.
1664 * sysdep.c (init_system_name): Likewise.
1665 * xfns.c (select_visual): Likewise.
1666 * s/hpux10-20.h (index, rindex): Don't define.
1667 * s/ms-w32.h (index): Likewise.
1668 * s/usg5-4.h: Likewise.
1669
cf237e27
AS
1670 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1671
a8fe7202
AS
1672 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1673 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1674 (egetenv): Likewise.
1675 * doprnt.c (doprnt): Likewise.
1676 * editfns.c (set_time_zone_rule, format2): Likewise.
1677 * emacs.c (decode_env_path): Likewise.
1678 * eval.c (signal_error, error): Likewise.
1679 * insdel.c (replace_range_2): Likewise.
1680 * keyboard.c (cmd_error_internal): Likewise.
1681 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1682 * print.c (write_string, write_string_1, print_error_message):
1683 Likewise.
1684 * vm-limit.c (warn_function, memory_warnings): Likewise.
1685 * xdisp.c (message1, message1_nolog, message_with_string)
1686 (vmessage, message, message_nolog): Likewise.
1687 * emacs.c: Remove duplicate declaration.
1688 * keyboard.h: Likewise.
1689 * lisp.h: Update prototypes.
1690
bb8e180f
AS
1691 * eval.c: Fix indentation problem.
1692
83380e65
AS
1693 * keyboard.c: Include "process.h"
1694
a64df650
AS
1695 * eval.c: Remove obsolete noinline declaration.
1696 * fns.c: Likewise.
1697
6a8033e1
KR
16982010-07-11 Ken Raeburn <raeburn@raeburn.org>
1699
1700 * doprnt.c (doprnt): Take a va_list argument instead of count and
1701 pointer.
1702 * eval.c (error): Change to a standard-C variadic function.
1703 * xdisp.c (vmessage): Renamed from message, made static, and
1704 changed to take a va_list argument.
1705 (message): New variadic wrapper.
1706 (message_nolog): Now a variadic function, calling vmessage.
1707 * lisp.h: Include stdarg.h for va_list.
1708 (doprnt, error, message, message_nolog): Decls updated.
1709
462aa963
EZ
17102010-07-11 Eli Zaretskii <eliz@gnu.org>
1711
1712 * process.c (syms_of_process) <delete-exited-processes>: Define
1713 even if !subprocesses.
1714 (delete_exited_processes): Ditto.
1715
1716 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1717 (delete_exited_processes): Don't define.
1718
48104462
CY
17192010-07-10 Chong Yidong <cyd@stupidchicken.com>
1720
1721 * frame.c (make_frame): Initialize menu_bar_lines and
1722 tool_bar_lines members.
1723 (make_initial_frame, make_terminal_frame): Initialize
1724 menu_bar_lines using value of menu-bar-mode.
1725
1726 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1727
f388c88a
EZ
17282010-07-10 Eli Zaretskii <eliz@gnu.org>
1729
1730 * process.c: Reshuffle #include's. Condition some of the global
1731 and static variables on `subprocesses'.
1732 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1733 Leave only one implementation.
1734 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1735 (kill_buffer_processes, Flist_system_processes)
1736 (Fprocess_attributes, init_process, syms_of_process): Unify the
1737 implementations for with subprocesses and without them.
1738
723f5a07
J
17392010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1740
1741 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1742 correct size for Motif.
1743 (free_frame_menubar): Call x_set_window_size to update frame size.
1744
1745 * xfns.c (x_window): Set borderWidth to 0 for pane and
1746 EmacsFrame. Frame size calculation is wrong otherwise.
1747
2536a4b7
MA
17482010-07-09 Michael Albinus <michael.albinus@gmx.de>
1749
1750 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1751 allows to suppress errors when polling in Emacs' main loop.
1752 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1753 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1754 (Fdbus_method_error_internal, Fdbus_send_signal)
1755 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1756 (Fdbus_register_method): Use it. (Bug#6579)
1757
5842a27b
DN
17582010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1759
1760 * alloc.c: Convert DEFUNs to standard C.
1761 * buffer.c:
1762 * bytecode.c:
1763 * callint.c:
1764 * callproc.c:
1765 * casefiddle.c:
1766 * casetab.c:
1767 * category.c:
1768 * character.c:
1769 * charset.c:
1770 * chartab.c:
1771 * cmds.c:
1772 * coding.c:
1773 * composite.c:
1774 * data.c:
1775 * dbusbind.c:
1776 * dired.c:
1777 * dispnew.c:
1778 * doc.c:
1779 * dosfns.c:
1780 * editfns.c:
1781 * emacs.c:
1782 * eval.c:
1783 * fileio.c:
1784 * filelock.c:
1785 * floatfns.c:
1786 * fns.c:
1787 * font.c:
1788 * fontset.c:
1789 * frame.c:
1790 * fringe.c:
1791 * image.c:
1792 * indent.c:
1793 * insdel.c:
1794 * keyboard.c:
1795 * keymap.c:
1796 * lread.c:
1797 * macros.c:
1798 * marker.c:
1799 * menu.c:
1800 * minibuf.c:
1801 * msdos.c:
1802 * nsfns.m:
1803 * nsmenu.m:
1804 * nsselect.m:
1805 * print.c:
1806 * process.c:
1807 * search.c:
1808 * sound.c:
1809 * syntax.c:
1810 * term.c:
1811 * terminal.c:
1812 * textprop.c:
1813 * undo.c:
1814 * w16select.c:
1815 * w32console.c:
1816 * w32fns.c:
1817 * w32font.c:
1818 * w32menu.c:
1819 * w32proc.c:
1820 * w32select.c:
1821 * window.c:
1822 * xdisp.c:
1823 * xfaces.c:
1824 * xfns.c:
1825 * xmenu.c:
1826 * xselect.c:
1827 * xsettings.c:
1828 * xsmfns.c: Likewise.
1829
d568829b
EZ
18302010-07-08 Eli Zaretskii <eliz@gnu.org>
1831
1832 * process.c (kbd_is_on_hold, hold_keyboard_input)
1833 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1834
52214050
J
18352010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1836
1837 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1838 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1839 unless USE_LUCID.
1840
313d9eb2
DN
18412010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1842
a628ad9d
JB
1843 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1844 declaration.
d8825aa3 1845
295d0d8f
DN
1846 Clean up include guards.
1847 * tparam.c: Remove include guards for config.h, string.h and code
1848 that assumes #ifndef emacs.
1849 * termcap.c:
1850 * unexalpha.c:
1851 * sysdep.c:
1852 * filemode.c:
1853 * filelock.c:
1854 * bidi.c: Likewise.
1855
49d9e6b0
DN
1856 Remove prefix-args.c
1857 * prefix-args.c: Remove file.
1858 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1859 * Makefile.in (temacs${EXEEXT}): Remove references to
1860 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1861 (mostlyclean): Remove reference to prefix-args.
1862 (prefix-args): Remove.
1863
313d9eb2
DN
1864 Simplify cstart_of_data, start_of_code and related code.
1865 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1866 (start_of_data): Merge into start_of_data function.
1867 * sysdep.c (start_of_text): Remove. Move simplified versions of
1868 it in the only users: unexaix.c and unexec.c.
1869 (read_input_waiting): Remove local declaration of quit_char.
1870 (start, etext): Remove declarations.
1871 (start_of_data): Merge with the version in mem-limits.h and move
1872 to vm-limits.c.
1873 * vm-limit.c (start_of_data): Merged and simplified version of the
1874 code formerly in mem-limits.h and sysdep.c.
1875 * unexec.c (start): New declaration, moved from sysdep.c.
1876 (start_of_text): Simplified version of the code formerly in sysdep.c.
1877 * unexaix.c (start_of_text): Simplified version of the code
1878 formerly in sysdep.c.
1879 * m/alpha.h (HAVE_TEXT_START): Remove.
1880 (TEXT_START): Move ...
1881 * unexalpha.c (TEXT_START): ... here.
1882 * s/hpux10-20.h (TEXT_START): Remove.
1883 * s/darwin.h (TEXT_START):
1884 * m/mips.h (TEXT_START):
1885 * m/macppc.h (HAVE_TEXT_START):
1886 * m/m68k.h (TEXT_START):
1887 * m/iris4d.h (TEXT_START):
1888 * m/intel386.h (TEXT_START):
1889 * m/ibmrs6000.h (TEXT_START):
1890 * m/ia64.h (HAVE_TEXT_START):
1891 * s/msdos.h (TEXT_START): Likewise.
1892
72af86bd
AS
18932010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1894
1895 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1896 (overrun_check_free, xstrdup, allocate_string)
1897 (allocate_string_data, compact_small_strings, Fmake_string)
1898 (make_unibyte_string, make_multibyte_string)
1899 (make_string_from_bytes, make_specified_string, make_float)
1900 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1901 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1902 memcpy, memmove, memset, memcmp.
1903 * atimer.c (start_atimer, set_alarm): Likewise.
1904 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1905 (mmap_realloc, init_buffer_once): Likewise.
1906 * callint.c (Fcall_interactively): Likewise.
1907 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1908 (getenv_internal_1): Likewise.
1909 * casefiddle.c (casify_object): Likewise.
1910 * ccl.c (ccl_driver): Likewise.
1911 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1912 * charset.c (load_charset_map_from_file)
1913 (load_charset_map_from_file, load_charset_map_from_vector)
1914 (Fdefine_charset_internal): Likewise.
1915 * cm.c (Wcm_clear): Likewise.
1916 * coding.c (decode_eol, decode_coding_object)
1917 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1918 * data.c (Faset): Likewise.
1919 * dired.c (directory_files_internal, file_name_completion_stat):
1920 Likewise.
1921 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1922 (clear_glyph_row, copy_row_except_pointers)
1923 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1924 (save_current_matrix, restore_current_matrix)
1925 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1926 (mirror_line_dance, scrolling_window): Likewise.
1927 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1928 Likewise.
1929 * doprnt.c (doprnt): Likewise.
1930 * editfns.c (Fuser_full_name, make_buffer_string_both)
1931 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1932 * emacs.c (sort_args): Likewise.
1933 * eval.c (Fapply, Ffuncall): Likewise.
1934 * fileio.c (Ffile_name_directory, make_temp_name)
1935 (Fexpand_file_name, search_embedded_absfilename)
1936 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1937 (auto_save_error): Likewise.
1938 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1939 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1940 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1941 (Fmake_hash_table): Likewise.
1942 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1943 * ftfont.c (ftfont_text_extents): Likewise.
1944 * getloadavg.c (getloadavg): Likewise.
1945 * image.c (define_image_type, make_image, make_image_cache)
1946 (x_create_x_image_and_pixmap, xbm_image_p)
1947 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1948 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1949 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1950 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1951 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1952 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1953 Likewise.
1954 * indent.c (scan_for_column, compute_motion): Likewise.
1955 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1956 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1957 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1958 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1959 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1960 (store_user_signal_events, menu_bar_items, tool_bar_items)
1961 (process_tool_bar_item, append_tool_bar_item)
1962 (read_char_minibuf_menu_prompt, read_key_sequence)
1963 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1964 Likewise.
1965 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1966 Likewise.
1967 * lisp.h (STRING_COPYIN): Likewise.
1968 * lread.c (Fload, read1, oblookup): Likewise.
1969 * msdos.c (Frecent_doskeys): Likewise.
1970 * nsfns.m (Fx_create_frame): Likewise.
1971 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1972 Likewise.
1973 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1974 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1975 Likewise.
1976 * nsmenu.m (ns_update_menubar): Likewise.
1977 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1978 * print.c (print_unwind, printchar, strout, print_string)
1979 (print_error_message): Likewise.
1980 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1981 (Fmake_network_process, Fnetwork_interface_list)
1982 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1983 (init_process): Likewise.
1984 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1985 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1986 Likewise.
1987 * scroll.c (do_scrolling, do_direct_scrolling)
1988 (scrolling_max_lines_saved): Likewise.
1989 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1990 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1991 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1992 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1993 (emacs_set_tty): Likewise.
1994 * term.c (encode_terminal_code, calculate_costs)
1995 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1996 Likewise.
1997 * termcap.c (tgetst1, gobble_line): Likewise.
1998 * termhooks.h (EVENT_INIT): Likewise.
1999 * tparam.c (tparam1): Likewise.
2000 * unexalpha.c (unexec): Likewise.
2001 * unexec.c (write_segment): Likewise.
2002 * unexmacosx.c (unexec_write_zero): Likewise.
2003 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2004 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2005 * w32font.c (w32font_list_family, w32font_text_extents)
2006 (w32font_list_internal, w32font_match_internal)
2007 (w32font_open_internal, compute_metrics, Fx_select_font):
2008 Likewise.
2009 * w32menu.c (set_frame_menubar, add_menu_item)
2010 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2011 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2012 * w32uniscribe.c (uniscribe_list_family): Likewise.
2013 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2014 * window.c (make_window, replace_window, set_window_buffer)
2015 (Fsplit_window): Likewise.
2016 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2017 (add_to_log, message3, x_consider_frame_title)
2018 (append_space_for_newline, extend_face_to_end_of_line)
2019 (decode_mode_spec_coding, init_glyph_string): Likewise.
2020 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2021 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2022 (face_attr_equal_p, make_realized_face, make_face_cache)
2023 (free_realized_faces, lookup_named_face, smaller_face)
2024 (face_with_height, lookup_derived_face)
2025 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2026 (Finternal_set_font_selection_order, realize_default_face)
2027 (compute_char_face, face_at_buffer_position)
2028 (face_for_overlay_string, face_at_string_position, merge_faces):
2029 Likewise.
2030 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2031 (Fx_window_property, x_create_tip_frame)
2032 (Fx_backspace_delete_keys_p): Likewise.
2033 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2034 (xfont_text_extents): Likewise.
2035 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2036 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2037 * xselect.c (x_queue_event, x_get_window_property)
2038 (receive_incremental_selection): Likewise.
2039 * xsmfns.c (x_session_check_input): Likewise.
2040 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2041 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2042 Likewise.
2043 * character.h (BCOPY_SHORT): Removed.
2044 * config.in: Regenerate.
2045 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2046 * emacs.c (main) [PROFILING]: Don't declare
2047 dump_opcode_frequencies.
2048 * lisp.h (safe_bcopy): Remove declaration.
2049 (memset) [!HAVE_MEMSET]: Declare.
2050 (memcpy) [!HAVE_MEMCPY]: Likewise.
2051 (memmove) [!HAVE_MEMMOVE]: Likewise.
2052 (memcmp) [!HAVE_MEMCMP]: Likewise.
2053 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2054 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2055 Don't define.
2056 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2057 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2058 (BCOPY_DOWNWARD_SAFE): Don't define.
2059 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2060 (memcpy) [!HAVE_MEMCPY]: Define.
2061 (memmove) [!HAVE_MEMMOVE]: Define.
2062 (memcmp) [!HAVE_MEMCMP]: Define.
2063
cb768704
J
20642010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2065
2066 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2067 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2068 New functions.
cb768704
J
2069 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2070 select on empty input mask.
2071 (init_process): Initialize kbd_is_on_hold to 0.
2072
2073 * process.h (hold_keyboard_input, unhold_keyboard_input)
2074 (kbd_on_hold_p): Declare.
2075
2076 * keyboard.c (input_available_signal): Declare.
2077 (kbd_buffer_nr_stored): New function.
2078 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2079 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2080 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2081 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2082 (tty_read_avail_input): If input is on hold, return.
2083 Don't read more that free slots in kbd_buffer (Bug#6571).
2084
3a8ce822
EZ
20852010-07-07 Eli Zaretskii <eliz@gnu.org>
2086
2087 * msdos.h:
2088 * msdos.c:
2089 * dosfns.c:
2090 * w16select.c: Convert function definitions to ANSI C.
2091
a628ad9d
JB
2092 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2093 Remove unused prototypes.
3a8ce822 2094
cf84bb53
JB
20952010-07-07 Juanma Barranquero <lekktu@gmail.com>
2096
2097 * coding.c, sysdep.c: Convert some more functions to standard C.
2098
1a4990fb
JB
20992010-07-07 Juanma Barranquero <lekktu@gmail.com>
2100
2101 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2102 (encode_coding_object): Use SPECPDL_INDEX.
2103 (syms_of_coding): Use DOS_NT.
2104
c0f2f16b
DN
21052010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2106
48fb6855
DN
2107 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2108
c0f2f16b
DN
2109 Make the function member of Lisp_Subr use standard C prototypes.
2110 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2111 (DECL_ALIGN): Add a cast for the function.
2112 * eval.c (Feval, Ffuncall): Use the proper type for each type
2113 function call.
2114
67aecef9
CY
21152010-07-06 Chong Yidong <cyd@stupidchicken.com>
2116
2117 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2118 fringe face id, so face-remapping-alist works (Bug#6091).
2119
b56ceb92
JB
21202010-07-06 Juanma Barranquero <lekktu@gmail.com>
2121
2122 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2123 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2124 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2125
7af07b96
AS
21262010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2127
2128 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2129 * lisp.h: Declare x_get_keysym_name.
2130 * keyboard.c (modify_event_symbol): Don't declare
2131 x_get_keysym_name here.
2132
69e24e34
DN
21332010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2134
2135 * ecrt0.c: Revert conversion to standard C.
2136
d3da34e0 21372010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2138
2139 * vm-limit.c (memory_warnings):
2140 * keyboard.c (modify_event_symbol):
2141 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2142 (round2, emacs_rint):
2143 * process.c (send_process, old_sigpipe): Convert function
2144 definitions and declarations to standard C.
2145
21462010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2147
2148 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2149 * xdisp.c: Convert function definitions to standard C.
2150
2151 * cm.c (cmputc): Arg C is now int, not char.
2152 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2153
00be444c
J
21542010-07-05 James Cloos <cloos@jhcloos.com>
2155
2156 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2157
2158 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2159 _NET_WM_ICON_NAME atoms.
2160
2161 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2162 and _NET_WM_ICON_NAME properties, too, matching what is
2163 done in the Gtk+ case.
2164
e4c8d29a
J
21652010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2166
ff919460
J
2167 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2168
e4c8d29a
J
2169 * xsmfns.c (SSDATA): New macro.
2170 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2171 passed to strlen/strcpy/strcat.
2172 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2173 7:th arg to XChangeProperty to (unsigned char *)
2174
2175 * xsettings.c (something_changedCB, parse_settings)
2176 (apply_xft_settings): Reformat prototype.
2177 (something_changedCB, init_gconf): Remove unused variable i.
2178 (read_settings): Remove unused variable long_len.
2179
2180 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2181 (xg_get_image_for_pixmap, create_dialog)
2182 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2183 (menuitem_highlight_callback, make_menu_item)
2184 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2185 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2186 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2187 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2188 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2189 (xg_tool_bar_item_expose_callback): Reformat prototype.
2190 (xg_update_menubar): GList *group => GSList *group.
2191 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2192 before use.
2193 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2194 to GTK_IMAGE (wimage).
2195
dd4c5104
DN
21962010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2197
898b4c5c
DN
2198 * atimer.c: Use "" instead of <> for local includes for
2199 consistency with the rest of the code.
2200
dd4c5104
DN
2201 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2202 * xrdb.c (get_system_name):
2203 * window.c (shrink_windows):
2204 * syntax.c (forw_comment):
2205 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2206 (ins_del_costs):
2207 * mem-limits.h (start_of_data):
2208 * lread.c (readevalloop):
2209 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2210 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2211 * frame.c (x_get_focus_frame):
2212 * floatfns.c (fmod_float):
2213 * fileio.c (choose_write_coding_system):
2214 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2215 (malloc_initialize_hook, sort_args, synchronize_locale):
2216 * doprnt.c (doprnt):
2217 * dired.c (compile_pattern):
2218 * data.c (fmod_float):
2219 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2220 (map_char_table_for_charset):
2221 * charset.c (define_charset_internal):
2222 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2223 to standard C.
2224
9a39b306 22252010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2226 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2227
2228 * lread.c (read1): Fix up last change to not mess up `c'.
2229
e6cb2cbb
JB
22302010-07-04 Juanma Barranquero <lekktu@gmail.com>
2231
2232 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2233
438105ed
JB
22342010-07-04 Juanma Barranquero <lekktu@gmail.com>
2235
2236 Fix prototypes.
2237
e5447b22 2238 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2239 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2240 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2241 arg, as required by internal_condition_case_1.
dcc7404b 2242 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2243 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2244 (analyse_first): Fix "const const".
e5447b22 2245 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2246 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2247 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2248
971de7fb
DN
22492010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2250
2251 * alloc.c: Convert function definitions to standard C.
2252 * atimer.c:
2253 * bidi.c:
2254 * bytecode.c:
2255 * callint.c:
2256 * callproc.c:
2257 * casefiddle.c:
2258 * casetab.c:
2259 * category.c:
2260 * ccl.c:
2261 * character.c:
2262 * charset.c:
2263 * chartab.c:
2264 * cmds.c:
2265 * coding.c:
2266 * composite.c:
2267 * data.c:
2268 * dbusbind.c:
2269 * dired.c:
2270 * dispnew.c:
2271 * doc.c:
2272 * doprnt.c:
2273 * ecrt0.c:
2274 * editfns.c:
2275 * fileio.c:
2276 * filelock.c:
2277 * filemode.c:
2278 * fns.c:
2279 * font.c:
2280 * fontset.c:
2281 * frame.c:
2282 * fringe.c:
2283 * ftfont.c:
2284 * ftxfont.c:
2285 * gtkutil.c:
2286 * indent.c:
2287 * insdel.c:
2288 * intervals.c:
2289 * keymap.c:
2290 * lread.c:
2291 * macros.c:
2292 * marker.c:
2293 * md5.c:
2294 * menu.c:
2295 * minibuf.c:
2296 * prefix-args.c:
2297 * print.c:
2298 * ralloc.c:
2299 * regex.c:
2300 * region-cache.c:
2301 * scroll.c:
2302 * search.c:
2303 * sound.c:
2304 * strftime.c:
2305 * syntax.c:
2306 * sysdep.c:
2307 * termcap.c:
2308 * terminal.c:
2309 * terminfo.c:
2310 * textprop.c:
2311 * tparam.c:
2312 * undo.c:
2313 * unexelf.c:
2314 * window.c:
2315 * xfaces.c:
2316 * xfns.c:
2317 * xfont.c:
2318 * xftfont.c:
2319 * xgselect.c:
2320 * xmenu.c:
2321 * xrdb.c:
2322 * xselect.c:
2323 * xsettings.c:
2324 * xsmfns.c:
2325 * xterm.c: Likewise.
2326
ae492bec
EZ
23272010-07-03 Eli Zaretskii <eliz@gnu.org>
2328
76ea4cc9
EZ
2329 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2330 frames other than the initial one. Fix reversal of colors when
2331 `reverse' is specified in the frame parameters. Call
2332 update_face_from_frame_parameter instead of
2333 internal-set-lisp-face-attribute. Initialize screen colors from
2334 initial_screen_colors[] when f->default_face_done_p is zero,
2335 instead of depending on being called with default-frame-alist as
2336 the alist argument.
2337
2338 * xfaces.c (update_face_from_frame_parameter): Move out of
2339 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2340 with HAVE_WINDOW_SYSTEM.
2341
1e6255ae
EZ
2342 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2343 to menu-bar-mode, if not set in the frame parameters or in
2344 default-frame-alist.
2345
ae492bec
EZ
2346 * w32console.c (sys_tputs): Adjust argument list to prototype in
2347 term.c.
2348
3a35a84c
JB
23492010-07-03 Juanma Barranquero <lekktu@gmail.com>
2350
2351 * lisp.h (memory_warnings): Fix prototype.
2352
2353 * cm.h (evalcost): Fix prototype.
2354
2355 * cm.c (evalcost): Fix arg type.
2356
c532d349
DN
23572010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2358
2359 * term.c (term_clear_mouse_face, Fidentity):
2360 * syssignal.h (signal_handler_t):
2361 * lisp.h (memory_warnings):
2362 * coding.h (preferred_coding_system):
2363 * cm.h (evalcost):
2364 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2365
c0b36d46
EZ
23662010-07-02 Eli Zaretskii <eliz@gnu.org>
2367
2368 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2369 from prototypes.
2370
2371 * msdos.h (load_pixmap): Don't define away.
2372
383e0970
J
23732010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2374
f57e2426
J
2375 * lisp.h:
2376 * atimer.h: Remove define for P_.
2377
2378 * alloc.c: Remove __P and P_ from .c and .m files.
2379 * atimer.c:
2380 * buffer.c:
2381 * callint.c:
2382 * category.c:
2383 * charset.c:
2384 * chartab.c:
2385 * cm.c:
2386 * coding.c:
2387 * composite.c:
2388 * data.c:
2389 * dired.c:
2390 * dispnew.c:
2391 * doc.c:
2392 * editfns.c:
2393 * emacs.c:
2394 * eval.c:
2395 * fileio.c:
2396 * filelock.c:
2397 * fns.c:
2398 * font.c:
2399 * fontset.c:
2400 * frame.c:
2401 * ftfont.c:
2402 * ftxfont.c:
2403 * gmalloc.c:
2404 * gtkutil.c:
2405 * image.c:
2406 * indent.c:
2407 * intervals.c:
2408 * keyboard.c:
2409 * keymap.c:
2410 * lread.c:
2411 * marker.c:
2412 * menu.c:
2413 * minibuf.c:
2414 * print.c:
2415 * process.c:
2416 * scroll.c:
2417 * search.c:
2418 * sound.c:
2419 * strftime.c:
2420 * syntax.c:
2421 * sysdep.c:
2422 * term.c:
2423 * terminal.c:
2424 * textprop.c:
2425 * unexalpha.c:
2426 * w32console.c:
2427 * w32fns.c:
2428 * w32font.c:
2429 * w32menu.c:
2430 * w32term.c:
2431 * w32uniscribe.c:
2432 * window.c:
2433 * xdisp.c:
2434 * xfaces.c:
2435 * xfns.c:
2436 * xfont.c:
2437 * xftfont.c:
2438 * xmenu.c:
2439 * xselect.c:
2440 * xterm.c: Likewise.
2441
383e0970 2442 Remove P_ and __P macros.
f57e2426
J
2443 * atimer.h: Remove P_ and __P macros.
2444 * buffer.h:
383e0970
J
2445 * category.h:
2446 * ccl.h:
2447 * character.h:
2448 * charset.h:
2449 * cm.h:
2450 * coding.h:
2451 * composite.h:
2452 * dispextern.h:
2453 * disptab.h:
9e892c8d 2454 * dosfns.h:
383e0970
J
2455 * font.h:
2456 * fontset.h:
2457 * frame.h:
2458 * gtkutil.h:
2459 * indent.h:
2460 * intervals.h:
2461 * keyboard.h:
2462 * keymap.h:
2463 * lisp.h:
2464 * macros.h:
2465 * md5.h:
2466 * menu.h:
2467 * msdos.h:
2468 * nsterm.h:
2469 * puresize.h:
2470 * region-cache.h:
2471 * syntax.h:
2472 * syssignal.h:
2473 * systime.h:
2474 * termhooks.h:
9e892c8d 2475 * w32font.h:
383e0970
J
2476 * w32term.h:
2477 * widget.h:
2478 * window.h:
2479 * xgselect.h:
2480 * xsettings.h:
2481 * xterm.h: Likewise.
2482
98601119
DN
24832010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2484
d9170db5
DN
2485 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2486
98601119
DN
2487 Cleanup old code.
2488 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2489 * syssignal.h: Remove code for Lynx, not supported anymore.
2490 * vm-limit.c: Remove unused code the depends on emacs not being
2491 defined and NO_LIM_DATA being defined.
2492 * mem-limits.h: Remove dead code.
2493
1f984e12
J
24942010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2495
c49d071a
J
2496 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2497
9d5405ec
J
2498 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2499 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2500
7a18115b
J
2501 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2502 parameters, they are already absolute.
2503
a628ad9d
JB
2504 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2505 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2506
a628ad9d 2507 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2508
a628ad9d
JB
2509 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2510 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2511
a628ad9d
JB
2512 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2513 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2514
c1ef4455
CY
25152010-06-30 Chong Yidong <cyd@stupidchicken.com>
2516
2517 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2518 check default-frame-alist.
2519
ce8f5a9a
AS
25202010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2521
2522 * process.c (create_process): Avoid using invalid file descriptors.
2523
2524 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2525
bf935339
J
25262010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2527
2528 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2529 Improve documentation. Return font regardless of use_system_font.
2530 (syms_of_xsettings): Improve documentation for font-use-system-font.
2531
7c33a057
CY
25322010-07-10 Chong Yidong <cyd@stupidchicken.com>
2533
2ec1b5ee
CY
2534 * xfaces.c (realize_face): Garbage the frame if a face is removed
2535 (Bug#6593).
2536
25372010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2538
2539 * keyboard.c: Remove duplicate <setjmp.h>.
2540 (read_key_sequence): Remove volatile qualifiers.
2541
25422010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2543
2544 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2545 (struct glyph_row): New members left_fringe_offset and
2546 right_fringe_offset.
2547
2548 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2549 specially.
2550 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2551 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2552
2553 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2554 Take account of bitmap offset.
2ec1b5ee
CY
2555 (draw_window_fringes): Take account of window vscroll.
2556 (update_window_fringes): Likewise. Extend top-aligned top indicator
2557 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2558 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2559 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2560
25612010-07-04 Juanma Barranquero <lekktu@gmail.com>
2562
2563 * w32fns.c (Qtooltip): Declare.
2564 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2565
25662010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2567
2568 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2569 grab on just Press (Bug#6499).
2570
25712010-07-02 Chong Yidong <cyd@stupidchicken.com>
2572
2573 * frame.c (Qtooltip): New var.
2574 (delete_frame): Use it. Fix faulty if statement. Don't update
2575 mode line for tooltip frames. Suggested by Martin Rudalics.
2576
2577 * xfns.c (x_create_tip_frame):
2578 * w32fns.c (x_create_tip_frame): Use it.
2579
25802010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2581
2582 * xftfont.c (xftfont_open): Check font width one by one also when
2583 spacing is dual.
2584
2585 * ftfont.c (ftfont_open): Ditto.
2586
6259c2ec
GM
25872010-06-30 Glenn Morris <rgm@gnu.org>
2588
a46007e9
GM
2589 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2590
6259c2ec
GM
2591 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2592
2593 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2594 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2595 * s/darwin.h (SYSTEM_MALLOC):
2596 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2597
5d1d3d04
J
25982010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2599
2600 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2601 (ns_get_screen): Don't assign integer to f.
2602 (Fx_display_color_cells): Declarations before statements.
2603
e547b051
J
26042010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2605
5fc8e5bc
J
2606 * xfns.c (x_default_font_parameter): Remove got_from_system
2607 (Bug#6526).
2608
e547b051
J
2609 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2610 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2611 defines based on what configure finds.
2612
2613 * xterm.c (XTflash): Use gtk_widget_get_window.
2614 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2615 gtk_adjustment_get_page_size.
2616 (handle_one_xevent): Use gtk_widget_get_mapped.
2617 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2618 messages.
2619
2620 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2621
2622 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2623 HAVE_GTK_FILE_SELECTION_NEW.
2624
2625 * gtkutil.c (xg_display_open, xg_display_close): Remove
2626 HAVE_GTK_MULTIDISPLAY, it is always defined.
2627 (xg_display_open): Return type is void.
2628 (gtk_widget_set_has_window)
2629 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2630 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2631 (gtk_adjustment_set_page_increment)
2632 (gtk_adjustment_get_step_increment): #define these if not found
2633 by configure.
2634 (remove_submenu): New define based on Gtk+ version.
2635 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2636 gtk_widget_get_window.
2637 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2638 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2639 (create_dialog): Use gtk_dialog_get_action_area and
2640 gtk_dialog_get_content_area.
2641 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2642 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2643 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2644 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2645 g_object_ref and g_object_unref.
2646 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2647 gtk_widget_get_sensitive.
2648 (xg_update_submenu): Use remove_submenu.
2649 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2650 properties instead to get old x and y position.
2651 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2652 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2653 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2654 (xg_get_tool_bar_widgets): New function.
2655 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2656 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2657 (toolbar_set_orientation): New #define based on if configure
2658 finds gtk_orientable_set_orientation.
2659 (xg_create_tool_bar): Call toolbar_set_orientation.
2660 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2661 instead of gtk_box_pack_start_defaults.
2662
b9229673
CY
26632010-06-28 Chong Yidong <cyd@stupidchicken.com>
2664
2665 * cmds.c (Fdelete_backward_char): Move into Lisp.
2666
bbc803b0
DN
26672010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2668
2669 * s/freebsd.h (BSD4_2): Remove redundant definition.
2670 bsd-common.h defines it already.
2671
6431f2e6
CY
26722010-06-27 Chong Yidong <cyd@stupidchicken.com>
2673
2674 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2675 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2676 tool-bar-mode, which are now set using these X resources at
2677 startup, to determine the defaults (Bug#2249).
2678
2679 * w32fns.c (Fx_create_frame):
2680 * nsfns.m (Fx_create_frame): Likewise.
2681
2682 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2683
8c079ebb
JB
26842010-06-24 Juanma Barranquero <lekktu@gmail.com>
2685
2686 * gtkutil.c (xg_update_scrollbar_pos):
2687 Avoid C99 mid-block variable declaration.
2688
e9b7ab96
JD
26892010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2690
bc869eca
JD
2691 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2692
2b7e356a 2693 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2694
2695 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2696 if height is less than scroll bar min size.
2697 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2698
e9b7ab96
JD
2699 * xfns.c (x_default_font_parameter): Try to open font from system
2700 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2701
a628ad9d 27022010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2703
2704 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2705
70c4cfbb
EZ
27062010-06-20 Eli Zaretskii <eliz@gnu.org>
2707
2708 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2709 most-positive-fixnum, be extra accurate when scrolling window
2710 start, to avoid missing the cursor line.
2711
ad5a12b5
EZ
27122010-06-19 Eli Zaretskii <eliz@gnu.org>
2713
2714 * xdisp.c (try_scrolling): Compute the limit for searching point
2715 in forward scroll from scroll_max, instead of an arbitrary limit
2716 of 10 screen lines. See
2717 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2718 and
2719 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2720 for details.
2721
2a64315a 27222010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2723
2724 * editfns.c (Fbyte_to_string): Pacify compiler.
2725
288cf4e9
SM
27262010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2727
2728 * lread.c (read1): Phase out old-style backquotes a bit more.
2729
6e6e5760
EZ
27302010-06-12 Eli Zaretskii <eliz@gnu.org>
2731
cbc4fd20
EZ
2732 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2733 bidimirror.h.
2734
2735 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2736
317fbf33
EZ
2737 * bidi.c (bidi_initialize): Remove explicit initialization of
2738 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2739 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2740 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2741
2742 * biditype.h: New file.
2743
cbc4fd20
EZ
2744 * bidimirror.h: New file.
2745
6e6e5760
EZ
2746 * window.c (syms_of_window): Doc fix (bug#6409).
2747
4176cba2
RF
27482010-06-12 Romain Francoise <romain@orebokech.com>
2749
2750 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2751 ediff-hook.
2752
cb4bfcb5
GM
27532010-06-10 Glenn Morris <rgm@gnu.org>
2754
64c60c2f
GM
2755 * editfns.c (Fbyte_to_string): Pacify compiler.
2756
cb4bfcb5
GM
2757 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2758
2ec1b5ee
CY
27592010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2760
2761 * alloc.c (Fmake_byte_code): Don't access undefined argument
2762 (Bug#6517).
2763
27642010-06-25 Chong Yidong <cyd@stupidchicken.com>
2765
2766 * xdisp.c (next_element_from_image): Ensure that after-strings are
2767 read the next time we hit handle_stop (Bug#1336).
2768
27692010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2770
2771 * lread.c (read1): Signal error if #s is not followed by paren.
2772
27732010-06-19 Chong Yidong <cyd@stupidchicken.com>
2774
2775 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2776
2777 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2778
27792010-06-15 Glenn Morris <rgm@gnu.org>
2780
2781 * editfns.c (Fbyte_to_string): Pacify compiler.
2782
e454a4a3
SM
27832010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2784
2785 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2786 Check `object's type before accessing its guts.
2787
c1b1acc2
DN
27882010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2789
2790 * s/usg5-4.h: Fix previous change.
2791 Suggested by Lawrence Mitchell <wence@gmx.li>
2792
657d4c0b
AS
27932010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2794
2795 * minibuf.c (Fall_completions): Add more checks.
2796
9b27fd9f
JB
27972010-06-08 Juanma Barranquero <lekktu@gmail.com>
2798
2799 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2800
a99ebb40
DN
28012010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2802
d7c5d87d
DN
2803 * lread.c (X_OK): Remove, unused.
2804
0263a941
DN
2805 * dispnew.c: Remove obsolete comment.
2806
a99ebb40
DN
2807 Remove INCLUDED_FCNTL.
2808 * xterm.c (INCLUDED_FCNTL):
2809 * callproc.c (INCLUDED_FCNTL):
2810 * alloc.c (INCLUDED_FCNTL):
2811 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2812 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2813
13b5221f
MR
28142010-06-07 Martin Rudalics <rudalics@gmx.at>
2815
2816 * window.c (Fselect_window): Move `record_buffer' up to the
2817 beginning of this function, so the buffer gets recorded
2818 even if the selected window does not change.
2819 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2820
5220357f
JB
28212010-06-07 Juanma Barranquero <lekktu@gmail.com>
2822
2823 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2824 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2825
3085237c
DN
28262010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2827
2828 Remove BSTRING related code, all platforms define it.
2829 * s/usg5-4.h (BSTRING): Remove definition.
2830 * s/template.h (BSTRING):
2831 * s/msdos.h (BSTRING):
2832 * s/ms-w32.h (BSTRING):
2833 * s/hpux10-20.h (BSTRING):
2834 * s/gnu-linux.h (BSTRING):
2835 * s/darwin.h (BSTRING):
2836 * s/cygwin.h (BSTRING):
2837 * s/bsd-common.h (BSTRING):
2838 * s/aix4-2.h (BSTRING): Likewise.
2839 * sysdep.c: Remove code depending on BSTRING not being defined.
2840
409f2919
JB
28412010-06-05 Juanma Barranquero <lekktu@gmail.com>
2842
2843 Remove obsolete macro BASE_LEADING_CODE_P.
2844 * character.h (BASE_LEADING_CODE_P): Remove.
2845 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2846 * buffer.c (Fset_buffer_multibyte):
2847 * indent.c (scan_for_column, compute_motion):
2848 * insdel.c (count_combining_before, count_combining_after):
2849 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2850
087fc47a
JB
28512010-06-04 Juanma Barranquero <lekktu@gmail.com>
2852
2853 Turn `directory-sep-char' into a noop.
2854
2855 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2856 (DIRECTORY_SEP): Define unconditionally.
2857
2858 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2859
2860 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2861 call dostounix_filename directly.
2862
2863 * fileio.c (CORRECT_DIR_SEPS): Remove.
2864 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2865 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2866 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2867 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2868
2869 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2870 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2871
0eb7675e
AS
28722010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2873
a628ad9d
JB
2874 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2875 (Bug#6346)
0eb7675e 2876
78edd3b7
JB
28772010-06-03 Juanma Barranquero <lekktu@gmail.com>
2878
2879 * ccl.c (Fccl_program_p): Fix typo in docstring.
2880
eb697db5
DN
28812010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2882
2883 Move UNEXEC definition to autoconf.
2884 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2885 * s/sol2-10.h (UNEXEC):
2886 * s/irix6-5.h (UNEXEC):
2887 * s/hpux10-20.h (UNEXEC):
2888 * s/gnu-linux.h (UNEXEC):
2889 * s/darwin.h (UNEXEC):
2890 * s/cygwin.h (UNEXEC):
2891 * s/bsd-common.h (UNEXEC):
2892 * s/aix4-2.h (UNEXEC):
2893 * m/alpha.h (UNEXEC): Likewise.
2894 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2895
aa3830c4
JB
28962010-06-03 Juanma Barranquero <lekktu@gmail.com>
2897
2898 Remove obsolete pre-unicode2 macros.
2899 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2900 * composite.c (composition_reseat_it):
2901 * data.c (Faset):
2902 * fns.c (Ffillarray):
2903 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2904 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2905
d234d13e
JL
29062010-06-03 Juri Linkov <juri@jurta.org>
2907
2908 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2909 (Fswitch_to_buffer): Remove unused variable `err'.
2910
0d4bcf4d
GM
29112010-06-03 Glenn Morris <rgm@gnu.org>
2912
e23dc1e2
GM
2913 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2914
05b09564
GM
2915 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2916 now that AH_BOTTOM does it.
2917
824e2978
GM
2918 * m/hp800.h (HAVE_ALLOCA):
2919 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2920
0d4bcf4d
GM
2921 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2922 Remove NOT_C_CODE tests, it is always true now.
2923
c55d2abf
DN
29242010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2925
08a494a3
DN
2926 Fix config.h includes.
2927 * xsettings.c:
2928 * xgselect.c:
2929 * nsterm.m:
2930 * nsselect.m:
2931 * nsimage.m:
2932 * nsfont.m:
2933 * nsfns.m:
2934 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2935 other files do.
2936
75934b1d
DN
2937 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2938
9f32a766
DN
2939 * s/sol2-6.h: Remove obsolete comments.
2940
c55d2abf
DN
2941 Remove unnecessary alloca.h includes.
2942 * keymap.c: Do not include alloca.h, config.h does that.
2943 * sysdep.c: Likewise. Do not define fwrite, not used.
2944
06ac62b4
SM
29452010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2946
2947 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2948 the HAVE_TERMIO where it belongs (bug#6149).
2949
1ab8293c
SM
29502010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2951
2952 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2953 of bug#6305).
2954
6dcfd253
EZ
29552010-05-30 Eli Zaretskii <eliz@gnu.org>
2956
2957 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2958 state is always cached (bug#6306).
2959
6d26bbb2
EZ
29602010-05-29 Eli Zaretskii <eliz@gnu.org>
2961
06fa4a23
EZ
2962 Fix cursor motion in bidi-reordered continued lines.
2963 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2964 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2965 over continuation lines in bidi-reordered buffers. Return
2966 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2967 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2968
f5783df3
MA
29692010-05-28 Michael Albinus <michael.albinus@gmx.de>
2970
2971 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2972
7d56b2dd
KH
29732010-05-28 Kenichi Handa <handa@m17n.org>
2974
2975 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2976 Don't sheck SPEC if it is nil.
2977 (font_list_entities): Call font_delete_unmatched if
b925d231 2978 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2979
e58d4ff7
GM
29802010-05-28 Glenn Morris <rgm@gnu.org>
2981
2982 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2983
f1a5d776
CY
29842010-05-27 Chong Yidong <cyd@stupidchicken.com>
2985
2986 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2987 whether to trash.
2988 (internal_delete_file, Frename_file): Callers changed.
2989 (delete_by_moving_to_trash): Doc fix.
2990 (Fdelete_directory_internal): Don't move to trash.
2991
2992 * callproc.c (delete_temp_file):
2993 * buffer.c (Fkill_buffer): Callers changed.
2994
2995 * lisp.h: Update prototype.
2996
f44a59e6
CY
29972010-05-27 Chong Yidong <cyd@stupidchicken.com>
2998
2999 * xdisp.c (redisplay_window): After redisplay, check if point is
3000 still valid before setting it (Bug#6177).
3001
81ac4f35
GM
30022010-05-27 Glenn Morris <rgm@gnu.org>
3003
3004 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3005 Convert comments to Makefile format.
3006
3007 * Makefile.in (bootstrap-clean): No more Makefile.c.
3008
ccd89fb3
GM
30092010-05-26 Glenn Morris <rgm@gnu.org>
3010
90278cb6
GM
3011 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3012 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3013
ccd89fb3
GM
3014 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3015 Remove.
3016 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3017
b7050583
KH
30182010-05-26 Kenichi Handa <handa@m17n.org>
3019
3020 * composite.c (composition_compute_stop_pos): Fix condition for
3021 backward scanning.
3022
e5458003
GM
30232010-05-25 Glenn Morris <rgm@gnu.org>
3024
c345fe90
GM
3025 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3026 Move before TEMACS_LDFLAGS.
3027 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3028 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3029
2e0689ab
GM
3030 * Makefile.in (NOT_C_CODE): No longer define.
3031 (config.h): No longer include.
3032
8009a5e8
GM
3033 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3034 variables it may reference.
3035
e5458003
GM
3036 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3037 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3038
10f72a37
KH
30392010-05-25 Kenichi Handa <handa@m17n.org>
3040
3041 * dispextern.h (struct composition_it): New members rule_idx and
3042 charpos.
3043
3044 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3045 that the character positions of IT point the last character of the
3046 current grapheme cluster.
3047 (next_element_from_composition): Don't change character positions
3048 of IT.
3049 (append_composite_glyph): Set glyph->charpos to
3050 it->cmp_it.charpos.
3051
3052 * composite.c (autocmp_chars): Change the first argument to RULE,
3053 and try composition with RULE only.
3054 (composition_compute_stop_pos): Record the index number of the
3055 composition rule in CMP_IT->rule_idx.
3056 (composition_reseat_it): Call autocmp_chars repeatedly until the
3057 correct rule of the composition is found.
3058 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3059 is at the last character of the current grapheme cluster when
3060 CMP_IT->reversed_p is nonzero.
3061
171eda53 30622010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3063
171eda53
SM
3064 * editfns.c (Fbyte_to_string): New function.
3065
66a9f7f4
SM
30662010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3067
3068 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3069 Suggested by Masatake YAMATO <yamato@redhat.com>.
3070
d8c315d1
EZ
30712010-05-23 Eli Zaretskii <eliz@gnu.org>
3072
171eda53 3073 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3074
f5b416d2 30752010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3076
3077 * s/netbsd.h: If terminfo is found, use it in preference to
3078 termcap. (Bug#6190) [Backport from trunk]
3079
0416466c
EZ
30802010-05-19 Eli Zaretskii <eliz@gnu.org>
3081
11117830 3082 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3083
3084 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3085 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3086 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3087 and maxpos members instead of start.pos and end.pos, respectively.
3088
3089 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3090 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3091 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3092 (try_window_reusing_current_matrix, try_window_id):
3093 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3094 (init_from_display_pos, init_iterator): Use EMACS_INT for
3095 character and byte positions.
66a9f7f4 3096 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3097 arguments for minimum and maximum buffer positions seen by
3098 display_line for this row. Don't use iterator to find the
3099 position following the maximum one; instead, increment the
11117830
EZ
3100 position found by display_line directly. Fix logic; eol_pos
3101 should be tested before the rest. Handle the case of characters
3102 delivered from display vector (bug#6036). Fix tests related to
3103 it->method. Handle the truncated_on_right_p rows.
3104 (RECORD_MAX_MIN_POS): New macro.
3105 (display_line): Use it to record the minimum and maximum buffer
3106 positions for glyphs in the row being assembled. Record the
3107 position of the newline that terminates the line. If word wrap is
3108 in effect, restore minimum and maximum positions seen up to the
3109 wrap point, when iterator returns to it.
3110 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3111 row and cursor not already at point. Restore original pre-bidi
3112 code for unidirectional buffers.
d36fe237
EZ
3113
3114 * dispnew.c (increment_row_positions, check_matrix_invariants):
3115 Increment and check row->start.pos and row->end.pos, in addition
3116 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3117
11117830
EZ
3118 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3119 Display truncated_on_left_p and truncated_on_right_p flags.
3120 Formatting fixes.
3121 (pmtxrows): Display the ordinal number of each row. Don't display
3122 rows beyond the last one.
3123
3124 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3125 it is not copied by bidi_copy_it.
3126
6e83d800
EZ
31272010-05-22 Eli Zaretskii <eliz@gnu.org>
3128
3129 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3130 (Bug#6237)
3131
110683ad
CY
31322010-05-22 Chong Yidong <cyd@stupidchicken.com>
3133
3134 * image.c (Fimage_flush): Rename from image-refresh.
3135
98fe5161
CY
31362010-05-21 Chong Yidong <cyd@stupidchicken.com>
3137
3138 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3139 just one window.
3140
3141 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3142 (clear_image_cache): If the number of cached images is unusually
3143 large, decrease the cache eviction delay (Bug#6230).
3144
e8752c66
GM
31452010-05-21 Glenn Morris <rgm@gnu.org>
3146
66dbf213
GM
3147 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3148 Move these rules to ns.mk.
3149 * ns.mk: New file.
3150
04384b2d
GM
3151 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3152
e8752c66
GM
3153 * Makefile.in (CANNOT_DUMP): New, set by configure.
3154 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3155
2e2bbddb
JL
31562010-05-20 Juri Linkov <juri@jurta.org>
3157
3158 * fileio.c (Fdelete_file): Change interative spec to use
3159 `read-file-name' like in `find-file-read-args' where the default
3160 value is `default-directory' instead of `buffer-file-name'.
3161 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3162
31c4aaf6
KR
31632010-05-20 Kevin Ryde <user42@zip.com.au>
3164
3165 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3166 (Voverriding_terminal_local_map, Vsystem_key_alist)
3167 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3168
9d5cf9b6
GM
31692010-05-20 Glenn Morris <rgm@gnu.org>
3170
3171 * Makefile.in (DEPDIR): New constant.
3172 (DEPFLAGS): Set with configure, not cpp.
3173 (MKDEPDIR): New, set by configure.
3174 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3175 (clean): Use $DEPDIR.
3176 (deps_frag): Include from configure.
3177 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3178 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3179
ead6f8f5
EZ
3180 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3181 reallocation of the cache. (Bug#6210)
3182
7f34aec3
GM
31832010-05-19 Glenn Morris <rgm@gnu.org>
3184
d494e8f2
GM
3185 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3186
c1d0dcfd
GM
3187 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3188 (GNULIB_VAR): Remove.
3189 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3190
3191 * m/ibms390x.h (LINKER):
3192 * m/macppc.h (LINKER) [GNU_LINUX]:
3193 * s/aix4-2.h (ORDINARY_LINK):
3194 * s/cygwin.h (LINKER):
3195 * s/darwin.h (ORDINARY_LINK):
3196 * s/gnu.h (ORDINARY_LINK):
3197 * s/netbsd.h (LINKER):
3198 * s/usg5-4.h (ORDINARY_LINK):
3199 Move to configure.
3200
7f34aec3
GM
3201 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3202
754790b6
CY
32032010-05-18 Chong Yidong <cyd@stupidchicken.com>
3204
3205 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3206 prevent stack overflow if number of arguments is too large
3207 (Bug#6214).
3208
161e44d1
JB
32092010-05-18 Juanma Barranquero <lekktu@gmail.com>
3210
3211 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3212
be4ff9da
GM
32132010-05-18 Glenn Morris <rgm@gnu.org>
3214
9539dc5d
GM
3215 * s/gnu-linux.h: Combine two conditionals.
3216
3217 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3218 $(POST_ALLOC_OBJ).
3219
40dc6bf4
GM
3220 * Makefile.in (RALLOC_OBJ): New, set by configure.
3221 (rallocobj): Replace with the previous variable.
3222 (otherobj): Use $RALLOC_OBJ.
3223
3224 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3225 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3226
be4ff9da
GM
3227 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3228 (gmallocobj, vmlimitobj): Replace with previous two variables.
3229 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3230
16455a85
GM
32312010-05-17 Glenn Morris <rgm@gnu.org>
3232
3233 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3234 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3235
5fdb7468
GM
32362010-05-16 Glenn Morris <rgm@gnu.org>
3237
7ca1f3f9
GM
3238 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3239
7541dad5
GM
3240 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3241
da53fab9
GM
3242 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3243 trailing "/".
3244
b02a6645
GM
3245 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3246 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3247
8877ca0f
GM
3248 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3249 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3250 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3251 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3252 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3253
5fdb7468
GM
3254 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3255 Remove ${STARTFLAGS}, nothing ever sets it.
3256
95adb4b1
DN
32572010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3258
3259 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3260
676b6304
GM
32612010-05-16 Glenn Morris <rgm@gnu.org>
3262
9beab9ce
GM
3263 * Makefile.in (LIBX_BASE): Always define.
3264
8a95f0e7
GM
3265 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3266
676b6304
GM
3267 * Makefile.in (LIBXT): Always define.
3268
6e546d18
GM
32692010-05-15 Glenn Morris <rgm@gnu.org>
3270
4235ca47 3271 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3272
6e546d18
GM
3273 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3274 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3275
8c5ff6dd
KR
32762010-05-15 Ken Raeburn <raeburn@raeburn.org>
3277
560bb7ae 3278 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3279 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3280
8b4eb796
KR
3281 * emacs.c (main): Initialize initial-environment and
3282 process-environment before generating from env, not after.
3283
8c5ff6dd
KR
3284 Handle --version reasonably in CANNOT_DUMP configuration.
3285 * emacs.c (emacs_version, emacs_copyright): New string variables.
3286 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3287 (syms_of_emacs): Defvar them, and initialize them from the C
3288 string variables.
3289 (main): If initialization hasn't been done, print initial version
3290 info from the C strings, instead of starting an interactive session.
3291
dbd3f723
EZ
32922010-05-15 Eli Zaretskii <eliz@gnu.org>
3293
d20e1419
EZ
3294 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3295 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3296 (bidi_paragraph_init): Remove redundant assertion that we are at
3297 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3298
3299 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3300 (syms_of_xdisp): Defsubr it.
3301
d36fe237
EZ
3302 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3303
dbd3f723
EZ
3304 * Makefile.in: Fix MSDOS-related comments.
3305
02be533b
GM
33062010-05-15 Glenn Morris <rgm@gnu.org>
3307
1a82cca9
GM
3308 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3309 (really-lwlib, really-oldXMenu): Always define.
3310 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3311
3df7b338
GM
3312 * Makefile.in: Simplify cpp conditional.
3313
2b5f541b
GM
3314 * Makefile.in (${ns_appdir}): Simplify using umask.
3315
02be533b
GM
3316 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3317
4e2db1fe
SM
33182010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3319
3320 * eval.c (specbind): Remove left-over duplicate test.
3321 Disallow let-binding frame-local vars. Add comment.
3322
4b292a22
EZ
33232010-05-14 Eli Zaretskii <eliz@gnu.org>
3324
2fe72643 3325 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3326 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3327 (bidi_init_it): Call it.
3328 (bidi_cache_iterator_state): Enlarge the cache if needed.
3329
4e2db1fe 3330 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3331 bidi_get_next_char_visually. All callers changed.
3332
82ebc97b
KH
33332010-05-14 Kenichi Handa <handa@m17n.org>
3334
3335 * dispextern.h (struct composition_it): New member reversed_p.
3336
3337 * composite.c (composition_compute_stop_pos): Search backward if
3338 ENDPOS < CHARPOS.
3339 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3340 Set CMP_IT->reversed_p.
b4b6e17e 3341 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3342
4e2db1fe
SM
3343 * xdisp.c (set_iterator_to_next):
3344 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3345 scanning backward. Call composition_compute_stop_pos if scan
3346 direction is changed.
3347 (next_element_from_buffer): Call composition_compute_stop_pos with
3348 negative ENDPOS if we are scanning backward.
3349 (next_element_from_composition): Pay attention to
3350 IT->cmp_it.reversed_p.
3351
0e5d7800
KH
33522010-05-14 Kenichi Handa <handa@m17n.org>
3353
560bb7ae 3354 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3355
cb027b32
GM
33562010-05-14 Glenn Morris <rgm@gnu.org>
3357
177b0288
GM
3358 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3359
fbc00890
GM
3360 * Makefile.in (mktime, X11, register): Move undefs to configure.
3361
f14d1dfd
GM
3362 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3363 (MSDOS_X_OBJ): New variable.
3364 (MSDOS_SUPPORT_REAL): New constant.
3365 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3366 (obj): Use MSDOS_X_OBJ.
3367 (lisp): Use MSDOS_SUPPORT as a variable.
3368
11842bd8
GM
3369 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3370 (GPM_MOUSE_SUPPORT): Now it's a constant.
3371 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3372 not cpp.
3373
489d31a4 3374 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3375 (ns_appresdir): Remove, unused.
e20f1f07 3376
489d31a4
GM
3377 * Makefile.in (SHELL): Move outside cpp section.
3378
cb027b32
GM
3379 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3380
5a903aa9
GM
33812010-05-13 Glenn Morris <rgm@gnu.org>
3382
3369c79f
GM
3383 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3384 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3385
d5e982a6
GM
3386 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3387 HAVE_WINDOW_SYSTEM must be too.
3388
6192e163
GM
3389 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3390 (lisp): Remove WINNT_SUPPORT.
3391
472c5d6b
GM
3392 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3393 Let configure set these variables (to empty) in this case as well.
3394
0116466b
GM
3395 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3396 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3397
5a903aa9
GM
3398 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3399 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3400 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3401 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3402 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3403 the values output by configure.
5a903aa9
GM
3404 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3405
1a0d7c06
GM
34062010-05-12 Glenn Morris <rgm@gnu.org>
3407
b5457f14
GM
3408 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3409 (LINKER_WAS_SPECIFIED): Remove.
3410
1a0d7c06
GM
3411 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3412 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3413 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3414 * s/cygwin.h (LIB_GCC):
3415 * s/freebsd.h (LIB_GCC):
3416 * s/gnu-linux.h (LIB_GCC):
3417 * s/msdos.h (LIB_GCC):
3418 * s/netbsd.h (LIB_GCC):
3419 Move to configure.
3420
3ffd4615 34212010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3422
3423 * ftfont.c: Fix incorrect parentheses of #if condition for
3424 definining M17N_FLT_USE_NEW_FEATURE.
3425
acddf8ae
GM
34262010-05-11 Glenn Morris <rgm@gnu.org>
3427
3428 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3429 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3430
ae5e04fa
EZ
34312010-05-10 Eli Zaretskii <eliz@gnu.org>
3432
3433 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3434 unibyte buffers. See
3435 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3436
7490175b
GM
34372010-05-10 Glenn Morris <rgm@gnu.org>
3438
97efb629
GM
3439 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3440 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3441 (LIBES): Use LIBS_SYSTEM as a variable.
3442 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3443 * s/aix4-2.h (LIBS_SYSTEM):
3444 * s/freebsd.h (LIBS_SYSTEM):
3445 * s/hpux10-20.h (LIBS_SYSTEM):
3446 * s/sol2-6.h (LIBS_SYSTEM):
3447 * s/unixware.h (LIBS_SYSTEM):
3448 Move to configure.
3449
7490175b
GM
3450 * s/aix4-2.h (MAIL_USE_LOCKF):
3451 * s/bsd-common.h (MAIL_USE_FLOCK):
3452 * s/darwin.h (MAIL_USE_FLOCK):
3453 * s/gnu-linux.h (MAIL_USE_FLOCK):
3454 * s/irix6-5.h (MAIL_USE_FLOCK):
3455 * s/template.h (MAIL_USE_FLOCK):
3456 Move to configure.
3457
0235128c 34582010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3459
3460 * Version 23.2 released.
3461
0235128c 34622010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3463
3464 * composite.c (autocmp_chars): Save point as marker before calling
3465 auto-composition-function (Bug#5984).
3466
3467 * lisp.h (restore_point_unwind): Add prototype.
3468
3469 * fileio.c (restore_point_unwind): Remove static attribute.
3470
0235128c 34712010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3472
3473 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3474 new feature of libotf and m17n-flt.
0235128c
SM
3475 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3476 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3477 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3478 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3479 that OUT is NULL. Use OTF_drive_gsub_with_log and
3480 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3481 OTF_drive_gpos.
3482 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3483 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3484 Setup mflt_enable_new_feature and mflt_try_otf.
3485
4721152c
J
34862010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3487
3488 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3489
3490 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3491 box and toolbar (Bug #6139).
3492 (xg_create_tool_bar): Remove comment (Bug #6139).
3493 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3494 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3495
ee0a16cf
JB
34962010-05-08 Juanma Barranquero <lekktu@gmail.com>
3497
3498 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3499 Update dependencies.
3500
96d79611
EZ
35012010-05-08 Eli Zaretskii <eliz@gnu.org>
3502
3503 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3504 R2L lines.
3505
40c17879
GM
35062010-05-08 Glenn Morris <rgm@gnu.org>
3507
7b42b29f
GM
3508 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3509
40c17879
GM
3510 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3511 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3512 (termcapobj): Replace with TERMCAP_OBJ.
3513 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3514 (LIBES): Use LIBS_TERMCAP as a variable.
3515
3516 * s/freebsd.h (osreldate.h): No longer include, since this file
3517 does not use __FreeBSD_version any more.
3518
3519 * s/aix4-2.h (TERMINFO):
3520 * s/cygwin.h (TERMINFO):
3521 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3522 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3523 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3524 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3525 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3526 * s/irix6-5.h (TERMINFO):
3527 * s/netbsd.h (LIBS_TERMCAP):
3528 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3529 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3530 * s/usg5-4.h (TERMINFO):
3531 Move to configure.
3532
94b612ad
SM
35332010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3534
3535 * eval.c (unbind_to): Don't unbind a local binding into the global
3536 binding when the local binding disappeared. Inversely, don't unbind
3537 a global binding into a newly created local binding.
3538 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3539 can specify the frame to use, when applicable. Adjust callers.
3540
15e12598 35412010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3542 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3543
3544 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3545
f724825e
EZ
35462010-05-07 Eli Zaretskii <eliz@gnu.org>
3547
5cba3209
EZ
3548 * w32fns.c: Include w32.h.
3549 (Fw32_shell_execute): Decode the error message before passing it
3550 to `error'. (Bug#6126)
3551
d16bdfc3
EZ
3552 * msdos.c (dos_set_window_size):
3553 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3554 instead of `XSYMBOL (foo)->value'.
3555
59d93e87
EZ
35562010-05-07 Eli Zaretskii <eliz@gnu.org>
3557
9fdec8bc
EZ
3558 Fix the MS-DOS build, broken by autoconfiscation.
3559
3560 * Makefile.in: Don't use Make-style comments past the "start of
3561 cpp stuff" line.
3562 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3563
3564 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3565 edited directly by msdos/sed1v2.inp).
f724825e 3566
2f86b22b
GM
35672010-05-07 Glenn Morris <rgm@gnu.org>
3568
3569 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3570 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3571 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3572 move out of cpp section.
3573 * s/freebsd.h (LD_SWITCH_SYSTEM):
3574 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3575 * s/netbsd.h (LD_SWITCH_SYSTEM):
3576 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3577
49ebbd65
DN
35782010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3579
3580 Define LIB_STANDARD and START_FILES using autoconf.
3581 * s/usg5-4.h (LIB_STANDARD):
3582 * s/netbsd.h (START_FILES):
3583 * s/irix6-5.h (LIB_STANDARD):
3584 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3585 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3586 * s/freebsd.h (START_FILES):
3587 * s/darwin.h (START_FILES):
3588 * s/cygwin.h (START_FILES):
3589 * s/aix4-2.h (LIB_STANDARD):
3590 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3591 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3592 autoconf, not cpp.
3593
d43c06d6
DN
35942010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3595
28823648
DN
3596 Remove NEED_BSDTTY and NEED_UNISTD_H.
3597 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3598 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3599 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3600 <sys/ptyio.h> and <unistd.h>.
3601
aca00430
DN
3602 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3603
d43c06d6
DN
3604 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3605 * s/gnu.h (START_FILES): Remove empty definition.
3606
3e56b11d
JD
36072010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3608
3609 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3610
e3cf0cde
GM
36112010-05-06 Glenn Morris <rgm@gnu.org>
3612
3613 * Makefile.in (CPP, LN_S): Remove unused variables.
3614
774b9a60
SM
36152010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3616
3617 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3618
4ab92842
LM
36192010-05-05 Lawrence Mitchell <wence@gmx.li>
3620
3621 * m/sparc.h: Fix typo in earlier change.
3622
178f2507
SM
36232010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3624
3625 Misc tweaks.
3626 * eval.c (Fdefvaralias): Remove unintended nested if.
3627 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3628
80f00217 36292010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3630
3631 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3632
ef03a4e6
DN
36332010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3634
58eb6cf0
DN
3635 Remove BSD_PGRPS.
3636 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3637 * s/gnu-linux.h (BSD_PGRPS): Remove.
3638 * term.c (dissociate_if_controlling_tty):
3639 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3640 (init_sys_modes, reset_sys_modes):
3641 * emacs.c (main):
3642 * callproc.c (Fcall_process, child_setup): Remove code depending
3643 on BSD_PGRPS.
3644
ef03a4e6
DN
3645 Remove POSIX_SIGNALS.
3646 * s/usg5-4.h (POSIX_SIGNALS):
3647 * s/netbsd.h (POSIX_SIGNALS):
3648 * s/msdos.h (POSIX_SIGNALS):
3649 * s/ms-w32.h (POSIX_SIGNALS):
3650 * s/hpux11.h (POSIX_SIGNALS):
3651 * s/gnu.h (POSIX_SIGNALS):
3652 * s/gnu-linux.h (POSIX_SIGNALS):
3653 * s/freebsd.h (POSIX_SIGNALS):
3654 * s/darwin.h (POSIX_SIGNALS):
3655 * s/cygwin.h (POSIX_SIGNALS):
3656 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3657 * s/unixware.h:
3658 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3659 * process.c (create_process):
3660 * syssignal.h:
3661 * sysdep.c (wait_for_termination, init_signals):
3662 * process.c (create_process):
3663 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3664 remove all code that assumes the contrary.
3665
49628785
GM
36662010-05-04 Glenn Morris <rgm@gnu.org>
3667
27a2cdfc
GM
3668 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3669 variable.
3670 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3671 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3672 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3673 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3674 LD_SWITCH_SYSTEM_tmp.
3675 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3676 New variables, set by configure.
3677
eb21eab5
GM
3678 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3679 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3680 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3681 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3682 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3683
49628785
GM
3684 * s/aix4-2.h (C_SWITCH_SYSTEM):
3685 * m/alpha.h (C_SWITCH_MACHINE):
3686 Move to configure.in.
3687 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3688 New variables, set by configure.
3689 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3690 $c_switch_machine and $c_switch_system.
3691
7dff330b
DN
36922010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3693
3694 * s/hpux10-20.h (LIB_STANDARD): New definition.
3695 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3696 on it, not used anymore.
3697
53967e09
CY
36982010-05-03 Chong Yidong <cyd@stupidchicken.com>
3699
3700 * eval.c (internal_condition_case_n): Rename from
3701 internal_condition_case_2.
3702 (internal_condition_case_2): New function.
3703
3704 * xdisp.c (safe_call): Use internal_condition_case_n.
3705
3706 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3707 (internal_delete_file, Frename_file): Callers changed.
3708
3709 * buffer.c (Fkill_buffer):
3710 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3711
3712 * lisp.h: Update prototypes.
3713
3dee6fdb
GM
37142010-05-03 Glenn Morris <rgm@gnu.org>
3715
3716 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3717 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3718 (LIBXT): Set with configure, not cpp.
3719 (LIBX): Remove.
3720 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3721
a101e0fb
DN
37222010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3723
3724 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3725 The FreeBSD is not needed, the default works, Solaris version is
3726 not needed, and the remaining case is not supported by configure.
3727
f63d0028
JD
37282010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3729
3730 * xsmfns.c (CHDIR_OPT): New define.
3731 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3732 restarting emacs.
3733
3734 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3735 shut_down_emacs.
3736
3737 * emacs.c (USAGE1): Mention --chdir.
3738 (main): Handle --chdir.
3739 (standard_args): Add --chdir.
3740 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3741 #5552).
3742
e4814a9f
DN
37432010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3744
cd03c74a
DN
3745 Remove LD_SWITCH_MACHINE.
3746 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3747 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3748
c3a398a1
DN
3749 Clean up IRIX code.
3750 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3751 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3752
87e7285c
DN
3753 Clean up AIX code.
3754 * m/ibmrs6000.inp: Remove file, unused.
3755 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3756 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3757 definition ...
3758 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3759
80f00217
JB
3760 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3761 unused.
e4814a9f 3762
59ca28de
EZ
37632010-05-01 Eli Zaretskii <eliz@gnu.org>
3764
197daef4
EZ
3765 Emulate POSIX_SIGNALS on MS-Windows.
3766
3767 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3768 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3769
3770 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3771 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3772 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3773
80f00217
JB
3774 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3775 New stubs.
197daef4 3776
af7c7572
EZ
3777 Miscellaneous fixes of bidi display.
3778
59ca28de
EZ
3779 * xdisp.c (find_row_end): New function, refactored from display_line.
3780 (display_line): Use it.
017ea819
EZ
3781 (extend_face_to_end_of_line): In almost-filled rows, extend only
3782 if the row is R2L and not continued.
166e930d 3783 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3784 Preserve overlay and string info in row->end.
166e930d
EZ
3785 (insert_left_trunc_glyphs): Support addition of left truncation
3786 glyphs to R2L rows.
b47e0dcf 3787 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3788 glyph between adjacent windows. Fix a crash when a display string
3789 is continued to the next line. Don't return zero if cursor was
3790 found by `cursor' property of a display string.
b47e0dcf
EZ
3791 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3792 test for that explicitly.
59ca28de 3793
7acac9f4
GM
37942010-05-01 Glenn Morris <rgm@gnu.org>
3795
3796 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3797 for clarity.
3798 (OTHER_OBJ): Remove.
3799 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3800 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3801
45841e65
KK
38022010-05-01 Karel Klíč <kklic@redhat.com>
3803
3804 * fileio.c (Ffile_selinux_context): Context functions may return null.
3805
afc61943
DN
38062010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3807
80f00217 3808 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3809
5a1bb006
GM
38102010-04-30 Glenn Morris <rgm@gnu.org>
3811
3812 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3813 (OTHER_OBJ): Define as a separate variable, for clarity.
3814
210af043
J
38152010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3816
3817 * xsettings.c: include limits.h and update file comment.
3818
0a7df391
GM
38192010-04-30 Glenn Morris <rgm@gnu.org>
3820
d5096f16
GM
3821 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3822 Set with configure, not cpp.
3823 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3824
7eb1ac33
GM
3825 * Makefile.in (mallocobj): Remove.
3826 (otherobj): Simplify using @OTHER_OBJ@.
3827
517d086b
GM
3828 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3829 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3830 Don't bother making nsgui.h dependency platform-specific.
3831
0a7df391
GM
3832 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3833
d6d23852
SM
38342010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3835
d2630aef
SM
3836 * process.c (read_process_output, exec_sentinel): Don't burp if the
3837 sentinel/filter kills the current buffer (bug#6060).
3838
f9dddf52 3839 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3840 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3841 Remove unused var `args'.
3842 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3843 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3844 * doc.c (store_function_docstring): Use XSETCAR.
3845
f1e3642a
GM
38462010-04-28 Glenn Morris <rgm@gnu.org>
3847
faf535f8
GM
3848 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3849 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3850
c40f9449
GM
3851 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3852
658f86ca
GM
3853 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3854 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3855
bc0b5f61
GM
3856 * Makefile.in (FONT_OBJ): New, set by configure.
3857 (FONT_DRIVERS): Use $FONT_OBJ.
3858
294c50a0
GM
3859 * Makefile.in (LIBXMU): Set with configure, not cpp.
3860 * s/aix4-2.h (LIBXMU):
3861 * s/hpux10-20.h (LIBXMU):
3862 Remove definition, now set in configure.
3863
e6ec4e99
GM
3864 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3865
f1e3642a
GM
3866 * m/amdx86-64.h [i386]: Move this test to configure.in.
3867
c6ea2936
GM
38682010-04-27 Glenn Morris <rgm@gnu.org>
3869
8fdac2c3
GM
3870 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3871 * s/unixware.h (NEED_LIBW): Remove definition.
3872
986fb647
GM
3873 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3874 (TOOLKIT_LIBW): New, set by configure.
3875 (@X_TOOLKIT_TYPE@): No longer define it.
3876
c6ea2936
GM
3877 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3878 (MOTIF_LIBW): Set with configure, not cpp.
3879 * s/aix4-2.h (LIB_MOTIF):
3880 * s/gnu-linux.h (LIB_MOTIF):
3881 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3882
aaa36002
DN
38832010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3884
3885 Reduce CPP usage.
3886 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3887 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3888 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3889 definitions and undefs. Inline definitions in the only user.
3890 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3891
b678dd8b
GM
38922010-04-27 Glenn Morris <rgm@gnu.org>
3893
76cda504
GM
3894 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3895 since the defaults (set by the system file) are fine in most cases.
3896 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3897 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3898 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3899 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3900 Remove definitions, since they are set correctly in s/gnu-linux.h.
3901 * s/freebsd.h (START_FILES, LIB_STANDARD):
3902 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3903 * s/hpux10-20.h (START_FILES):
3904 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3905 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3906
b678dd8b
GM
3907 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3908 (MOTIF_LIBW): Use $LIBXP.
3909 (otherobj): Use $WIDGET_OBJ.
3910
9452ded1
DN
39112010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3912
7e10844c
DN
3913 * Makefile.in (LIBS_MACHINE): Remove, unused.
3914
9452ded1
DN
3915 Use autoconf instead of cpp for LIB_MATH.
3916 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3917 * s/cygwin.h (LIB_MATH): Likewise.
3918 * Makefile.in (LIB_MATH): Do not define with cpp.
3919 (LIBES): Use autoconf for LIB_MATH.
3920
fcebfc6a
KH
39212010-04-26 Kenichi Handa <handa@m17n.org>
3922
3923 * composite.c (Ffind_composition_internal): Fix the return value
3924 for an automatic composition.
3925
39e2ad1b
DN
39262010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3927
3928 Remove all NO_ARG_ARRAY uses.
3929 * fns.c (concat2, concat3, nconc2):
3930 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3931 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3932 * m/xtensa.h (NO_ARG_ARRAY):
3933 * m/template.h (NO_ARG_ARRAY):
3934 * m/sparc.h (NO_ARG_ARRAY):
3935 * m/sh3.h (NO_ARG_ARRAY):
3936 * m/mips.h (NO_ARG_ARRAY):
3937 * m/macppc.h (NO_ARG_ARRAY):
3938 * m/iris4d.h (NO_ARG_ARRAY):
3939 * m/intel386.h (NO_ARG_ARRAY):
3940 * m/ibms390x.h (NO_ARG_ARRAY):
3941 * m/ibms390.h (NO_ARG_ARRAY):
3942 * m/ibmrs6000.h (NO_ARG_ARRAY):
3943 * m/ia64.h (NO_ARG_ARRAY):
3944 * m/hp800.h (NO_ARG_ARRAY):
3945 * m/arm.h (NO_ARG_ARRAY):
3946 * m/amdx86-64.h (NO_ARG_ARRAY):
3947 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3948
adf4f59c
EZ
39492010-04-25 Eli Zaretskii <eliz@gnu.org>
3950
6bdf5d65
EZ
3951 * xdisp.c (display_line): Don't assume 2nd call to
3952 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3953 (iterate_out_of_display_property): New function, body from pop_it.
3954 (pop_it): Use it.
adf4f59c 3955
dfbbda83
GM
39562010-04-24 Glenn Morris <rgm@gnu.org>
3957
3958 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3959 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3960 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3961 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3962
2d4018aa
EZ
39632010-04-24 Eli Zaretskii <eliz@gnu.org>
3964
a49884a6
EZ
3965 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3966 use `get_next_display_element' and `set_iterator_to_next' to
3967 advance to the next character, when looking for the character that
3968 begins the next row.
3969
76db6fcc 3970 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3971 definition of "struct Lisp_Symbol".
3972
70eab5c1
GM
39732010-04-24 Glenn Morris <rgm@gnu.org>
3974
3975 * Makefile.in (CRT_DIR): New variable, set by configure.
3976 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3977 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3978
1ad4cc3d
DN
39792010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3980
e769f484
DN
3981 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3982
4196ff33
DN
3983 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3984
879b0ee4
DN
3985 Remove redundant flags.
3986 * s/freebsd.h (C_SWITCH_SYSTEM):
3987 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3988 * s/netbsd.h (C_SWITCH_SYSTEM):
3989 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3990 of these.
3991
03cbbcb8
DN
3992 Simplify m/intel386.h.
3993 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3994 user: ecrt0.c.
3995 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3996 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3997 the only user: s/unixware.h.
3998 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3999 from m/intel386.h.
4000 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4001 moved here from m/intel386.h.
4002
1ad4cc3d
DN
4003 * m/mips.h: Remove #if 0 code.
4004
8785b888
EZ
40052010-04-23 Eli Zaretskii <eliz@gnu.org>
4006
728588cc
EZ
4007 Fix display of composed characters from L2R scripts in bidi buffers.
4008 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4009 After advancing IT past the composition, resync the bidi iterator
4010 with IT's position. (Bug#5977)
4011
a63f80b4
DN
40122010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4013
4014 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4015 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4016
ff5dec5c
SM
40172010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4018
4019 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4020
8785b888
EZ
40212010-04-23 Eli Zaretskii <eliz@gnu.org>
4022
58ccf243 4023 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4024 * xdisp.c (pop_it): When the stack is popped after displaying
4025 from a string, bidi-iterate to exit from the text portion covered
4026 by the `display' property or overlay. (Bug#5988, bug#5920)
4027
feeb1604
DN
40282010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4029
8e324eb6
DN
4030 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4031 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4032
809fcaba
DN
4033 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4034 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4035
ed710380
DN
4036 Simplify STARTFILES definition.
4037 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4038 relying on Makefile.in to define it.
4039 * s/cygwin.h (START_FILES): Likewise.
4040 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4041
feeb1604
DN
4042 Clean up Solaris code.
4043 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4044 (LIB_MOTIF): Remove, configure takes care of this.
4045 (NOT_USING_MOTIF): Remove, unused.
4046 * xrdb.c: Remove #if 0-ed #include.
4047 (SYSV): Remove conditional for old SysV.
4048 * sysdep.c (closedir): Remove conditional code for Solaris,
4049 Solaris has closedir.
4050
a0d0b563
JD
40512010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4052
4053 * xsettings.c (read_and_apply_settings): Check if current_font is
4054 NULL before strcmp (Bug#6001).
4055
56bae7c7
DN
40562010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4057
4058 Clean up HP-UX files.
4059 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4060 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4061 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4062 * s/hpux10-20.h: ... to the only user, here.
4063
372b7a95
EZ
40642010-04-21 Eli Zaretskii <eliz@gnu.org>
4065
4066 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4067 use buffer-local values of paragraph-start and paragraph-separate.
4068 <paragraph_start_re, paragraph_separate_re>: Rename from
4069 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4070 (Bug#5992)
4071
f904c0f9
JD
40722010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4073
4074 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4075 current_tool_bar_style are new.
4076 (store_config_changed_event): Rename from store_font_changed_event.
4077 (XSETTINGS_TOOL_BAR_STYLE): New define.
4078 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4079 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4080 HAVE_XFT.
4081 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4082 store_config_changed_event.
f904c0f9
JD
4083 (parse_settings): Rename from parse_xft_settings. Read
4084 non-xft xsettings outside #ifdef HAVE_XFT.
4085 (read_settings): Renamed from read_xft_settings.
4086 (apply_xft_settings): Take current settings as parameter. Do not
4087 call read_(xft)_settings.
4088 (read_and_apply_settings): New function.
4089 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4090 read_and_apply_settings if there are settings to be read.
4091 (init_xsettings): Renamed from init_xfd_settings.
4092 Call read_and_apply_settings unconditionally.
4093 (xsettings_initialize): Call init_xsettings.
4094 (Ftool_bar_get_system_style): New function.
4095 (syms_of_xsettings): Define Qmonospace_font_name and
4096 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4097 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4098 dynamic-setting.
31a01b90 4099 Move misplaced HAVE_GCONF
f904c0f9
JD
4100
4101 * xsettings.h (Ftool_bar_get_system_style): Declare.
4102
4103 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4104 Qtext, Qboth, Qboth_horiz are new.
4105 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4106 Vtool_bar_style, tool_bar_max_label_size.
4107
4108 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4109
4110 * keyboard.c: QClabel is new.
4111 (parse_tool_bar_item): Take out QClabel from tool bar items.
4112 Try to construct a label if ther is no QClabel.
4113 (syms_of_keyboard): Intern :label as QClabel.
4114
4115 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4116 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4117 New.
4118
4119 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4120 dynamic-setting.el.
4121
4122 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4123 (xg_make_tool_item, xg_show_toolbar_item): New function.
4124 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4125 Call xg_make_tool_item to make a tool bar item.
4126 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4127
4128 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4129 into account for toolbars.
4130
c632dfda
JD
41312010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4132
4133 * data.c (make_blv): Declarations before code (Bug#5993).
4134
10efe302
GM
41352010-04-21 Glenn Morris <rgm@gnu.org>
4136
4137 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4138 Define using autoconf, not cpp.
4139 (LIBXSM): New variable, set by autoconf.
4140 (LIBXT): Use $LIBXSM.
4141
4285ac5a
DN
41422010-04-21 Dan Nicolaescu <local_user@dannlt>
4143
3ec759e7
DN
4144 Remove NOMULTIPLEJOBS, unused.
4145 * s/template.h (NOMULTIPLEJOBS):
4146 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4147
4285ac5a
DN
4148 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4149 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4150 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4151 detects -znocombreloc and passes it to the linker
4152 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4153
2807228d
GM
41542010-04-21 Glenn Morris <rgm@gnu.org>
4155
4156 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4157
574c05e2
KK
41582010-04-21 Karel Klíč <kklic@redhat.com>
4159
4160 * Makefile.in (LIBSELINUX_LIBS): New.
4161 (LIBES): Add $LIBSELINUX_LIBS.
4162 * eval.c, lisp.h (call7): New function.
4163 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4164 (Ffile_selinux_context, Fset_file_selinux_context):
4165 New functions.
4166 (Fcopy_file): New parameter preserve-selinux-context.
4167 (Frename_file): Preserve selinux context when renaming by copy-file.
4168
91eac4bb 41692010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4170 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4171
50426a04
JB
4172 Don't depend on cm.c or termcap.c on Windows, use stubs.
4173 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4174 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4175 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4176 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4177 (sys_tputs, sys_tgetstr): New stubs.
4178 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4179 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4180
938efb77
JB
41812010-04-20 Juanma Barranquero <lekktu@gmail.com>
4182
4183 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4184
b4bf28b7
SM
41852010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4186
8b1e1112
SM
4187 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4188 Just signal a warning rather than an error when inside a let.
4189 (Fmake_variable_frame_local): Add the same test.
4190
933ac235
SM
4191 * font.c (syms_of_font): Make the style table vars read-only.
4192
b4bf28b7
SM
4193 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4194 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4195
4196 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4197
93d68d0c
EZ
41982010-04-20 Eli Zaretskii <eliz@gnu.org>
4199
4200 Fix R2L paragraph display on TTY.
4201
4202 * xdisp.c (unproduce_glyphs): New function.
4203 (display_line): Use it when produced glyphs are discarded from R2L
4204 glyph rows.
4205 (append_composite_glyph): In R2L rows, prepend the glyph rather
4206 than appending it.
4207
4208 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4209 rather than append it. Set up the resolved_level and bidi_type
4210 attributes of the appended glyph.
283ccc18
EZ
4211 (produce_special_glyphs): Mirror the backslash continuation
4212 character in R2L lines.
93d68d0c 4213
283ccc18 4214 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4215
283ccc18
EZ
4216 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4217 append_stretch_glyph.
4218 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4219 off-by-one error in computing x at end of text in the row.
4220 (append_stretch_glyph): In reversed row, prepend the glyph rather
4221 than append it. Set resolved_level and bidi_type of the glyph.
4222 (extend_face_to_end_of_line): If the row is reversed, prepend a
4223 stretch glyph whose width is such that the rightmost glyph will be
4224 drawn at the right margin of the window. Fix off-by-one error on
4225 TTY frames in testing whether a line needs face extension. Fix
4226 face extension at ZV. If this is the last glyph row, use
4227 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4228 region face.
4229 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4230 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4231 row->continuation_lines_width.
283ccc18
EZ
4232 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4233 are at ZV. Fixes a crash when reseated to ZV by
4234 try_window_reusing_current_matrix.
45903529
EZ
4235 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4236 which happens with R2L glyph rows. Fixes a crash when inserting a
4237 character at end of an R2L line.
283ccc18
EZ
4238 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4239 treat them as having zero-width characters. Improve comments.
4240 Don't reverse pos_before and pos_after for reversed glyph rows.
4241 Set cursor.x to negative value when the cursor might be on the
4242 left fringe.
4243 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4244 left fringe, not the right one.
f951a506
EZ
4245 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4246 (erase_phys_cursor): For reversed cursor_row, support cursor on
4247 the left fringe.
4248
283ccc18
EZ
4249 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4250 of continuation indicators on the fringes.
4251 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4252 left fringe.
4253
f951a506
EZ
4254 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4255 draw cursor on the left fringe.
4256
4257 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4258 cursor on the left fringe.
4259
f951a506
EZ
4260 * dispnew.c (update_text_area): Handle reversed desired rows when
4261 the cursor is on the left fringe.
4262 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4263 below, not by 0, for when the cursor is on the left fringe.
4264
3bb49aaf
JD
42652010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4266
4267 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4268 widget is a scrollbar.
4269
c0be27fd
KH
42702010-04-20 Kenichi Handa <handa@m17n.org>
4271
4272 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4273 only when the arg CHARSET_LIST is nil.
4274
ce5b453a
SM
42752010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4276
4277 Make variable forwarding explicit rather the using special values.
4278 Basically, this makes the structure of buffer-local values and object
4279 forwarding explicit in the type of Lisp_Symbols rather than use
4280 special Lisp_Objects for that. This tends to lead to slightly more
4281 verbose code, but is more C-like, simpler, and makes it easier to make
4282 sure we handled all cases, among other things by letting the compiler
4283 help us check it.
4284 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4285 Removing forwarding objects.
4286 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4287 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4288 explicit rather than hiding them inside Lisp_Object "values".
4289 (XFWDTYPE): New macro.
4290 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4291 (XBUFFER_LOCAL_VALUE): Remove.
4292 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4293 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4294 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4295 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4296 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4297 Remove the Lisp_Misc_* header.
4298 (struct Lisp_Buffer_Local_Value): Redefine.
4299 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4300 (struct Lisp_Misc_Any): Add filler to get the right size.
4301 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4302 Lisp_Intfwd.
4303 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4304 (DEFVAR_KBOARD): Allocate a forwarding object.
4305 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4306 (let_shadows_global_binding_p): New function.
4307 (union Lisp_Val_Fwd): New type.
4308 (make_blv): New function.
4309 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4310 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4311 (swap_in_symval_forwarding, find_symbol_value, Fset)
4312 (let_shadows_buffer_binding_p, set_internal, default_value)
4313 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4314 (Fkill_local_variable, Fmake_variable_frame_local)
4315 (Flocal_variable_p, Flocal_variable_if_set_p)
4316 (Fvariable_binding_locus):
4317 * xdisp.c (select_frame_for_redisplay):
4318 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4319 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4320 * frame.c (store_frame_param):
4321 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4322 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4323 value structure.
4324 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4325 (clone_per_buffer_values): Only adjust markers into the current buffer.
4326 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4327 (Fbuffer_local_value, set_buffer_internal_1)
4328 (swap_out_buffer_local_variables):
4329 Adapt to the new symbol value structure.
4330 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4331 (defvar_per_buffer): Take a new arg for the fwd object.
4332 (buffer_lisp_local_variables): Return a proper alist (different fix
4333 for bug#4138).
4334 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4335 (Fgarbage_collect): Don't handle buffer_defaults specially.
4336 (mark_object): Handle new symbol value structure rather than the old
4337 special Lisp_Misc_* objects.
4338 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4339 * term.c (set_tty_color_mode):
4340 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4341 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4342 a buffer_local_flags.
4343 * print.c (print_object): Get rid of impossible forwarding objects.
4344
fd3998ff
EZ
43452010-04-19 Eli Zaretskii <eliz@gnu.org>
4346
4347 * bidi.c (bidi_get_type, bidi_get_category)
4348 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4349 (bidi_type_of_next_char, bidi_level_of_next_char):
4350 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4351
e42cd1a7
JB
43522010-04-19 Juanma Barranquero <lekktu@gmail.com>
4353
4354 * dired.c (Ffile_attributes): Fix typo in docstring.
4355
6e104790 43562010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4357
4358 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4359 NSInteger (Bug#5811).
4360
6e104790 43612010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4362
4363 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4364 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4365
6e104790 43662010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4367
4368 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4369
6e104790
SM
43702010-04-19 Chong Yidong <cyd@stupidchicken.com>
4371
4372 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4373 terminal frames (Bug#5837).
4374
37dcfea0
EZ
43752010-04-19 Eli Zaretskii <eliz@gnu.org>
4376
d1da276f
EZ
4377 * .gdbinit (xsubchartable): New command.
4378
37dcfea0
EZ
43792010-04-19 Eli Zaretskii <eliz@gnu.org>
4380
4381 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4382 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4383 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4384 and
4385 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4386
e9515805
SM
43872010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4388
4389 * alloc.c (Fpurecopy): Hash-cons if requested.
4390 (syms_of_alloc): Update purify-flag docstring.
4391
22aa44a8
JD
43922010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4393
4394 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4395 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4396
ebb5722e
EZ
43972010-04-17 Eli Zaretskii <eliz@gnu.org>
4398
4399 Fix a crash when an NSM character is inserted at BEGV.
4400
4401 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4402 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4403 NEUTRAL_B or UNKNOWN_BT.
4404
0f4442ef
EZ
44052010-04-16 Eli Zaretskii <eliz@gnu.org>
4406
4407 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4408 other rows with cursor unless they are different from this row and
4409 this row is part of a continued line. (Bug#5943)
4410
7d4e45f8
DN
44112010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4412
4413 * s/freebsd.h: Restore osreldate.h include.
4414 Suggested by Naohiro Aota.
4415
5ba5ec85
J
44162010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4417
4418 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4419
20af301d
CY
44202010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4421
4422 * s/cygwin.h: Avoid linking against static libgcc.
4423
a4b000fb
JL
44242010-04-15 Juri Linkov <juri@jurta.org>
4425
4426 * window.c: Add Qscroll_command.
4427 Remove Vscroll_preserve_screen_position_commands.
4428 (window_scroll_pixel_based, window_scroll_line_based): Check the
4429 `scroll-command' property on the last command instead of searching
4430 the last command in Vscroll_preserve_screen_position_commands.
4431 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4432 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4433 (scroll-preserve-screen-position): Doc fix.
4434 (Vscroll_preserve_screen_position_commands): Remove variable.
4435
bc319ba4
DN
44362010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4437
6bb24457
DN
4438 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4439
19d4c244
DN
44402010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4441
4442 Reduce cpp use in Makefile.in.
4443 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4444 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4445 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4446 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4447 (CRT0_COMPILE): Remove, inline it in the only user.
4448
32129746
JL
44492010-04-14 Juri Linkov <juri@jurta.org>
4450
4451 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4452 `scroll-up-command' and `M-v' from `scroll-down' to
4453 `scroll-down-command'.
4454
9013a7f8
JL
44552010-04-14 Juri Linkov <juri@jurta.org>
4456
4457 * window.c (Vscroll_preserve_screen_position_commands): New variable
4458 with the default value as the list of Qscroll_down and Qscroll_up.
4459 (window_scroll_pixel_based, window_scroll_line_based): Search the
4460 last command in the list Vscroll_preserve_screen_position_commands
4461 instead of comparing with Qscroll_up and Qscroll_down.
4462
4bef8d26
JD
44632010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4464
92848133
JD
4465 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4466 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4467 does that.
4468
4bef8d26
JD
4469 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4470 to zero.
4471
58b963f7
SM
44722010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4473
84164a0d
SM
4474 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4475
2b0a91e7
SM
4476 Try to solve the problem of spurious EOF chars in long lines of text
4477 sent to interactive subprocesses.
4478 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4479 (system_process_attributes): Remove unused var `ttotal'.
4480 * process.c (send_process): Don't bother breaking long line with EOF
4481 chars when talking to ttys any more.
4482 (wait_reading_process_output): Output a warning when called in such
4483 a way that it could block without being interruptible.
4484
58b963f7
SM
4485 Try to detect file modification within the same second.
4486 * buffer.h (struct buffer): New field modtime_size.
4487 * buffer.c (reset_buffer): Initialize it.
4488 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4489 (Fverify_visited_file_modtime): Check it.
4490 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4491 (Fset_visited_file_modtime): Set (or clear) it.
4492
01f5787b
SM
44932010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4494
4495 * process.c (status_notify): Remove unused var `ro'.
4496
83725342
JD
44972010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4498
4499 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4500 more than one visual (Bug#5938).
4501
b9465836
DN
45022010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4503
50426a04
JB
4504 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4505 Undefine.
b9465836 4506
8d9c8ece
DN
45072010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4508
b1f52161
DN
4509 Remove C_SWITCH_SYSTEM_TEMACS.
4510 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4511 (malloc, realloc, free): Use emacs, not temacs for conditional
4512 definition.
4513
4514 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4515 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4516
8d9c8ece
DN
4517 Use autoconf, not cpp for some variables.
4518 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4519 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4520 (ALL_CFLAGS): Use them as make variables.
4521 (really-lwlib, really-oldXMenu): Do not pass them.
4522
1ecb2d3f
JD
45232010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4524
4525 * xmenu.c (apply_systemfont_to_dialog): New.
4526 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4527
3a4fa2f2
SM
45282010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4529
97e53006
SM
4530 * process.c (exec_sentinel): Preserve current-buffer.
4531
3a4fa2f2
SM
4532 * process.c (read_process_output): Move the save-current-buffer to
4533 apply to both the filter and the non-filter branches.
4534
88df7221
DN
45352010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4536
4537 * s/msdos.h (UNEXEC): New definition.
4538
5634ff85
YM
45392010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4540
6eff5c3d
YM
4541 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4542 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4543
4544 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4545 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4546 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4547 TRY_WINDOW_CHECK_MARGINS.
4548
4549 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4550 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4551 width only when it is for padding.
5634ff85 4552
b13aef54
J
45532010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4554
4555 * xfns.c (Fx_show_tip): Call try_window in a loop until
4556 fonts_changed_p is zero (Bug#2423).
4557
21d28484
EZ
45582010-04-08 Eli Zaretskii <eliz@gnu.org>
4559
4560 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4561 the end of TEXT_AREA. (Bug#5856)
4562
0269ef77
JD
45632010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4564
4565 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4566 HAVE_GCONF.
4567
5930fe97
EZ
45682010-04-08 Eli Zaretskii <eliz@gnu.org>
4569
4570 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4571 prev.orig_type, for resolving type of NSM. (Bug#5858)
4572
99852628
JD
45732010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4574
4575 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4576 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4577 in current_font.
4578 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4579 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4580 New functions.
4581 (syms_of_xsettings): Initialize current_font.
4582 defsubr Sfont_get_system_normal_font.
99852628 4583
686b968e
JB
4584 * xsettings.h (Ffont_get_system_normal_font)
4585 (xsettings_get_system_normal_font): Declare.
99852628
JD
4586
4587 * xfns.c (extern xlwmenu_default_font): Remove.
4588 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4589 to xlwmenu.c.
4590
4591 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4592 menu items in UTF-8.
4593
4594 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4595 (apply_systemfont_to_menu): New function.
4596 (set_frame_menubar, create_and_show_popup_menu): Call
4597 apply_systemfont_to_menu.
4598
7fc874c4
J
45992010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4600
4601 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4602 FRAME_LINE_TO_PIXEL_Y.
4603
4604 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4605 pixelwidth/height.
4606
863bf481
DN
46072010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4608
5e5a3b92
DN
4609 Simplify code for HP machines.
4610 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4611 for GNU_LINUX, not needed.
4612 (UNEXEC, NEED_BSDTTY): Move definitions...
4613 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4614
863bf481
DN
4615 * m/iris4d.h (UNEXEC): Move definition ...
4616 * s/irix6-5.h (UNEXEC): ... here.
4617
3e6bec3b
JD
46182010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4619
4620 * xfns.c (set_machine_and_pid_properties): New function.
4621 (Fx_create_frame): Call set_machine_and_pid_properties.
4622
2912322b
SM
46232010-04-03 Eli Zaretskii <eliz@gnu.org>
4624
1502b819
EZ
4625 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4626 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4627 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4628
2912322b
SM
4629 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4630 in this function. (Bug#5703)
4631
46322010-04-03 Chong Yidong <cyd@stupidchicken.com>
4633
4634 * nsterm.h: Fix last change.
4635
c435b432
DN
46362010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4637
a568f507
DN
4638 * m/intel386.h (NO_REMAP): Move definition ...
4639 * s/msdos.h (NO_REMAP): ... here.
4640
4cd9f6c2
DN
4641 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4642
c435b432
DN
4643 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4644 used on those platforms.
4645
42a2c622
DN
46462010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4647
4648 Remove extern errno declarations.
4649 * xterm.c:
4650 * xrdb.c:
4651 * w32term.c:
4652 * unexec.c:
4653 * unexaix.c:
4654 * sysdep.c:
4655 * process.c:
4656 * lread.c:
4657 * keyboard.c:
4658 * floatfns.c:
4659 * filelock.c:
4660 * fileio.c:
4661 * emacs.c (main):
4662 * ecrt0.c:
4663 * dispnew.c:
4664 * callproc.c:
4665 * buffer.c: Remove errno extern declarations.
4666 * s/netbsd.h (NEED_ERRNO): Remove.
4667
8224f93d
DN
46682010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4669
4670 Remove all uses of LIBX11_SYSTEM.
4671 * Makefile.in (LIBX11_SYSTEM): Remove.
4672 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4673 instead.
4674
814062c7
EZ
46752010-04-01 Eli Zaretskii <eliz@gnu.org>
4676
ed68db4d
EZ
4677 Remove support for DJGPP v1.x (bug#5813).
4678
4679 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4680 * s/msdos.h:
4681 * unexec.c (make_hdr, copy_text_and_data):
4682 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4683 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4684 (IT_set_terminal_modes, __write, _rename, gethostname)
4685 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4686 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4687 the value of __DJGPP__.
ed68db4d
EZ
4688 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4689 compatibility code.
8224f93d
DN
4690 * lread.c:
4691 * gmalloc.c (memalign):
4692 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4693 * emacs.c (main):
4694 * dosfns.c (init_dosfns):
ed68db4d
EZ
4695 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4696
52f4d8d5
EZ
46972010-04-01 Eli Zaretskii <eliz@gnu.org>
4698
814062c7
EZ
4699 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4700 string with `cursor' property comes from an `after-string'
4701 overlay. (Bug#5816)
4702
0dc2e11d
GM
47032010-04-01 Glenn Morris <rgm@gnu.org>
4704
4705 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4706 Define as Makefile variables.
4707 (LIBX): Use above variables rather than directly using autoconf.
4708
1d29df59
DN
47092010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4710
4711 Clean up BSD_SYSTEM use.
4712 * xterm.c:
4713 * process.c:
4714 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4715 for including <sys/ioctl.h>.
4716 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4717 code is only used for MSDOS.
4718
1546c559
JL
47192010-03-31 Juri Linkov <juri@jurta.org>
4720
4721 * image.c: Add `Qextension_data'.
4722 (syms_of_image): Initialize and staticpro `Qextension_data'.
4723 (Fimage_metadata): Rename from `Fimage_extension_data'.
4724 (gif_load): Put GIF extension data to the property
4725 `Qextension_data'.
4726
6521c534
CY
47272010-03-31 Chong Yidong <cyd@stupidchicken.com>
4728
4729 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4730 * nsterm.h: Fix prototype.
4731
52c30783
EZ
47322010-03-31 Eli Zaretskii <eliz@gnu.org>
4733
4734 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4735 trailing whitespace in right-to-left rows.
4736
855a0da7
SM
47372010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4738
4739 Get rid of the direct_output optimizations.
4740 * keyboard.c (nonundocount): Remove extern declaration.
4741 (command_loop_1): Remove brittle optimisation for cheap and
4742 common operations.
4743 * xdisp.c (redisplay_internal): Don't bother checking
4744 redisplay_performed_directly_p any more.
4745 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4746 any more.
4747 * dispnew.c (redisplay_performed_directly_p)
4748 (direct_output_for_insert, direct_output_forward_char):
4749 * dispextern.h (redisplay_performed_directly_p)
4750 (direct_output_for_insert, direct_output_forward_char): Remove.
4751 * cmds.c (nonundocount): Make it static.
4752
85738751 47532010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4754
4755 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4756
85738751 47572010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4758
4759 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4760 invisible (Bug#5766).
4761
85738751 47622010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4763
855a0da7
SM
4764 * xdisp.c (x_consider_frame_title, update_window_cursor):
4765 Remove HAVE_NS conditionals.
194d44e7 4766 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4767
4768 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4769 filename for the title.
4770 (ns_set_doc_edited): Do nothing if the selected window is a
4771 minibuffer window.
4772
4773 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4774 ns_set_doc_edited.
4775
4776 * nsterm.m: Remove unneeded prototype.
4777
85738751 47782010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4779
4780 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4781 in the DOC file. (Bug#5336)
4782
85738751 47832010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4784
4785 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4786
75d1428c
SM
47872010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4788
4789 * window.c (keys_of_window): Remove redundant/overridden bindings.
4790
82043cfb
EZ
47912010-03-30 Eli Zaretskii <eliz@gnu.org>
4792
4793 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4794 Restore original behavior when the iterator is not bidi_p.
4795
b5dd0ae7
DN
47962010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4797
4798 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4799
bd924a5d
EZ
48002010-03-30 Eli Zaretskii <eliz@gnu.org>
4801
4802 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4803 are outside the range of cached character positions.
4804
3580374b
JB
48052010-03-30 Juanma Barranquero <lekktu@gmail.com>
4806
4807 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4808
a7b02820
EZ
48092010-03-30 Eli Zaretskii <eliz@gnu.org>
4810
4811 Initial support for bidirectional editing.
4812
4813 * Makefile.in (obj): Include bidi.o.
4814 (bidi.o): New target.
4815
4816 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4817 ($(BLD)/bidi.$(O)): New target.
4818
4819 * bidi.c: New file.
4820
4821 * buffer.h (struct buffer): New members bidi_display_reordering
4822 and bidi_paragraph_direction.
4823
4824 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4825 and bidi_paragraph_direction.
4826 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4827 and bidi-paragraph-direction.
4828 (Fbuffer_swap_text): Swap the values of
4829 bidi_display_reordering and bidi_paragraph_direction.
4830
4831 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4832 (bidi_type_t, bidi_dir_t): New types.
4833 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4834 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4835 prev_stop, base_level_stop, and eol_pos.
4836 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4837 (IT_STACK_SIZE): Enlarge to 5.
4838 (struct glyph_row): New member reversed_p.
4839 <string_buffer_position>: Update prototype.
4840 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4841 glyph_row if bidi_it.paragraph_dir == R2L.
4842 (struct glyph): New members resolved_level and bidi_type.
4843
4844 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4845 processing or buffer's direction is right-to-left.
4846 (prepare_desired_row): Preserve the reversed_p flag.
4847 (row_equal_p): Compare the reversed_p attributes as well.
4848
4849 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4850 bidi_init_it and set it->paragraph_embedding from the current
4851 buffer's value of bidi_paragraph_direction.
4852 (reseat_1): Initialize bidi_it.first_elt.
4853 (set_iterator_to_next, next_element_from_buffer): Use the value of
4854 paragraph_embedding to determine the paragraph direction.
4855 (set_iterator_to_next): Under bidi reordering, call
4856 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4857 new_paragraph flag is set in the bidi iterator.
4858 (next_element_from_buffer): If bidi_it.first_elt is set,
4859 initialize paragraph direction and find the first character to
4860 display in the visual order. If reseated to a middle of a line,
4861 prime the bidi iterator starting at the line's beginning. Handle
4862 the situation where we overstepped stop_charpos due to
4863 non-linearity of the bidi iteration. Likewise for when we back up
4864 beyond the previous stop_charpos. When moving across stop_charpos,
4865 record it in prev_stop.
4866 (display_line): Set row->end and it->start for the next row to the
4867 next character in logical order. Always extend reversed_p rows to
4868 the end of line, even if they end at ZV. Copy the reversed_p flag
4869 to the next glyph row. Keep calling set_cursor_from_row for
4870 bidi-reordered rows even if we already have a possible candidate
4871 for cursor position. Set row_end after all the row's glyphs have
4872 been produced, by looping over the glyphs. Record the position
4873 after EOL in it->eol_pos, and use it to set end_pos of the last
4874 row produced for a continued line.
4875 <Qright_to_left, Qleft_to_right>: New variables.
4876 (syms_of_xdisp): Initialize and staticpro them.
4877 (string_buffer_position_lim): New function.
4878 (string_buffer_position): Most of code moved to
4879 string_buffer_position_lim. Last argument and return value are
4880 now EMACS_INT; all callers changed.
4881 (set_cursor_from_row): Rewritten to support bidirectional text and
4882 reversed glyph rows.
4883 (text_outside_line_unchanged_p, try_window_id): Disable
4884 optimizations if we are reordering bidirectional text and the
4885 paragraph direction can be affected by the change.
4886 (append_glyph, append_composite_glyph)
4887 (produce_image_glyph, append_stretch_glyph): Set the
4888 resolved_level and bidi_type members of each glyph.
4889 (append_glyph): If the glyph row is reversed, prepend the glyph
4890 rather than appending it.
4891 (handle_stop_backwards): New function.
4892 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4893 (reseat): call handle_stop_backwards to recompute prev_stop and
4894 base_level_stop for the new position.
4895 (handle_invisible_prop): Under bidi iteration, skip invisible text
4896 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4897 paragraph direction. Update IT->prev_stop after skipping
4898 invisible text.
4899 (move_it_in_display_line_to): New variables prev_method
4900 and prev_pos. Compare for strict equality in
4901 BUFFER_POS_REACHED_P.
4902 (try_cursor_movement): Examine all the candidate rows that occlude
4903 point, to return the best match. If rows are bidi-reordered
4904 and point moved backwards, back up to the row that is not a
4905 continuation line, and start looking for a suitable row from
4906 there.
4907
4908 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4909 rather than appending, if the glyph_row's reversed_p flag is set.
4910 Set the resolved_level and bidi_type members of each glyph.
4911
4912 * .gdbinit (pbiditype): New command.
4913 (pgx): Use it to display bidi level and type of the glyph.
4914 (pitx): Display some bidi information about the iterator.
4915 (prowlims, pmtxrows): New commands.
4916
32a8894e
DN
49172010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4918
4919 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4920 * s/usg5-4.h (LIBS_DEBUG):
4921 * s/irix6-5.h (C_DEBUG_SWITCH):
4922 * s/gnu-linux.h (LIBS_DEBUG):
4923 * s/darwin.h (LIBS_DEBUG):
4924 * s/bsd-common.h (LIBS_DEBUG):
4925 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4926 * m/iris4d.h (LIBS_DEBUG):
4927 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4928
4929 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4930 (LIBS_DEBUG): Remove definition.
4931
649dbf36
CY
49322010-03-27 Chong Yidong <cyd@stupidchicken.com>
4933
4934 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4935 Windows.
4936
cad4261f
YM
49372010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4938
4939 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4940 `connect' (Bug#5723).
4941
cd591dbc
HE
49422010-03-25 Helmut Eller <eller.helmut@gmail.com>
4943
4944 * process.c (Fmake_network_process): Call `select' for interrupted
4945 `connect' rather than creating new socket (Bug#5173).
4946
e867cb5d 49472010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4948
4949 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4950
4951 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4952
4953 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4954
e867cb5d 49552010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4956
4957 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4958 XLoadQueryFont.
4959
e867cb5d 49602010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4961
4962 * coding.c (decode_coding_ccl): Fix previous change for the
4963 multibyte case.
fb608df3
KH
4964 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4965 case that the output buffer is fullfilled.
4966 (encode_coding): Setup ccl program here.
fbdc1721 4967
5845f0ed
DN
49682010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4969
814fb708
DN
4970 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4971
5845f0ed
DN
4972 Simplify LIBS_MACHINE definitions.
4973 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4974 * m/iris4d.h (LIBS_MACHINE): Likewise.
4975 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4976 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4977 * s/netbsd.h: Remove commented out code.
5845f0ed 4978
b7064064
DN
49792010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4980
df7734b2
DN
4981 Remove dead code dealing with POSIX_SIGNALS.
4982 * atimer.c (set_alarm): Remove dead code, all USG systems define
4983 POSIX_SIGNALS.
4984 * data.c (arith_error): Likewise.
4985 * keyboard.c (input_available_signal, handle_user_signal)
4986 (interrupt_signal): Likewise.
4987 * process.c (sigchld_handler): Likewise.
4988 (create_process): Remove if 0 code. Remove HPUX conditional when
4989 !defined (POSIX_SIGNALS), it cannot be true.
4990 * syssignal.h: Remove USG5_4 and USG conditionals when
4991 !POSIX_SIGNALS, they cannot be true.
4992
b7064064
DN
4993 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4994 NO_SOCK_SIGIO, not used anymore.
4995
55da5ee3
DN
49962010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4997
0be96e3a
DN
4998 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4999 support vax on BSDs.
5000
55da5ee3
DN
5001 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5002 * s/aix4-2.h (ORDINARY_LINK): ... here.
5003
c0282183
AS
50042010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5005
82c3d67a
AS
5006 * Makefile.in (abs_builddir): Define.
5007 (bootstrap_exe): Use it.
5008 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5009
3613edce
SM
50102010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5011
5012 * Makefile.in (bootstrap_exe): Use an absolute name.
5013
7f110ddc
DN
50142010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5015
22e87574
DN
5016 Remove support for old GNU/Linux using libc version 5.
5017 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5018 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5019
05a670e6
DN
5020 Consolidate redundant definitions in s/bsd-common.h.
5021 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5022 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5023 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5024 doing it in all files that include this one.
5025 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5026 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5027 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5028 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5029 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5030 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5031 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5032 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5033 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5034
2968f561
DN
5035 Consolidate redundant definitions.
5036 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5037 it's undefined in all files that include this one.
5038 (POSIX_SIGNALS): Define here instead of doing it in all files that
5039 include this one.
5040 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5041 (POSIX_SIGNALS): Do not define.
5042 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5043 (POSIX_SIGNALS): Do not define.
5044 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5045 (POSIX_SIGNALS): Do not define.
5046
15d25dc0
DN
5047 Remove support for old UNIX System V systems.
5048 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5049 * s/usg-5-4-2.h: Remove.
5050
07e339e4
DN
5051 Remove support for Solaris on PPC and for old versions.
5052 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5053 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5054 that cancel each other.
5055 * s/sol2-3.h:
5056 * s/sol2-4.h:
5057 * s/sol2-5.h: Remove.
5058 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5059 (NO_REMAP): Remove, unused.
5060 (UNEXEC): Move definition ...
5061 * s/aix4-2.h (UNEXEC): ... here.
5062
7f110ddc
DN
5063 * s/openbsd.h: Remove support for non-ELF and for systems that do
5064 not support shared libraries.
5065 * s/netbsd.h:
5066 * s/freebsd.h: Likewise.
5067
605f35cd
DN
50682010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5069
5070 Remove non-working support for lynxos 3.0.
5071 * s/lynxos.h: Remove file.
5072
5073 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5074 COFF_BSD_SYMBOLS, nothing defines it anymore.
5075
aed71cf4
DN
50762010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5077
5078 Remove obsolete uses of HAVE_SHM.
5079 * emacs.c (standard_args):
5080 (Fdump_emacs):
5081 (syms_of_emacs): Remove code depending on HAVE_SHM.
5082
5083 * alloc.c: Remove HAVE_SHM dependent definition.
5084
5085 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5086
aded53ff
GM
50872010-03-18 Glenn Morris <rgm@gnu.org>
5088
17284745
GM
5089 * emacs.c (USAGE4): Hard-code bug address.
5090 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5091 (bug_reporting_address): Remove.
5092 (main): Don't call bug_reporting_address.
5093
aded53ff
GM
5094 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5095 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5096
303500aa
CY
50972010-03-15 Chong Yidong <cyd@stupidchicken.com>
5098
5099 * xfns.c (Fx_create_frame):
5100 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5101 on left.
5102
cef3058f
CY
51032010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5104
5105 * editfns.c (Fformat): Account for string precision when computing
5106 field width (Bug#5710).
5107
a647d59d
CY
51082010-03-12 Chong Yidong <cyd@stupidchicken.com>
5109
4fa42018
CY
5110 * xfns.c (Fx_create_frame): Set default to Qright.
5111
a647d59d
CY
5112 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5113 all window systems.
5114
6da23aaa
EZ
51152010-03-12 Eli Zaretskii <eliz@gnu.org>
5116
a96f6398 5117 These changes remove termcap.c from the build on Posix platforms.
83d02def 5118 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5119 (MSDOS_OBJ): ...to here.
5120 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5121 now identical to when LIBS_TERMCAP is defined.
5122
5123 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5124
5125 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5126
a96f6398 5127 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5128
288f9fc0
CY
51292010-03-10 Chong Yidong <cyd@stupidchicken.com>
5130
5131 * Branch for 23.2.
5132
d48cd3f4
SM
51332010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5134
5135 Cleanup setup of gl_state in various parts of the code.
5136 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5137 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5138 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5139 (skip_chars):
5140 * regex.c (regex_compile): Use it.
5141 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5142 it's now set in regex_compile when/if we need it.
5143
618db430
SM
51442010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5145
c0335e02
SM
5146 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5147 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5148 (QUIT): Use it to consolidate code and remove redundancy.
5149 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5150
254c06a8
SM
5151 * regex.c (regex_compile): Setup gl_state as well.
5152
618db430
SM
5153 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5154 (in_classes): Use CONSP before XCAR/XCDR.
5155
233f0c9f
CY
51562010-03-03 Chong Yidong <cyd@stupidchicken.com>
5157
5158 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5159 definitions, so that keyboard macros are correctly handled
5160 (Bug#5481).
5161
75f80e63
EZ
51622010-03-02 Eli Zaretskii <eliz@gnu.org>
5163
5164 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5165 text that could be relocated inside the call to emacs_mule_char.
5166 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5167 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5168
dcfb9bc4
KH
51692010-03-02 Kenichi Handa <handa@m17n.org>
5170
fc9a17bc
KH
5171 * character.c (parse_str_as_multibyte): Fix handling of the
5172 multibyte form of raw-bytes.
5173 (str_as_multibyte): Likewise.
5174
dcfb9bc4
KH
5175 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5176 form of raw-bytes.
5177
412c01b6
CY
51782010-02-28 Chong Yidong <cyd@stupidchicken.com>
5179
5180 * charset.c (load_charset_map_from_file)
5181 (load_charset_map_from_vector): Zero out allocated
5182 charset_map_entries before using them.
5183
df7e1ea0
AS
51842010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5185
5186 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5187
fe69a722
CY
51882010-02-27 Chong Yidong <cyd@stupidchicken.com>
5189
4ed28cf4
CY
5190 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5191 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5192
7379cfce
KH
51932010-02-26 Kenichi Handa <handa@m17n.org>
5194
f88cc4d6
KH
5195 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5196
7379cfce
KH
5197 * xdisp.c (reseat_to_string): Fix previous change.
5198
cf2fdcfb
CY
51992010-02-26 David Reitter <david.reitter@gmail.com>
5200
5201 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5202 Lisp_Object (Bug#4736).
5203
cc6c7c75
KH
52042010-02-25 Kenichi Handa <handa@m17n.org>
5205
5206 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5207
32e737d7
JD
52082010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5209
5210 * xterm.c (XTflash): Move declarations before statements.
5211
5212 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5213 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5214 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5215 (xg_create_tool_bar): Remove unused variables.
5216 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5217 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5218
676cae9f
CY
52192010-02-21 Chong Yidong <cyd@stupidchicken.com>
5220
5221 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5222
886cc2b8
SM
52232010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5224
5225 * term.c (fatal): Add a final \n if needed (bug#5596).
5226
ddb2d8e2
CY
52272010-02-18 Chong Yidong <cyd@stupidchicken.com>
5228
5229 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5230
2a4f8d3d
GM
52312010-02-18 Glenn Morris <rgm@gnu.org>
5232
5233 * callint.c (Finteractive): Doc fix.
5234
ebaf11b6
KH
52352010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5236
886cc2b8
SM
5237 * coding.c (record_conversion_result):
5238 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5239 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5240 memory allocation error.
5241
d0396581
KH
52422010-02-17 Kenichi Handa <handa@m17n.org>
5243
886cc2b8
SM
5244 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5245 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5246 (decode_coding): Setup ccl program here. Keep looping when the
5247 decoder stopped because the output buffer is
5248 fullfilled (bug#5534).
5249
5250 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5251
98599f74
JD
52522010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5253
471e4f04 5254 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5255 bug #5571.
886cc2b8 5256 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5257 overdrawn.
98599f74 5258
182659ae
JD
52592010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5260
5261 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5262 doing_interact here.
5263 (ice_connection_closed): New function.
5264 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5265 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5266 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5267 returns I/O error.
5268 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5269 bug #5512.
5270
9be32c4e 52712010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5272
5273 * nsfont.m (nsfont_open): The system's value for the font descent
5274 is negative, so round it down to avoid clipping.
5275
a2f3eb19
CY
52762010-02-06 Chong Yidong <cyd@stupidchicken.com>
5277
5278 * charset.c (load_charset_map_from_file)
5279 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5280 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5281
3088147c
CY
52822010-02-05 Chong Yidong <cyd@stupidchicken.com>
5283
5284 * charset.c (load_charset_map_from_file): Allocate large
5285 charset_map_entries structure on the heap rather than the stack.
5286 (Bug#5526).
5287
b57d9029
KH
52882010-01-31 Kenichi Handa <handa@m17n.org>
5289
5290 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5291 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5292
c67d885b
CY
52932010-01-31 Chong Yidong <cyd@stupidchicken.com>
5294
5295 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5296 <deactivated@gmail.com> (Bug#3605).
5297
8fab2362
CY
52982010-01-31 David De La Harpe Golden <david@harpegolden.net>
5299
5300 * fileio.c (Frename_file): Correctly rename symlinks to
5301 directories (Bug#5496).
5302
cb2a62f2
CY
53032010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5304
5305 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5306
944c7a26
AS
53072010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5308
5309 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5310
c024ac08
CY
53112010-01-29 Chong Yidong <cyd@stupidchicken.com>
5312
5313 * frame.c (DEFAULT_ROWS): Change default to 35.
5314
5315 * xfns.c (x_default_font_parameter): Change default XFT font to
5316 monospace-10 (Bug#3643).
5317
af93af83
EZ
53182010-01-29 Eli Zaretskii <eliz@gnu.org>
5319
5320 * w32inevt.c (key_event): Remove unnecessary comparison of
5321 event->uChar.AsciiChar with 128.
5322
ca0eb708
CY
53232010-01-28 Chong Yidong <cyd@stupidchicken.com>
5324
b242dbfc
CY
5325 * fileio.c (Frename_file): Fix last change (Bug#5487).
5326
ca0eb708
CY
5327 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5328
5329 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5330
45d45af5
JD
53312010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5332
5333 * xfns.c (Fx_create_frame): Remove window size matching code from
5334 2010-01-15.
a73f9c9d 5335 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5336
7e233730
JR
53372010-01-27 Jason Rumney <jasonr@gnu.org>
5338
5339 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5340 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5341
86e893e3
KH
53422010-01-27 Kenichi Handa <handa@m17n.org>
5343
5344 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5345 pattern string (Bug#4209).
86e893e3 5346
8719abec
CY
53472010-01-27 David De La Harpe Golden <david@harpegolden.net>
5348
5349 * fileio.c (Frename_file): Call copy-directory and
5350 delete-directory for directories, in order to handle cross-device
5351 renaming (Bug#3353).
5352
844794c8
JD
53532010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5354
aa3e13b5 5355 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5356 sizes 24 and 10. Bug #3643.
844794c8 5357
bd4b5750
SM
53582010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5359
8dc1adf6 5360 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5361 * keymap.c (shadow_lookup): Add `remap' arg.
5362 (describe_map, describe_vector): Update calls to shadow_lookup.
5363 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5364 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5365 perform remapping during shadow_lookup check of remapped_sequences.
5366
285d07e2
CY
53672010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5368
5369 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5370 png_check_sig, which has been removed in libpng 1.4.
5371
c6d09b8d
CY
53722010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5373
5374 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5375 lacks this header file).
5376
3d782998
YM
53772010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5378
5379 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5380 as in Emacs 22.
5381
2aff7c53
YM
53822010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5383
5384 * lisp.h (make_pure_string): String pointer arg now points to const.
5385
5386 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5387 args now point to const.
5388
74327f7a
EZ
53892010-01-22 Eli Zaretskii <eliz@gnu.org>
5390
5391 * lread.c (Fload): Don't treat files without .elc extension as
5392 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5393 them. (bug#5303)
5394
4d1e6632
KH
53952010-01-20 Kenichi Handa <handa@m17n.org>
5396
5397 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5398 treat the source as actual byte sequence.
5399
1fdede8f
AM
54002010-01-19 Alan Mackenzie <acm@muc.de>
5401
5402 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5403 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5404 `signal_after_change_p' to `coherent_change_p', and make the
5405 invocation of `modify_region' conditional on it.
5406
67477f30
JD
54072010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5408
5409 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5410 for debug purpose.
5411 (syms_of_xsettings): Declare xft-settings.
5412
244b023e
CY
54132010-01-18 Chong Yidong <cyd@stupidchicken.com>
5414
5415 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5416
617364fe
CY
54172010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5418
5419 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5420
4fe22cdf
CY
54212010-01-16 Chong Yidong <cyd@stupidchicken.com>
5422
5423 * emacs.c (standard_args): Adjust arg priorities to reflect how
5424 they are processed in startup.el.
5425
e118d2be
AS
54262010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5427
5428 * Makefile.in (lisp, shortlisp): Update.
5429
523ae620
SM
54302010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5431
5432 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5433 code, link the new kboard into all_kboard before running Lisp code,
5434 and protect the new terminal with GCPRO (Bug#5365).
5435 (x_term_init): Remove unused var `atom'.
5436 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5437
f0d13888
JD
54382010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5439
5440 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5441 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5442 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5443 this. Bug #3643.
f0d13888 5444
cc320f07
KH
54452010-01-15 Kenichi Handa <handa@m17n.org>
5446
5447 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5448
7ffdf101
CY
54492010-01-15 Chong Yidong <cyd@stupidchicken.com>
5450
5451 * nsterm.m (Qnone): Define.
5452
5453 * nsfns.m (Qnone): Move definition to nsterm.m.
5454
d12bd917
KH
54552010-01-14 Kenichi Handa <handa@m17n.org>
5456
5457 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5458 systems.
5459
d9a7c140
KH
54602010-01-14 Kenichi Handa <handa@m17n.org>
5461
5462 Make auto-composition work on all buffers even if they are
5463 fundamental mode.
5464
5465 * composite.c (Vauto_composition_mode): New variable.
5466 (composition_compute_stop_pos): Check Vauto_composition_mode
5467 instead of Vauto_composition_function.
5468 (composition_adjust_point, Ffind_composition_internal): Likewise.
5469 (syms_of_composite): Declare Lisp variable
5470 "auto-composition-mode" here.
5471
63286bb2
CY
54722010-01-13 Chong Yidong <cyd@stupidchicken.com>
5473
5474 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5475 during call to vendor-specific-keysyms (Bug#5365).
5476
c2623ee7
YM
54772010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5478
5479 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5480 Call SIGNAL_THREAD_CHECK (Bug#5333).
5481
5482 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5483 Call SIGNAL_THREAD_CHECK.
5484
0b5397c2
SM
54852010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5486
5487 Try to fix bug#5314. This is probably not the final word, tho.
5488 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5489 recent-auto-save-p as a side-effect.
5490 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5491 * buffer.c (Fkill_buffer, reset_buffer):
5492 * editfns.c (Fsubst_char_in_region):
5493 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5494 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5495
dc954cb2
KH
54962010-01-13 Kenichi Handa <handa@m17n.org>
5497
5498 Display buffer name, etc. in mode line by composing correctly.
5499
5500 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5501 STRING is not nil.
0b5397c2 5502 (display_mode_element): Adjust for the change of
dc954cb2
KH
5503 decode_mode_spec and display_line.
5504 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5505 (display_string): Handle the case that STRING is non-null and
5506 LISP_STRING is not nil.
5507
0b5397c2
SM
5508 * xterm.c (x_draw_composite_glyph_string_foreground):
5509 Pay attention to s->face->overstrike.
dc954cb2
KH
5510
5511 * composite.c (composition_reseat_it): Don't check PT if STRING is
5512 non nil.
5513
4a00eaca
YM
55142010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5515
5516 * keyboard.c (read_char): Don't apply previous change when current
5517 buffer is unchanged by command execution.
5518
60abb287
JD
55192010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5520
5521 * keyboard.c (read_char): Return after executing from special map.
5522
893db5bc
GM
55232010-01-12 Glenn Morris <rgm@gnu.org>
5524
5525 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5526 bug-gnu-emacs rather than emacs-pretest-bug.
5527
4d03ece0
CY
55282010-01-11 Chong Yidong <cyd@stupidchicken.com>
5529
5530 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5531 initializing the Lisp variables that depend on them.
5532
1df47e38
YM
55332010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5534
5535 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5536 Clear areas that will not be updated after change of menu bar lines.
5537 Clear the menu bar window's current matrix when the window gets empty.
5538
2f1c6384
CY
55392010-01-09 Chong Yidong <cyd@stupidchicken.com>
5540
e398c61c
CY
5541 * intervals.h, textprop.c (extend_property_ranges): Return value
5542 and args changed. Discard properties that begin at or after the
5543 new end (Bug#5306).
5544
5545 * editfns.c (Fformat): Caller changed.
5546
e5a29a10
CY
5547 * nsterm.m (ns_set_default_prefs): Delete function.
5548 (syms_of_nsterm): Initialize ns_command_modifier,
5549 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5550 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5551
2f1c6384
CY
5552 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5553 position (Bug#4040).
5554
d427a9fa
EZ
55552010-01-09 Eli Zaretskii <eliz@gnu.org>
5556
5557 * editfns.c (Ffloat_time): Doc fix.
5558
21b9df2f
JD
55592010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5560
5561 * xfns.c (Fx_create_frame): Don't create frame larger than display
5562 by default bug#3643.
5563
4b00d3b1
YM
55642010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5565
5566 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5567 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5568 windows above internal border.
5569
5570 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5571 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5572 windows above internal border.
5573
5574 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5575 tool bar windows specially.
5576
5577 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5578
5579 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5580 specially.
5581 (XTflash): Take account of menu bar height.
5582
5583 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5584 specially.
5585
5075d853
JD
55862010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5587
ac146f82 5588 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5589 also be true before we can return early (bug #5339).
5590
474217c8
CY
55912010-01-06 David Reitter <david.reitter@gmail.com>
5592
5593 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5594 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5595 (Bug#3233).
5596
c0e6d47d
JD
55972010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5598
d0cf45b7
JD
5599 * font.c (font_open_entity): Enable chache and call cached_font_ok
5600 for the driver if defined.
5601 (QCuser_spec): New symbol.
5602 (font_spec_from_name): Save name as user-spec.
5603 (font_load_for_lface): Keep user-spec instead of name.
5604 (font_open_by_name): Save name as user-spec.
5605 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5606 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5607
5608 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5609 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5610 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5611
5612 * font.h (struct font_driver): Add cached_font_ok.
5613
c0e6d47d
JD
5614 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5615
7c583cd8
JD
56162010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5617
5618 * xterm.c (x_new_font): Move code for setting rows/cols before
5619 resizing ...
ac146f82 5620 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5621
5622 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5623 (xg_frame_resized, xg_frame_set_char_size):
5624 Call xg_clear_under_internal_border.
7c583cd8 5625 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5626
03f77f0a
CY
56272010-01-05 Chong Yidong <cyd@stupidchicken.com>
5628
5629 * keyboard.c (read_key_sequence): Catch keyboard switch after
5630 making a new tty frame (Bug#5095).
5631
2a1ef5be
KH
56322010-01-05 Kenichi Handa <handa@m17n.org>
5633
5634 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5635
e3eb1dae
SM
56362010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5637
5638 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5639 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5640 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5641
777013f2
MA
56422010-01-03 Michael Albinus <michael.albinus@gmx.de>
5643
5644 * dbusbind.c (xd_add_watch): Improve debug message.
5645 (xd_remove_watch): Improve debug message. If DATA is the session
5646 bus, unset D-Bus session environment.
5647 (Fdbus_init_bus): Pass the bus as argument to
5648 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5649
8932b1c2
CY
56502010-01-01 Chong Yidong <cyd@stupidchicken.com>
5651
87231e2c
CY
5652 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5653
4801c5fa
CY
5654 * lread.c (syms_of_lread): Make it clearer that these are the
5655 names of loaded files (Bug#5068).
5656
8932b1c2
CY
5657 * eval.c (run_hook_with_args): Handle the case where the global
5658 value has the obsolete single-function form (Bug#5026).
5659
11e3c684
CY
56602009-12-27 Chong Yidong <cyd@stupidchicken.com>
5661
5662 * minibuf.c (Fall_completions): Minor optimization.
5663
5b28ce35
EZ
56642009-12-26 Eli Zaretskii <eliz@gnu.org>
5665
5ce6e4f4
JB
5666 * .gdbinit (pgx): Fix display of composite glyphs.
5667 Display cmp.from and cmp.to as well.
5668 (pitx): Fix last change.
5b28ce35 5669
bcffff46
KH
56702009-12-25 Kenichi Handa <handa@m17n.org>
5671
5672 * composite.h (composition_adjust_point): Update prototype.
5673
5674 * composite.c (composition_reseat_it): Don't make a composition
5675 spanning over point.
5676 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5677 composable characters.
5678 (composition_adjust_point): New arg NEW_PT. Callers changed.
5679
5680 * keyboard.c (command_loop_1): Force redisplay if the last point
5681 was within a composition.
5682 (adjust_point_for_property): Don't adjust point for automatic
5683 composition when called after buffer modification.
5684
3f670e9a
EZ
56852009-12-19 Eli Zaretskii <eliz@gnu.org>
5686
5ce6e4f4
JB
5687 * .gdbinit (pitx): Don't use enum names, use their values.
5688 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5689 (pgx): Don't use enum names, use their values.
5690 (pitmethod): New helper command.
5691 (pitx): Use it to display iteration method.
5692 (pgrowit): New command.
5693
ad903955
EZ
5694 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5695
3f670e9a
EZ
5696 Update dependencies in Makefile.in.
5697
5698 * Makefile.in (alloc.o): Depend on termhooks.h.
5699 (atimer.o): Depend on blockinput.h.
5700 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5701 and frame.h.
5702 (callint.o): Depend on systime.h, coding.h, and composite.h.
5703 (callproc.o): Depend on buffer.h.
5704 (casefiddle.o): Don't depend on charset.h.
5705 (casetab.o): Depend on character.h.
5706 (ccl.o): Depend on composite.h.
5707 (chartab.o): Depend on ccl.h.
5708 (cm.o): Depend on dispextern.h.
5709 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5710 (coding.o): Don't depend on $(INTERVALS_H).
5711 (composite.o): Don't depend on dispextern.h explicitly (it's in
5712 $(INTERVALS_H)). Depend on ccl.h.
5713 (data.o): Depend on systime.h, coding.h, composite.h,
5714 dispextern.h, font.h, and ccl.h.
5715 (dired.o): Depend on composite.h.
5716 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5717 composite.h (it's in $(INTERVALS_H)).
5718 (doc.o): Depend on systime.h, coding.h, and composite.h.
5719 (editfns.o): Don't depend explicitly on dispextern.h.
5720 (emacs.o): Depend on frame.h and coding.h.
5721 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5722 (fileio.o): Depend on frame.h and commands.h. Don't depend
5723 explicitly on dispextern.h.
5724 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5725 composite.h.
5726 (fns.o): Don't depend on termhooks.h.
5727 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5728 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5729 coding.h, $(INTERVALS_H), window.h, xterm.h.
5730 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5731 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5732 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5733 fontset.h, ccl.h, and ftfont.h.
5734 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5735 (gtkutil.o): Depend on dispextern.h and composite.h.
5736 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5737 termhooks.h, and ccl.h.
5738 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5739 (intervals.o): Depend on systime.h and coding.h.
5740 (keyboard.o): Depend on composite.h and coding.h.
5741 (keymap.o): Depend on coding.h and frame.h.
5742 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5743 (macros.o): Depend on systime.h, coding.h, and composite.h.
5744 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5745 and atimer.h.
5746 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5747 dispextern.h explicitly.
0b5397c2
SM
5748 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5749 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5750 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5751 (regex.o): Don't depend on charset.h.
5752 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5753 (search.o): Don't depend explicitly on composite.h.
5754 (sound.o): Depend on atimer.h and systime.h.
5755 (syntax.o): Don't depend explicitly on composite.h.
5756 (sysdep.o): Depend on coding.h and composite.h.
5757 (term.o): Depend on xterm.h and buffer.h.
5758 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5759 (textprop.o): Don't depend on dispextern.h explicitly.
5760 (undo.o): Depend on dispextern.h.
5761 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5762 dispextern.h and composite.h explicitly.
5763 (xdisp.o): Depend on ccl.h.
5764 (xfaces.o): Depend on coding.h and ccl.h.
5765 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5766 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5767 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5768 ftfont.h.
5769 (xgselect.o): New dependency.
5770 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5771 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5772 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5773 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5774 (xsmfns.o): Depend on frame.h and dispextern.h.
5775 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5776 sysselect.h.
5777
7a6f7fea
AS
57782009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5779
5780 * font.c (Fclear_font_cache): Pass correct cache argument to
5781 font_clear_cache.
5782
f4c21026
AS
57832009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5784
5785 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5786 twice.
5787
f7ab0997
CY
57882009-12-15 Chong Yidong <cyd@stupidchicken.com>
5789
5790 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5791 calling file-remote-p. Reported by Jim Meyering.
5792
fa8e045a
MA
57932009-12-15 Michael Albinus <michael.albinus@gmx.de>
5794
5795 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5796 avoid compiler warnings. (Bug #5217)
fa8e045a 5797
a63dba42
KH
57982009-12-14 Kenichi Handa <handa@m17n.org>
5799
5800 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5801 in 8-bit encoding.
5802
5ce6e4f4 58032009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5804
5805 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5806 tooltip windows.
5807
223e5fc6
JD
58082009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5809
36acb2a7
JD
5810 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5811 Xatom_net_window_type.
5812
5813 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5814 Xatom_net_window_type.
5815
b8f00677
JD
5816 * xterm.c (my_log_handler): New function.
5817 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5818 so we can filter out buggy messages. (Bug #5120).
b8f00677 5819
e5f0bc9a
JD
5820 * xterm.c (xg_scroll_callback): Parameter list changed,
5821 use parameter GtkScrollType to determine scroll/line/page.
5822 Only allow dragging if a button < 4 is grabbed (bug #5177).
5823 (xg_end_scroll_callback): New function.
5824 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5825 xg_create_scroll_bar.
5826
5827 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5828 (scroll_end_callback): Remove.
5829 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5830 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5831 bug #5177.
e5f0bc9a
JD
5832 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5833 bug #5177.
5834
5835 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5836 (xg_create_scroll_bar): Add GCallback end_callback.
5837
223e5fc6
JD
5838 * xftfont.c (QClcdfilter): New variable.
5839 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5840 (syms_of_xftfont): Initialize QClcdfilter.
5841
3c055b77
JD
58422009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5843
5844 * xsettings.c (struct xsettings): Add member seen.
5845 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5846 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5847 (apply_xft_settings): Only update Xft settings with what member seen
5848 indicates as new.
5849
05fe33ff
EZ
58502009-12-12 Eli Zaretskii <eliz@gnu.org>
5851
c4cc8b9a 5852 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5853 (struct glyph): Use EMACS_INT for charpos.
5854 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5855 region_beg_charpos, region_end_charpos,
5856 redisplay_end_trigger_charpos, and also for
5857 iterator_stack_entry.end_charpos and
5858 iterator_stack_entry.stop_charpos.
5859
e8d7886a
JD
58602009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5861
5ce6e4f4 5862 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5863 (xg_create_scroll_bar): Call scroll_end_callback on button release
5864 event (bug #5177).
5865 (xg_event_is_for_scrollbar): != replaced with ==.
5866
d0db2ec8
KH
58672009-12-12 Kenichi Handa <handa@m17n.org>
5868
5869 * ftfont.c (struct ftfont_info): New member matrix.
5870 (ftfont_open): Setup xftfont_info->matrix.
5871 (MFLTFontFT): New member matrix.
5872 (FLOOR, CEIL, ROUND): New macros.
5873 (ftfont_get_metrics): Handle matrix transformation.
5874 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5875
5876 * xftfont.c (struct xftfont_info): New member matrix.
5877 (xftfont_open): Setup xftfont_info->matrix.
5878
58792009-12-10 Kenichi Handa <handa@m17n.org>
5880
5881 * xdisp.c (append_space_for_newline): Consider face-remapping.
5882
2cc7b62f
AS
58832009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5884
b87dd913
AS
5885 * xsettings.c: Include "keyboard.h".
5886
eba5eb94
AS
5887 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5888
2cc7b62f
AS
5889 Fix implicit function declarations.
5890 * cmds.c: Include "frame.h".
5891 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5892 * frame.h: Move declaration of delete_frame outside of
5893 HAVE_WINDOW_SYSTEM.
5894
a4ef73c8
CY
58952009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5896
5897 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5898
5899 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5900 GTK builds.
5901
944a300c
AS
59022009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5903
5904 * unexelf.c (unexec): Don't search for .data twice.
5905
022eef62
CY
59062009-12-05 Chong Yidong <cyd@stupidchicken.com>
5907
426ac949
CY
5908 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5909 if push failed.
5910 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5911 of push_display_prop (Bug#5000).
5912
022eef62
CY
5913 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5914 value of font_list_entities (Bug#5085).
5915
be95bee9
JB
59162009-12-04 Juanma Barranquero <lekktu@gmail.com>
5917
5918 Fix `string-to-number' to deal consistently with integers and floats.
5919 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5920 trailing characters, not just whitespace.
5921 (read1): Pass new arg 0 to keep old behavior.
5922 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5923 trailing chars, as it is already done for integers. Doc fixes.
5924 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5925
24c2d7ce
EZ
59262009-12-04 Eli Zaretskii <eliz@gnu.org>
5927
0b5397c2
SM
5928 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5929 Delete unused enumeration value.
24c2d7ce 5930
7e694795
EZ
59312009-12-03 Eli Zaretskii <eliz@gnu.org>
5932
5933 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5934
84b31826
SM
59352009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5936
5937 * process.c (Fmake_network_process): Fix up the tests for
5938 "connectionless socket", so they DTRT for seqpacket sockets as well.
5939
f00c449b
SM
59402009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5941
5942 * process.c (Qseqpacket): New symbol.
5943 (HAVE_SEQPACKET): New macro.
5944 (Fmake_network_process): Accept new :type `seqpacket'.
5945 (init_process): Add `seqpacket' feature when applicable.
5946 (syms_of_process): Initialize Qseqpacket.
5947
8096a0ff
YM
59482009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5949
5950 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5951 if entity is Qnil.
5952
3e0de07f
SM
59532009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5954
5955 * print.c (print_preprocess): Preprocess the key_and_value table of
5956 hashtables, even tho they're "hidden" (bug#5082).
5957
abeafb2a
JD
59582009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5959
5960 * frame.c (frame_make_pointer_invisible)
5961 (frame_make_pointer_visible): Declare f before statements.
5962
4bf47195
EZ
59632009-11-28 Eli Zaretskii <eliz@gnu.org>
5964
5965 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5966 omitted dependencies on lisp.h.
5967
c525b3f2
JD
59682009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5969
ece2d4ed
JD
5970 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5971 is NULL.
5972
5973 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5974
5975 * frame.c (frame_make_pointer_invisible)
3e0de07f 5976 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5977 frame.
5978
c525b3f2
JD
5979 * search.c (simple_search): Remove warning by making *p const.
5980
2f00e299
DN
59812009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5982
5983 * xdisp.c (power_letter): Remove duplicate const.
5984
084b049b
JD
59852009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5986
a1fadc6f
JD
5987 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5988
5ce6e4f4 5989 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5990 defaults (bug #5025).
5991
28259cac
SM
59922009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5993
5994 * insdel.c (adjust_markers_for_delete): Move it in the
5995 right direction! (bug#4803)
5996
e8e14166
YM
59972009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5998
5999 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6000
6001 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6002
86677b58
GM
60032009-11-24 Glenn Morris <rgm@gnu.org>
6004
6005 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6006
581e51e8
JD
60072009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6008
cfc86c7a
JD
6009 * Makefile.in: Must create deps for ecrt0.o in its rule.
6010
581e51e8
JD
6011 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6012 because that is what Gtk+ font dialog understands.
6013
6014 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6015 of Fcopy_sequence.
6016 (font_open_by_name): Put name given into QCname for font-object returned.
6017
6018 * frame.c (x_set_font): Save original font name as frame parameter
6019 font-parameter.
6020
6021 * xsettings.c (set_default_xft_settings): New function.
6022 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6023 is found.
6024
8b264ecb
AS
60252009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6026
6027 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6028 searching backwards through multibyte buffer.
6029
872870b2
JD
60302009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6031
6032 * xterm.c: #include xgselect.h.
6033 (x_initialize): Call xgselect_initialize.
6034
6035 * xsettings.c (something_changedCB): C++ comments => C comments.
6036 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6037 does that now.
6038
6039 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6040 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6041 (scroll_bar_button_cb): Remove.
5ce6e4f4 6042 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6043 event.
6044 (xg_create_scroll_bar): Don't bind button-press-event and
6045 button-release-event.
6046
6047 * process.c: Include xgselect.h if defined (USE_GTK) ||
6048 defined (HAVE_GCONF).
6049 (wait_reading_process_output): Call xg_select for the same condition.
6050
6051 * xgselect.c (xg_select): New function to better integrate with
6052 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6053
6054 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6055
6056 * Makefile.in (XOBJ): Add xgselect.o.
6057
62a6e103
AS
60582009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6059
0b5397c2
SM
6060 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6061 Remove ignored second argument. All callers changed.
62a6e103
AS
6062 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6063 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6064 * xdisp.c (string_char_and_length): Likewise.
6065
b0ca0f33
DN
60662009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6067
6068 * xterm.c (x_new_font):
6069 * print.c (print_object):
6070 * cmds.c (Fself_insert_command): Move declarations before statements.
6071
dd5a6279
CY
60722009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6073
6074 * s/cygwin.h: Remove unneeded linker flags.
6075
4a8e097d
JD
60762009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6077
0d1d0d26
JD
6078 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6079
6080 * xsettings.h: Declare xsettings_get_system_font.
6081
6082 * xsettings.c (xsettings_get_system_font): New function.
6083 (init_gconf): No use initiating gconf unless we have Xft also.
6084 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6085 HAVE_GCONF.
6086
4a8e097d
JD
6087 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6088 add a blank entry so it doesn't collapse into nothing.
6089
8ab1650e
SM
60902009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6091
6092 * lread.c (Funintern): Comment out last change.
6093
82c602f0
RS
60942009-11-19 Richard Stallman <rms@gnu.org>
6095
6096 * lread.c (Funintern): Error if symbol is t or nil.
6097
87e32266
SM
60982009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6099
6100 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6101 representation of Lisp integers.
6102 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6103
1b9ac145
AS
61042009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6105
6106 * lisp.h: Remove declaration of Ffont_get_system_font.
6107 * xfns.c: Move include of "xsettings.h".
6108 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6109
dfb3c4c6
JD
61102009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6111
87e32266
SM
6112 * xsettings.c (something_changedCB, Ffont_get_system_font):
6113 Check use_system_font.
dfb3c4c6
JD
6114 (syms_of_xsettings): DEFVAR font-use-system-font.
6115
9370c1d8
AS
61162009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6117
25fe851a
AS
6118 * xfns.c (x_default_font_parameter): Remove dead assignment.
6119
9370c1d8
AS
6120 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6121
637fa988
JD
61222009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6123
87e32266 6124 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6125 not have FC_LCD_*. #define them if not there.
a6eb20d8 6126
87e32266 6127 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6128
637fa988
JD
6129 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6130
6131 * xterm.c (handle_one_xevent): Call xft_settings_event for
6132 ClientMessage, PropertyNotify and DestroyNotify.
6133 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6134 Call xsettings_initialize.
6135
6136 * xftfont.c (xftfont_fix_match): New function.
6137 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6138 Call xftfont_fix_match after XftFontMatch.
6139
6140 * xfont.c (xfont_driver): Initialize all members.
6141
87e32266
SM
6142 * xfns.c (x_default_font_parameter):
6143 Try font from Ffont_get_system_font.
637fa988
JD
6144 Do not get font from x_default_parameter if we got one from
6145 Ffont_get_system_font.
87e32266 6146 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6147
6148 * w32font.c (w32font_driver): Initialize all members.
6149
6150 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6151
6152 * lisp.h: Declare syms_of_xsettings.
6153
87e32266
SM
6154 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6155 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6156
6157 * ftfont.c (ftfont_filter_properties): New function.
6158
6159 * frame.c (x_set_font): Remove unused variable lval.
6160
87e32266 6161 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6162
6163 * font.c (font_put_extra): Don't return if val is nil, it means
6164 boolean option is off.
6165 (font_parse_fcname): Collect all extra properties in extra_props
6166 and call filter_properties for all drivers with extra_props and
6167 font as parameter.
87e32266
SM
6168 (font_open_entity): Do not use cache, it does not pick up new
6169 fontconfig settings like hinting.
637fa988
JD
6170 (font_load_for_lface): If spec had a name in it, store it in entity.
6171
a73f9c9d 6172 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6173
6174 * config.in: HAVE_GCONF is new.
6175
6176 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6177 xsettings.o is new.
6178
5a942932
KH
61792009-11-17 Kenichi Handa <handa@m17n.org>
6180
6181 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6182 back to the default font in case that no suitable font is found.
6183
b7c7a4d1
SM
61842009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6185
6186 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6187 Suggested by Chad Brown <yandros@mit.edu>.
6188 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6189
072f1e39
JD
61902009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6191
6192 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6193
5d1e70a2
AS
61942009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6195
87e32266 6196 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6197
a53cfbe5
JD
61982009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6199
473a99b7
JD
6200 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6201 has a parent.
6202
a53cfbe5 6203 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6204 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6205
6206 * config.in: Generated (AUTO_DEPEND).
6207
f04bb9b2
MA
62082009-11-13 Michael Albinus <michael.albinus@gmx.de>
6209
b7c7a4d1 6210 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6211 Vdbus_registered_functions_table, because it contains also
6212 properties. Fix docstring.
b7c7a4d1 6213 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6214
8f11f7ec
SM
62152009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6216
6217 * alloc.c (mark_object): Don't reprocess marked strings.
6218 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6219 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6220
8a605fe8
KH
62212009-11-13 Kenichi Handa <handa@m17n.org>
6222
8f11f7ec 6223 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6224 semantics of Vword_combining_categories.
6225 (Vword_combining_categories): Describe the slight change of the
6226 semantics.
6227
241c4680
EZ
62282009-11-13 Eli Zaretskii <eliz@gnu.org>
6229
6230 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6231
6232 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6233
5d58e44c
SM
62342009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6235
6236 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6237
5e13f9d3
JB
62382009-11-12 Juanma Barranquero <lekktu@gmail.com>
6239
6240 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6241
cf54c754
DR
62422009-11-11 David Reitter <david.reitter@gmail.com>
6243
6244 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6245 variables to fix 2009-11-09 change.
6246
a4ada374
DN
62472009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6248
91433552
DN
6249 * process.c (ifflag_def): Make flag_sym constant.
6250 (Fnetwork_interface_info): Use a constant pointer.
6251 (ifflag_table):
6252 * xfns.c (cursor_bits):
6253 * xdisp.c (power_letter):
6254 * termcap.c (speeds, esctab):
6255 * sysdep.c (baud_convert):
6256 * keyboard.c (lispy_accent_codes, modifier_names):
6257 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6258 (jpeg_format, tiff_format, gif_format, svg_format)
6259 (interlace_start, interlace_increment, gs_format):
6260 * gtkutil.c (separator_names):
6261 * fringe.c (swap_nibble):
6262 * fns.c (base64_value_to_char, base64_char_to_value):
6263 * fileio.c (make_temp_name_tbl):
6264 * coding.c (suffixes): Make constant.
6265
f4265f6c
DN
6266 * frame.c (make_initial_frame):
6267 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6268 build_string.
6269 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6270
04420943
DN
6271 * s/freebsd.h:
6272 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6273
0a5d24ae
DN
6274 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6275 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6276
a4ada374
DN
6277 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6278 * xterm.c (syms_of_xterm):
6279 * xfaces.c (syms_of_xfaces):
6280 * xdisp.c (syms_of_xdisp):
6281 * lread.c (syms_of_lread):
6282 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6283 build_string.
91433552 6284
a4ada374
DN
6285 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6286
af98fc7f
SM
62872009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6288
8ab1650e 6289 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6290
e90292a9
JD
62912009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6292
6293 * keyboard.h: Declare timer_check.
6294
6295 * keyboard.c (timer_check_2): New function that does what the old
6296 timer_check did.
6297 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6298 returned, i.e. don't return -1 with timers pending.
6299
6300 * process.c: Remove extern declaration of timer_check.
6301
6302 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6303 even if timer_check returned -1.
6304
af98fc7f
SM
6305 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6306 xg_dialog_data.
e90292a9
JD
6307 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6308 the event loop.
6309 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6310 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6311 Destroy the dialog after xg_dialog_run.
6312
045b83c0
SM
63132009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6314
6315 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6316
1fb99a3a
JD
63172009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6318
6319 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6320
04e452cb
JB
63212009-11-09 Juanma Barranquero <lekktu@gmail.com>
6322
6323 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6324
ef7417fd
SM
63252009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6326
6327 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6328 w32menu.c, and nsmenu.m.
6329 Simplify the obsolete case where position is nil.
6330 (cleanup_popup_menu): New function, moved from nsmenu.m.
6331 (struct skp): Remove slot `notreal'.
6332 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6333 adjust callers.
6334 (single_menu_item): Adjust call to parse_menu_item.
6335 (syms_of_menu): Defsubr x-popup-menu.
6336 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6337 (keymap_panes): Don't export any more.
6338 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6339 (xmenu_show): Declare.
6340 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6341 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6342 * keyboard.h (parse_menu_item): Update declaration.
6343 * xmenu.c (Fx_popup_menu): Remove.
6344 (syms_of_xmenu): Don't defsubr x-popup-menu.
6345 * w32menu.c (Fx_popup_menu): Remove.
6346 (syms_of_w32menu): Don't defsubr x-popup-menu.
6347 * nsmenu.m (cleanup_popup_menu): Remove.
6348 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6349 moved to menu.c's Fx_popup_menu.
6350 (Fx_popup_menu): Remove.
6351 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6352 menu_items (it's done in menu.c already).
6353
424d6179
SM
63542009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6355
6356 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6357 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6358
c0df13a6 63592009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6360
6361 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6362 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6363 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6364 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6365
2de9f71c
SM
63662009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6367
6368 Let integers use up 2 tags to give them one extra bit and thus double
6369 their range.
6370 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6371 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6372 New macros.
6373 (enum Lisp_Type): Use them. Give explicit values.
6374 (Lisp_Type_Limit): Remove.
6375 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6376 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6377 Pay attention to USE_2_TAGS_FOR_INTS.
6378 (INTEGERP): Use LISP_INT_TAG_P.
6379 * fns.c (internal_equal): Simplify the default case.
6380 (sxhash): Use case_Lisp_Int.
6381 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6382 any more.
6383 (Ftype_of): Use case_Lisp_Int.
6384 (store_symval_forwarding): Take into account the fact that Ints can
6385 now have more than one tag.
6386 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6387 (buffer_slot_type_mismatch):
2de9f71c
SM
6388 * xfaces.c (face_attr_equal_p):
6389 * print.c (print_object):
6390 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6391 Use case_Lisp_Int.
6392
323637a2
EZ
63932009-11-06 Eli Zaretskii <eliz@gnu.org>
6394
7ac65b38
EZ
6395 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6396
323637a2
EZ
6397 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6398 warning.
6399
e511451f
JD
64002009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6401
6402 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6403
6404 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6405
6406 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6407 ButtonPressRelease and MotionNotify (bug#4870).
6408
5e2327cf
DN
64092009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6410
5adc433e
DN
6411 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6412
d67b4f80
DN
6413 * xterm.c (syms_of_xterm):
6414 * xselect.c (syms_of_xselect):
6415 * xmenu.c (syms_of_xmenu):
6416 * xfns.c (syms_of_xfns):
6417 * xfaces.c (syms_of_xfaces):
6418 * xdisp.c (syms_of_xdisp):
6419 * window.c (syms_of_window):
6420 * w32fns.c (syms_of_w32fns):
6421 * undo.c (syms_of_undo):
6422 * textprop.c (syms_of_textprop):
6423 * terminal.c (syms_of_terminal):
6424 * syntax.c (syms_of_syntax):
6425 * sound.c (syms_of_sound):
6426 * search.c (syms_of_search):
6427 * print.c (syms_of_print):
6428 * minibuf.c (syms_of_minibuf):
6429 * macros.c (syms_of_macros):
6430 * keymap.c (syms_of_keymap, initial_define_key)
6431 (initial_define_lispy_key):
6432 * keyboard.c (syms_of_keyboard):
6433 * insdel.c (syms_of_insdel):
6434 * image.c (syms_of_image):
6435 * fringe.c (syms_of_fringe):
6436 * frame.c (syms_of_frame):
6437 * fontset.c (syms_of_fontset):
6438 * fns.c (syms_of_fns):
6439 * fns.c (syms_of_fns):
6440 * fileio.c (syms_of_fileio):
6441 * fileio.c (syms_of_fileio):
6442 * eval.c (syms_of_eval):
6443 * doc.c (syms_of_doc):
6444 * dispnew.c (syms_of_display):
6445 * dired.c (syms_of_dired):
6446 * dbusbind.c (syms_of_dbusbind):
6447 * data.c (syms_of_data):
6448 * composite.c (syms_of_composite):
6449 * coding.c (syms_of_coding):
6450 * cmds.c (syms_of_cmds):
6451 * charset.c (define_charset_internal, syms_of_character):
6452 * ccl.c (syms_of_ccl):
6453 * category.c (syms_of_category, init_category_once):
6454 * casetab.c (syms_of_casetab):
6455 * casefiddle.c (syms_of_casefiddle):
6456 * callint.c (syms_of_callint):
6457 * bytecode.c (syms_of_bytecode):
6458 * buffer.c (keys_of_buffer, syms_of_buffer):
6459 * alloc.c (syms_of_alloc):
6460 * process.c (syms_of_process, init_process):
6461 * lread.c (syms_of_lread, init_obarray):
6462 * font.c (build_style_table):
6463 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6464 intern_c_string, calls to make_pure_string with
6465 make_pure_c_string. Use pure_cons instead of Fcons.
6466
5e2327cf
DN
6467 * process.c (socket_options): Make it const.
6468 (set_socket_option, init_process): Use a const pointer.
6469
6470 * lread.c (intern_c_string): New function.
6471 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6472 (defvar_int): Uset it. Make the name const char*.
6473
6474 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6475 (defvar_int): Update prototypes.
6476 (DEFUN, EXFUN): Support for prototypes is now required.
6477 (intern_c_string): New prototype.
6478 (struct Lisp_Subr): Make symbol_name constant.
6479
6480 * font.c (struct table_entry): Remove unused member. Make NAMES
6481 constant.
6482 (weight_table, slant_table, width_table): Make constant.
6483
6484 * emacs.c (struct standard_args): Make name and longname constant.
6485
6486 * character.h (DEFSYM): Use intern_c_string.
6487
a56eaaef
DN
64882009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6489
6490 * alloc.c (make_pure_c_string): New function.
6491
6492 * eval.c (Fautoload): Purecopy all arguments.
6493
f6a07420
KH
64942009-11-05 Kenichi Handa <handa@m17n.org>
6495
6496 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6497 the buffer in case of replace.
6498
5d28d4b1
DN
64992009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6500
6501 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6502
b349d111
SM
65032009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6504
d528b1ce
SM
6505 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6506 when applicable (bug#4851).
6507
b349d111
SM
6508 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6509 (P_): Support for prototypes is now required.
6510
c38eb027
CY
65112009-10-31 Chong Yidong <cyd@stupidchicken.com>
6512
6513 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6514 (Bug#4827).
6515
0405f8d9
EZ
65162009-10-30 Eli Zaretskii <eliz@gnu.org>
6517
d528b1ce 6518 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6519
ca0a881a
DN
65202009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6521
6522 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6523
d528b1ce
SM
6524 * lread.c (Fload): Purecopy the file name when building
6525 Vpreloaded_file_list.
ca0a881a 6526
47e0e0e4
JR
65272009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6528
6529 * w32fns.c (syms_of_w32fns): Change default value of
6530 w32-scroll-lock-modifier to nil. (Bug#2827)
6531
057bce6f
JB
65322009-10-26 Juanma Barranquero <lekktu@gmail.com>
6533
782a943e 6534 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6535
242bc74c
AS
65362009-10-26 Andreas Schwab <schwab@redhat.com>
6537
6538 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6539
522d013a
JB
65402009-10-26 Juanma Barranquero <lekktu@gmail.com>
6541
6542 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6543 For delta < 0, skip check that only makes sense when the mini-window
6544 is going to be enlarged. (Bug#4534)
6545
18060980
CY
65462009-10-25 Chong Yidong <cyd@stupidchicken.com>
6547
6548 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6549 string in menu maps (Bug#4471).
6550
fec8f0fe
CY
65512009-10-24 Chong Yidong <cyd@stupidchicken.com>
6552
6553 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6554 FRAME_NS_VIEW on terminal frames (Bug#4765).
6555
10d66ec0
AS
65562009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6557
1cae01f7
AS
6558 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6559 DBUS_TYPE_UINTnn separately to get proper sign extension.
6560
58a12889
AS
6561 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6562 can properly handle unsigned types.
d528b1ce 6563 (make_uid, make_gid): Remove.
58a12889 6564
987c9327
AS
6565 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6566 types again.
6567
522d013a 6568 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6569 (system_process_attributes): Likewise.
6570
905a9ed3
DN
65712009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6572
6573 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6574
6575 * eval.c (Fautoload): Purecopy the filename. Simplify.
6576
6577 * category.c (Fdefine_category): Purecopy docstring.
6578
a599b3e8
AS
65792009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6580
7b792fc9
AS
6581 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6582
a599b3e8
AS
6583 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6584
b35ac83e
CY
65852009-10-23 Chong Yidong <cyd@stupidchicken.com>
6586
6587 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6588 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6589 (Bug#4775).
6590
e8903e00
SM
65912009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6592
6593 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6594 (init_fileio_once):
6595 * lisp.h (init_fileio_once): Remove.
6596 * emacs.c (main): Don't call init_fileio_once.
6597
8f43cbf3
DN
65982009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6599
6600 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6601
26898943
AS
66022009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6603
6604 * doprnt.c (doprnt): Fix overflow check.
6605
5c646d5a
JD
66062009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6607
3132a7ea
JD
6608 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6609
5c646d5a
JD
6610 * xterm.h (x_wait_for_event): Declare it.
6611
6612 * xterm.c (pending_event_wait): New variable.
6613 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6614 see pending_event_wait.eventtype.
6615 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6616 (x_new_font): Call change_frame_size with new rows/columns before we
6617 try to resize the frame.
5c646d5a 6618 (x_wait_for_event): New function.
d528b1ce
SM
6619 (x_set_window_size_1): Don't change gravity unless change_gravity
6620 is set.
5c646d5a
JD
6621 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6622 don't change frame size, instead wait for the ConfigureNotify.
6623 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6624 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6625 (x_initialize): Initialize pending_event_wait.
6626
6627 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6628 size.
6629
6630 * widget.c (EmacsFrameSetValues): Add comment.
6631 (EmacsFrameSetCharSize): Just call x_set_window_size.
6632
6633 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6634 x_wait_for_event.
d528b1ce 6635 (flush_and_sync): Remove again.
5c646d5a
JD
6636 (xg_get_font_name): Suggest monospace if no previous font is known.
6637
e9c1637d
SM
66382009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6639
6640 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6641 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6642
5a72cccb
YM
66432009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6644
6645 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6646 processing pending events when event is filtered for input method.
ab04798f 6647 (Bug#3681)
5a72cccb 6648
2629aa37
JB
66492009-10-20 Juanma Barranquero <lekktu@gmail.com>
6650
6651 * fns.c: Add #endif accidentally removed in previous change.
6652
c3417a74
DN
66532009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6654
6655 * fns.c: Remove code for unsupported system: MAC_OS.
6656 * image.c: Likewise. Include setjmp.h.
6657
9685cef2
JD
66582009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6659
6660 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6661 pixel -1 (bug #4742).
6662
d7306fe6
DN
66632009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6664
019d2c4c
DN
6665 * process.c (create_pty): Remove conditionals for no longer
6666 supported systems: UNIPLUS and RTU.
6667
ee6bacd4
DN
6668 * xterm.c:
6669 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6670
d7306fe6
DN
6671 * alloc.c: Do not define struct catchtag.
6672 * eval.c: Move struct catchtag definition ...
6673 * lisp.h: ... here.
6674
6675 * image.c: Move png.h #include earlier to avoid warnings.
6676
6677 * xterm.c:
6678 * xsmfns.c:
6679 * xselect.c:
6680 * xrdb.c:
6681 * xmenu.c:
6682 * xftfont.c:
6683 * xfont.c:
6684 * xfns.c:
6685 * xfaces.c:
6686 * xdisp.c:
6687 * window.c:
6688 * widget.c:
6689 * w32xfns.c:
6690 * w32uniscribe.c:
6691 * w32term.c:
6692 * w32select.c:
6693 * w32reg.c:
6694 * w32proc.c:
6695 * w32menu.c:
6696 * w32inevt.c:
6697 * w32heap.c:
6698 * w32font.c:
6699 * w32fns.c:
6700 * w32console.c:
6701 * w32.c:
6702 * w16select.c:
6703 * vm-limit.c:
6704 * unexsol.c:
6705 * unexec.c:
6706 * unexcw.c:
6707 * unexaix.c:
6708 * undo.c:
6709 * tparam.c:
6710 * textprop.c:
6711 * terminfo.c:
6712 * terminal.c:
6713 * termcap.c:
6714 * term.c:
6715 * syntax.c:
6716 * sound.c:
6717 * sheap.c:
6718 * search.c:
6719 * scroll.c:
6720 * region-cache.c:
6721 * regex.c:
6722 * ralloc.c:
6723 * process.c:
6724 * print.c:
b024548b
DN
6725 * nsterm.m:
6726 * nsselect.m:
6727 * nsmenu.m:
6728 * nsimage.m:
6729 * nsfont.m:
6730 * nsfns.m:
d7306fe6
DN
6731 * msdos.c:
6732 * minibuf.c:
6733 * menu.c:
6734 * marker.c:
6735 * macros.c:
6736 * keymap.c:
6737 * keyboard.c:
6738 * intervals.c:
6739 * insdel.c:
6740 * indent.c:
6741 * gtkutil.c:
6742 * ftxfont.c:
6743 * ftfont.c:
6744 * fringe.c:
6745 * frame.c:
6746 * fontset.c:
6747 * font.c:
6748 * fns.c:
6749 * floatfns.c:
6750 * filelock.c:
6751 * fileio.c:
6752 * emacs.c:
6753 * editfns.c:
6754 * dosfns.c:
6755 * doprnt.c:
6756 * doc.c:
6757 * dispnew.c:
6758 * dired.c:
6759 * dbusbind.c:
6760 * data.c:
6761 * composite.c:
6762 * coding.c:
6763 * cmds.c:
6764 * cm.c:
6765 * chartab.c:
6766 * charset.c:
6767 * character.c:
6768 * ccl.c:
6769 * category.c:
6770 * casetab.c:
6771 * casefiddle.c:
6772 * callproc.c:
6773 * callint.c:
6774 * bytecode.c:
6775 * buffer.c:
6776 * atimer.c: Include setjmp.h. (Bug#4643)
6777
fd5f21e6
SM
67782009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6779
4c0354d7
SM
6780 Remove leftover table unibyte_to_multibyte_table.
6781 * character.c (unibyte_to_multibyte_table): Remove.
6782 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6783 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6784 * character.h (UNIBYTE_TO_CHAR): New macro.
6785 (MAKE_CHAR_MULTIBYTE): Use it.
6786 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6787 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6788 (message_dolog, set_message_1):
6789 * search.c (Freplace_match):
6790 * editfns.c (Fcompare_buffer_substrings):
6791 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6792 (concat):
6793 * insdel.c (copy_text, count_size_as_multibyte):
6794 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6795 * term.c (produce_glyphs):
6796 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6797 * regex.c (RE_CHAR_TO_MULTIBYTE):
6798 * cmds.c (internal_self_insert):
6799 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6800
fd5f21e6
SM
6801 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6802
4418646e
DN
68032009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6804
6805 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6806
35f5c1d2
JB
68072009-10-16 Juanma Barranquero <lekktu@gmail.com>
6808
6809 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6810
a0cd8f6b
AR
68112009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6812
6813 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6814 still needed under Tiger.
6815
6816 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6817
6818 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6819 __Apple__.
6820
6821 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6822
01a8d3fa
KH
68232009-10-15 Kenichi Handa <handa@m17n.org>
6824
6825 * print.c (print_object): Escape a symbol like "2E10" too.
6826
bf6c75c9 68272009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6828
6829 Cleanups and changes for 64-bit compile under Snow Leopard.
6830 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6831
6832 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6833
c5959062 6834 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6835 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6836 cast argument.
6837 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6838 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6839
6840 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6841
6842 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6843 where appropriate.
6844
6845 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6846 where appropriate.
6e4780c5
JB
6847 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6848 Use stringWithUTF8String.
bf6c75c9
AR
6849 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6850
6e4780c5
JB
6851 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6852 Add formal protocol mention to inheritance.
bf6c75c9
AR
6853 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6854
6e4780c5
JB
6855 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6856 Fix printf format.
bf6c75c9
AR
6857 (ns_query_color): Use CGFloat where appropriate.
6858 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6859 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6860 argument.
6861
3d87f118
AR
6862 * config.in (NS_HAVE_NSINTEGER): Drop.
6863
a95c8102
AR
6864 * dbusbind.c (dbus-method-return-internal)
6865 (dbus-method-error-internal): Use long format in printf, and cast
6866 argument.
6867
6868 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6869 in printf, and cast argument.
6870
6873acca 6871 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6872 cast argument.
6873
9ec6f100
GM
68742009-10-11 Glenn Morris <rgm@gnu.org>
6875
6876 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6877
5be883cd
JD
68782009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6879
6880 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6881 menu bar with a small width so it doesn't enlarge the frame.
6882
d7a39b51
JB
68832009-10-08 Juanma Barranquero <lekktu@gmail.com>
6884
6885 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6886
0c2b6f8e
GM
68872009-10-06 Glenn Morris <rgm@gnu.org>
6888
6889 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6890 SOME_MACHINE_LISP (this enters indirectly via DOC).
6891
e02131a2
EZ
68922009-10-05 Eli Zaretskii <eliz@gnu.org>
6893
6894 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6895
b4744254
EZ
68962009-10-04 Eli Zaretskii <eliz@gnu.org>
6897
6898 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6899 Doc fix.
6900
dbf64827
JB
69012009-10-03 Martin Rudalics <rudalics@gmx.at>
6902
6903 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6904
e9a0aef8
MA
69052009-10-02 Michael Albinus <michael.albinus@gmx.de>
6906
d528b1ce 6907 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6908 used anymore outside fileio.c.
6909
6910 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6911
64eb2b56
JB
69122009-10-01 Juanma Barranquero <lekktu@gmail.com>
6913
6914 * lisp.h (Qdelete_directory_internal):
6915 Declare, instead of Qdelete_directory.
6916
6917 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6918
9d28c33e
SM
69192009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6920
6921 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6922
9d8f3bd9
MA
69232009-10-01 Michael Albinus <michael.albinus@gmx.de>
6924
9d28c33e 6925 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6926 Fdelete_directory. It is not a command anymore. It has no file
6927 name handler.
6928
9694740b
SM
69292009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6930
6931 * xdisp.c (get_next_display_element): Use an enum in last change.
6932
748e162f
KH
69332009-09-28 Kenichi Handa <handa@m17n.org>
6934
9694740b 6935 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6936 unibyte_display_via_language_environment in handling
6937 Vnobreak_char_display.
6938
17efd58d
AR
69392009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6940
6941 * nsterm.h (ns_app_name): New extern variable.
6942
6943 * nsterm.m (ns_app_name): New variable.
6944 (ns_term_init): Set and use it.
6945 (ns_term_shutdown): Use it.
6946
6947 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6948 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6949
6950 * nsfns.m (ns_set_name_iconic, ns_set_name)
6951 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6952 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6953
9694740b
SM
6954 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6955 Remove double-casting in client_data comparison.
31c2d412 6956
3208cb35
YM
69572009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6958
6959 * keyboard.c (make_lispy_event): Remember last wheel direction.
6960 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6961
b7d552d6
GM
69622009-09-26 Glenn Morris <rgm@gnu.org>
6963
6964 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6965 internal.elc. Add term/pc-win.elc.
6966 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6967 term/x-win.elc.
6968 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6969 term/w32-win.elc.
6970 (NS_SUPPORT): New.
6971 (lisp): Add NS_SUPPORT.
6972 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6973
4ff670a8
DR
69742009-09-25 David Reitter <david.reitter@gmail.com>
6975
6976 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6977 on Mac OS X 10.6+ (bug#4513).
6978
feabfb6c
JB
69792009-09-24 Juanma Barranquero <lekktu@gmail.com>
6980
6981 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6982 some parts of Emacs code (like font selection) don't grok them.
6983 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6984
de59072a
AS
69852009-09-24 Andreas Schwab <schwab@redhat.com>
6986
6987 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6988
a489517b
JB
69892009-09-24 Juanma Barranquero <lekktu@gmail.com>
6990
6991 * dired.c (Fdirectory_files): Fix typo in docstring.
6992
0592970c
AR
69932009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6994
6995 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6996 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6997 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6998 under GNUstep.
6999 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7000
7001 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7002 glyph advancement.
7003
48e8a88b
AR
70042009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7005
7006 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7007 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7008
7009 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7010 deleted (bug #4492).
7011
e14f0a78
AR
7012 * nsfont.m (Vns_reg_to_script): New lisp variable.
7013 (syms_of_nsfont): Declare it.
7014 (ns_registry_to_script): New function.
7015 (ns_get_req_script): Call it.
7016 (ns_findfonts): Don't give up on non-unicode registry.
7017
7018 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7019
5b650faa
SM
70202009-09-20 Tom Tromey <tromey@redhat.com>
7021
7022 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7023 batch mode (bug#4228).
7024
a489517b 70252009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7026
7027 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7028 carefully. (Bug #4339)
0bae4e09 7029
fcfe06f3
CY
70302009-09-18 Chong Yidong <cyd@stupidchicken.com>
7031
d798ba87 7032 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7033
31642728
AR
70342009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7035
7036 * emacs.c (inhibit_x_resources): Update doc string for NS.
7037 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7038 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7039
7040 * nsterm.h (ns_no_defaults): Remove.
7041
7042 * nsterm.m (ns_no_defaults): Remove.
7043 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7044 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7045 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7046 don't update the NSWindow itself.
7047 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7048 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7049
7050 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7051 ns_use_qd_smoothing.
7052
7053 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7054 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7055 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7056 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7057
8686ac71
JB
70582009-09-17 Juanma Barranquero <lekktu@gmail.com>
7059
7060 * emacs.c (inhibit_x_resources): New variable.
7061 (main) [HAVE_NS]: Don't process --quick command line option.
7062 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7063
7064 * lisp.h (inhibit_x_resources): Declare it extern.
7065
7066 * w32reg.c (x_get_string_resource):
7067 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7068
e227ba05
EZ
70692009-09-17 Eli Zaretskii <eliz@gnu.org>
7070
362654a6
JB
7071 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7072 Add lisp/term/internal.elc.
e227ba05 7073
742d40e8
SM
70742009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7075
7076 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7077 (bug#4461).
7078
005bd5a2
DN
70792009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7080
7081 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7082
7083 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7084 (OBJECTS_MACHINE): Remove, unused.
7085
f9af9719
SM
70862009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7087
7088 * frame.c (x_get_resource_string): Remove unused.
7089
0307c7d2
JD
70902009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7091
7092 * xterm.c (x_new_font): Call change_frame_size before calling
7093 x_set_window_size, in case frame size won't change.
7094
7095 * frame.c (x_set_font): Remove dead code.
7096
428b13d6
SM
70972009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7098
7099 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7100
5766c380
SM
71012009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7102
7103 * lread.c (Fload): Don't output a message after loading an obsolete
7104 package any more (done in Lisp now).
7105
2fd0161b
CY
71062009-09-12 Chong Yidong <cyd@stupidchicken.com>
7107
7108 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7109
bc5e75b6
SM
71102009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7111
7112 * keymap.c (Fwhere_is_internal): Use nconc2.
7113
c31c985e
AM
71142009-09-11 Alan Mackenzie <acm@muc.de>
7115
7116 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7117 batch mode.
7118
78012bd2
AS
71192009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7120
7121 * xdisp.c (display_mode_element): Detect cycles.
7122
9d889332
SM
71232009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7124
7125 * keymap.c (where_is_internal): Don't erroneously return nil right after
7126 filling the cache.
7127 (where_is_internal_1): Fix up typo.
7128
7ab5d780
GM
71292009-09-11 Glenn Morris <rgm@gnu.org>
7130
7131 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7132 share a common doc-string.
7133
5238a749
SM
71342009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7135
66d77eda
SM
7136 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7137 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7138
5238a749
SM
7139 * keymap.c (QCadvertised_binding): New constant.
7140 (syms_of_keymap): Initialize it.
7141 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7142 if applicable.
7143
19f48442
SM
71442009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7145
50d4ba39
SM
7146 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7147 (parse_menu_item): Streamline since bindings are recomputed all the
7148 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7149 more and don't support lmenu's menu-alias any more either.
7150
a88a5372
SM
7151 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7152 (where_is_internal): Strip it down to only traverse the keymaps.
7153 Move the cache handling from Fwhere_is_internal to here.
7154 (Fwhere_is_internal): Move the handling of remapping and the choice of
7155 the best binding from where_is_internal to here.
7156 Unify the cached/noncached paths, so remapping is also handled
7157 correctly when the cache is used, and so the cache can be used to
7158 speed up remap-handling when applicable.
7159 Give preference to non-remapped bindings.
7160 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7161 non-remapped bindings.
7162 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7163 command remapping.
7164
19f48442
SM
7165 * xdisp.c (display_mode_element): Move list length limit from 50 to
7166 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7167
599498c3 71682009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7169
7170 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7171
f9b7b5ac
SM
71722009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7173
a53af587
JB
7174 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7175 (Bug#4334)
7176
f9b7b5ac
SM
7177 * keymap.c (where_is_internal): Filter out shadowed remappings.
7178 Assume that where_is_internal returns unshadowed bindings to simplify
7179 the code and get rid of the gotos. Use ASIZE.
7180
04f4b72d
JD
71812009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7182
4da146f2
JD
7183 * xterm.c (x_focus_changed): If we get a focusout and pointer
7184 is invisible, make it visible.
7185
04f4b72d
JD
7186 * xterm.h: Remove condition for declaration of
7187 x_*_window_to_frame.
7188
7cef7ce3
SM
71892009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7190
7191 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7192 initial terminal as well.
7193
a54fa5b7
JD
71942009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7195
7196 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7197 x_menubar_window_to_frame.
a54fa5b7 7198
50426a04 7199 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7200 (XTmouse_position): Do not return valid positions
7201 for clicks in the menubar and the toolbar for Gtk+.
7202
7203 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7204 if the widget for the event has the same top level as a frame,
7205 return the frame.
7206 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7207 internal windows, bug #4122.
7208 (x_non_menubar_window_to_frame): Remove.
7209
5a021dd0
GM
72102009-09-02 Glenn Morris <rgm@gnu.org>
7211
7212 * buffer.c (default-major-mode): Move most of the doc from here...
7213 (major-mode): ... to here.
7214
548fe2f3
NR
72152009-08-30 Nick Roberts <nickrob@snap.net.nz>
7216
7217 * process.c (wait_reading_process_output): Keep the descriptor
7218 when pty is used by a non-child process, e.g., in I/O buffer of
7219 GDB this allows inferior to be restarted.
7220
e0840eef
EZ
72212009-08-29 Eli Zaretskii <eliz@gnu.org>
7222
7223 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7224 both branches into one.
7225
82e98df4
SM
72262009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7227
7228 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7229 (main): Use enable-multibyte-characters rather than
7230 default-enable-multibyte-characters. Output a warning message when
7231 running a unibyte session.
7232
890617cb
YM
72332009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7234
7235 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7236 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7237 (copy_data_segment): Also copy __program_vars section.
7238 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7239 (dump_it) [LC_DYLD_INFO]: Use it.
7240
7241 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7242
e7adeadc
EZ
72432009-08-28 Eli Zaretskii <eliz@gnu.org>
7244
7245 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7246 $(SRC)/buildobj.h.
7247 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7248 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7249 $(SRC)/buildobj.h.
7250 (clean): Add buildobj.h.
7251
3ed8bbdc
TZ
72522009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7253
7254 * print.c (print_object): Set escapeflag to 1 when printing
7255 hashtable keys and values.
7256
155a6764
SM
72572009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7258
7259 * lread.c (read_integer): Use doubles (and potentially return a float
7260 number) as we do in string-to-number.
7261 (read1): Use strtol to read integers, signal errors on strtol's
7262 overflow and use floats if strtol's output is too large for
7263 Elisp integers.
7264
877610de
EZ
72652009-08-27 Eli Zaretskii <eliz@gnu.org>
7266
7267 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7268 (make-buildobj-SH): Fix last change.
7269 (SRC): Move to before where it's first used.
7270
ef73e7be
KH
72712009-08-27 Kenichi Handa <handa@m17n.org>
7272
550c8289
KH
7273 * process.c (send_process): Use encode_coding_object instead of
7274 encode_coding_string to perform eol-conversion even if the string
7275 is unibyte.
7276
60afa08d
KH
7277 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7278 character.
7279
ef73e7be 7280 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7281 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7282
7b3a82d7
DN
72832009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7284
5654bf63
DN
7285 * callproc.c (Fcall_process): Remove always true #if.
7286
7b3a82d7
DN
7287 * lisp.h: Replace #if 0 code for checking with text pointing to
7288 the --enable-checking configure flag.
7289
7290 * emacs.c (main): Mention the --enable-profiling configure flag
7291 instead of using CFLAGS.
7292
878bde49
KR
72932009-08-26 Ken Raeburn <raeburn@raeburn.org>
7294
7295 * Makefile.in (buildobj.h): New target.
7296 (doc.o): Depend on it.
7297 (temacs${EXEEXT}): Don't generate buildobj.lst.
7298 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7299 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7300 ($(BLD)/doc.$(O)): Depend on it.
7301 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7302 provided by Eli Zaretskii.)
7303 ($(TEMACS)): Don't generate buildobj.lst.
7304 * doc.c: Include buildobj.h.
7305 (buildobj): New static variable.
7306 (Fsnarf_documentation): Use it, instead of opening and reading
7307 buildobj.lst.
7308
1574224c
MA
73092009-08-25 Michael Albinus <michael.albinus@gmx.de>
7310
7311 * dbusbind.c (Fdbus_call_method)
7312 (Fdbus_call_method_asynchronously): Use English numeric format for
7313 timeout values in doc string.
7314
d9da2f45
KH
73152009-08-25 Kenichi Handa <handa@m17n.org>
7316
ef73e7be
KH
7317 * alloc.c (mark_char_table): New function.
7318 (mark_object): Use mark_char_table for a char-table.
7319
d9da2f45
KH
7320 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7321 (CHAR_TABLE_REF): Use it.
7322
c8edcc01
KR
73232009-08-23 Ken Raeburn <raeburn@raeburn.org>
7324
7325 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7326 before invoking the newly build emacs to check for load-path
7327 shadowing.
7328
7763401b
GM
73292009-08-22 Glenn Morris <rgm@gnu.org>
7330
7331 * Makefile.in (bootstrap_exe): New variable.
7332 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7333 Use ${bootstrap_exe}.
7334
729eadda
EZ
73352009-08-22 Eli Zaretskii <eliz@gnu.org>
7336
7337 * coding.h (encode_coding_string): Don't encode unibyte strings.
7338 (Bug#4047)
7339
eb4c6ace
MA
73402009-08-22 Michael Albinus <michael.albinus@gmx.de>
7341
7342 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7343
7344 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7345 intended as hotfix only.
7346 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7347
36e34d1b
AR
73482009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7349
7350 * nsterm.m (ns_get_color): Update documentation properly for last
7351 change, and clean up loose ends in the code left by it. Fix
7352 longstanding bug with 16-bit hex parsing, and add support for
7353 yet another X11 format (rgb:r/g/b) for compatibility.
7354 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7355 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7356
f983eb8a
SM
73572009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7358
7359 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7360
3f56d3c6
MA
73612009-08-20 Michael Albinus <michael.albinus@gmx.de>
7362
7363 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7364 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7365 (xd_initialize, xd_pending_messages): Check, whether
7366 $DBUS_SESSION_BUS_ADDRESS is set.
7367
fb641d68
YM
73682009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7369
7370 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7371
7372 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7373
cf59a374
GM
73742009-08-20 Glenn Morris <rgm@gnu.org>
7375
7376 * emacs.c (system-type): Doc fix.
7377
1373f3be
SM
73782009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7379
7380 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7381 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7382
058ed861
MA
73832009-08-18 Michael Albinus <michael.albinus@gmx.de>
7384
1373f3be
SM
7385 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7386 New functions.
058ed861
MA
7387 (xd_initialize): Revert change from 2009-08-16.
7388
563a866e 73892009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7390
7391 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7392 font-group vector, return nil.
5fc05db0 7393
e42bdf01
CY
73942009-08-17 Chong Yidong <cyd@stupidchicken.com>
7395
7396 * process.c (status_notify): Don't perform redisplay.
7397 (Fdelete_process, list_processes_1, process_send_signal):
7398 Expliticly perform redisplay.
7399 (wait_reading_process_output): Always check process status, but
7400 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7401
4230ab74
KR
74022009-08-17 Ken Raeburn <raeburn@raeburn.org>
7403
1373f3be 7404 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7405 (XFLOAT_INIT): New macro for storing a float value.
7406 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7407 * fns.c (sxhash): Copy out the value of a float in order to
7408 examine its bytes.
7409 * dbusbind.c (xd_append_arg): Likewise.
7410
4230ab74
KR
7411 * emacs.c (main): Don't call syms_of_data twice.
7412
a0645cdd
MA
74132009-08-16 Michael Albinus <michael.albinus@gmx.de>
7414
7415 * dbusbind.c (xd_initialize): Add connection file descriptor to
7416 input_wait_mask, in order to let select() detect, whether a new
7417 message has been arrived.
ca4f31ea 7418 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7419
485db0ba
MA
74202009-08-15 Michael Albinus <michael.albinus@gmx.de>
7421
1373f3be
SM
7422 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7423 New functions.
485db0ba
MA
7424
7425 * lisp.h (xd_pending_messages): Declare.
7426
7427 * keyboard.c (readable_events): Call xd_pending_messages.
7428
b5b98ff4
CY
74292009-08-15 Chong Yidong <cyd@stupidchicken.com>
7430
1373f3be 7431 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7432
f8354c6e
CY
7433 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7434
b5b98ff4
CY
7435 * buffer.c (set_buffer_internal_1)
7436 (swap_out_buffer_local_variables): Check for unbound local
7437 variables (Bug#4138).
7438
8b9fc636
EZ
74392009-08-14 Eli Zaretskii <eliz@gnu.org>
7440
7441 * process.c (create_pty): Fix last change.
7442
ce959360
CY
74432009-08-13 Chong Yidong <cyd@stupidchicken.com>
7444
7445 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7446 (xbm_load_image): Caller changed.
64b807c9 7447 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7448
c7baf7e9
NR
74492009-08-13 Nick Roberts <nickrob@snap.net.nz>
7450
7451 * process.c (create_pty): New function.
7452 (Fstart_process): Use it to allow Emacs to just associate a pty
7453 with the buffer. See associated change in gdb-mi.el.
7454 (list_processes_1): Deal with no program name.
7455 (start_process_unwind): Use pid == -2 to mean no process.
7456
1ac9108a
SM
74572009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7458
7459 * cmds.c (nonundocount): New global variable.
7460 (keys_of_cmds): Initialize it.
7461 (Fself_insert_command): Use it to combine upto 20 sequential chars
7462 into a single undo entry, just like the Qself_insert_command code in
7463 keyboard.c does.
7464 Call frame_make_pointer_invisible, also like the Qself_insert_command
7465 code in keyboard.c does.
7466 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7467 than its own local replacement for it.
7468
e267324c
KR
74692009-08-10 Ken Raeburn <raeburn@raeburn.org>
7470
1ac9108a 7471 * fns.c (concat): Don't re-set string length to its current value.
77437343 7472
1ac9108a
SM
7473 * coding.h (decode_coding_string, encode_coding_string):
7474 Use SBYTES macro.
f0bed503 7475
1ac9108a 7476 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7477 (doprnt): Merge with doprnt1, discarding lispstrings code.
7478 * lisp.h (doprnt_lisp): Don't declare.
7479
416e006d
JL
74802009-08-07 Juri Linkov <juri@jurta.org>
7481
7482 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7483
6f7d5780
DN
74842009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7485
7486 * print.c (syms_of_print): Undo previous change.
7487
f19a0f5b
TZ
74882009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7489
7490 * lread.c (read1, syms_of_lread): Read hashtables back from the
7491 readable format.
7492
7493 * print.c (print_preprocess, print_object): Print hashtables fully
7494 and readably.
7495 (syms_of_print): Provide 'hashtable-print-readable.
7496
b9173dc2
AR
74972009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7498
7499 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7500 no family set.
7501 (nsfont_open): Handle case when entity has no family.
7502
1586503c
AR
75032009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7504
7505 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7506 element, not a list, for match case.
7507
087048cd
KH
75082009-07-28 Kenichi Handa <handa@m17n.org>
7509
7510 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7511 rigidly.
7512
7513 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7514 font_parse_xlfd. Check font properties more rigidly.
7515
780c2506
DN
75162009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7517
31fd7c5c
JB
7518 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7519 bsd-common.h.
780c2506 7520
a8c0cc18
KH
75212009-07-27 Kenichi Handa <handa@m17n.org>
7522
7523 * xfaces.c (face_with_height): Call font_clear_prop.
7524
4fbe2306
CY
75252009-07-26 Chong Yidong <cyd@stupidchicken.com>
7526
111d9af3
CY
7527 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7528
7529 * xterm.c (x_term_init): Use Qx.
7530
4fbe2306
CY
7531 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7532
1ac9108a 7533 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7534 (ns_get_color): Revert 2009-07-16 change.
7535
beb0b7f9
EZ
75362009-07-25 Eli Zaretskii <eliz@gnu.org>
7537
7538 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7539 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7540
2baf5e76
KR
75412009-07-25 Ken Raeburn <raeburn@raeburn.org>
7542
1ac9108a
SM
7543 * coding.h (decode_coding_string, encode_coding_string):
7544 Use SCHARS macro.
8890e5f5 7545
2baf5e76 7546 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7547 (load_depth): Delete.
2baf5e76
KR
7548 (Qload_in_progress): New variable.
7549 (load_unwind): Don't reference load_depth or load_in_progress.
7550 (Fload): Likewise; specbind Qload_in_progress instead.
7551 (init_lread): Don't initialize load_depth.
7552 (syms_of_lread): Initialize and protect Qload_in_progress.
7553
1395c6f5
AR
75542009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7555
7556 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7557
4e2f36cf
AR
75582009-07-23 Yavor Doganov <yavor@gnu.org>
7559
7560 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7561
5dd9a6f7
AR
75622009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7563
7564 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7565 Bugs 3792, 3720, 2402.
7566 (ns_lookup_indexed_color): Check for bad index.
7567 (ns_index_color): Init unused slot to 0.
7568 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7569 Bug 3714, possibly 3082.
5dd9a6f7 7570
c902b920
JR
75712009-07-22 Jason Rumney <jasonr@gnu.org>
7572
1ac9108a
SM
7573 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7574 Position IME window at cursor (Bug#2570).
c902b920
JR
7575 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7576 (globals_of_w32fns): Dynamically load functions required above.
7577
7578 * w32term.c (w32_draw_window_cursor): Send message to reposition
7579 any IME window.
7580
090101cf
CY
75812009-07-21 Chong Yidong <cyd@stupidchicken.com>
7582
7583 * fileio.c: Revert 2009-07-16 changes.
7584 (Vauto_save_include_big_deletions): New variable.
7585 (Fdo_auto_save): Disable auto-save only if
7586 auto-save-include-big-deletions is nil.
7587
e6583e3d
CY
75882009-07-21 Chong Yidong <cyd@stupidchicken.com>
7589
7590 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7591 the overflowed pixels into account (Bug#3879).
7592
ece435a5
KR
75932009-07-21 Ken Raeburn <raeburn@raeburn.org>
7594
7595 * lread.c (load_depth): New variable.
7596 (Fload, load_unwind, init_lread): Set it to the load recursion
7597 depth; set load_in_progress as a simple boolean based on the
7598 current load_depth. (Bug#3892)
7599
40b2d973
AR
76002009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7601
7602 * nsfont.m (ns_has_attribute): Remove.
7603 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7604
10be7e0d
JL
76052009-07-18 Juri Linkov <juri@jurta.org>
7606
7607 * process.c (Fset_process_query_on_exit_flag): Mention killing
7608 a buffer in docstring.
7609
fa055055
KH
76102009-07-17 Kenichi Handa <handa@m17n.org>
7611
7612 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7613
042f7b69
YM
76142009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7615
7616 * nsfns.m (Fns_set_alpha): Remove function.
7617 (syms_of_nsfns): Don't defsubr it.
7618
7619 * nsterm.m (ns_get_color): Remove incompatible color formats.
7620 (ns_color_to_lisp): Generate #rrggbb color format string.
7621
4be941e3
RS
76222009-07-16 Richard Stallman <rms@gnu.org>
7623
7624 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7625 (Fset_buffer_auto_saved): Handle save_length = -2.
7626
4e6b227d
CY
76272009-07-16 Chong Yidong <cyd@stupidchicken.com>
7628
7629 * xterm.c (Qx_gtk_map_stock): New var.
7630
7631 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7632 of calling intern each time.
7633
a1856973
YM
76342009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7635
7636 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7637 does tiling.
7638
7639 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7640
497e54d8
KH
76412009-07-14 Kenichi Handa <handa@m17n.org>
7642
72d36834
KH
7643 * font.c (font_vconcat_entity_vectors): New function.
7644 (struct font_sort_data): New member font_driver_preference.
7645 (font_compare): Check font_driver_preference.
7646 (font_sort_entities): The format of the first argument changed.
7647 (font_delete_unmatched): Likewise.
7648 (font_list_entities): The return type changed.
7649 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7650 (font_find_for_lface): Adjuste for the above changes.
7651 Don't suppress the checking of C even if the repertory supports it.
7652 (Flist_fonts): Adjust for the above changes.
72d36834 7653
1ac9108a
SM
7654 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7655 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7656 Reject a font who has adstyle property that is different from a
7657 langname derived from registry property.
1ac9108a 7658 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7659
b6046155
EZ
76602009-07-13 Eli Zaretskii <eliz@gnu.org>
7661
7662 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7663 local copy of dirfilename.
7664
fb6b6049
KH
76652009-07-13 Kenichi Handa <handa@m17n.org>
7666
e2402a5e
KH
7667 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7668 against max_char.
7669
fb6b6049
KH
7670 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7671 calling XSYMBOL (sym).
7672
65156807
EZ
76732009-07-11 Eli Zaretskii <eliz@gnu.org>
7674
1ac9108a
SM
7675 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7676 New function.
7677 (directory_files_internal) [WINDOWSNT]:
7678 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7679 the filesystem of the directory is fast or slow.
7680
7681 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7682 file name.
7683 (is_slow_fs): New function.
7684 (stat): Use it to determine whether to issue more system calls to
7685 get accurate file attributes, when w32-get-true-file-attributes is
7686 `local'.
7687
e0ab5fcf
JD
76882009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7689
7690 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7691 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7692 parameter font-parameter as default to the font dialog.
7693
784ceded
KH
76942009-07-10 Kenichi Handa <handa@m17n.org>
7695
7696 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7697
fb8edc0b
EZ
76982009-07-09 Eli Zaretskii <eliz@gnu.org>
7699
1ac9108a 7700 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7701
fb8edc0b
EZ
7702 * w32.c (stat): Treat UNC file names as residing on remote
7703 drives. (Bug#3542)
7704
635c75b1
KH
77052009-07-09 Kenichi Handa <handa@m17n.org>
7706
7707 * fontset.c (fontset_find_font): Fix previous change.
7708
c1d5ce94
MA
77092009-07-08 Michael Albinus <michael.albinus@gmx.de>
7710
7711 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7712 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7713 error flag.
7714
edb61b39
KH
77152009-07-08 Kenichi Handa <handa@m17n.org>
7716
374bf7e4
KH
7717 * fontset.c (fontset_find_font): Fix the logic of handling
7718 charset_matched.
7719 (font_for_char): Delete unused var.
7720 (generate_ascii_font_name): Delete it.
7721
edb61b39
KH
7722 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7723
7724 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7725 (encode_coding_sjis): Fix the code range check.
7726
0f3f018c
CY
77272009-07-07 Chong Yidong <cyd@stupidchicken.com>
7728
7729 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7730 (Fexpand_file_name): Copy string data properly (Bug#3772).
7731
fcaf6f3a
JD
77322009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7733
7734 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7735 first MapNotify.
7736
6809ca75
KH
77372009-07-07 Kenichi Handa <handa@m17n.org>
7738
7739 * character.h (unibyte_has_multibyte_table): Delete extern.
7740 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7741
7742 * charset.c (Fset_charset_priority): Update charset_unibyte.
7743 (syms_of_charset): Initialize charset_unibyte.
7744
7745 * character.c (unibyte_has_multibyte_table): Delete it.
7746 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7747 charset_unibyte.
7748 (multibyte_char_to_unibyte_safe): Likewise.
7749 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7750
1ac9108a 7751 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7752 (x_produce_glyphs): Likewise.
7753
7754 * .gdbinit (xcharset): Fix the treating $arg0.
7755
ad9e2d54
EZ
77562009-07-04 Eli Zaretskii <eliz@gnu.org>
7757
7758 Emulation of `getloadavg' on MS-Windows.
50426a04 7759 * w32.c: Include float.h.
ad9e2d54
EZ
7760 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7761 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7762 (get_native_system_info, get_system_times): New functions.
7763 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7764 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7765 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7766 g_b_init_get_system_times, and num_of_processors.
7767
0a3472c7
JR
77682009-07-03 Jason Rumney <jasonr@gnu.org>
7769
7770 * w32term.c (w32_initialize): Use standard types.
7771
80904120
EZ
77722009-07-03 Eli Zaretskii <eliz@gnu.org>
7773
7774 * dired.c (Ffile_attributes): Decode user and group names by the
7775 locale's encoding. (Bug#3443)
7776
6978862d
DN
77772009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7778
f8d23104
DN
7779 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7780 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7781
7782 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7783
7784 * term.c (init_tty): Remove spurious #ifdef.
7785
6978862d
DN
7786 * m/mips.h: Mention this file is also used for netbsd.
7787 * m/pmax.h: Remove file.
7788
e044e4fc
JD
77892009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7790
7791 * xterm.h (struct x_display_info): Add invisible_cursor.
7792 (struct x_output): Add current_cursor.
7793
7794 * xterm.c (XTtoggle_invisible_pointer): New function.
7795 (x_define_frame_cursor): Don't define cursor if invisible or the
7796 same as before. Set current_cursor.
7797 (x_create_terminal): Set toggle_invisible_pointer_hook.
7798
7799 * xfns.c (make_invisible_cursor): New function.
7800 (x_set_mouse_color): Call make_invisible_cursor.
7801 Set current_cursor.
7802 (x_window): Set current_cursor.
7803
7804 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7805
7806 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7807 inserting a character.
7808 (read_avail_input): Call frame_make_pointer_visible.
7809
7810 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7811 (frame_make_pointer_invisible, frame_make_pointer_visible):
7812 New functions.
e044e4fc
JD
7813 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7814
7815 * frame.h: Declare frame_make_pointer_invisible and
7816 frame_make_pointer_visible.
7817 (struct frame): Add pointer_invisible.
7818
574c8efa
JD
78192009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7820
7b507248
JD
7821 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7822 frame isn't visible.
7823 (xg_frame_resized): If width/height is -1, get size of window
7824 from X server.
7825
7826 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7827 for MapNotify.
7828
835bdaa7 7829 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7830 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7831 (flush_and_sync): Reintroduce.
574c8efa 7832
3f1c6666 78332009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7834
31fd7c5c 7835 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7836
7837 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7838 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7839
7840 * frame.h: Declare Qsticky.
7841
cad9ef74
JD
7842 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7843
7844 * nsfns.m (ns_frame_parm_handlers): Ditto.
7845
7846 * frame.c: Declare Qsticky.
7847 (frame_parms): Add sticky.
7848
7849 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7850
7851 * xterm.h: Declare x_set_sticky.
7852
7853 * xterm.c (x_set_sticky): New function.
7854
69b16610
JD
7855 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7856 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7857 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7858
7859 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7860
7861 * frame.c: Qmaximized is new.
7862 (x_set_frame_parameters): Do not handle fullscreen specially.
7863 Only set width and height if explicitly set.
7864 (x_set_fullscreen): Handle Qmaximized.
7865 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7866 (syms_of_frame): Initialize Qmaximized.
7867
1ac9108a
SM
7868 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7869 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7870
7871 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7872 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7873 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7874 set gravity to NorthWestGravity when USE_GTK.
7875 (set_wm_state): New function.
31fd7c5c 7876 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7877 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7878 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7879 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7880 to x_real_positions and x_fullscreen_adjust.
7881
7882 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7883 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7884 flush_and_sync.
7885 (xg_height_changed): New function.
7886 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7887 and gtk_window_set_policy. Set frame gravity after parsing the
7888 geometry string.
3f1c6666
JD
7889 (xg_update_frame_menubar, free_frame_menubar)
7890 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7891 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7892 Remove calls to xg_frame_set_char_size.
7893
fd503d99
KH
78942009-07-01 Kenichi Handa <handa@m17n.org>
7895
7896 * keyboard.c (decode_keyboard_code): New function.
7897 (tty_read_avail_input): Decode the input bytes if necessary.
7898
1ac9108a
SM
7899 * coding.c (setup_coding_system):
7900 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7901 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7902 use Qno_conversion.
7903
24ed93fb
YM
79042009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7905
7906 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7907
99061dfc
CY
79082009-06-30 Chong Yidong <cyd@stupidchicken.com>
7909
1ac9108a 7910 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7911
ff90fbde
JR
79122009-06-30 Jason Rumney <jasonr@gnu.org>
7913
7914 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7915 is already loaded.
7916 Set user model ID if supported (bug#1849).
7917
5f445726
JM
79182009-06-29 Jim Meyering <meyering@redhat.com>
7919
7920 Remove useless if-before-xfree test.
7921 * nsfont.m (nsfont_close): Remove useless test.
7922 * term.c (delete_tty): Likewise.
7923 * w32.c (system_process_attributes): Likewise.
7924 * w32font.c (w32font_close): Likewise.
7925 * xfaces.c (x_free_gc): Likewise.
7926 * xselect.c (buffer): Likewise.
7927
b9607587
AS
79282009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7929
7930 * process.c (send_process): Keep decoded string in a local
7931 variable and protect it from GC. (Bug#3521)
7932
89ba96f4
EZ
79332009-06-28 Eli Zaretskii <eliz@gnu.org>
7934
7935 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7936 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7937
098a1589
CY
79382009-06-28 Chong Yidong <cyd@stupidchicken.com>
7939
485422be
CY
7940 * xdisp.c (start_display, handle_face_prop)
7941 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7942 (redisplay_window, try_window_id, produce_image_glyph):
7943 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7944
098a1589
CY
7945 * xterm.c (x_update_window_begin, x_new_focus_frame)
7946 (x_scroll_bar_handle_click, handle_one_xevent)
7947 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7948 (x_make_frame_visible, x_make_frame_invisible)
7949 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7950 code chunks that are now obsolete.
7951
78c38319
MA
79522009-06-28 Michael Albinus <michael.albinus@gmx.de>
7953
7954 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7955 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7956 for hours, when optimzation is enabled.
7957 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7958 (xd_read_message): Make them static.
7959
4189ed40
CY
79602009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7961
7962 * term.c (turn_on_face): Allow simultaneously bold and dim
7963 terminal faces (Bug#3530).
7964
cd9b5e16
CY
79652009-06-27 Chong Yidong <cyd@stupidchicken.com>
7966
4e23bedb
CY
7967 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7968
cd9b5e16
CY
7969 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7970 truncation glyphs (Bug#3686).
7971
07cc3c35
GM
79722009-06-27 Glenn Morris <rgm@gnu.org>
7973
7974 * m/pmax.h: Restore file, with only netbsd portions.
7975
31fd7c5c 79762009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7977
cd9b5e16 7978 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7979
42d4a64f
KH
79802009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7981
7982 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7983 the arg FORCE_SYMBOL.
7984
930fe55b 79852009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7986
7987 * fontset.c (fontset_find_font): When a usable rfont_def is found
7988 in a fallback font-group, make it the first element of the group.
7989
57ebc3fd
CY
79902009-06-24 Chong Yidong <cyd@stupidchicken.com>
7991
7992 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7993
f084f942
KH
79942009-06-24 Kenichi Handa <handa@m17n.org>
7995
7996 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7997 set for C.
7998 (fontset_font): Record the availability of a font for C both in
7999 the realized fontsets of the current one and the default one.
8000
2f686c87
DN
80012009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8002
8003 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8004 conditional, it is always defined on AIX.
8005
666e158e
MB
80062009-06-23 Miles Bader <miles@gnu.org>
8007
8008 * window.c (Vrecenter_redisplay): New variable.
8009 (syms_of_window): Initialize it.
8010 (Qtty): New extern declaration.
8011 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8012
c6da7cd2
JM
80132009-06-23 Jim Meyering <meyering@redhat.com>
8014
1ac9108a
SM
8015 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8016 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8017 pointer dereferences are guaranteed to be valid.
c6da7cd2 8018
678dca3d
KH
80192009-06-23 Kenichi Handa <handa@m17n.org>
8020
74d75424
KH
8021 * emacs.c (main): Call init_font ().
8022
8023 * font.h (Vfont_log): Extern it.
8024 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8025
8026 * font.c (font_sort_entities, font_list_entities)
8027 (font_matching_entity, font_open_entity)
8028 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8029 (Vfont_log): Delete static.
8030 (font_log_env_checked): Delete this variable.
8031 (font_add_log): Don't check font_log_env_checked.
8032 (font_deferred_log): Check Vfont_log.
8033 (init_font): New function.
8034
678dca3d
KH
8035 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8036
8037 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8038
8039 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8040
8041 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8042
8043 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8044 (face_for_char): Don't call font_deferred_log here.
8045 (font_for_char): Likewise.
8046
8a668709
CY
80472009-06-22 Chong Yidong <cyd@stupidchicken.com>
8048
9a01ee33
CY
8049 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8050 rather than its background_width for drawing the overline and
8051 underline (Bug#489).
8052
8053 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8054 rather than its background_width for drawing the overline and
8055 underline (Bug#489).
ec7c9926
CY
8056 (xg_default_icon_file): New variable.
8057 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8058 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8059
8a668709
CY
8060 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8061 (load_overlay_strings): Remove externs.
8062 (fast_find_position): Function deleted.
8063 (mouse_face_from_buffer_pos): New function, based on
8064 fast_find_position. Correctly handle before-strings,
8065 display-strings, and after-strings (Bug#1220).
8066 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8067
4d4c02d8
CY
80682009-06-21 Chong Yidong <cyd@stupidchicken.com>
8069
1ac9108a 8070 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8071 (move_it_in_display_line_to, move_it_in_display_line_to)
8072 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8073
70243478
CY
80742009-06-21 Chong Yidong <cyd@stupidchicken.com>
8075
8076 * Branch for 23.1.
8077
13087e59
JR
80782009-06-21 Jason Rumney <jasonr@gnu.org>
8079
8080 * w32term.c (keyboard_codepage): New static variable.
8081 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8082 (w32_read_socket) [WM_CHAR]: Use it to decode character
8083 input (bug#3237).
8084 (w32_initialize): Initialize it.
8085 (codepage_for_locale): New function.
8086
4735b74e
KR
80872009-06-20 Ken Raeburn <raeburn@raeburn.org>
8088
8089 * process.c (status_message): Pass Faset index argument as a lisp
8090 object, so as to work with USE_LISP_UNION_TYPE.
8091
0e727afa
YM
80922009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8093
8094 * coding.c (Ffind_coding_systems_region_internal):
8095 Cache checked characters.
8096
cf299835
KH
80972009-06-18 Kenichi Handa <handa@m17n.org>
8098
1ac9108a 8099 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8100
90f20d94
AS
81012009-06-18 Andreas Schwab <aschwab@redhat.com>
8102
8103 * xdisp.c (redisplay_internal): Check that the frame is still
8104 live after redisplay of its windows.
8105 (redisplay_windows): Check that the window is still live.
8106
7f1faf1c
KH
81072009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8108
8109 * coding.c (detect_coding_utf_16): Fix previous change.
8110
cc13543e
KH
81112009-06-16 Kenichi Handa <handa@m17n.org>
8112
8113 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8114 UTF-16 by checking the dispersion of Eth and Oth bytes.
8115
977b85f4
AS
81162009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8117
8118 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8119
66bd43d1
KH
81202009-06-15 Kenichi Handa <handa@m17n.org>
8121
8122 * process.c (status_message): Fix previous change. Be sure to
8123 decode a localized string.
8124
cb5ca9c5
YM
81252009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8126
8127 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8128 add comment explaining why.
8129
ec7709ba 81302009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8131
ec7709ba 8132 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8133
4b7f335c
AR
81342009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8135
8136 * nsfont.m (ns_attribute_value): Remove.
8137 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8138 (ns_has_attribute): Shrink the normal range.
8139 (ns_findfonts): Don't worry about requested spec in determining
8140 need for synthItal.
e41820ee 8141 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8142
73b26103
SZ
81432009-06-14 Seiji Zenitani <zenitani@mac.com>
8144
8145 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8146
5753e4da
KH
81472009-06-11 Kenichi Handa <handa@m17n.org>
8148
8149 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8150 overhang for the static composition case.
8151
3561b671
KH
81522009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8153
5753e4da
KH
8154 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8155 overhang for the automatic composition case.
8156
3561b671
KH
8157 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8158 composition case.
8159
852bbd41
CY
81602009-06-10 Chong Yidong <cyd@stupidchicken.com>
8161
8162 * xdisp.c (get_next_display_element): When handling wrap-prefix
8163 and line-prefix, treat \n as a control character (bug#3502).
8164
9903d1e6
KH
81652009-06-10 Kenichi Handa <handa@m17n.org>
8166
8167 * font.c (font_parse_family_registry): Fix for one-char foundry.
8168 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8169
0bcbaaaa
CY
81702009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8171
8172 * process.c (status_message): Fix handling of multibyte signal
8173 string (Bug#3499).
8174
40aa3f13
JM
81752009-06-09 Jim Meyering <meyering@redhat.com>
8176
1f80c7e2
CY
8177 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8178 color name is missing.
40aa3f13 8179
72d51285
KH
81802009-06-09 Kenichi Handa <handa@m17n.org>
8181
8182 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8183 FROM-CODE and TO-CODE are codepoints of CHARSET.
8184
c1d04d84
AR
81852009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8186
8187 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8188
81892009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8190
8191 Changes to support :script/:lang/:otf in NS font driver.
8192 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8193 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8194 indicate not part of font driver interface, and change callers.
8195 (ns_get_family): Remove pointless null check.
8196 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8197 ns_spec_to_descriptor, ns_descriptor_to_entity.
8198 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8199 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8200 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8201 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8202 (ns_get_req_script, ns_accumulate_script_ranges)
8203 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8204 New functions.
8205 (nsfont_list, nsfont_match): Use ns_findfonts.
8206 (nsfont_open): Use font descriptor instead of traits.
8207 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8208 (dump_glyphstring): Rename to ns_dump_glyphstring.
8209
c7eb9816
AR
8210 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8211
c1d04d84
AR
8212 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8213
8214 * fontset.c (fontset_from_font): Remove NS-specific code.
8215
ec7709ba 82162009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8217
8218 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8219 nonactive windows.
8220
31fd7c5c 82212009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8222
1ac9108a 8223 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8224
68852c13 82252009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8226
8227 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8228
6756cd1d
CY
82292009-06-07 Chong Yidong <cyd@stupidchicken.com>
8230
8231 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8232 account for the overflowing of newlines into the last glyph on the
8233 display line (Bug#3482).
8234
28bf482a
DR
82352009-06-05 David Reitter <david.reitter@gmail.com>
8236
ec7709ba
JB
8237 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8238 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8239 Fns_selection_exists_p, Fns_selection_owner_p.
8240
fdb55376
JR
82412009-06-03 Jason Rumney <jasonr@gnu.org>
8242
8243 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8244 available. (Bug#3379)
8245
05129fbe
KH
82462009-05-29 Kenichi Handa <handa@m17n.org>
8247
1ac9108a
SM
8248 * coding.c (get_translation_table):
8249 Check Venable_character_translation.
05129fbe 8250
ec7709ba 82512009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8252
ec7709ba
JB
8253 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8254 (x_make_frame_visible): Move frame to front rather than calling
15891144 8255 ns_raise_frame().
ec7709ba 8256 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8257 isn't key window.
ec7709ba 8258 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8259 drawRect may be called by NSView even if the frame is hidden.
8260
ec7709ba
JB
8261 * nsfns.m (Fx_create_frame): Follow other ports in
8262 determining visibility; default to t. Ensure async_visible is set.
15891144 8263
21f73755
EZ
82642009-05-23 Eli Zaretskii <eliz@gnu.org>
8265
8266 * dired.c (Ffile_attributes): Doc fix.
8267
34001e41
CY
82682009-05-22 Chong Yidong <cyd@stupidchicken.com>
8269
8270 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8271
46306a17
SM
82722009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8273
8274 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8275 and xfont_scratch_props.
8276 (syms_of_xfont): Do it here instead.
8277 (xfont_find_ccl_program): Delete, unused.
8278 (xfont_open): Delete unused var `i'.
8279
ef6e0694
KH
82802009-05-21 Kenichi Handa <handa@m17n.org>
8281
8282 * fontset.c (Qlatin): Don't make it static.
8283
46306a17
SM
8284 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8285 New functions.
ef6e0694
KH
8286 (xfont_scripts_cache, xfont_scratch_props): New variables.
8287 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8288 (xfont_list_pattern): Argument changed. Callers changed.
8289 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8290 (xfont_list): Don't reject a font spec with :script property.
8291 (xfont_has_char): Fix setting of encoding.
8292 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8293 xfont_scratch_props.
8294
82952009-05-19 Kenichi Handa <handa@m17n.org>
8296
46306a17 8297 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8298 Callers changed.
8299
83002009-05-18 Kenichi Handa <handa@m17n.org>
8301
8302 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8303
ac71ced7
SM
83042009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8305
8306 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8307 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8308
1c6d1051
YM
83092009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8310
8311 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8312 (x_delete_terminal): Dissociate resource database from display and
8313 then call XrmDestroyDatabase before closing display.
8314
9b9b779c
AR
83152009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8316
8317 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8318 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8319 whether selected frame is viable before raising it (based on patch
8320 by David Reitter), and improve commentary.
8321 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8322
cccd42d5
KH
83232009-05-15 Kenichi Handa <handa@m17n.org>
8324
8325 * font.c (Ffont_spec): Check arguments.
8326
337fbd17
CY
83272009-05-14 Chong Yidong <cyd@stupidchicken.com>
8328
8329 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8330 weight when testing attributes (Bug#3282).
8331
47a6002f
JD
83322009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8333
8334 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8335 what we expect to get in the next ConfigureNotify event.
8336
9cb363db
YM
8337 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8338 before Xft one (Bug#1696).
8339
b9126609
CY
83402009-05-07 David Reitter <david.reitter@gmail.com>
8341
8342 * nsfns.m (Fx_display_planes): Compute bitplanes using
8343 NSBitsPerPixelFromDepth (Bug#3207).
8344
27a69fd9
CY
83452009-05-10 Chong Yidong <cyd@stupidchicken.com>
8346
8347 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8348
00f37552
TTN
83492009-05-10 Ulrich Mueller <ulm@gentoo.org>
8350
8351 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8352
2d82a920
DR
83532009-05-07 David Reitter <david.reitter@gmail.com>
8354
ec7709ba
JB
8355 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8356 Respect mouse face background.
2d82a920 8357
46b0d52d
DR
83582009-05-07 David Reitter <david.reitter@gmail.com>
8359
ec7709ba
JB
8360 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8361 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8362 in ns_update_begin and ns_update_end.
8363
ce1b23bb
SM
83642009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8365
5996e1b7
SM
8366 * nsfns.m (ns_get_screen): Rewrite.
8367 Don't presume selected-frame is of type `ns'.
8368
ba98e3a0
SM
8369 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8370 all drivers.
8371
ce1b23bb
SM
8372 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8373
bcda200f
YM
83742009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8375
8376 * keyboard.h (add_user_signal): Fix typo in extern.
8377
8378 * lisp.h (add_user_signal): Remove extern.
8379
8380 * unexelf.c (unexec): Consider a section to precede the .bss section
8381 if its addresses overlap that of .bss.
8382 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8383 instead of dumping process.
8384
864660a2
SM
83852009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8386
8387 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8388
50da4e56
SM
83892009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8390
8391 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8392
51520a1a
DN
83932009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8394
8395 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8396 any statements.
8397
409ea3a1
AS
83982009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8399
59c4c60f
AS
8400 * process.c (read_process_output): Make sure the current buffer is
8401 always restored.
8402
409ea3a1
AS
8403 * coding.c (record_conversion_result): Don't modify
8404 Vlast_code_conversion_error for successful result.
8405 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8406
56f00ed2
KH
84072009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8408
8409 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8410 (load_charset_map): Remove unnecessary code.
56f00ed2 8411
4491c9d2
DR
84122009-04-30 David Reitter <david.reitter@gmail.com>
8413
35f5b128 8414 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8415 through f24.
8416
6970f632
CY
84172009-04-30 Chong Yidong <cyd@stupidchicken.com>
8418
8419 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8420
8421 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8422 face_at_buffer_position.
8423 (face_before_or_after_it_pos, get_next_display_element)
8424 (note_mouse_highlight): Update face_at_buffer_position call.
8425
8426 * term.c (term_mouse_highlight):
8427 * msdos.c (IT_note_mouse_highlight):
8428 * fontset.c (Finternal_char_font):
35f5b128 8429 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8430
8431 * dispextern.h (face_at_buffer_position): Update prototype.
8432
0c616f63
KH
84332009-04-30 Kenichi Handa <handa@m17n.org>
8434
35f5b128 8435 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8436
ad3aaf33
AS
84372009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8438
8439 * callproc.c (Fcall_process): Fix GC protection. Make sure
8440 current buffer is always restored.
8441
c3c963a0
YM
84422009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8443
8444 * atimer.c (init_atimer): Also clear stopped_atimers.
8445
8446 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8447
7e3386cb
YM
8448 * process.c (create_process): Clean up merger residues of
8449 2008-07-17 change.
8450
91f68422
CY
84512009-04-29 Ulrich Mueller <ulm@gentoo.org>
8452
8453 * lread.c (Vread_circle): New variable.
8454 (read1): Disable recursive read if Vread_circle is nil.
8455
24b34550
KH
84562009-04-29 Kenichi Handa <handa@m17n.org>
8457
8458 * fontset.h (set_default_ascii_font): Delete extern.
8459
8460 * fontset.c (set_default_ascii_font): Delete this unused function.
8461
8462 * frame.c (x_set_font): When ARG is a font-object, check if the
8463 font-object matches with the ASCII font-spec of the frame's
9c358bda 8464 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8465
77bf07e1
AS
84662009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8467
8468 * fns.c (Flocale_info): Protect vector from GC during decoding.
8469
8470 * process.c (Fstart_process): Protect argv strings from GC during
8471 encoding.
8472
2c55aacf
AS
84732009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8474
8475 * sysdep.c: Include <ctype.h>.
8476
b892d3c9
DR
84772009-04-27 David Reitter <david.reitter@gmail.com>
8478
35f5b128 8479 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8480 Remove commented-out code.
8481
9d0644c4
JB
84822009-04-26 Johan Bockgård <bojohan@gnu.org>
8483
8484 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8485
b7053016
JR
84862009-04-25 Jason Rumney <jasonr@gnu.org>
8487
8488 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8489
4e8231f3
YM
84902009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8491
8492 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8493 Swap bytes in short integer if fringe bitmap width > 8.
8494
493dcf2c
KH
84952009-04-23 Kenichi Handa <handa@m17n.org>
8496
8497 * xfaces.c (Fx_list_fonts): If a font size is specified in
8498 PATTERN, set it in returned scalable fonts.
8499
401e9e57
CY
85002009-04-22 Chong Yidong <cyd@stupidchicken.com>
8501
708e05dc
CY
8502 * keyboard.c (Fset_input_meta_mode): Doc fix.
8503
8504 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8505
1ac9108a 8506 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8507
8508 * coding.c (Fterminal_coding_system): Doc fix.
8509
8510 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8511 (Fx_display_pixel_height, Fx_display_planes)
8512 (Fx_display_color_cells, Fx_server_max_request_size)
8513 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8514 (Fx_display_mm_height, Fx_display_mm_width)
8515 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8516 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8517 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8518 (check_x_display_info): Handle terminal objects instead of
8519 terminal ids.
8520
401e9e57
CY
8521 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8522 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8523 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8524 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8525
df80c7f0
KH
85262009-04-21 Kenichi Handa <handa@m17n.org>
8527
5a8f12af 8528 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8529 (font_score): Check AVGWIDTH too.
908567ef 8530
df80c7f0
KH
8531 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8532 worst case.
1ac9108a
SM
8533 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8534 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8535
705af33f
JR
85362009-04-19 Jason Rumney <jasonr@gnu.org>
8537
8538 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8539 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8540
8541 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8542 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8543 get_phys_cursor_geometry.
8544
b71ac3dd 8545 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8546 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8547 using get_phys_cursor_geometry.
8548
8549 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8550 correctly calculated.
8551
dc2933eb
JD
85522009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8553
1ac9108a
SM
8554 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8555 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8556 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8557 is deprecated.
8558
973e7849
AS
85592009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8560
8561 * font.c (font_put_frame_data): Use xfree instead of free.
8562
314d66f4
JB
85632009-04-17 Juanma Barranquero <lekktu@gmail.com>
8564
8565 * w32font.c (Qja, Qko): Remove declarations.
8566 (syms_of_w32font): Don't DEFSYM them.
8567
cf702558
CY
85682009-04-17 Chong Yidong <cyd@stupidchicken.com>
8569
8570 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8571
8572 * font.h (Qja, Qko): Extern them.
8573
8574 * ftfont.c (Qja, Qko): Remove declarations.
8575
8576 * xfont.c (Qja, Qko): Remove declarations.
8577
b50504f5
KH
85782009-04-17 Kenichi Handa <handa@m17n.org>
8579
bde25748
KH
8580 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8581 string from a vector to handle Latin-1 characters correctly.
8582
b50504f5
KH
8583 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8584 entity even if the cache hits.
8585
f4646fff
AS
85862009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8587
8588 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8589 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8590
e7deaab0
AS
8591 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8592 * lisp.h: Adjust prototypes.
8593
0a0e7d49
CY
85942009-04-16 Chong Yidong <cyd@stupidchicken.com>
8595
8596 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8597 change (Bug#3003).
8598
3c908a57
KH
85992009-04-16 Kenichi Handa <handa@m17n.org>
8600
1ac9108a 8601 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8602
8603 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8604 adstyle.
8605
8606 * ftfont.c (Qja, Qko): Don't make them static.
8607 (enum ftfont_cache_for): New enum.
8608 (fc_charset_table): Undo the previous change.
8609 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8610 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8611 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8612 non-scarable font, try to get AVERAGE_WIDTH.
8613 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8614 Change ft_face_cache from a list of a hash-table. Don't check
8615 `ja' and `ko' adstyle here.
8616 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8617 FTFONT_CACHE_FOR_CHARET.
8618 (ftfont_get_charset): Undo the previous change.
1ac9108a 8619 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8620 (ftfont_close): Likewise.
8621 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8622
8623 * font.c (font_sort_entites): Change the meaning of the arg
8624 BEST-ONLY. Don't optimize for VEC of lenght 1.
8625 (font_select_entity): Just return the value of font_sort_entites.
8626
8627 * xfaces.c (merge_face_vectors): Reflect font properties in
8628 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8629 font_clear_prop if a face attribute doesn't change.
8630
3c908a57
KH
8631 * charset.h (charset_ksc5601): Extern it.
8632
8633 * charset.c (charset_ksc5601): New variable.
8634 (Fdefine_charset_internal): Set charset_ksc5601.
8635 (init_charset_once): Initialize charset_ksc5601 to -1.
8636
d65859c3
DN
86372009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8638
8639 * fileio.c (history_delete_duplicates): Remove unused declaration.
8640
8641 * callint.c (history_delete_duplicates): New declaration.
8642 (Fcall_interactively): Remove command history duplicates when
8643 history_delete_duplicates is true.
8644
3ba010e5
EZ
86452009-04-14 Eli Zaretskii <eliz@gnu.org>
8646
8647 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8648
06f19b91
KH
86492009-04-14 Kenichi Handa <handa@m17n.org>
8650
8651 * font.c (Ffont_info): Fix docstring. Fix the second element of
8652 the returned value (bug#2949).
8653
2cce8bfc
CY
86542009-04-14 Chong Yidong <cyd@stupidchicken.com>
8655
8656 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8657
d156542d
KH
86582009-04-14 Kenichi Handa <handa@m17n.org>
8659
8660 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8661 encoding charset is ascii_compatible.
8662
8663 * charset.c (Fdefine_charset_internal): Make charset
8664 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8665 code_offset is 0, and covers all ASCII characters.
8666
86fa089e
SM
86672009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8668
8669 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8670 (ns_string_to_pasteboard_internal):
8671 * nsmenu.m (process_dialog):
8672 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8673 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8674 * lisp.h (Fx_load_color_file): Declare.
8675
a8a3728b
KH
86762009-04-13 Kenichi Handa <handa@m17n.org>
8677
1ac9108a 8678 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8679 (font_select_entity): Suppress the code to optimize for the same
8680 kind of fonts.
8681 (font_load_for_lface): Get a font that supports at least ASCII
8682 characters.
8683
8684 * ftfont.c (Qja, Qko): New variables.
8685 (fc_charset_table): Delete uniquifier data for iso8859-1.
8686 (ftfont_get_latin1_charset): New function.
8687 (get_adstyle_property): New function.
8688 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8689 bitmap fonts.
8690 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8691 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8692 `ko' or `ja'.
8693 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8694 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8695 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8696 property.
8697 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8698 (syms_of_ftfont): DEFSYM Qja and Qko.
8699
483670b5
KH
87002009-04-09 Kenichi Handa <handa@m17n.org>
8701
12b55765
KH
8702 * charset.c (map_charset_chars): For a charset of `superset'
8703 method, fix calculation of code range.
8704
483670b5
KH
8705 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8706 from the list of extra properties.
8707 (font_clear_prop): Be sure to delete `:name' font property.
8708
57d3b93b
KH
87092009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8710
b4b2c2ca
YM
8711 * dispnew.c (redraw_overlapping_rows): Fix detection of
8712 overlapping for topmost and bottommost rows.
8713
1ac9108a 8714 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8715
472c3609
JR
87162009-04-06 Jason Rumney <jasonr@gnu.org>
8717
8718 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8719
ab193662
KH
87202009-04-06 Kenichi Handa <handa@m17n.org>
8721
8722 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8723
8724 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8725
0c26f026
KH
87262009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8727
8728 * ftfont.c (ftfont_open): Fix checking of the return value of
8729 FT_Load_Char. Fix setting font->underline_thickness.
8730
e173bbce
CY
87312009-04-04 Chong Yidong <cyd@stupidchicken.com>
8732
8733 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8734 (Fterminal_parameters, Fterminal_parameter)
8735 (Fset_terminal_parameter): In doc string, refer to terminal
8736 objects rather than terminal ids.
8737
693a2698
EZ
87382009-04-04 Eli Zaretskii <eliz@gnu.org>
8739
8740 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8741 ret_lim_data. (Bug#2867)
8742
d5221487
CY
87432009-04-03 Chong Yidong <cyd@stupidchicken.com>
8744
8745 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8746 so they don't get wider than the window, matching 2006-01-23
8747 change to the partner function in xdisp.c (Bug#2800).
8748
223509a3
KH
87492009-04-03 Kenichi Handa <handa@m17n.org>
8750
8751 * print.c (print_object): Make each lowest sub_char_table start a
8752 new line (Bug#2866).
8753
74fcd0b1
KH
87542009-04-02 Kenichi Handa <handa@m17n.org>
8755
8756 * fontset.c (fontset_font): Record no-font when a fontset
8757 explicitly tells not to try another font-specs.
8758
c542407d
SM
87592009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8760
8761 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8762
e3869731
KH
87632009-03-30 Kenichi Handa <handa@m17n.org>
8764
d8d2f142
KH
8765 * fontset.c (fontset_from_font): Specify only registry in a
8766 font-spec for all characters supported by that registry.
8767
e3869731
KH
8768 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8769 even if HAVE_M17N_FLT is not defined.
8770
5da5f805
CY
87712009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8772
8773 * ftfont.c: Conditionalize prototyping and use of
8774 ftfont_variation_glyphs.
8775
ab226c50
SM
87762009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8777
9628fed7
SM
8778 * frame.c (delete_frame): Work around compiler bug.
8779
8780 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8781 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8782 Some more EMACS_INT.
8783 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8784
8785 * xdisp.c (dump_glyph): Fix typo.
8786
ae19ba7c
SM
8787 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8788 (adjust_markers_gap_motion, adjust_markers_for_delete)
8789 (adjust_markers_for_insert, adjust_point)
8790 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8791 (make_gap, copy_text, count_size_as_multibyte, insert)
8792 (insert_and_inherit, insert_before_markers)
8793 (insert_before_markers_and_inherit, insert_1)
8794 (count_combining_before, count_combining_after, insert_1_both)
8795 (insert_from_string, insert_from_string_before_markers)
8796 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8797 (insert_from_buffer_1, adjust_after_replace)
8798 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8799 (replace_range_2, del_range, del_range_1, del_range_byte)
8800 (del_range_both, del_range_2, modify_region)
8801 (prepare_to_modify_buffer, signal_before_change)
8802 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8803 for buffer positions and sizes.
8804 * lisp.h: Adjust prototypes accordingly.
8805
8806 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8807 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8808 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8809
ab226c50
SM
8810 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8811
46dfb8fb
JD
88122009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8813
8814 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8815 lines and columns so we keep the same pixel height and width.
8816
8817 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8818 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8819 (x_handle_net_wm_state): New function to update frame parameter
8820 fullscreen.
8821 (x_term_init): Initialize atoms for _NET_WM_STATE.
8822
8823 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8824
d347e494
SM
88252009-03-27 Kevin Ryde <user42@zip.com.au>
8826
8827 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8828 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8829 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8830 (Fgpm_mouse_stop): Pass that new parameter.
8831 * termhooks.h (close_gpm): Adjust prototype.
8832
84db11d6
SM
88332009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8834
c95a5008
SM
8835 * lisp.h (Fx_focus_frame): Declare.
8836
84db11d6
SM
8837 * callint.c (Fcall_interactively): For '^' just delegate the work to
8838 handle-shift-selection.
8839 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8840
0a1958d6
CY
88412009-03-24 Chong Yidong <cyd@stupidchicken.com>
8842
0bfdff23
CY
8843 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8844
0a1958d6
CY
8845 * data.c (Qinteractive_form): New variable.
8846 (Finteractive_form): Use it.
8847
8848 * eval.c (Fcommandp): Use Qinteractive_form.
8849
58aec0d6
JR
88502009-03-24 Jason Rumney <jasonr@gnu.org>
8851
8852 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8853 Calculate total size precisely. Decode environment variables
8854 before substituting. (Bug#38)
8855
553dd618
KH
88562009-03-24 Kenichi Handa <handa@m17n.org>
8857
8858 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8859 encoding (Bug#2722).
553dd618 8860
c39ea606
JD
88612009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8862
8863 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8864 that gdpy is set.
8865
bc9b2b5e
AM
88662009-03-22 Alan Mackenzie <acm@muc.de>
8867
8868 * callint.c (Finteractive): Clarify the doc string - even
8869 promptless elements need \n separators.
8870
9f995a76
JR
88712009-03-22 Jason Rumney <jasonr@gnu.org>
8872
8873 * w32term.c (syms_of_w32term): Doc fix for
8874 x-use-underline-position-properties.
8875
22749e9a
EZ
88762009-03-21 Eli Zaretskii <eliz@gnu.org>
8877
8878 * w32.c (getpwuid): Change argument type to unsigned.
8879 (struct w32_id): Change type of `rid' member to unsigned.
8880 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8881 argument ID to unsigned. All callers changed.
8882 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8883
e00553bf
EZ
88842009-03-20 Eli Zaretskii <eliz@gnu.org>
8885
8886 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8887 negative, produce a float value.
8888
8889 * dired.c (make_uid, make_gid): New functions.
8890 (Ffile_attributes): Use them to avoid negative UID and GID.
8891
f761d6b6
JB
88922009-03-20 Juanma Barranquero <lekktu@gmail.com>
8893
8894 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8895 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8896 Fix typos in docstrings.
8897
d507f8d7
KH
88982009-03-19 Kenichi Handa <handa@m17n.org>
8899
8900 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8901 changed, use font_load_for_lface to get a new font object.
8902 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8903
8904 * frame.c (x_set_font): Handle the case that ARG is a cons.
8905
c68845e0
GM
89062009-03-19 Glenn Morris <rgm@gnu.org>
8907
8908 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8909
bfa49dd1
CY
89102009-03-19 Chong Yidong <cyd@stupidchicken.com>
8911
8912 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8913
8458d4c1
KH
89142009-03-19 Kenichi Handa <handa@m17n.org>
8915
8916 * charset.c (load_charset_map_from_file): When a mapfile can't be
8917 loaded, signal an error.
8918
78e7d1fe
EZ
89192009-03-18 Eli Zaretskii <eliz@gnu.org>
8920
8921 * dired.c (Ffile_attributes): Make sure UID and GID are always
8922 positive, even if the value is too large for a positive EMACS_INT.
8923 Doc fix.
8924
8925 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8926
5da9fdfa
YM
89272009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8928
8929 * xmenu.c (xdialog_show): Move Fredisplay call ...
8930 (Fx_popup_dialog): ... here.
8931
7519c40d
SM
89322009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8933
8934 * dired.c (file_name_completion): Disable the first optimization just
8935 installed, since it is not implemented correctly.
8936
2cd298e2
SM
89372009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8938
8939 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8940 only if the entry can affect bestmatch.
2cd298e2
SM
8941 Stop the search early, as Ftry_completion already does.
8942
48d37adf
CY
89432009-03-17 Chong Yidong <cyd@stupidchicken.com>
8944
e10c9c93 8945 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8946
9286b16a
CY
89472009-03-15 Chong Yidong <cyd@stupidchicken.com>
8948
8949 * keyboard.c (parse_menu_item): Don't display remappings as menu
8950 equivalent bindings (Bug#788).
8951
f7b146dc
JR
89522009-03-15 Jason Rumney <jasonr@gnu.org>
8953
8954 * w32term.h (WM_EMACS_PAINT): New message.
8955 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8956 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8957 before passing to lisp thread. (Bug#950)
8958
f761d6b6 89592009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8960
d93f9575
CY
8961 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8962 variable as it was never reset.
8963 (ns_term_init): Remove initialization of Lisp-settable defaults
8964 and ns_expand_space.
8965 (-setPanelFromDefaultValues): Remove ns_expand_space.
8966 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8967 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8968 i.e. no additional spacing, similar to Carbon port.
8969
d93f9575
CY
8970 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8971 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8972
305018ec
JD
89732009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8974
8975 * sound.c (alsa_configure): Remove call to deprecated
8976 snd_pcm_sw_params_set_xfer_align.
8977
f761d6b6 89782009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8979
8980 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8981 after clicking in a detached tool bar.
8982 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8983
46e722a9
SM
89842009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8985
348db3dd
SM
8986 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8987 int/Lisp_Object mixup).
46e722a9 8988
a3d16f39
KH
89892009-03-13 Kenichi Handa <handa@m17n.org>
8990
8991 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8992 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8993 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8994 (set_fontset_font): Change ARG to a vector. Handle range_list in
8995 ARG correctly.
8996 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8997 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8998 the above change.
8999 (fontset_from_font): Fix previous change.
fe24f56a 9000 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9001 entry. If FONTSET is the default fontset, don't set the extra
9002 slot of the returning char-table.
9003
b066e6b6
JB
90042009-03-12 Juanma Barranquero <lekktu@gmail.com>
9005
9006 * nsfns.m (Fx_close_connection): Doc fix.
9007 (Fns_do_applescript): Reflow docstring.
9008 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9009 (Fx_display_pixel_width, Fx_display_pixel_height)
9010 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9011 Fix typos in docstrings.
9012 (Fns_set_alpha): Fix typos in error messages.
9013
d472514e 90142009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9015
d472514e 9016 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9017 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9018 were used for such events.
9019
d472514e
JB
9020 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9021 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9022
d472514e 9023 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9024 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9025
fb930676
KH
90262009-03-11 Kenichi Handa <handa@m17n.org>
9027
ff85581a
KH
9028 * font.h (font_open_by_spec): Extern it.
9029
c50b7e98
KH
9030 * font.c (font_open_by_spec): New function.
9031 (font_open_by_name): Use font_open_by_spec.
9032
fb930676
KH
9033 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9034 fontset of the frame.
9035
9036 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9037 modify the default font of frames that use this fontset.
9038 (num_auto_fontsets): New variable.
9039 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9040 name. Be sure to set FONTSET_ASCII to the correct font name.
9041 (update_auto_fontset_alist): New function.
9042
df4e8455
JB
90432009-03-11 Juanma Barranquero <lekktu@gmail.com>
9044
9045 * makefile.w32-in: Update dependencies.
9046
0a375797
AR
90472009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9048
9049 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9050
61313fa3
SM
90512009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9052
9053 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9054
b55103fb
CY
90552009-03-10 Chong Yidong <cyd@stupidchicken.com>
9056
9057 * lread.c (Feval_buffer): Doc fix.
9058
dde2559c
KH
90592009-03-09 Kenichi Handa <handa@m17n.org>
9060
9061 * charset.c (Qfile_name_handler_alist): Extern it.
9062 (load_charset_map_from_file): Temporarily bind
9063 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9064
df4e8455 90652009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9066
47f588bb
GM
9067 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9068 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9069
4ddf94bd
AR
90702009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9071
4c9bdfc2
AR
9072 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9073 (x_set_window_size): Change back to calculated method of setting
9074 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9075 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9076 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9077
fe41ae9e
AR
9078 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9079
4c9bdfc2
AR
9080 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9081 accelerator in parens under GNUstep.
9082
825d0875
KH
90832009-03-06 Kenichi Handa <handa@m17n.org>
9084
9085 These changes are to detect incorrect composition sequence without
f3b3be74 9086 looking ahead the source. (Bug#2370)
825d0875
KH
9087
9088 * coding.h: Include "composite.h".
9089 (enum compisition_state): New enum.
9090 (struct compisition_status): New struct.
9091 (struct iso_2022_spec): New member cmp_status.
9092 (struct emacs_mule_spec): New struct.
9093 (struct coding_system): New members ctext_extended_segment_len and
9094 embedded_utf_8. Change the union member
9095 spec.emacs_mule_full_support to spec.emacs_mule.
9096
9097 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9098 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9099 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9100 (ADD_COMPOSITION_DATA): New arg nbytes.
9101 (emacs_mule_char): New arg cmp_status.
9102 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9103 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9104 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9105 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9106 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9107 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9108 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9109 (EMACS_MULE_COMPOSITION_END): New macro.
9110 (emacs_mule_finish_composition): New function.
9111 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9112 (decode_coding_emacs_mule): Avoid long looking ahead while
9113 handling composition.
9114 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9115 (ENCODE_COMPOSITION_RULE): New macro.
9116 (finish_composition): New function.
9117 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9118 (DECODE_COMPOSITION_START): New implementation.
9119 (DECODE_COMPOSITION_END): Likewise.
9120 (STORE_COMPOSITION_RULE): New macro.
9121 (decode_coding_iso_2022): Avoid long looking ahead while handling
9122 composition, CTEXT extended segment, and embedded UTF-8.
9123 (setup_coding_system): For a coding of type iso-2022, reset
9124 CODING_ISO_EXTSEGMENT_LEN (coding) and
9125 CODING_ISO_EMBEDDED_UTF_8 (coding).
9126 (get_translation): Delete arguments last_block, from_nchars,
9127 to_nchars. Callers changed.
9128 (produce_chars): Don't modify charbuf. Adjusted for the change of
9129 get_translation.
98a326f7 9130 (produce_composition): Adjust for the new annotation sequence.
825d0875 9131 (handle_composition_annotation): Likewise.
98a326f7 9132 (consume_chars): Adjust for the change of get_translation.
825d0875 9133
ccbc4452
AR
91342009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9135
4ddf94bd 9136 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9137
988a7ddb
KH
91382009-03-05 Kenichi Handa <handa@m17n.org>
9139
9140 * font.c (font_select_entity): New function.
9141 (font_find_for_lface): Use font_select_entity to select a font.
9142
9143 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9144 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9145 font with C restriction.
9146
98a326f7 91472009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9148
be1bce46 9149 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9150
10ea2b82
JR
91512009-03-04 Jason Rumney <jasonr@gnu.org>
9152
2c93b248 9153 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9154 characters that have already been read. (Bug#2569)
2c93b248 9155
10ea2b82
JR
9156 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9157 Log an error message if check_image_size failed.
9158 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9159 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9160
71a0c011
EZ
91612009-03-02 Eli Zaretskii <eliz@gnu.org>
9162
9163 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9164 when decoding process output.
9165
2f63bba8
RS
91662009-03-01 Richard M Stallman <rms@gnu.org>
9167
9168 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9169
9170 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9171
0a9564cb
EZ
91722009-02-28 Eli Zaretskii <eliz@gnu.org>
9173
9174 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9175 (decode_coding_emacs_mule, decode_coding_iso_2022)
9176 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9177 (decode_coding_raw_text, decode_coding_charset)
9178 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9179 Honor inhibit-eol-conversion. (Bug #2186)
9180
449148b3
JR
91812009-02-28 Jason Rumney <jasonr@gnu.org>
9182
9183 * coding.c (detect_coding_charset): If not checking latin extra,
9184 fail on characters between 0x80 and 0xA0. (Bug#2354)
9185
a4aee864
EZ
91862009-02-28 Eli Zaretskii <eliz@gnu.org>
9187
9188 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9189 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9190
d88bee5a
GM
91912009-02-27 Glenn Morris <rgm@gnu.org>
9192
9193 * callint.c (Finteractive): Doc fix.
9194
a808f22d
KH
91952009-02-27 Kenichi Handa <handa@m17n.org>
9196
9197 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9198
caf8d60c
CY
91992009-02-27 Chong Yidong <cyd@stupidchicken.com>
9200
9201 * font.c (font_style_to_value): Set value for unknown symbols to
9202 100 instead of 255.
b61137ea
CY
9203 (weight_table, slant_table, width_table): Treat "unspecified" as
9204 the default value.
caf8d60c 9205
1a0de25c
JB
92062009-02-26 Juanma Barranquero <lekktu@gmail.com>
9207
9208 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9209
8fc45744
JB
92102009-02-25 Juanma Barranquero <lekktu@gmail.com>
9211
107bd7d1
JB
9212 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9213 error as soon as a recursive load is detected.
8fc45744 9214
f097e223
AR
92152009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9216
9217 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9218 before caching.
9219
8810a12f
KH
92202009-02-24 Kenichi Handa <handa@m17n.org>
9221
9222 * fontset.c (fontset_find_font): Fix the condition for checking
9223 unavailable font.
9224
2c7d1565
GM
92252009-02-24 Glenn Morris <rgm@gnu.org>
9226
9227 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9228 whitespace that confuses documentation.
9229
a20878b6
MB
92302009-02-23 Miles Bader <miles@gnu.org>
9231
9232 * process.c (Flist_system_processes, Fprocess_attributes)
9233 (syms_of_process): Rename `system-process-attributes' to
9234 `process-attributes'.
9235
b3b58c01
AS
92362009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9237
1b3b981b
AS
9238 * coding.h (struct coding_system): Make safe_charsets a pointer to
9239 unsigned char.
9240 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9241 being 255.
9242 (SAFE_CHARSET_P): Likewise.
9243 (setup_iso_safe_charsets): Properly setup safe_charsets.
9244 (Fdefine_coding_system_internal): Likewise.
9245 (setup_coding_system): Likewise. Remove unneeded casts.
9246 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9247 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9248 unneeded casts.
9249
b3b58c01
AS
9250 * insdel.c (del_range_2): Don't modify gap contents when called
9251 from decode_coding_object. (Bug#1809)
9252
0b6f228c
CY
92532009-02-21 Chong Yidong <cyd@stupidchicken.com>
9254
9255 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9256 Qfont_object.
9257 (Ftype_of): Recognize font objects.
9258
9259 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9260
9261 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9262 moved to data.c.
9263
52f8870b
AR
92642009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9265
9266 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9267 async_iconified. Based on a patch by Christian Lynbech
9268 <christian.lynbech@tieto.com>.
9269 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9270
7087d5e9
GM
92712009-02-20 Glenn Morris <rgm@gnu.org>
9272
9273 * syntax.c (Fskip_chars_forward): Fix doc typo.
9274
41d2ceef
CY
92752009-02-20 Chong Yidong <cyd@stupidchicken.com>
9276
9277 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9278
1a3b7ca6
CY
92792009-02-19 Chong Yidong <cyd@stupidchicken.com>
9280
9281 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9282
73cce38d
KH
92832009-02-19 Kenichi Handa <handa@m17n.org>
9284
9285 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9286 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9287
a51092ee
DN
92882009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9289
9290 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9291
c423ecca
KH
92922009-02-18 Kenichi Handa <handa@m17n.org>
9293
9294 * font.c (font_check_otf_features): Fix handling of `nil' element.
9295 (Ffont_spec): Describe :lang and :otf in the docstring.
9296
4c1958f4
AS
92972009-02-16 Andreas Schwab <schwab@suse.de>
9298
9299 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9300 string.
9301
5704f39a
KH
93022009-02-16 Kenichi Handa <handa@m17n.org>
9303
9304 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9305 (Bug#1723)
5704f39a 9306
8f0085aa
CY
93072009-02-14 Chong Yidong <cyd@stupidchicken.com>
9308
a057d86a 9309 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9310
9311 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9312 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9313
aff01dd9
EZ
93142009-02-14 Eli Zaretskii <eliz@gnu.org>
9315
9316 * msdos.c (MAX_SCREEN_BUF): New macro.
9317 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9318 Encode the entire run of glyphs sharing the same face, instead of
9319 doing that one glyph at a time (fixes a bug with displaying
9320 double-size characters).
9321
ba301db3
AR
93222009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9323
9324 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9325
9326 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9327 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9328 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9329
9330 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9331 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9332
51d861de
SM
93332009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9334
ac146f82 9335 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9336 invisible areas.
9337
7fed8996
JR
93382009-02-12 Jason Rumney <jasonr@gnu.org>
9339
631ea4fb
JR
9340 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9341 (add_font_entity_to_list): Call check_face_name even when family
9342 is unspecified.
9343
cb4a3e42
JR
9344 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9345 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9346 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9347
7fed8996 9348 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9349 raster fonts. (Bug#2219)
7fed8996 9350
895416e3
KH
93512009-02-12 Kenichi Handa <handa@m17n.org>
9352
9353 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9354 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9355 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9356 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9357 (find_automatic_composition): While looking forward and backward,
9358 check static composition. Fix where to stop looking forward.
9359 (composition_adjust_point): Fix checking of static composition.
9360 (Fcomposition_get_gstring): Pay attention to
1dacf998 9361 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9362
9363 * lisp.h (fast_looking_at): Extern it.
9364
9365 * search.c (fast_looking_at): New function.
9366
51d861de 9367 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9368 <struct glyph>.u.cmp.to.
9369 (append_composite_glyph): Likewise.
9370
51d861de 9371 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9372 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9373 composition.
51d861de 9374 (append_composite_glyph): Adjust for the change of
895416e3
KH
9375 <strcut glyph>.u.cmp.to.
9376
8510724d
JB
93772009-02-11 Juanma Barranquero <lekktu@gmail.com>
9378
9379 * casetab.c (init_casetab_once):
9380 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9381 * font.c (font_update_lface):
9382 * fontset.c (Fnew_fontset):
9383 * ftfont.c (ftfont_drive_otf):
9384 * xfont.c (xfont_open):
9385 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9386
294fa707
SM
93872009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9388
9389 * fileio.c (Fwrite_region): !NILP -> CONSP.
9390
b5bfebec
AS
93912009-02-10 Andreas Schwab <schwab@suse.de>
9392
9393 * process.c (send_process): Properly relocate pointer into data
adab88bd 9394 when using encoded data. (Bug#2272)
b5bfebec 9395
cb84a2be
KH
93962009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9397
9398 * coding.c (detect_coding_charset): Fix previous change.
9399
89e09428
JR
94002009-02-08 Jason Rumney <jasonr@gnu.org>
9401
9402 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9403 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9404
4470a277
AS
94052009-02-07 Andreas Schwab <schwab@suse.de>
9406
9407 * unexelf.c (unexec): Fix error message.
9408
3175b12a
AR
94092009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9410
9411 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9412 when modal window is active. (Bug #2152)
3175b12a
AR
9413 (applicationShouldTerminate:): Remove now-unneeded while loop
9414 around NSRunAlertPanel.
9415
9416 * nsmenu.m (popupSession): New file-global variable.
9417 (pop_down_menu): End the popupSession before closing dialog.
9418 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9419 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9420 don't query NSApp for events (just sleep instead).
9421
8434d0b8
EZ
94222009-02-07 Eli Zaretskii <eliz@gnu.org>
9423
51d861de
SM
9424 * coding.c (syms_of_coding) <translation-table-for-input>:
9425 Modify doc string to discourage use for character code unification.
8434d0b8 9426
aa82edfd
CY
94272009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9428
9429 * atimer.c (run_timers): Update pending_atimers.
9430
2d283c7c
CY
94312009-02-06 Chong Yidong <cyd@stupidchicken.com>
9432
eb306cab
CY
9433 * image.c (svg_load_image): Fix last change.
9434
2d283c7c
CY
9435 * xfns.c (Fx_create_frame): Signal an error if no font is
9436 found (Bug#2147).
9437
4d8e170e
JB
94382009-02-05 Juanma Barranquero <lekktu@gmail.com>
9439
9440 * character.c (syms_of_character) <script-representative-chars>:
9441 Fix typo in docstring.
9442
c96169a0
AR
94432009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9444
9445 * nsmenu.m (pop_down_menu): New function.
9446 (ns_popup_dialog): Call it on unwind.
9447 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9448 call timer_check() (Bug#2154).
9449 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9450 handling_signal is set.
9451 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9452
31fd7c5c 9453 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9454
9455 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9456
9457 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9458
51d861de
SM
9459 * keyboard.c (poll_for_input_1, handle_async_input):
9460 Set handling_signal under HAVE_NS.
c96169a0 9461
aacd8ba1
GM
94622009-02-04 Glenn Morris <rgm@gnu.org>
9463
9464 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9465
4cb75c4b
KH
94662009-02-04 Kenichi Handa <handa@m17n.org>
9467
9468 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9469
9470 * charset.c (Fchar_charset): New optional arg restriction.
9471
9472 * coding.h (coding_system_charset_list): Extern it.
9473
9474 * coding.c (coding_system_charset_list): New function.
9475
9476 * composite.c: Include coding.h and termhooks.h.
9477 (composition_gstring_p): Fix for the terminal case.
9478 (composition_gstring_width): Likewise.
9479 (fill_gstring_body): Likewise.
9480 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9481 the frame.
9482 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9483 is within a composition.
867d4bb3 9484 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9485
9486 * term.c (encode_terminal_code): Fix handling of composition.
9487 (produce_composite_glyph): For static composition, get pixel_width
9488 from struct composition.
9489
826ba17e
AS
94902009-02-02 Andreas Schwab <schwab@suse.de>
9491
9492 * unexelf.c (unexec): Handle unaligned bss offset.
9493
8ad093db
AR
94942009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9495
9496 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9497 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9498
8ad093db
AR
9499 * keyboard.c (handle_interrupt): Don't call
9500 quit_throw_to_read_char() under NS.
d0a76a6e 9501
8ad093db
AR
9502 * blockinput.h: Remove NS-specific code.
9503
4d18a7a2
DN
95042009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9505
db878925
DN
9506 * dispnew.c (window_change_signal): Don't try to get the size of a
9507 suspended tty frame.
9508 * term.c (Fresume_tty): Resize if the size has changed while the
9509 tty was suspended.
9510
4d18a7a2
DN
9511 * alloc.c (mark_stack): Properly conditionalize previous change.
9512
8984df7c
JB
95132009-01-30 Juanma Barranquero <lekktu@gmail.com>
9514
9515 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9516 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9517 Remove; this code is not used on Windows.
9518
75f4f1ac
EZ
95192009-01-30 Eli Zaretskii <eliz@gnu.org>
9520
9521 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9522 EOLs that also has stray ^M characters.
9523
07a1e794
JB
95242009-01-30 Juanma Barranquero <lekktu@gmail.com>
9525
9526 * atimer.c (run_timers, alarm_signal_handler):
9527 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9528 * w32inevt.c (w32_console_read_socket):
9529 * w32term.c (w32_read_socket):
9530 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9531
a8b11cc9
CY
95322009-01-30 Chong Yidong <cyd@stupidchicken.com>
9533
9534 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9535 Initialize it as a relative filename pattern.
9536 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9537 (Fcall_process_region): Simplify temp file creation using
9538 temporary-file-directory.
9539
c279587b
EZ
95402009-01-29 Eli Zaretskii <eliz@gnu.org>
9541
9542 * msdos.c: Rename pending_signals to msdos_pending_signals.
9543 (sig_suspender, sigprocmask): Adjust.
9544
a8fe3242
CY
95452009-01-29 Chong Yidong <cyd@stupidchicken.com>
9546
9547 * keyboard.c (pending_signals): New var.
9548 (poll_for_input, input_available_signal, init_keyboard): Set it.
9549 (process_pending_signals): New function.
9550
9551 * lisp.h (QUIT): Check pending_signals instead of
9552 interrupt_input_pending. Use process_pending_signals.
9553
51d861de 9554 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9555
51d861de 9556 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9557
9558 * sysdep.c (emacs_write): Use process_pending_signals.
9559
9560 * xterm.c (XTread_socket): Update pending_signals.
9561
9562 * w32term.c (w32_read_socket): Update pending_signals.
9563
9564 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9565
6570a1c4
KH
95662009-01-29 Kenichi Handa <handa@m17n.org>
9567
9568 * xftfont.c (xftfont_has_char): New function.
9569 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9570
d72a4afa
AR
95712009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9572
9573 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9574 under GNUstep.
9575 (ns_query_color): New declaration.
9576
9577 * nsterm.m (ns_confirm_quit): New variable.
9578 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9579 (EmacsApp-applicationShouldTerminate:): Use it.
9580 (EmacsPrefsController): Let user set it.
9581 (ns_query_color): New function.
9582 (ns_defined_color): Use it.
9583 (ns_initialize): Drop.
9584 (ns_term_init): Add two lines from ns_initialize(), and set
9585 input_interrupt_mode to nil.
9586
9587 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9588 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9589
9fe78804
KH
95902009-01-28 Kenichi Handa <handa@m17n.org>
9591
9592 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9593 (fontset_get_font_group): Remember that no font-group is specified
9594 for C.
9fe78804 9595
fa57de36
CY
95962009-01-27 Chong Yidong <cyd@stupidchicken.com>
9597
930600e9
CY
9598 * fns.c (concat): Check for string overflow (bug#1787).
9599
fa57de36
CY
9600 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9601 Quadruple undo limits (bug#1501).
9602
7179ce7b
KH
96032009-01-27 Kenichi Handa <handa@m17n.org>
9604
9605 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9606 directly use GT_Get_Char_index.
9607
9608 * xftfont.c (struct xftfont_info): New member `index'.
9609
9610 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9611 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9612
5be8fcc0
CY
96132009-01-26 Kenichi Handa <handa@m17n.org>
9614
9615 * fontset.c (fontset_find_font): Fix handling of non-cons return
9616 value of fontset_get_font_group.
9617 (fontset_font): Revert last change.
9618
19ae3e61
JR
96192009-01-26 Jason Rumney <jasonr@gnu.org>
9620
9621 * w32font.c (w32font_list_internal): Return quickly if registry is
9622 unknown. Simplify final return.
9623 (add_font_entity_to_list): Break complex logic down into more
9624 manageable chunks. Move unknown registry check to
9625 w32font_list_internal.
9626
8612b71a
AR
96272009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9628
9629 Changes to remove Feval calls from GUI under NS.
9630
d8038940
JB
9631 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9632 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9633 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9634
9635 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9636 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9637 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9638 instead of NON_ASCII_KEYSTROKE_EVENT.
9639 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9640 (EmacsApp-applicationShouldTerminate:): Query user.
9641 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9642 instead of Feval.
9643
9644 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9645
9646 * keyboard.c (kbd_buffer_get_event): Check for it.
9647 (keys_of_keyboard): Define lispy keys for
9648 ns-put/unput-working-text.
9649
9650 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9651 versions.
9652 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9653
6288ae55
CY
96542009-01-25 Chong Yidong <cyd@stupidchicken.com>
9655
9656 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9657 setting current_buffer directly. (Bug#2044)
6288ae55 9658
289e7f8f
CY
96592009-01-24 Chong Yidong <cyd@stupidchicken.com>
9660
5ce87308 9661 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9662 any work. (Bug#1952, bug#1990).
5ce87308 9663
64cc3cf6 9664 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9665
b3243e6f
AR
96662009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9667
9668 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9669 (ns_no_defaults): New declaration.
9670 (main): Use it.
e0d2e69a 9671
d900b2af 9672 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9673
d900b2af 9674 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9675
d900b2af
AR
9676 * nsterm.m (ns_no_defaults): New variable.
9677 (ns_initialize): Don't read defaults when ns_no_defaults.
9678 (EmacsView-readSelectionFromPasteboard:)
9679 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9680 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9681 (ns_dumpglyphs_stretch): New function.
9682 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9683 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9684
e0d2e69a
AR
9685 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9686
3ac71f5d
CY
96872009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9688
9689 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9690 call for Sparc64.
9691
3fe53a83
AR
96922009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9693
9694 * nsfns.m:
9695 * nsgui.h:
9696 * nsmenu.m:
9697 * nsselect.m:
9698 * nsterm.h:
9699 * nsterm.m: Remove '23' comments that indicated code added during
9700 update from emacs-20 -> emacs-23.
9701
10f87c6f 97022009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9703
9704 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9705 ns_alternate_modifier. (Bug#1217)
a3b53a85 9706
c7cef62d
AR
9707 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9708 Display all shortcuts, including those w/o super modifier.
9709
575fb8bd
AR
9710 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9711
918b848b
CY
97122009-01-22 Chong Yidong <cyd@stupidchicken.com>
9713
9714 * fileio.c (Vwrite_region_post_annotation_function)
9715 (Vwrite_region_annotation_buffers): New vars.
9716 (build_annotations_unwind): Just reset
9717 Vwrite_region_annotation_buffers.
9718 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9719 Call write-region-post-annotation-function.
9720 (build_annotations): Add to Vwrite_region_annotation_buffers if
9721 buffer changes.
9722
a39e2539
AR
97232009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9724
9725 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9726 Tiger.
51d861de
SM
9727 * nsfns.m (ns_do_applescript):
9728 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9729
35ed44db
AR
97302009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9731
9732 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9733
cbe0b5bf
AR
97342009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9735
9736 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9737
6049d3a0
AR
9738 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9739
9740 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9741 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9742 handle Ctrl-tab. (Bug#1841)
9743 (ns_get_color): Use unsigned long long for scanned hex string value.
9744 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9745 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9746 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9747 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9748 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9749 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9750 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9751
d3810c21 9752 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9753 DPI. (Bug#1316)
d3810c21
AR
9754 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9755 values in onTiger section.
4c7077c3 9756
e301e634
CY
97572009-01-19 Chong Yidong <cyd@stupidchicken.com>
9758
7f82490b
CY
9759 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9760 Check return value of font_spec_from_name.
64cc3cf6 9761 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9762
9763 * font.c (font_spec_from_name): Return Qnil if font name could not
9764 be parsed.
9765 (font_parse_name): Treat a `?' character as part of an XLFD.
9766
e301e634
CY
9767 * fns.c (Fsubstring): Doc fix.
9768
1c0db158
KH
97692009-01-19 Kenichi Handa <handa@m17n.org>
9770
51d861de 9771 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9772 (ftfont_list): Likewise.
9773
acf20901
JB
97742009-01-18 Juanma Barranquero <lekktu@gmail.com>
9775
fff4e459
JB
9776 * dbusbind.c (Fdbus_register_signal):
9777 * process.c (conv_sockaddr_to_lisp):
9778 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9779
acf20901
JB
9780 * callproc.c (Fgetenv_internal): Doc fix.
9781
e7abcdfb
CY
97822009-01-16 Chong Yidong <cyd@stupidchicken.com>
9783
9784 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9785 it is not even used.
9786
b60861e6
GM
97872009-01-16 Glenn Morris <rgm@gnu.org>
9788
9789 * font.c (Ffont_variation_glyphs): Silence compiler.
9790
8db52afe
JB
97912009-01-15 Juanma Barranquero <lekktu@gmail.com>
9792
9793 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9794 Reported by David Robinow <drobinow@gmail.com>.
9795
4cddb209
KH
97962009-01-15 Kenichi Handa <handa@m17n.org>
9797
51d861de 9798 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9799
f247f67b
JR
98002009-01-14 Jason Rumney <jasonr@gnu.org>
9801
9802 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9803 never a fontset. (Bug#1562)
f247f67b 9804
f56a4450
KH
98052009-01-14 Kenichi Handa <handa@m17n.org>
9806
9807 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9808 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9809
4e99855e
CY
98102009-01-13 Chong Yidong <cyd@stupidchicken.com>
9811
9812 * font.c (font_clear_prop): If clearing the family, clear the font
9813 width index too.
9814
fff4e459 9815 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9816
24f01470
JB
98172009-01-12 Juanma Barranquero <lekktu@gmail.com>
9818
9819 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9820 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9821 functions, use sizeof.
9822
a41240a3
MR
98232009-01-12 Martin Rudalics <rudalics@gmx.at>
9824
9825 * keyboard.c (read_char): Fix case where last_nonmenu_event
9826 returned a bad value with submenus. (Bug#447)
9827
944636b8
CY
98282009-01-12 Chong Yidong <cyd@stupidchicken.com>
9829
9830 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9831 family, clear the font width index too.
9832
0dad7c6f
JR
98332009-01-11 Jason Rumney <jasonr@gnu.org>
9834
9835 * keyboard.c (cmd_error_internal): Exit when errors occur before
9836 frame creation and not in daemon mode. (Bug#1836)
9837
7c2363af
CY
98382009-01-10 Chong Yidong <cyd@stupidchicken.com>
9839
9840 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9841 of a display vector, backtrack.
9842 (try_window_reusing_current_matrix): Check glyph type before
9843 referencing charpos member.
9844
97b1b294
EZ
98452009-01-10 Eli Zaretskii <eliz@gnu.org>
9846
9847 Fix Bug #876:
9848
9849 * coding.c (inhibit_null_byte_detection): New variable.
9850 (detect_coding, detect_coding_system): Don't pay attention to null
9851 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9852 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9853 <inhibit-iso-escape-detection>: Doc fix.
9854
4624b6e3
JR
98552009-01-09 Jason Rumney <jasonr@gnu.org>
9856
9857 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9858 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9859 Only report Unicode Plane 2 fonts as unicode-sip.
9860
323b840c
CY
98612009-01-09 Chong Yidong <cyd@stupidchicken.com>
9862
51d861de
SM
9863 * xfaces.c (Fx_font_family_list): Delete function.
9864 Move compatibility version to faces.el.
323b840c 9865
51d861de 9866 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9867
eba7400d
MR
98682009-01-09 Martin Rudalics <rudalics@gmx.at>
9869
9870 * frame.c (x_set_frame_parameters): Remember requested value for
9871 fullscreen before it's reset by the parameter handler.
9872
4b09796d
GM
98732009-01-09 Glenn Morris <rgm@gnu.org>
9874
9875 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9876 (last_command_event): ... and update all users.
4b09796d
GM
9877 (last_input_char): For clarity, rename to...
9878 (last_input_event): ... and update all users.
9879 (last-command-char, last-input-char): Move to subr.el as aliases.
9880 * cmds.c, commands.h: Update for last_command_char rename.
9881
14ccea62
CY
98822009-01-08 Chong Yidong <cyd@stupidchicken.com>
9883
51d861de 9884 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9885
5f004711
JR
98862009-01-08 Jason Rumney <jasonr@gnu.org>
9887
9888 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9889 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9890 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9891 Don't declare.
fff4e459 9892 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9893 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9894
b71f6f73
KH
98952009-01-07 Kenichi Handa <handa@m17n.org>
9896
50b06221 9897 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9898 remember the coding system used for decoding in
50b06221
KH
9899 coding_system (Bug#1039).
9900
b71f6f73 9901 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9902 breaking the loop. (Bug#870)
b71f6f73
KH
9903 (decode_coding_utf_16, decode_coding_emacs_mule)
9904 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9905 (decode_coding_charset): Likewise.
9906
56f668f7
MR
99072009-01-05 Martin Rudalics <rudalics@gmx.at>
9908
9909 * frame.c (x_set_frame_parameters): Make sure height (width) get
9910 applied when fullwidth (fullheight) is set. (Bug#1522)
9911
5da9424d
JB
99122009-01-04 Juanma Barranquero <lekktu@gmail.com>
9913
9914 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9915 (utc_base): Declare as ULONGLONG, not long double.
9916 (convert_time_raw): Delete.
9917 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9918 (initialize_utc_base): New function.
9919 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9920 (convert_from_time_t): Use initialize_utc_base; compute result with
9921 64-bit arithmetic.
9922 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9923
c4605e09
EZ
99242009-01-03 Eli Zaretskii <eliz@gnu.org>
9925
9acef61c 9926 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9927 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9928 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9929 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9930 [!subprocesses]: Define.
9931 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9932 (Flist_system_processes, Fsystem_process_attributes)
9933 [!subprocesses]: Call list_system_processes and
9934 system_process_attributes instead of returning Qnil.
9935
9acef61c
JB
9936 * dosfns.c (system_process_attributes, list_system_processes):
9937 New functions.
c4605e09
EZ
9938
9939 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9940
9941 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9942 Don't use the default (no-op) implementation.
9943
8b7d0a16
JR
99442009-01-03 Jason Rumney <jasonr@gnu.org>
9945
a6d46bc1
JR
9946 * keyboard.c (parse_modifiers_uncached): Wheel events are
9947 clicks (bug#687).
9948
8b7d0a16
JR
9949 * w32term.c (x_query_colors, x_query_color): New functions.
9950
9951 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9952 (svg_load_image): Cast returned pointers from dynamically loaded
9953 functions. Eliminate W32 specific code.
9954
bfe11752
DN
99552009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9956
89e2438a
DN
9957 * nsfns.m (x_set_foreground_color, x_set_background_color)
9958 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9959 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9960 x_ prefix instead of ns_. Update references.
9961 (syms_of_nsfns): Add a FIXME comment.
9962
9963 * nsterm.m (x_set_cursor_type): New prototype.
9964 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9965
bfe11752
DN
9966 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9967 for Solaris instead of incorrectly providing Qutime and Qcutime.
9968
031da700
EZ
99692009-01-02 Eli Zaretskii <eliz@gnu.org>
9970
9971 * w32.c (process_times): Compute sum of utime and stime.
9972 (system_process_attributes): Add Qtime to the alist.
9973
9974 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9975 and add them to the alist.
9976
9977 * process.c (top level) <Qtime, Qctime>: New variables.
9978 (syms_of_process): staticpro them.
9979 (Fsystem_process_attributes): Add their documentation to the doc
9980 string.
9981
9982 * process.h: Declare Qtime and Qctime.
9983
df23bf08
JR
99842009-01-02 Jason Rumney <jasonr@gnu.org>
9985
9acef61c 9986 * image.c (Qgobject): New symbol.
df23bf08
JR
9987 (syms_of_image): Initialize it.
9988 (init_svg_functions): Load some functions from gobject library.
9989
5bbdf7aa
DN
99902009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9991
9992 * frame.c (make_terminal_frame): Remove redundant code and useless
9993 block.
9994
63136da6
AS
99952009-01-01 Andreas Schwab <schwab@suse.de>
9996
9997 * process.c (conv_sockaddr_to_lisp): Add workaround for
9998 getsockname bug on BSD.
9999
9ef69046
CY
100002009-01-01 Chong Yidong <cyd@stupidchicken.com>
10001
d6fafbe0
CY
10002 * xfns.c (x_create_tip_frame): Set border width of the X window.
10003
51d861de 10004 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10005
f9c34147
JR
100062009-01-01 Jason Rumney <jasonr@gnu.org>
10007
9acef61c 10008 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10009 Don't block input, as per earlier xterm.c changes.
10010
f5497e45
AR
100112008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10012
10013 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10014 (ns_appkit_version_int): New function.
10015 (x-server-version): Use ns_appkit_version_int and follow 21+
10016 convention of returning 3 integers.
10017
c19cab20
KH
100182008-12-30 Kenichi Handa <handa@m17n.org>
10019
10020 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10021 (CHAR_SURROGATE_PAIR_P): New macro.
10022
10023 * font.h (struct font_driver): New member get_variation_glyphs.
10024
9acef61c 10025 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10026 (Ffont_variation_glyphs): New function.
10027 (syms_of_font): Defsubr it.
10028
10029 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10030 ftfont_variation_glyphs.
10031 (setup_otf_gstring): New function.
10032 (ftfont_drive_otf): Use it.
10033 (ftfont_shape_by_flt): Handle variation selector.
10034 (ftfont_variation_glyphs): New function.
10035
28cd591f
MR
100362008-12-30 Martin Rudalics <rudalics@gmx.at>
10037
10038 * frame.c (Vemacs_iconified): Remove.
10039
7f714baf
JR
100402008-12-30 Jason Rumney <jasonr@gnu.org>
10041
10042 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10043 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10044
9d2d22ab
CY
100452008-12-30 Chong Yidong <cyd@stupidchicken.com>
10046
10047 * indent.c (Fvertical_motion): Don't advance iterator if we have
10048 reseated to the desired position.
10049
10050 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10051 checking for pos match.
10052
545312c2
KH
100532008-12-30 Kenichi Handa <handa@m17n.org>
10054
1ede3eb6
KH
10055 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10056 just get the low 8-bit of the code.
10057
545312c2
KH
10058 * font.c (font_intern_prop): Validate str as multibyte.
10059
bd7bbf29
DN
100602008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10061
31e0750e
DN
10062 * dispextern.h (struct face): Move lface and hash from the middle
10063 of bitfields.
10064
bd7bbf29
DN
10065 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10066
b5672e7c
DN
100672008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10068
10069 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10070 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10071 instead of intervals.h.
10072
d704470f
AS
100732008-12-26 Andreas Schwab <schwab@suse.de>
10074
10075 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10076 cons.
10077
54b33868
MR
100782008-12-26 Martin Rudalics <rudalics@gmx.at>
10079
10080 * textprop.c (Qminibuffer_prompt): New variable.
10081 (syms_of_textprop): Initialize it.
10082 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10083 in minibuffer-prompt face. (Bug#1662)
10084
40b615d6
JR
100852008-12-25 Jason Rumney <jasonr@gnu.org>
10086
10087 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10088
baae5c2d
JR
100892008-12-24 Jason Rumney <jasonr@gnu.org>
10090
10091 * ralloc.c (r_alloc_reset_variable): New function.
10092
10093 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10094 record of what points where. (Bug#716)
baae5c2d 10095
a9051c88
DN
100962008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10097
10098 * minibuf.c (read_minibuf): Follow the non-interactive case when
10099 running as a daemon, before detaching.
10100
8b146312
AS
101012008-12-22 Andreas Schwab <schwab@suse.de>
10102
10103 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10104 * gtkutil.c (free_widget_value): Use xfree instead of free.
10105
56f2de10
MR
101062008-12-22 Martin Rudalics <rudalics@gmx.at>
10107
10108 * frame.c (delete_frame): New function derived from
10109 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10110 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10111 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10112 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10113 * frame.h: Extern delete_frame.
10114 * window.c (window_loop):
10115 * terminal.c (delete_terminal):
10116 * xterm.c (x_connection_closed):
10117 * xfns.c (Fx_hide_tip):
9acef61c 10118 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10119
1fc200d6
JR
101202008-12-21 Jason Rumney <jasonr@gnu.org>
10121
10122 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10123 when character maps to .notdef character.
10124
5e252df2
SM
101252008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10126
10127 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10128
99b72cc4
JR
101292008-12-20 Jason Rumney <jasonr@gnu.org>
10130
10131 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10132 a graphical frame on Windows. (Bug#1325)
99b72cc4 10133
acc49a52
JD
101342008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10135
10136 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10137
6ea15123
CY
101382008-12-20 Chong Yidong <cyd@stupidchicken.com>
10139
10140 * minibuf.c (Fread_buffer): Doc fix.
10141
b2dab6c8
JR
101422008-12-20 Jason Rumney <jasonr@gnu.org>
10143
54ea0c87 10144 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10145 server name in UNC paths. (Bug#719)
54ea0c87 10146
b2dab6c8 10147 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10148 charbuf. (Bug#1035)
b2dab6c8 10149
6d1921be
DN
101502008-12-19 Daniel Engeler <engeler@gmail.com>
10151
10152 * sysdep.c (serial_configure): Fix typo.
10153
53934c98
DN
101542008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10155
10156 * sysdep.c: Include alloca.h.
f4f634e8
DN
10157 (system_process_attributes): Add implementation for Solaris.
10158
10159 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10160
06e111a6
DN
101612008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10162
10163 Reorganize implementation of Flist_system_processes and
10164 Fsystem_process_attributes. No functional changes.
10165 * process.c: Don't #include pwd.h, grp.h and limits.h.
10166 (Flist_system_processes): Just call list_system_processes.
10167 (Fsystem_process_attributes): Just call system_process_attributes.
10168 (procfs_list_system_processes, time_from_jiffies)
10169 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10170 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10171
10172 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10173 (list_system_processes): Rename from
10174 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10175 Provide a do nothing implementation.
10176 (system_process_attributes): Rename from
10177 procfs_list_system_processes.
10178 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10179 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10180
10181 * w32.c (list_system_processes): Rename from
10182 w32_list_system_processes.
10183 (system_process_attributes): Rename from
10184 w32_system_process_attributes.
10185
10186 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10187
10188 * process.h (w32_list_system_processes)
10189 (w32_system_process_attributes): Remove.
362654a6
JB
10190 (list_system_processes, system_process_attributes):
10191 New prototypes.
06e111a6 10192
6a705b23
KH
101932008-12-19 Kenichi Handa <handa@m17n.org>
10194
10195 * xfont.c (xfont_decode_coding_xlfd): New function.
10196 (xfont_encode_coding_xlfd): New function.
10197 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10198 (xfont_list): Decode and encode XLFD by iso-8859-1.
10199 (xfont_match): Likewise.
10200 (xfont_list_family): Likewise.
10201 (xfont_open): Likewise.
10202
d66c0241 10203 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10204 names are utf-8.
10205
d66c0241 10206 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10207 names are utf-8.
10208
5a130941
JD
102092008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10210
10211 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10212 changed.
bfd20325
JD
10213 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10214 clicked on a detached tool bar button.
5a130941 10215
fd95644b
DN
102162008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10217
10218 * emacs.c (main): Print and error and exit when no data is read
10219 from the pipe.
10220
e6eee6ae
JR
102212008-12-17 Jason Rumney <jasonr@gnu.org>
10222
10223 * w32font.c (w32font_has_char): Always return -1.
10224
a35dd56b
KH
102252008-12-16 Kenichi Handa <handa@m17n.org>
10226
10227 * font.c (font_open_entity): Fix previous change.
10228
0e3635c2
DN
102292008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10230
10231 * process.c: Include <limits.h>.
10232
d4835507 102332008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10234
10235 * font.c (font_update_drivers): Fix mistake in reconstructing the
10236 driver list.
10237
102382008-12-16 Chong Yidong <cyd@stupidchicken.com>
10239
10240 * font.c (font_clear_cache): Fix format of font cache data.
10241
e2cbc401
CY
102422008-12-15 Chong Yidong <cyd@stupidchicken.com>
10243
10244 * xftfont.c (xftfont_open): Free Xft font pattern if
10245 XftFontOpenPattern fails.
10246
10247 * xterm.c (x_free_frame_resources): Remove extraneous call to
10248 free_frame_faces.
10249
b131d535
CY
102502008-12-13 Chong Yidong <cyd@stupidchicken.com>
10251
10252 * xterm.c (x_delete_display): Move xim_close_dpy call to
10253 x_delete_terminal.
10254 (x_delete_terminal): Call xim_close_dpy.
10255
e6df5336
JR
102562008-12-13 Jason Rumney <jasonr@gnu.org>
10257
10258 * w32font.c (intern_font_name): New function.
10259 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10260 (w32font_open_internal, Fx_select_font): Decode font name.
10261 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10262
10263 * w32font.h (intern_font_name): Declare new function.
10264
10265 * w32uniscribe.c (add_opentype_font_name_to_list):
10266 Use intern_font_name.
10267
20d68145
CY
102682008-12-13 Chong Yidong <cyd@stupidchicken.com>
10269
9f2554de
CY
10270 * frame.c (Fdelete_frame): Call free_font_driver_list.
10271
3d9bec9a
CY
10272 * font.c (free_font_driver_list): Implement missing function.
10273
20d68145
CY
10274 * w32term.c (w32_term_init): Don't initialize the image cache
10275 here; it will be done in init_frame_faces.
10276
10277 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10278 (struct x_display_info): Remove unused member null_pixel. New
10279 member xim_callback_data.
10280
10281 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10282 (xim_initialize): Save pointer to callback function data.
10283 (xim_close_dpy): Free callback function data. Call XCloseIM,
10284 reverting 2008-11-04 change by David Smith.
10285 (x_term_init): Don't initialize the image cache here; it will be
10286 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10287 (x_delete_display): Free x_dnd_atoms member.
10288
96f9306b
KH
102892008-12-13 Kenichi Handa <handa@m17n.org>
10290
6dec9044
JB
10291 * font.c (font_rescale_ratio): Moved from xfaces.c.
10292 Argument type changed. Handle a font-spec too.
96f9306b 10293 (font_score): Check Vface_font_rescale_alist.
6dec9044 10294 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10295
10296 * xfaces.c (font_rescale_ratio): Moved to font.c.
10297
8d5b4964
CY
102982008-12-13 Chong Yidong <cyd@stupidchicken.com>
10299
10300 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10301
e6df5336
JR
103022008-12-12 Jason Rumney <jasonr@gnu.org>
10303
10304 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10305 Vwindow_system_version to the real w32 major version.
10306
97c6058a
DN
103072008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10308
10309 * term.c (init_tty): Move setting the terminal name before the
10310 potential user: maybe_fatal.
10311
ec4e88d7
CY
103122008-12-11 Chong Yidong <cyd@stupidchicken.com>
10313
d4835507
JB
10314 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10315 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10316
b4233ec9
JR
103172008-12-11 Jason Rumney <jasonr@gnu.org>
10318
8ec71e23 10319 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10320 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10321
b4233ec9 10322 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10323 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10324
011a0143
JB
103252008-12-11 Juanma Barranquero <lekktu@gmail.com>
10326
10327 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10328
3c309f34
JB
103292008-12-11 Juanma Barranquero <lekktu@gmail.com>
10330
10331 * process.c (Fsystem_process_attributes, syms_of_process):
10332 Fix typo in name of Ssystem_process_attributes.
10333 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10334
fedc6ab5
JB
103352008-12-11 Juanma Barranquero <lekktu@gmail.com>
10336
10337 * syntax.c (Fmodify_syntax_entry): Doc fix.
10338
ba3de0e8
JB
103392008-12-10 Juanma Barranquero <lekktu@gmail.com>
10340
10341 * font.c (Ffont_spec): Move usage to end of docstring.
10342
174f1c74
JR
103432008-12-10 Jason Rumney <jasonr@gnu.org>
10344
10345 * w32font.c (Qcham): New symbol.
10346 (font_supported_scripts): Add cham, and comments for other new
10347 scripts in bitfield from OpenType spec.
9d32f818
JR
10348 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10349 contain characters beyond the bmp.
174f1c74 10350
7b649478
KH
103512008-12-10 Kenichi Handa <handa@m17n.org>
10352
10353 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10354 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10355 Qunicode_sip.
10356
2133e2d1
JB
103572008-12-10 Juanma Barranquero <lekktu@gmail.com>
10358
10359 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10360 (Fcoding_system_put): Use QCdefault_char.
10361 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10362
9af886ee
CY
103632008-12-09 Chong Yidong <cyd@stupidchicken.com>
10364
74d819eb
CY
10365 * xftfont.c (syms_of_xftfont): Fix typo.
10366
4ccfa1c0 10367 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10368
7c19d3ae
DN
103692008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10370
10371 * emacs.c (main): Close daemon_pipe on exec.
10372
567826bb
CY
103732008-12-08 Chong Yidong <cyd@stupidchicken.com>
10374
10375 * termchar.h (struct tty): New members termcap_term_buffer and
10376 termcap_strings_buffer.
10377
10378 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10379 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10380 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10381 All callers changed.
10382 (init_tty): Store termcap data and string buffers in new struct
10383 tty members termcap_term_buffer and termcap_strings_buffer.
10384 (delete_tty): Free them.
4ccfa1c0 10385 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10386
aa96c42b
SZ
103872008-12-07 Seiji Zenitani <zenitani@mac.com>
10388
10389 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10390 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10391
b7e1d896
CY
103922008-12-06 Chong Yidong <cyd@stupidchicken.com>
10393
10394 * coding.c (make_conversion_work_buffer): Disable buffer
10395 modification hooks in the work buffer.
10396
b5ec91a5
EZ
103972008-12-05 Eli Zaretskii <eliz@gnu.org>
10398
10399 * process.c (procfs_system_process_attributes): If `nread' has a
10400 negative value, assign zero to it.
10401
a5d2a52b
CY
104022008-12-05 Chong Yidong <cyd@stupidchicken.com>
10403
68c5540b 10404 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10405
7bf1bb21
KH
104062008-12-05 Kenichi Handa <handa@m17n.org>
10407
10408 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10409 second character is a combining character.
10410
2fdc7d00
EZ
104112008-12-05 Eli Zaretskii <eliz@gnu.org>
10412
10413 * process.c (procfs_system_process_attributes): Don't use cmd,
10414 cmdsize, and q without initializing them first.
10415
bf6bfba8
JR
104162008-12-04 Jason Rumney <jasonr@gnu.org>
10417
10418 * w32font.c (w32font_draw): Initialize orig_clip before getting
10419 it, and delete it when finished.
10420
a3b1a468
DN
104212008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10422
10423 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10424 case when running as a daemon before detaching.
10425
8b8be8eb
JB
104262008-12-03 Juanma Barranquero <lekktu@gmail.com>
10427
805f2638 10428 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10429
b1bde622
KH
104302008-12-03 Kenichi Handa <handa@m17n.org>
10431
e500c47d
KH
10432 * font.c (font_at): Set `multibyte' at first.
10433
ca516334
KH
10434 * coding.c (decode_coding_charset): Check type of an element of
10435 vector VALIDS.
7bf1bb21 10436 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10437
4ccfa1c0 10438 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10439 (font_for_char): Likewise.
10440
1e5ecd37
CY
104412008-12-03 Chong Yidong <cyd@stupidchicken.com>
10442
d5b01609 10443 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10444 (font_update_lface): Handle fonts with corrupted size specs,
10445 i.e. non-int and non-float.
d5b01609 10446
11e3a6e4 10447 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10448 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10449 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10450
ab06788b
CY
10451 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10452
1e5ecd37 10453 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10454 underline_minimum_offset for underline position.
1e5ecd37 10455
63c125ab
DN
104562008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10457
10458 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10459
10460 * character.c (c_string_width): Specify the type for LEN.
10461
3a8406e1
KH
104622008-12-03 Kenichi Handa <handa@m17n.org>
10463
4ccfa1c0 10464 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10465 (decode_coding_utf_8): Likewise.
4ccfa1c0 10466 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10467 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10468
651df7d9
CY
104692008-12-02 Chong Yidong <cyd@stupidchicken.com>
10470
10471 * keyboard.c (make_lispy_position): Only use PT if the selected
10472 window is current.
10473
1f625c6c
AS
104742008-12-02 Andreas Schwab <schwab@suse.de>
10475
f7741ce9
AS
10476 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10477
1f625c6c
AS
10478 * doprnt.c (doprnt1): Fix size of charbuf.
10479
92bc2678
CY
104802008-12-02 Chong Yidong <cyd@stupidchicken.com>
10481
10482 * keyboard.c (timer_check): Revert last change.
10483
93b9e8cc
JB
104842008-12-02 Juanma Barranquero <lekktu@gmail.com>
10485
10486 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10487
fd7a37d5
JB
104882008-12-01 Juanma Barranquero <lekktu@gmail.com>
10489
10490 * makefile.w32-in: Update dependencies.
10491 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10492
c115043b
AS
104932008-12-01 Andreas Schwab <schwab@suse.de>
10494
10495 * font.c (register_font_driver): Use xmalloc.
10496 (font_put_frame_data): Likewise.
10497
f5668d2a
CY
104982008-12-01 Chong Yidong <cyd@stupidchicken.com>
10499
860d96be
CY
10500 * xfaces.c (realize_x_face): Make abort condition clearer.
10501
f5668d2a
CY
10502 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10503
379c17e7
CY
105042008-11-30 Chong Yidong <cyd@stupidchicken.com>
10505
10506 * keyboard.c (timer_check): After a timer runs, ensure that the
10507 selected window's buffer is current.
10508
35f36d65
JB
105092008-11-30 Juanma Barranquero <lekktu@gmail.com>
10510
f952c61c
JB
10511 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10512 It was accidentally restored by the Unicode merge.
10513
35f36d65
JB
10514 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10515
b23077df
JB
105162008-11-29 Juanma Barranquero <lekktu@gmail.com>
10517
10518 * w32proc.c: Include "coding.h".
10519 (Fw32_short_file_name): Encode filename passed to Windows API.
10520 (Fw32_long_file_name): Encode filename passed to Windows API and
10521 decode back the result. (Bug#1433)
10522
b8ebe9dd
KH
105232008-11-29 Kenichi Handa <handa@m17n.org>
10524
8cc53f96
KH
10525 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10526 not before accessing it.
10527
b8ebe9dd
KH
10528 * charset.c (Fdefine_charset_internal): After calculating
10529 min_char, max_char, and fastmap, copy the charset structure again.
10530 (encode_char): Fix the previous change.
10531
59bc82c0
SZ
105322008-11-28 Seiji Zenitani <zenitani@mac.com>
10533
10534 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10535
10536 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10537
10538 * nsterm.m (x_set_frame_alpha): New function.
10539
32247e3d
EZ
105402008-11-27 Eli Zaretskii <eliz@gnu.org>
10541
10542 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10543
b003e5ff
JB
105442008-11-27 Juanma Barranquero <lekktu@gmail.com>
10545
10546 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10547 pointer to check_face_name.
10548
708550f5
KH
105492008-11-27 Kenichi Handa <handa@m17n.org>
10550
10551 * category.h (SET_CATEGORY_SET): Call set_category_set.
10552 (set_category_set): Extern it.
10553
10554 * category.c (hash_get_category_set): New function.
10555 (Fmodify_category_entry): Adjusted for the change of
10556 char_table_ref_and_range. Call hash_get_category_set to get a
10557 category set to store in the table.
10558
10559 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10560 Funify_charset.
10561
2ae37cf0 10562 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10563 (DECODE_CHAR): Check if the decoder vector is ready.
10564 (ENCODE_CHAR): Check if the encoder char-table is ready.
10565 (maybe_unify_char): Extern it.
10566
10567 * charset.c (Vchar_unified_charset_table): Delete it.
10568 (inhibit_load_charset_map): New variable.
10569 (temp_charset_work): New variable.
10570 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10571 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10572 New macros.
10573 (load_charset_map): Meaning of control_flag changed. If
10574 inhibit_load_charset_map is nonzero, setup a table in
10575 temp_charset_work.
10576 (load_charset): New argument control_flag.
10577 (map_charset_for_dump): New function.
10578 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10579 map_charset_for_dump.
10580 (Fdefine_charset_internal): If the charset method is MAP, load
10581 mapping tables by calling load_charset.
10582 (Funify_charset): Don't load a mapping table but directly set
10583 Vchar_unify_table.
10584 (maybe_unify_char): New function.
10585 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10586 Handle the case of inhibit_load_charset_map being nonzero.
10587 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10588 Handle the case of inhibit_load_charset_map being nonzero.
10589 (Fclear_charset_maps): Just free temp_charset_work.
10590 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10591 variable.
10592
10593 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10594 change of char_table_ref_and_range.
10595 (char_table_ref_and_range): Change the meaning of argument FROM
10596 and TO. Now the caller must provide initial values for *FROM
10597 and *TO.
10598
10599 * fontset.c (fontset_add): Adjusted for the change of
10600 char_table_ref_and_range.
10601 (fontset_get_font_group): Likewise.
10602 (Ffontset_info): Likewise.
10603
10604 * keymap.c (describe_vector): Adjusted for the change of
10605 char_table_ref_and_range. For char-table, put boundary between
10606 non-ASCII and 8-bit characters.
10607
10608 * print.c (print_object): For bool-vector, delete unnecessary
10609 check of ASCII_BYTE_P.
10610
9196133b
JR
106112008-11-26 Jason Rumney <jasonr@gnu.org>
10612
10613 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10614 leading in font height. (Bug#879)
9196133b 10615
9f688acf
GM
106162008-11-26 Glenn Morris <rgm@gnu.org>
10617
10618 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10619 redefinition with ifdef. (Bug#1383)
10620
90d19aff
AR
106212008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10622
10623 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10624
4ccfa1c0 106252008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10626
10627 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10628 New EmacsView methods.
10629 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10630 Fixes bug #1048,1357,1414.
10631
106322008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10633
10634 Fix bug #1362.
10635 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10636 is not an indexed color.
10637 * nsterm.m (free_indexed_color): Add argument checking.
10638 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10639
e7d5ecb3
CY
106402008-11-24 Chong Yidong <cyd@stupidchicken.com>
10641
10642 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10643 Document confirm-after-completion value for
10644 minibuffer-completion-confirm.
10645
c285743c
JR
106462008-11-24 Jason Rumney <jasonr@gnu.org>
10647
10648 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10649 warning.
10650
b0857706
JR
106512008-11-23 Jason Rumney <jasonr@gnu.org>
10652
10653 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10654 restored before returning.
10655
10656 * w32font.c (check_face_name): New function.
10657 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10658 fonts. (Bug#642)
b0857706 10659
ee50ff07
MR
106602008-11-22 Martin Rudalics <rudalics@gmx.at>
10661
10662 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10663 confirm-nonexistent-file-or-buffer in doc-string.
10664
b8ff72fa
SM
106652008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10666
10667 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10668 Fix copy/paste typo. Add checks.
10669
cee53ed4
KH
106702008-11-21 Kenichi Handa <handa@m17n.org>
10671
10672 * coding.c (detect_coding_iso_2022): Reject invalid composition
10673 sequence.
10674 (DECODE_COMPOSITION_START): If the current source is the last
10675 block, and the current composition doesn't end, regard this
10676 sequence as invalid.
10677 (decode_coding_iso_2022): Handle invalid composition sequence.
10678
f6ef1e65
MR
106792008-11-20 Martin Rudalics <rudalics@gmx.at>
10680
10681 * window.c (coordinates_in_window): Don't return
10682 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10683 line when the window is not the rightmost one. (Bug#1372)
10684
e08b1705
MR
106852008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10686
10687 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10688
ad98e89f
EZ
106892008-11-15 Eli Zaretskii <eliz@gnu.org>
10690
10691 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10692 and bright_bg if noninteractive is non-zero.
10693
fb098a4b
CY
106942008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10695
10696 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10697 x_draw_glyph_string_background.
10698
10699 * w32term.c (x_draw_glyph_string): Likewise.
10700
ce952b6e
CY
107012008-11-15 Chong Yidong <cyd@stupidchicken.com>
10702
10703 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10704 the next glyph string once past the overhang width.
10705
10706 * nsterm.m (ns_draw_glyph_string): Likewise.
10707
10708 * w32term.c (x_draw_glyph_string): Likewise.
10709
26ea7079
CY
107102008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10711
10712 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10713 double file close.
10714
1c33c906
MR
107152008-11-14 Martin Rudalics <rudalics@gmx.at>
10716
10717 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10718 dedicated status of window before attempting to display another
10719 buffer in it.
10720
8fc29035
JB
107212008-11-14 Juanma Barranquero <lekktu@gmail.com>
10722
10723 * msdos.c (Fmsdos_long_file_names):
10724 (syms_of_msdos) <dos-unsupported-char-glyph>:
10725 * dosfns.c (Fint86): Fix typos in docstrings.
10726
55fb4286
EZ
107272008-11-14 Eli Zaretskii <eliz@gnu.org>
10728
10729 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10730
3fda0315
KY
107312008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10732
10733 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10734
7e849c17
CY
107352008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10736
10737 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10738
10739 * frame.h: Negative alpha means "don't touch".
10740
10741 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10742
10743 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10744
b9fd67bd
DN
107452008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10746
10747 * hftctl.c:
10748 * chpdef.h:
10749 * acldef.h: Remove files used only for systems no longer supported.
10750
10751 * Makefile.in: Fix .o alphabetical ordering.
10752 (hftctl.o): Remove dependency, file removed.
10753 (keymap.o, print.o): Depend on charset.h.
10754
d5998e03
KH
107552008-11-10 Kenichi Handa <handa@m17n.org>
10756
2ae37cf0 10757 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10758
be70e183
CY
107592008-11-08 Chong Yidong <cyd@stupidchicken.com>
10760
10761 * dired.c (file_name_completion): If completion_ignore_case is
10762 enabled, ignore case when checking completion-regexp-list.
10763
7cf94eac
EZ
107642008-11-08 Eli Zaretskii <eliz@gnu.org>
10765
10766 * vm-limit.c (get_lim_data): Fix last change.
10767
ee107a89
KH
107682008-11-08 Kenichi Handa <handa@m17n.org>
10769
10770 * character.c (Fget_byte): New function.
10771 (syms_of_character): Defsubr Fget_byte.
10772
5fd15622
CY
107732008-11-07 Chong Yidong <cyd@stupidchicken.com>
10774
10775 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10776 cursor position is valid after scrolling.
10777
13d62fad
JB
107782008-11-06 Juanma Barranquero <lekktu@gmail.com>
10779
10780 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10781
a1dd2936
GM
107822008-11-06 Glenn Morris <rgm@gnu.org>
10783
10784 * xterm.c (handle_one_xevent): Don't let popup menus cause
10785 mouse-autoselect-window related window switching. (Bug#1261)
10786
860cd236
CY
107872008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10788
10789 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10790
653a3150
AS
107912008-11-04 Andreas Schwab <schwab@suse.de>
10792
10793 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10794
870f5cac
CY
107952008-11-03 Chong Yidong <cyd@stupidchicken.com>
10796
10797 * xfns.c (Fx_wm_set_size_hint): New function.
10798
1e02f3cb
MR
107992008-11-03 Martin Rudalics <rudalics@gmx.at>
10800
10801 * textprop.c (Fprevious_single_char_property_change): Return 0
10802 when there's no change in a string. (Bug#1301)
10803
e630dfc6
MR
108042008-11-02 Martin Rudalics <rudalics@gmx.at>
10805
10806 * frame.c (do_switch_frame): New argument NORECORD passed to
10807 Fselect_window.
10808 (Fselect_frame): New argument NORECORD passed to
10809 do_switch_frame.
10810 (Fset_frame_selected_window): New argument NORECORD passed to
10811 Fselect_frame.
10812 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10813 in call of do_switch_frame.
10814 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10815 Handle NORECORD argument in call of Fselect_frame.
10816 * lisp.h (do_switch_frame, Fselect_frame)
10817 (Fset_frame_selected_window): Adjust declarations.
10818 * window.c (select_frame_norecord): New function.
10819 (run_window_configuration_change_hook): Use it and call
10820 Fselect_frame with NORECORD set.
10821 (Fselect_window): Pass NORECORD to Fselect_frame.
10822 (Fset_window_configuration): Handle NORECORD argument in call of
10823 do_switch_frame.
10824 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10825 Fset_frame_selected_window.
10826 * keyboard.c (command_loop_1): Handle NORECORD in call of
10827 Fselect_frame (currently ifdefd).
10828
9020b223
GM
108292008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10830
10831 * emacs.c (USAGE2): Untabify.
10832
793ffee8
SM
108332008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10834
10835 * composite.c (fill_gstring_header): Fix copy/paste typo.
10836
ab6d1131
MR
108372008-10-31 Martin Rudalics <rudalics@gmx.at>
10838
10839 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10840 (Fother_window): Rename argument and rewrite doc-string.
10841 (select_window_norecord): Fix return value. (Bug#1276)
10842
601a9cf1
JB
108432008-10-30 Juanma Barranquero <lekktu@gmail.com>
10844
10845 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10846 new frames overriding foreground for tooltips. Based on similar patch
10847 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10848
813b0652
CY
108492008-10-29 Chong Yidong <cyd@stupidchicken.com>
10850
10851 * emacs.c (Fdaemon_initialized): Initialize nfd.
10852
4414f58f
MR
108532008-10-29 Martin Rudalics <rudalics@gmx.at>
10854
10855 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10856 (Fwindow_text_height): Clarify doc-strings.
10857 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10858 doc-string of window-scroll-functions.
10859
ecdcaa09
RS
108602008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10861
10862 * category.c (syms_of_category): Fix typo in docstring.
10863
23fe745a
JB
108642008-10-28 Juanma Barranquero <lekktu@gmail.com>
10865
10866 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10867 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10868 Fix typos in docstrings.
10869
ff808935
DN
108702008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10871
10872 * emacs.c (daemon_pipe): Make non-static.
10873 (IS_DAEMON): Move definition ...
10874 * lisp.h (IS_DAEMON): ... here.
10875 (daemon_pipe): Declare.
10876 (is_daemon): Remove.
10877 * dispnew.c (init_display): Use IS_DAEMON.
10878
fc012771
SM
108792008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10880
10881 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10882 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10883
10884 * emacs.c (is_daemon): Remove.
10885 (main): Don't set is_daemon.
10886 (IS_DAEMON): New macro.
10887 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10888 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10889 parent exits.
10890 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10891
d8bdbe6f
CY
108922008-10-27 Chong Yidong <cyd@stupidchicken.com>
10893
d1a072bf
CY
10894 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10895 over-sized glyph, draw it with the default glyph width.
10896
e2e325aa
CY
10897 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10898 glyph, draw it with the default glyph width.
10899
10900 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10901 glyph, draw it with the default glyph width.
10902
d8bdbe6f
CY
10903 * xdisp.c (try_scrolling): When computing the distance from the
10904 scroll margin to PT, try moving some distance past the window
10905 bottom before giving up.
10906
7bfac547
MR
109072008-10-27 Martin Rudalics <rudalics@gmx.at>
10908
10909 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10910 (Fset_window_buffer): Explain in doc-string that a window can be
10911 "strongly" dedicated to its buffer.
10912
4ff029f6
DN
109132008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10914
10915 * emacs.c (daemon_name): New variable.
10916 (main): Deal with --daemon=SERVER_NAME.
10917 (Fdaemonp): Return a name if one was passed to --daemon.
10918
5790ef40
DN
109192008-10-26 Romain Francoise <romain@orebokech.com>
10920
f9bd0df9 10921 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10922 (main): Create a pipe before forking, make the parent exit only after
10923 the child has closed its end of the pipe. Move closing the
10924 descriptors ...
10925 (Fdaemon_initialized): ... here. New function.
10926
f5385255
SM
109272008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10928
4d632321
SM
10929 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10930 the previous unoptimized table.
10931
f5385255
SM
10932 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10933 the distinction between non-nil and non-t value of `dedicated'.
10934
6c56a0f3
CY
109352008-10-25 Chong Yidong <cyd@stupidchicken.com>
10936
10937 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10938 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10939
fec89261
MR
109402008-10-25 Martin Rudalics <rudalics@gmx.at>
10941
10942 * window.c (Fget_buffer_window, Fdelete_windows_on)
10943 (Freplace_buffer_in_windows): Make buffer argument optional and
10944 rename to buffer_or_name.
10945
34fcddd0
CY
109462008-10-24 Chong Yidong <cyd@stupidchicken.com>
10947
f5385255
SM
10948 * xdisp.c (handle_single_display_spec, handle_display_prop):
10949 Undo 2005-05-16 change.
34fcddd0
CY
10950 (handle_stop): Pop iterator if it's loaded with an empty string.
10951 (get_overlay_strings_1): Don't save iterator if it's loaded with
10952 an empty string (bug#1201).
10953
064766f2
KH
109542008-10-24 Kenichi Handa <handa@m17n.org>
10955
10956 * ftfont.c (ftfont_otf_features): Fix previous change.
10957 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10958 calling ftfont_otf_features.
10959
f9bd0df9 109602008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10961
10962 * font.c (font_match_p): Fix for the case that a vector of
10963 characters is in script-representative-chars.
10964
1dae9197
MA
109652008-10-24 Michael Albinus <michael.albinus@gmx.de>
10966
10967 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10968 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10969 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10970 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10971 macro. (Bug#1186)
1dae9197 10972
f9bd0df9 109732008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10974
10975 * s/sol2-10.h: New file.
10976
878a4584
JB
109772008-10-23 Juanma Barranquero <lekktu@gmail.com>
10978
10979 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10980 poor beast has survived 9+ years and the jump from xterm.c!).
10981
cd265ca6
MR
109822008-10-23 Martin Rudalics <rudalics@gmx.at>
10983
10984 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10985 Reword doc-string.
f5385255 10986 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10987
472a4dc9
JB
109882008-10-23 Juanma Barranquero <lekktu@gmail.com>
10989
10990 * character.c (syms_of_character) <script-representative-chars>:
10991 <unicode-category-table>: Doc fixes.
10992
159bd5a2
NF
109932008-10-23 Noah Friedman <friedman@splode.com>
10994
10995 * coding.c (make_conversion_work_buffer): Check that
10996 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10997 Fget_buffer_create.
10998
49f9c344
KH
109992008-10-23 Kenichi Handa <handa@m17n.org>
11000
11001 * font.c (font_add_log): Check the values of extra properties.
11002
12bb3111
MR
110032008-10-22 Martin Rudalics <rudalics@gmx.at>
11004
11005 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11006 Reword doc-string.
11007 (Fset_window_parameter): Use NILP.
11008 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11009 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11010
bbeb4e99
JB
110112008-10-22 Juanma Barranquero <lekktu@gmail.com>
11012
11013 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11014
110152008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11016
11017 * nsfns.m (ns_appkit_version): New function.
11018 (x-server-version): Use it.
11019 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11020 (x-server-vendor): Don't check_ns().
11021
11022 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11023
a9b555d3
JB
110242008-10-22 Juanma Barranquero <lekktu@gmail.com>
11025
11026 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11027 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11028
4626499f
KH
110292008-10-22 Kenichi Handa <handa@m17n.org>
11030
e3681952
KH
11031 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11032 scripts.
11033
4626499f
KH
11034 * category.c (word_boundary_p): Check scripts instead of charset.
11035 Handle nil value in word-separating-categories and
11036 word-combining-categories.
11037 (syms_of_category): Fix docstrings of word-separating-categories
11038 and word-combining-categories.
11039
1560f91a
EZ
110402008-10-21 Eli Zaretskii <eliz@gnu.org>
11041
11042 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11043 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11044
f4668441
MR
110452008-10-21 Martin Rudalics <rudalics@gmx.at>
11046
11047 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11048 Rename arg "buffer" to "buffer_or_name".
11049 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11050 it optional.
11051 (no_switch_window): Remove since the return value is not used.
a9b555d3 11052 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11053 Consider window as dedicated when Fwindow_dedicated_p returns a
11054 non-nil value.
11055 * lisp.h: Remove prototype for no_switch_window.
11056
fd75ddb2
JD
110572008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11058
11059 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11060 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11061
07295713
KH
110622008-10-21 Kenichi Handa <handa@m17n.org>
11063
11064 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11065 check Vlatin_extra_code_table.
11066
712adc82
EZ
110672008-10-20 Eli Zaretskii <eliz@gnu.org>
11068
11069 * fileio.c (Fset_file_modes): Doc fix.
11070
f549eb0b
MA
110712008-10-19 Michael Albinus <michael.albinus@gmx.de>
11072
11073 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11074 in arrays.
11075
aac0c6e3
MR
110762008-10-19 Martin Rudalics <rudalics@gmx.at>
11077
11078 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11079 Mention kill-buffer in doc-string.
11080 (Fset_window_buffer): Reinsert tem check removed in last commit.
11081 (Fenlarge_window, Fshrink_window): Have argument names and
11082 doc-string follow Elisp manual more closely.
11083
110842008-10-18 Eli Zaretskii <eliz@gnu.org>
11085
11086 * fileio.c (Fset_file_modes): Doc fix.
11087
110882008-10-18 Martin Rudalics <rudalics@gmx.at>
11089
11090 * window.c (Fwindow_width, Fset_window_start)
11091 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11092 (Fdelete_windows_on, Freplace_buffer_in_windows):
11093 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11094 (Fwindow_dedicated_p): Make window argument optional.
11095 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11096 (Fset_window_buffer): Respect any non-nil dedicated value for
11097 window. Rename "buffer" argument to "buffer_or_name".
11098
110992008-10-18 Ulrich Mueller <ulm@gentoo.org>
11100
11101 * m/sh3.h: New file, machine description for SuperH.
11102
111032008-10-17 Martin Rudalics <rudalics@gmx.at>
11104
11105 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11106
111072008-10-17 Kenichi Handa <handa@m17n.org>
11108
11109 * ftfont.c (ftfont_otf_features): Fix indexing
11110 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11111
111122008-10-16 Magnus Henoch <mange@freemail.hu>
11113
11114 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11115 (Fdbus_call_method_asynchronously): Ditto.
11116 This change makes C-h f display the argument list.
11117
111182008-10-16 Chong Yidong <cyd@stupidchicken.com>
11119
11120 * fileio.c (Fexpand_file_name): Doc fix.
11121
11122 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11123 of :foreground and :background equivalent to unspecified (20.x
11124 compatibility).
11125
111262008-10-15 Eli Zaretskii <eliz@gnu.org>
11127
11128 * buffer.c (syms_of_buffer): Doc fix.
11129
111302008-10-14 Kenichi Handa <handa@m17n.org>
11131
11132 * font.c (font_clear_prop): When clearing font width, clear the
11133 average width field too.
11134
111352008-10-12 Andreas Schwab <schwab@suse.de>
11136
11137 * ftfont.c (ftfont_shape_by_flt): Make static.
11138 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11139
11140 * font.c: Don't include <m17n-flt.h>.
11141
111422008-10-10 Eli Zaretskii <eliz@gnu.org>
11143
11144 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11145
111462008-10-09 Eli Zaretskii <eliz@gnu.org>
11147
11148 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11149 away code.
11150
111512008-10-09 Chong Yidong <cyd@stupidchicken.com>
11152
11153 * dispnew.c (update_text_area): Avoid looping due to large glyph
11154 overhangs (bug#1070).
11155
111562008-10-09 Kenichi Handa <handa@m17n.org>
11157
11158 * fontset.c (face_for_char): If face->fontset is negative, just
11159 return ascii_face.
11160
f5385255
SM
11161 * font.c (font_delete_unmatched): Fix previous change.
11162 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11163
111642008-10-09 Martin Rudalics <rudalics@gmx.at>
11165
11166 * frame.c (Fraise_frame): On text-only terminals select frame in
11167 order to make it visible. (Bug#1061)
11168
111692008-10-08 Chong Yidong <cyd@stupidchicken.com>
11170
11171 * fontset.c (fontset_find_font): Check frame validity.
11172
111732008-10-07 Chong Yidong <cyd@stupidchicken.com>
11174
a9b555d3 11175 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11176 (xg_display_close): Allow Emacs to close all displays (bug#985).
11177
111782008-10-06 Andreas Schwab <schwab@suse.de>
11179
f5385255 11180 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11181
111822008-10-06 Chong Yidong <cyd@stupidchicken.com>
11183
f5385255 11184 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11185
a9b555d3 11186 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11187
11188 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11189 during initialization.
11190
111912008-10-04 Eli Zaretskii <eliz@gnu.org>
11192
11193 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11194 whole thing on MSDOS frames as well as on a TTY.
11195
11196 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11197 well as for TTY.
11198 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11199 well as on a TTY.
11200
11201 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11202 as well as for TTY.
11203
11204 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11205
11206 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11207 MSDOS frames as well.
11208
112092008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11210
11211 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11212 correct arguments.
b71ac3dd 11213 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11214
112152008-10-03 Glenn Morris <rgm@gnu.org>
11216
11217 * emacs.c (USAGE1): Add --daemon.
11218
112192008-10-02 Eli Zaretskii <eliz@gnu.org>
11220
11221 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11222 100, so it's in percents as advertised.
11223
112242008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11225
11226 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11227 (ns_output.current_cursor, ns_output.desired_cursor)
11228 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11229 (FRAME_NEW_CURSOR_COLOR): Remove.
11230
11231 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11232 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11233 enumeration (HOLLOW_BOX_CURSOR, etc.).
11234
11235 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11236 (draw_window_cursor): Simplify code.
f5385255
SM
11237 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11238 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11239 updates manually.
a9b555d3
JB
11240 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11241 Use core Emacs cursor types.
aac0c6e3 11242
b8ff72fa 11243 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11244
112452008-10-02 Martin Rudalics <rudalics@gmx.at>
11246
11247 * process.c (Faccept_process_output): Fix doc-string.
11248
112492008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11250
11251 * gmalloc.c (__sbrk): Also define for uClibc.
11252
11253 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11254 for uClibc.
11255
112562008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11257
11258 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11259 styles.
11260 (nsfont_open): Reenable the cache.
11261
112622008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11263
11264 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11265 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11266
112672008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11268
11269 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11270 a suspended terminal.
11271
112722008-09-30 Michael Albinus <michael.albinus@gmx.de>
11273
11274 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11275
112762008-09-30 Eli Zaretskii <eliz@gnu.org>
11277
11278 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11279
112802008-09-30 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11283 in a continued line coincides with a line beginning.
11284
112852008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11286
11287 * nsfont.m (nsfont_trait_distance): Fix bug.
11288 (nsfont_list): Return a list rather than a vector (syncs with Handa
11289 changes of 2008-05-14).
11290 (nsfont_open): Improve logging.
11291
112922008-09-29 Andreas Schwab <schwab@suse.de>
11293
11294 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11295
112962008-09-28 Martin Rudalics <rudalics@gmx.at>
11297
11298 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11299 name as char-resolve-modifiers.
11300 Reported by: Markus Triska <markus.triska@gmx.at>
11301
113022008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11303
11304 * dispnew.c (init_display): Return earlier when running as a daemon.
11305
113062008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11307
11308 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11309
113102008-09-27 Eli Zaretskii <eliz@gnu.org>
11311
11312 * composite.c (Fcomposition_get_gstring)
11313 (Fcompose_region_internal, Fcompose_string_internal)
11314 (Ffind_composition_internal): Doc fix.
11315 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11316 (syms_of_composite) <auto-composition-function>: Doc fix.
11317 (syms_of_composite) <composition-function-table>: Doc fix.
11318
113192008-09-25 Chong Yidong <cyd@stupidchicken.com>
11320
11321 * search.c (wordify): New argument for lax word-ends.
11322 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11323
113242008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11325
11326 * lisp.h (is_daemon): Declare.
11327 * dispnew.c (init_display): Do not try to initialize the terminal
11328 when running as a daemon.
11329
113302008-09-22 Chong Yidong <cyd@stupidchicken.com>
11331
11332 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11333 x_display_pixel_height.
11334
113352008-09-22 Martin Rudalics <rudalics@gmx.at>
11336
11337 * undo.c (record_point): Don't call Fundo_boundary for first
11338 change. (Bug#731)
11339
113402008-09-22 Juanma Barranquero <lekktu@gmail.com>
11341
11342 * emacs.c (Fdaemonp): Doc fix.
11343
113442008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11345
11346 * emacs.c (main): Place #ifdef in the proper place.
11347
113482008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11349
11350 * emacs.c (standard_args): Add --daemon.
11351 (main): Disconnect from the terminal when --daemon is passed.
11352 (is_daemon): New variable.
11353 (Fdaemonp): New function.
11354 (syms_of_emacs): Defsubr it.
11355
113562008-09-20 Chong Yidong <cyd@stupidchicken.com>
11357
11358 * xdisp.c (get_next_display_element): Handle string display
11359 correctly when checking for the end of a box run.
11360
113612008-09-20 Glenn Morris <rgm@gnu.org>
11362
11363 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11364 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11365 (Frename_file): Avoid copying to trash if a rename involves
11366 a delete. (Bug#964).
11367
113682008-09-20 Eli Zaretskii <eliz@gnu.org>
11369
11370 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11371 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11372 frames as well as termcap frames.
11373 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11374 get_named_tty.
11375
113762008-09-19 Eli Zaretskii <eliz@gnu.org>
11377
11378 * process.c (procfs_system_process_attributes): Fix cmdline in
11379 case /proc/PID/cmdline is empty.
11380
11381 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11382 x_display_pixel_height.
11383
113842008-09-19 Juanma Barranquero <lekktu@gmail.com>
11385
11386 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11387
11388 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11389 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11390
113912008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11392
11393 * dispextern.h (struct it): Move line_wrap away from the middle of
11394 bitfields. Move voffset in struct iterator_stack_entry after the
11395 bitfields. Move tab_width near after another short.
11396
113972008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11398
11399 * frame.h (struct frame): Move alpha from the middle of bitfields.
11400
11401 * window.h (struct window): Move frozen_window_start_p after the
11402 rest of the bitfields to reduce padding.
11403
114042008-09-18 Chong Yidong <cyd@stupidchicken.com>
11405
11406 * xterm.h (x_display_info): Remove `height' and `width' members.
11407
11408 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11409
11410 * w32term.h (w32_display_info): Remove `height', `width',
11411 `height_in', and `width_in' members.
11412
b8ff72fa
SM
11413 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11414 New functions.
aac0c6e3
MR
11415 (x_calc_absolute_position): Use them.
11416 (x_term_init): Omit removed `height' and `width' members.
11417
b8ff72fa
SM
11418 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11419 New functions.
aac0c6e3
MR
11420 (w32_read_socket, x_calc_absolute_position): Use them.
11421 (w32_initialize_display_info, w32_term_init): Omit removed members
11422 of w32_display_info.
11423
b8ff72fa
SM
11424 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11425 New functions.
11426 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11427
b8ff72fa
SM
11428 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11429 New functions.
aac0c6e3
MR
11430 (x_calc_absolute_position): Use them.
11431 (x_term_init): Omit removed `height' and `width' members.
11432
11433 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11434 (compute_tip_xy):
11435 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11436 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11437 x_display_pixel_width.
11438
114392008-09-18 Kenichi Handa <handa@m17n.org>
11440
11441 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11442 (composition_compute_stop_pos): Fix handling of static composition.
11443 (Fcomposition_get_gstring): Check FROM and TO at first.
11444
114452008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11446
46e722a9 11447 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11448 mixup (YAILOM).
11449
114502008-09-17 Chong Yidong <cyd@stupidchicken.com>
11451
11452 * indent.c (Fvertical_motion): Use position reported by iterator
11453 instead of PT for determining screen motion (bug#943).
11454
114552008-09-17 Romain Francoise <romain@orebokech.com>
11456
11457 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11458
114592008-09-17 Kenichi Handa <handa@m17n.org>
11460
11461 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11462
11463 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11464 if necessary.
11465
114662008-09-16 Kenichi Handa <handa@m17n.org>
11467
11468 * coding.c (make_conversion_work_buffer): Avoid calling
11469 Fget_buffer_create if it is not necessary.
11470
114712008-09-15 Martin Rudalics <rudalics@gmx.at>
11472
11473 * window.c (Fselect_window): Don't update window_select_count and
11474 use_time when norecord is not nil.
11475
114762008-09-14 Kenichi Handa <handa@m17n.org>
11477
11478 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11479 specpdl_ptr.
11480
114812008-09-12 Kenichi Handa <handa@m17n.org>
11482
11483 * indent.c (scan_for_column): Don't handle automatic composition
11484 if the current buffer is not associated with a window.
11485
11486 * composite.c (composition_reseat_it): If the current buffer is
11487 not associated with a window, ignore the automatic composition.
11488 (find_automatic_composition): Likewise.
11489
114902008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11491
11492 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11493 (Fgpm_mouse_stop): Use it.
11494 * termhooks.h (close_gpm): Declare.
11495 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11496 connection if Gpm_GetEvent fails.
11497
11498 * window.c (set_window_buffer): Always preserve current-buffer.
11499
115002008-09-12 Glenn Morris <rgm@gnu.org>
11501
11502 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11503
115042008-09-11 Glenn Morris <rgm@gnu.org>
11505
11506 * charset.c (charset-map-path): Doc fix.
11507
115082008-09-10 Kenichi Handa <handa@m17n.org>
11509
11510 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11511
11512 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11513 compose a grapheme cluster with the preceding base glyph.
11514
11515 * composite.c (composition_compute_stop_pos): Fix previous change.
11516 Reset cmp_it->id to -1 at first.
11517
115182008-09-10 Glenn Morris <rgm@gnu.org>
11519
11520 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11521
115222008-09-09 Chong Yidong <cyd@stupidchicken.com>
11523
11524 * keyboard.c (read_key_sequence): Reapply translation maps when
11525 switching keyboards.
11526
115272008-09-09 Kenichi Handa <handa@m17n.org>
11528
11529 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11530 characters.
11531
11532 * composite.c (FORWARD_CHAR): Fix calculation
11533 of (POSITION).pos_byte.
11534 (composition_compute_stop_pos): Limit the search of composition to
11535 at most 500 characters ahead. If we reach the limit or find a
11536 newline, set cmp_it->ch to -2 and return 0.
11537 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11538
115392008-09-08 Kenichi Handa <handa@m17n.org>
11540
11541 * indent.c (Fvertical_motion): Be sure to set
11542 it_overshoot_expected if it.cmp_it.id is non-negative.
11543
115442008-09-07 Andreas Schwab <schwab@suse.de>
11545
11546 * callproc.c (Fcall_process): Don't hold references to string data
11547 across garbage collection. Move initialisation of new_argv down
11548 to avoid compiler bug.
11549
115502008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11551
11552 * process.c (Fsystem_process_attributes): Doc fix.
11553
115542008-09-07 Chong Yidong <cyd@stupidchicken.com>
11555
11556 * callproc.c (Fcall_process): Canonicalize current directory name.
11557
11558 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11559 iterator advances to the next line if the current line ends in a
11560 continued tab.
11561
115622008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11563
11564 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11565 member to point to cmp_from.
11566
11567 * xdisp.c: Doc fix for references to gidx data member.
11568
115692008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11570
11571 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11572
115732008-09-07 Kenichi Handa <handa@m17n.org>
11574
11575 * composite.c (FORWARD_CHAR): Check STOP after
11576 incrementing (POSITION).pos.
11577
115782008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11579
11580 * process.c (Fsystem_process_attributes): Doc fix.
11581
115822008-09-06 Chong Yidong <cyd@stupidchicken.com>
11583
11584 * keyboard.c (Ftop_level): Doc fix.
11585
115862008-09-06 Eli Zaretskii <eliz@gnu.org>
11587
11588 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11589 minibuffer, don't let lower part of menu invade the echo area.
11590
11591 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11592 "char *q" to access menu text and advance through it. Revert the
11593 change that displayed ">" instead of ASCII character 0x10.
11594
115952008-09-05 Eli Zaretskii <eliz@gnu.org>
11596
11597 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11598 toggle boxes and radio buttons on MS-DOS as well.
11599
116002008-09-05 Kenichi Handa <handa@m17n.org>
11601
11602 * composite.c (autocmp_chars): Check lookback count.
11603 (composition_compute_stop_pos): Set cmp_it->lookback.
11604 (composition_reseat_it): Check lookback count.
11605 (struct position_record): New struct.
11606 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11607 (find_automatic_composition): New function.
11608 (composition_adjust_point): Use find_automatic_composition.
11609
11610 * dispextern.h (struct composition_it): New member lookback.
11611
116122008-09-02 Chong Yidong <cyd@stupidchicken.com>
11613
11614 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11615 if moving by a single line.
11616
116172008-09-02 Andreas Schwab <schwab@suse.de>
11618
11619 * xterm.c (x_delete_display): Fix merge error.
11620
11621 * fileio.c (Fexpand_file_name): Remove unused variables.
11622
116232008-09-02 Eli Zaretskii <eliz@gnu.org>
11624
11625 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11626 storage on all platforms, not just on DOS_NT.
11627
116282008-09-02 Jason Rumney <jasonr@gnu.org>
11629
b8ff72fa
SM
11630 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11631 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11632
116332008-09-01 Chong Yidong <cyd@stupidchicken.com>
11634
11635 * xfaces.c (Finternal_set_alternative_font_family_alist)
11636 (Finternal_set_alternative_font_registry_alist): Properly copy
11637 entire alist structure.
11638
116392008-09-01 Kenichi Handa <handa@m17n.org>
11640
d66c0241 11641 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11642 representative chars of the script is a vector.
d66c0241
JB
11643 (ftfont_list): Handle the case where the representative chars of
11644 the script is a vector.
aac0c6e3
MR
11645
11646 * character.c (syms_of_character): Docstring of
11647 script-representative-chars fixed.
11648
116492008-08-31 Eli Zaretskii <eliz@gnu.org>
11650
11651 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11652 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11653 the menu. Allocate larger buffer for `text', to account for
11654 possible ^C characters.
11655
116562008-08-31 Martin Rudalics <rudalics@gmx.at>
11657
11658 * xdisp.c (prepare_menu_bars): Don't call
11659 Vwindow_size_change_functions with arg Qt.
11660
116612008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11662
11663 * font.h (font_range):
11664 * fileio.c (report_file_error):
46e722a9
SM
11665 * composite.c (composition_update_it): Yet another int/Lisp_Object
11666 mixup (YAILOM).
aac0c6e3
MR
11667
116682008-08-30 Glenn Morris <rgm@gnu.org>
11669
11670 * data.c (Fmake_variable_frame_local): Doc fix.
11671
11672 * frame.c (Fmodify_frame_parameters): Doc fix.
11673
116742008-08-30 Eli Zaretskii <eliz@gnu.org>
11675
11676 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11677 needed by GetTokenInformation.
11678 (w32_system_process_attributes): Check return values of all system
11679 APIs.
11680
11681 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11682 only when the state changes.
11683 (IT_update_begin, IT_update_end): Add termscript trace.
11684
11685 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11686 clipboard is unavailable. Set dst to NULL if it doesn't point to
11687 malloc'ed data.
11688 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11689 passing random values to xfree.
11690
11691 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11692 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11693
116942008-08-29 Jason Rumney <jasonr@gnu.org>
11695
11696 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11697
116982008-08-29 Eli Zaretskii <eliz@gnu.org>
11699
11700 * composite.c (fill_gstring_body): Avoid compiler warnings.
11701
11702 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11703 LGLYPH_SET_CODE to avoid compiler warnings.
11704
2ae37cf0 11705 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11706
11707 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11708
11709 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11710 LGLYPH_SET_CODE.
11711
117122008-08-29 Kenichi Handa <handa@m17n.org>
11713
11714 * fileio.c (report_file_error): Don't downcase the first character
11715 of errstring if it is still unibyte.
11716
117172008-08-29 Kenichi Handa <handa@m17n.org>
11718
11719 These changes are to re-implement the automatic composition so
11720 that it doesn't use text properties.
11721
11722 * Makefile.in (ftfont.o): Depend on composite.h.
11723 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11724
11725 * character.h (Vunicode_category_table): Extern it.
11726
11727 * character.c (Vunicode_category_table): New variable.
11728 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11729
11730 * chartab.c (optimize_sub_char_table): Perform more greedy
11731 optimization.
11732
b8ff72fa
SM
11733 * composite.h (enum composition_method):
11734 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11735 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11736 (Vcomposition_function_table): Extern it.
11737 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11738 (composition_gstring_put_cache, composition_gstring_from_id)
11739 (composition_gstring_p, composition_gstring_width)
11740 (composition_compute_stop_pos, composition_reseat_it)
11741 (composition_update_it, composition_adjust_point): Extern them.
11742 (Fcomposition_get_gstring): EXFUN it.
11743
d66c0241 11744 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11745 (Vcomposition_function_table)
11746 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11747 (gstring_hash_table, gstring_work, gstring_work_headers):
11748 New variables.
aac0c6e3
MR
11749 (gstring_lookup_cache, composition_gstring_put_cache)
11750 (composition_gstring_from_id, composition_gstring_p)
11751 (composition_gstring_width, fill_gstring_header)
11752 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11753 (composition_reseat_it, composition_update_it)
b8ff72fa 11754 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11755 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11756 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11757 Defsubr composition_get_gstring.
aac0c6e3
MR
11758
11759 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11760 cmp_id.
11761 (struct glyph_string): Delete the member gidx. New members
11762 cmp_id, cmp_from, and cmp_to.
11763 (enum it_method): Delete GET_FROM_COMPOSITION.
11764 (struct composition_it): New struct.
11765 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11766 Delete c, len, cmp_id, cmp_len in u.comp.
11767
11768 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11769 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11770 (enum lglyph_indices): Likewise.
b8ff72fa 11771 (font_range): Adjust extern.
aac0c6e3
MR
11772 (font_fill_lglyph_metrics): Extern it.
11773
11774 * font.c (QCf): New variable.
11775 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11776 (font_prepare_composition): Delete this function.
11777 (font_range): Type and arguments changed.
11778 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11779 (font_fill_lglyph_metrics): New function.
b8ff72fa 11780 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11781 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11782 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11783 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11784
11785 * fontset.h (font_for_char): Extern it.
11786
11787 * fontset.c (font_for_char): New function.
11788
11789 * ftfont.c: Include composite.h.
11790 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11791 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11792
11793 * indent.c: Include composite.h and dispextern.h.
11794 (check_composition): Delete this function.
11795 (scan_for_column): Handle composition by
11796 composition_compute_stop_pos, composition_reseat_it, and
11797 composition_update_it.
11798 (compute_motion): Likewise.
11799 (Fvertical_motion): Fix checking of composition.
11800
11801 * keyboard.c (adjust_point_for_property): Check composition by
11802 composition_adjust_point.
11803
b8ff72fa 11804 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11805 struct glyph_string.
11806
b8ff72fa
SM
11807 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11808 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11809 struct glyph.
11810 (produce_composite_glyph): Likewise.
11811
b8ff72fa
SM
11812 * w32term.c (x_draw_composite_glyph_string_foreground):
11813 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11814 (x_draw_glyph_string): Likewise.
11815
11816 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11817 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11818
11819 * xdisp.c: Include font.h.
11820 (it_props): Delete the entry for Qauto_composed.
11821 (init_iterator): Initialize it->cmp_it.id to -1.
11822 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11823 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11824 (handle_auto_composed_prop): Delete it.
11825 (handle_composition_prop): Handle only static composition.
11826 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11827 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11828 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11829 (pop_it): Likewise.
11830 (get_next_element): Delete next_element_from_composition.
11831 (CHAR_COMPOSED_P): New macro.
11832 (get_next_display_element): For automatic composition, get a face
11833 from the font in the glyph-string.
11834 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11835 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11836 (next_element_from_string): Check if the character at the current
11837 position is composed by CHAR_COMPOSED_P.
11838 (next_element_from_buffer): Likewise.
d66c0241
JB
11839 (next_element_from_composition): Adjust for the change of struct it.
11840 Update it->cmp_it.
b8ff72fa
SM
11841 (dump_glyph): Adjust for the change of struct glyph.
11842 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11843 it and struct glyph. Don't handle automatic composition here.
11844 (fill_gstring_glyph_string): New function.
11845 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11846 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11847 (BUILD_GSTRING_GLYPH_STRING): New macro.
11848 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11849 automatic composition.
b8ff72fa 11850 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11851 struct glyph.
b8ff72fa 11852 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11853
b8ff72fa 11854 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11855 the change of struct glyph_string.
11856 (x_draw_glyph_string): Likewise.
11857
118582008-08-29 Glenn Morris <rgm@gnu.org>
11859
11860 * buffer.c (word-wrap): Doc fix.
11861 * xdisp.c (truncate-partial-width-windows): Doc fix.
11862 Increase default to 50.
11863
118642008-08-29 Chong Yidong <cyd@stupidchicken.com>
11865
11866 * xdisp.c (update_tool_bar_unwind): New function.
11867 (update_tool_bar): Temporarily set selected frame before building
11868 tool-bar items.
11869
118702008-08-28 Michael Albinus <michael.albinus@gmx.de>
11871
11872 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11873 snprintf, respectively.
11874 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11875
118762008-08-28 Chong Yidong <cyd@stupidchicken.com>
11877
11878 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11879 LDFLAGS to GNUstep CC invocation.
11880
118812008-08-27 Chong Yidong <cyd@stupidchicken.com>
11882
11883 * indent.c (Fvertical_motion): Revert last change. Handle the
11884 general case where we are moving forward, and PT spans multiple
11885 screen lines.
11886
11887 * eval.c (find_handler_clause): Temporarily increase
11888 max-lisp-eval-depth while printing the backtrace buffer, to
11889 guarantee that help-mode code can run.
11890
118912008-08-27 Eli Zaretskii <eliz@gnu.org>
11892
11893 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11894 colors under -rv.
11895 (IT_set_frame_parameters): Don't swap foreground and background
11896 colors if `(reverse . t)' is present in the frame properties.
11897 (internal_terminal_init): Call init_frame_faces only for the
11898 initial frame.
11899
119002008-08-27 Andreas Schwab <schwab@suse.de>
11901
11902 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11903
119042008-08-27 Andreas Schwab <schwab@suse.de>
11905
11906 * search.c (search_buffer): Set char_base to zero only at the end.
11907
119082008-08-27 Kenichi Handa <handa@m17n.org>
11909
b8ff72fa 11910 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11911
119122008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11913
11914 * xterm.c (x_term_init): Temporarily hide the partially
11915 initialized terminal while calling vendor-specific-keysyms.
11916
119172008-08-26 Eli Zaretskii <eliz@gnu.org>
11918
11919 * msdos.c (internal_terminal_init): Most initializations done only
11920 once, especially initial_screen_colors[] and termscript open.
11921
119222008-08-26 Chong Yidong <cyd@stupidchicken.com>
11923
11924 * eval.c (Fcondition_case): Doc fix.
11925
11926 * widgetprv.h (EmacsFramePart): Change font member to the new font
11927 struct.
11928
11929 * widget.c: Include character.h and font.h for XSETFONT.
11930 (setup_frame_gcs): Compute X font id from font struct, just once.
11931
119322008-08-26 Eli Zaretskii <eliz@gnu.org>
11933
11934 * term.c (get_named_tty): Fix last change.
11935
119362008-08-26 Chong Yidong <cyd@stupidchicken.com>
11937
11938 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11939 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11940
119412008-08-25 Eli Zaretskii <eliz@gnu.org>
11942
11943 * frame.c (do_switch_frame): Mark previously displayed frame as
11944 obscured for FRAME_MSDOS_P frames as well.
11945
119462008-08-24 Eli Zaretskii <eliz@gnu.org>
11947
11948 * frame.c (make_terminal_frame): Initialize f->terminal,
11949 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11950 Set the top frame to newly created frame.
11951 (Fmake_terminal_frame): Reuse the_only_display_info.
11952
11953 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11954 estimating available memory.
11955
b97439ce 119562008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11957
11958 * nsterm.m (ns_draw_window_cursor): Don't call
11959 NSDisableScreenUpdates and NSEnableScreenUpdates on
11960 non-NS_IMPL_COCOA systems.
11961
119622008-08-23 Andreas Schwab <schwab@suse.de>
11963
11964 * process.c (procfs_system_process_attributes): Fix use of
11965 uninitialized variables.
11966
119672008-08-23 Eli Zaretskii <eliz@gnu.org>
11968
11969 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11970
11971 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11972 calling tty-set-up-initial-frame-faces.
11973
b8ff72fa
SM
11974 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11975 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11976
11977 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11978 addition to output_termcap.
11979
11980 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11981
11982 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11983 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11984 highlight.
11985
11986 * process.c [!subprocesses]: Define QCname.
11987 (syms_of_process): Intern and staticpro it.
11988
11989 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11990 Adjust for changes in encoding/decoding routines.
11991 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11992 encode_coding and decode_coding.
11993
b8ff72fa 11994 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11995
11996 * dosfns.c: Include frame.h before termhooks.h.
11997 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11998 variable termscript.
11999
12000 * s/msdos.h (USER_FULL_NAME): Define.
12001 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12002
12003 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12004 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12005 pw->pw_gecos.
12006
12007 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12008 SELECTED_FRAME as additional (1st) argument.
12009 (tty_read_avail_input): Handle output_msdos_raw in
12010 addition to output_termcap.
12011
12012 * msdos.c: Include frame.h before termhooks.h.
12013 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12014 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12015 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12016 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12017 (IT_set_terminal_modes, IT_reset_terminal_modes)
12018 (IT_set_frame_parameters): Use tty->termscript instead of a global
12019 variable termscript.
12020 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12021 global variable terminal_coding. Don't refer to
12022 Vnonascii_translation_table.
12023 (internal_terminal_init): Set Vwindow_system in current_kboard.
12024 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12025 Announce date and time of session start, if termscript is open.
12026 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12027 term.c:init_tty). Open termscript only of not already open.
12028 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12029 here instead of dos_ttraw. Don't initialize display if this is an
12030 initial tty. Don't set FRAME_FONT.
12031 (Vwindow_system_version): Bump to 23.
12032 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12033 is available, set up mouse_position_hook.
12034 (dos_ttraw, IT_set_terminal_modes): If called with initial
12035 terminal, do nothing.
12036 (IT_set_frame_parameters): Handle the Qtty_type frame
12037 parameter by calling internal_terminal_init.
12038 (dos_set_window_size, show_mouse_face)
12039 (clear_mouse_face, IT_note_mode_line_highlight)
12040 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12041 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12042 (initialize_msdos_display): New function.
12043 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12044 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12045 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12046 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12047 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12048 (request_sigio, unrequest_sigio): Don't define, now defined on
12049 sysdep.c.
12050 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12051
12052 * term.c [MSDOS]: Include msdos.h.
12053 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12054 conditional to DOS_NT. Allow only one call to this function in a
12055 session. Don't allocate a new struct tty_display_info; instead,
12056 reuse the_only_display_info. Call get_tty_size to get screen
12057 dimensions. Call init_baud_rate to set bad_rate.
12058 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12059 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12060 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12061 (get_tty_terminal, get_named_tty, Ftty_type)
12062 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12063 output_termcap.
b8ff72fa
SM
12064 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12065 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12066 only when subprocesses are supported.
aac0c6e3
MR
12067
12068 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12069 f->output_data.x.
12070 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12071 terminal devices.
12072
5582fbc7 12073 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12074 x_output.
12075 (FRAME_FONT): Use output_data.tty.
12076 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12077 (struct x_display_info): Rename from display_info. Update all users in
12078 msdos.c.
aac0c6e3 12079 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12080 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12081 (dos_ttraw): Update prototype.
12082
12083 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12084 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12085
120862008-08-23 Jason Rumney <jasonr@gnu.org>
12087
12088 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12089 (fn_TIFFSetDirectory): New library function used.
12090 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12091 (tiff_load): Use :index to select among multiple images. Set count
12092 property when multiple images exist.
12093 (gif_format): Use :index, not :image.
12094
120952008-08-23 Chong Yidong <cyd@stupidchicken.com>
12096
12097 * xdisp.c (try_scrolling): Check INT_MAX instead of
12098 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12099 to obtain INT_MAX.
12100
121012008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12102
12103 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12104
121052008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12106
12107 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12108 GNUstep library location.
12109
121102008-08-21 Chong Yidong <cyd@stupidchicken.com>
12111
12112 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12113 before using it.
12114
12115 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12116
121172008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12118
12119 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12120 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12121 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12122 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12123 (EmacsApp-cursor_blink_handler): Remove declaration.
12124 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12125 match 01 Feb 2008 changes in xterm.c.
12126 (ns_read_socket): Add cast to avoid warning.
12127 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12128 GNUstep.
12129
121302008-08-20 Chong Yidong <cyd@stupidchicken.com>
12131
12132 * xselect.c (x_get_foreign_selection): Return nil if desired
12133 selection could not be obtained, instead of signalling an error.
12134
121352008-08-20 David Reitter <david.reitter@gmail.com>
12136
12137 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12138 * nsterm.m: Remove ns-specific code for cursor blinking.
12139 (ns_draw_window_cursor): Clear cursor properly rather than
12140 redrawing the area. Respect width of bar cursors.
12141 These changes enable the use of generic blink-cursor-mode and
12142 generic cursor types in NS and support smooth cursor movements (do
12143 not blink off after command).
12144 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12145 Nextstep, too.
12146
121472008-08-19 Kenichi Handa <handa@m17n.org>
12148
12149 * font.c (Vfont_log_deferred): New variable.
12150 (font_add_log): Check Vfont_log_deferred.
12151 (font_deferred_log): New function.
12152
12153 * font.h (font_deferred_log): Extern it.
12154
12155 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12156 for sorting.
12157 (face_for_char): Use deferred log.
12158
121592008-08-18 Kenichi Handa <handa@m17n.org>
12160
12161 * fontset.c (face_for_char): Add font log.
12162
12163 * font.c (font_add_log): Add the font properties :script, :lang,
12164 and :otf in the log.
12165
121662008-08-17 Chong Yidong <cyd@stupidchicken.com>
12167
12168 * xdisp.c: Remove dead code.
12169 (handle_invisible_prop, next_overlay_string): Defer call to
12170 setup_for_ellipsis.
12171 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12172
121732008-08-15 Chong Yidong <cyd@stupidchicken.com>
12174
12175 * xfaces.c (lookup_derived_face): Properly handle possible zero
12176 return value of get_lface_attributes.
12177 (merge_faces): Don't tell lookup_derived_face to signal an error
12178 if face is not found.
12179
12180 * dired.c (Fdirectory_files): Doc fix.
12181
12182 * process.c (make_process): Initialize kill_without_query struct
12183 member.
12184
121852008-08-15 Eli Zaretskii <eliz@gnu.org>
12186
12187 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12188 Alternative calculation of totphys for Visual Studio 6.
12189
12190 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12191
12192 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12193 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12194 All users changed.
12195 (stat): Only root directory passed to GetDriveType. Allow RAM
12196 disk as well as local fixed disk when w32-get-true-file-attributes
12197 is set to `local'.
12198 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12199 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12200 (w32_cached_id, w32_add_to_cache): New functions.
12201 (get_name_and_id): Look account names in the cache before calling
12202 lookup_account_sid.
12203 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12204 New initialization flags.
12205 (globals_of_w32): Initialize them to zero.
12206 (w32_system_process_attributes): Use w32_cached_id and
12207 w32_add_to_cache.
12208
122092008-08-14 Lawrence Mitchell <wence@gmx.li>
12210
12211 * lread.c (Fread_char, Fread_char_exclusive): If no character
12212 event is read before timeout is reached, return nil, rather than
12213 converting to a number.
12214
122152008-08-14 Chong Yidong <cyd@stupidchicken.com>
12216
12217 * fns.c (use_dialog_box): Doc fix.
12218
12219 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12220 on OS X.
12221
122222008-08-13 Chong Yidong <cyd@stupidchicken.com>
12223
12224 * frame.c (Qns_parse_geometry): New var.
12225 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12226
122272008-08-11 Chong Yidong <cyd@stupidchicken.com>
12228
12229 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12230 space character in calculating tabs.
12231
122322008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12233
12234 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12235
122362008-08-10 Glenn Morris <rgm@gnu.org>
12237
12238 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12239 silence gcc "limited range of data type" warnings in some
12240 make_fixnum_or_float calls.
12241
122422008-08-09 Eli Zaretskii <eliz@gnu.org>
12243
12244 * w32.c (w32_system_process_attributes): If the process does not
12245 exist, return nil.
12246
12247 * w32.c: Include thelp32.h, psapi.h and coding.h.
12248 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12249 declarations.
12250 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12251 (Process32Next_Proc): New typedefs.
12252 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12253 (g_b_init_process32_next, g_b_init_open_thread_token)
12254 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12255 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12256 (g_b_init_get_process_working_set_size)
12257 (g_b_init_global_memory_status_ex): New static variables.
12258 (globals_of_w32): Initialize them.
12259 (create_toolhelp32_snapshot, process32_first, process32_next)
12260 (open_thread_token, impersonate_self, revert_to_self)
12261 (get_process_memory_info, get_process_working_set_size)
12262 (global_memory_status, global_memory_status_ex): New wrapper
12263 functions.
12264 (w32_list_system_processes, w32_system_process_attributes)
12265 (enable_privilege, restore_privilege, ltime, process_times):
12266 New functions.
12267 (convert_time_raw): New function.
12268 (convert_time): Remove conversion of FILETIME into time in 100
12269 nsec units, call convert_time_raw instead.
12270
12271 * process.h (w32_list_system_processes, w32_system_process_attributes):
12272 Add prototypes.
12273 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12274 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12275 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12276 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12277
12278 * process.c (Fsystem_process_attributes): Doc fix.
12279
122802008-08-08 Chong Yidong <cyd@stupidchicken.com>
12281
12282 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12283 a continued multi-char glyph; if so, advance to the actual glyph.
12284
122852008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12286
12287 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12288
12289 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12290 (.m.o): Use it.
12291 * config.in: Regenerate.
12292
122932008-08-07 Chong Yidong <cyd@stupidchicken.com>
12294
12295 * xdisp.c (redisplay_window): Revert last change.
12296 (try_window): Check bottom scroll margin too.
12297
122982008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12299
12300 * config.in: Regenerate.
12301
12302 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12303 -list-load-path-shadows'.
12304 (nsgui.h): Reduce number of things depending on it.
12305
123062008-08-06 Chong Yidong <cyd@stupidchicken.com>
12307
12308 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12309 instead of window-end which does the wrong thing at eob.
12310 (try_cursor_movement): Minor optimization.
12311 (redisplay_window): If scroll margin is defined, don't assume
12312 window doesn't need scrolling.
12313
123142008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12315
12316 * config.in: Regenerate.
12317
12318 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12319 (mostlyclean): Don't delete *.d under NS.
12320
12321 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12322
123232008-08-06 Kenichi Handa <handa@m17n.org>
12324
12325 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12326
123272008-08-06 Andreas Schwab <schwab@suse.de>
12328
12329 * config.in: Regenerate.
12330
123312008-08-05 Chong Yidong <cyd@stupidchicken.com>
12332
12333 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12334 forcing a window start.
12335
12336 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12337 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12338
123392008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12340
12341 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12342 argument.
12343
123442008-08-05 Juanma Barranquero <lekktu@gmail.com>
12345
12346 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12347 <scroll-down-aggressively, before-change-functions>:
12348 <after-change-functions>: Reflow docstrings.
12349
123502008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12351 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12352
12353 Dock menu customization, based on a patch by Ken Raeburn, plus some
12354 other fixes.
12355 * nsmenu.m (dockMenu): New variable.
12356 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12357
12358 * nsterm.h (dockMenu): Declare.
12359
12360 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12361 (ns_term_init): Initialize dockMenu.
12362 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12363 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12364 left.
12365
12366 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12367
123682008-08-04 Chong Yidong <cyd@stupidchicken.com>
12369
12370 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12371
12372 * config.in: Regenerate.
12373
123742008-08-04 Seiji Zenitani <zenitani@mac.com>
12375
12376 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12377
123782008-08-04 Chong Yidong <cyd@stupidchicken.com>
12379
12380 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12381
123822008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12383
12384 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12385
12386 * keyboard.h: Comment an #endif.
12387
12388 * lisp.h (have_menus_p): Adjust comment.
12389
12390 * menu.c (find_and_return_menu_selection): Fix comparison with
12391 client_data.
12392
12393 * nsmenu.m (popup_activated_flag): New variable.
12394 (popup_activated): New function.
12395 (menu-or-popup-active-p): New exported lisp definition.
12396 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12397 when popup done.
12398 (ns_popup_dialog): Set popup_activated_flag.
12399
12400 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12401 version for GNUstep (handled by conditional typedef in nsterm.m).
12402 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12403 in rgb.txt).
12404
12405 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12406
12407 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12408
12409 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12410
12411 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12412 shortcircuit if popup_activated like GTK and X toolkit.
12413
12414 * m/inter386.h: Change DARWIN to DARWIN_OS.
12415
12416 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12417 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12418 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12419 comment on NO_SOCK_SIGIO.
12420
124212008-08-03 Chong Yidong <cyd@stupidchicken.com>
12422
12423 * nsterm.m (windowDidResize): Remove stopModal call.
12424
124252008-08-03 Andreas Schwab <schwab@suse.de>
12426
12427 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12428 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12429
124302008-08-02 Chong Yidong <cyd@stupidchicken.com>
12431
12432 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12433 Don't use uninitialized pointer variable when using getrlimit.
12434
124352008-08-02 Jason Rumney <jasonr@gnu.org>
12436
12437 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12438
124392008-08-02 Eli Zaretskii <eliz@gnu.org>
12440
12441 * alloc.c (NSTATICS): Bump to 0x640.
12442
12443 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12444
12445 * lisp.h: Add prototype for directory_files_internal.
12446
12447 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12448 New functions.
12449 (syms_of_process): Defsubr them. Add initializations for various
12450 Q* symbols used in procfs_system_process_attributes.
12451 (procfs_list_system_processes, procfs_system_process_attributes)
12452 [HAVE_PROCFS]: New functions.
12453 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12454 (procfs_get_total_memory): New functions.
12455
124562008-08-01 Juanma Barranquero <lekktu@gmail.com>
12457
12458 * xfaces.c (Fx_load_color_file): Fix previous change;
12459 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12460
124612008-08-01 Michael Albinus <michael.albinus@gmx.de>
12462
12463 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12464
124652008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12466
12467 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12468
124692008-08-01 Chong Yidong <cyd@stupidchicken.com>
12470
12471 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12472
12473 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12474 define NSApplicationDelegateReplySuccess.
12475 (EmacsView -converstationIdentifier): Use long instead of
12476 NSInteger for GNUstep, since it doesn't have NSInteger.
12477
12478 * xmenu.c: Revert last change.
12479
12480 * keyboard.h: Fix last change.
12481
124822008-08-01 Juanma Barranquero <lekktu@gmail.com>
12483
12484 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12485 on Windows.
12486
124872008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12488
12489 Warning clearing and clean-up in NS port.
12490 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12491 Add prototypes.
12492 * nsgui.h (FACE_DEFAULT): Remove, unused.
12493 (XGCValues): Change colors to unsigned long.
12494 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12495 nsterm.m.
12496 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12497 (ns_list_fonts): Remove, unused.
12498 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12499 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12500 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12501 (nsfont_draw): Compare face colors to 0, not nil.
12502 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12503 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12504 (-addSubmenuWithTitle:): Use NSMenuItem class.
12505 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12506 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12507 (ns_clip_to_row): Make gc arg a BOOL.
12508 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12509 ns_clip_to_row() call.
12510 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12511 used). Cast FRAME_FONT assignments.
12512 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12513 (ns_string_to_lispmod): Change arg to const char.
12514 (ns_term_init): Use NSMenuItem class.
12515 (EmacsApp -openFile:): Move to different section of file.
12516 (EmacsApp -application:openFiles:): Don't return a value, call
12517 -replyToOpenOrPrint:.
12518 (EmacsView -keyDown:): Fix up cast.
12519 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12520 (EmacsView -menuDown:): Cast tag in call to
12521 find_and_call_menu_selection().
12522 (ns_list_fonts): Remove, unused.
12523 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12524 (ns_fontname_to_xlfd): Make static.
12525 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12526 Remove prototypes (now in keyboard.h).
12527 (next_menubar_widget_id): Remove, unused.
12528 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12529 Remove prototypes (now in keyboard.h).
12530 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12531
125322008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12533
12534 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12535 (floatfns.o): Depend on syssignal.h.
12536 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12537
12538 * systty.h: Fix previous change that removed BSD_TERMIOS.
12539 Add comments to #ifdefs.
12540
125412008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12542
12543 * w32fns.c (w32-load-color-file): Remove.
12544 (x-open-connection): Use renamed Fx_load_color_file.
12545 * xfaces.c (x-load-color-file): Add.
12546 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12547 Emacs.clr.
12548 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12549
125502008-07-31 Michael Albinus <michael.albinus@gmx.de>
12551
12552 * dbusbind.c (Fdbus_call_method_asynchronously)
12553 (Fdbus_method_error_internal): New defuns.
12554 (xd_read_message): Handle also reply messages.
12555 (Vdbus_registered_functions_table): Extend docstring.
12556
125572008-07-31 Juanma Barranquero <lekktu@gmail.com>
12558
12559 * keyboard.c (gobble_input): Fix previous change.
12560
125612008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12562
12563 * bitmaps/README:
12564 * xfns.c:
12565 * termcap.c:
12566 * term.c:
12567 * syswait.h:
12568 * systty.h:
12569 * systime.h:
12570 * syssignal.h:
12571 * sysdep.c:
12572 * process.h:
12573 * process.c:
12574 * print.c:
12575 * ndir.h:
12576 * lread.c:
12577 * keyboard.c:
12578 * getpagesize.h:
12579 * floatfns.c:
12580 * fileio.c:
12581 * emacs.c:
12582 * doc.c:
12583 * dispnew.c:
12584 * dired.c:
12585 * data.c:
12586 * callproc.c:
12587 * buffer.c:
12588 * README:
12589 * Makefile.in:
12590 * s/template.h:
12591 * s/msdos.h:
12592 * m/vax.h: Remove VMS support.
12593 * s/vms.h:
12594 * vlimit.h:
12595 * uaf.h:
12596 * temacs.opt:
12597 * param.h:
12598 * ioctl.h: Remove file.
12599
126002008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12601
12602 * s/ms-w32.h (MULTI_KBOARD): Remove.
12603 * xterm.c:
12604 * xselect.c:
12605 * xfns.c:
12606 * window.c:
12607 * w32term.c:
12608 * w32fns.c:
12609 * terminal.c:
12610 * termhooks.h:
12611 * term.c:
12612 * sysdep.c:
12613 * keyboard.h:
12614 * keyboard.c:
12615 * frame.h:
12616 * frame.c:
12617 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12618 * config.in: Regenerate.
12619
126202008-07-30 Jason Rumney <jasonr@gnu.org>
12621
12622 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12623
12624 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12625 (w32font_open_internal): Get unicode version of textmetrics.
12626 Don't enable or disable glyph indices here.
12627 (w32font_open): Disable use of glyph indices.
12628
12629 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12630
126312008-07-30 Chong Yidong <cyd@stupidchicken.com>
12632
12633 * minibuf.c (Vread_buffer_function): Doc fix.
12634
126352008-07-30 John Paul Wallington <jpw@pobox.com>
12636
12637 * minibuf.c (read_buffer_completion_ignore_case): New var.
12638 (Fread_buffer): Use it.
12639
126402008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12641
12642 * systty.h (sensemode): Remove empty #if. Remove reference to
12643 BSD_TERMIOS, unused.
12644
12645 * sysdep.c: Remove reference to DGUX.
12646 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12647
12648 * config.in: Regenerate.
12649
126502008-07-30 Jason Rumney <jasonr@gnu.org>
12651
12652 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12653
126542008-07-29 Jason Rumney <jasonr@gnu.org>
12655
12656 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12657 is populated.
12658 (uniscribe_encode_char): Always use uniscribe.
12659 Avoid using context if cache is populated.
12660
126612008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12662
12663 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12664 open menu.
12665
12666 * gtkutil.c (menu_nav_ended): Remove.
12667 (create_menus): Remove signal connect for menu_nav_ended.
12668
126692008-07-28 Chong Yidong <cyd@stupidchicken.com>
12670
12671 * xdisp.c (redisplay_window): Check return value of
12672 compute_window_start_on_continuation_line before forcing a window
12673 start.
12674
126752008-07-28 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12678
12679 * w32term.c (w32_enable_unicode_output, cleartype_active):
12680 Remove obsolete display options.
12681 (x_draw_glyph_string_background): Don't use old cleartype_active
12682 workaround.
12683 (w32_initialize): Remove cleartype_active initialization.
12684 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12685
126862008-07-28 Andreas Schwab <schwab@suse.de>
12687
12688 * lisp.h (init_weak_hash_tables, syms_of_font)
12689 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12690 (remove_hash_entry): Don't declare.
12691 * eval.c (maybe_call_debugger): Make static and move before use.
12692 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12693 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12694 * xterm.h (x_set_frame_alpha): Declare.
12695
126962008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12697
12698 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12699 (create_menus): Connect selection-done to menu_nav_ended.
12700
127012008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12702
12703 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12704 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12705 parameter with read of 'alpha' one.
12706 (Qns_frame_parameter): Remove.
5582fbc7 12707 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12708 (next-selection-coding-system, Vselection_coding_system)
12709 (Vnext_selection_coding_system): Drop.
12710
127112008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12712
12713 * nsfns.m (do-applescript, do_applescript): Rename to
12714 ns-do-applescript, ns_do_applescript, and move within file.
12715
127162008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12717
12718 Remove support for Mac Carbon.
12719 * mactoolbox.c:
12720 * macterm.h:
12721 * macterm.c:
12722 * macselect.c:
12723 * macmenu.c:
12724 * macgui.h:
12725 * macfns.c:
12726 * mac.c: Remove file.
12727 * s/darwin.h:
12728 * m/intel386.h:
12729 * xfaces.c:
12730 * xdisp.c:
12731 * window.c:
12732 * tparam.c:
12733 * termhooks.h:
12734 * termcap.c:
12735 * term.c:
12736 * syssignal.h:
12737 * sysselect.h:
12738 * sysdep.c:
12739 * process.c:
12740 * lread.c:
12741 * lisp.h:
12742 * keyboard.c:
12743 * image.c:
12744 * fringe.c:
12745 * frame.h:
12746 * frame.c:
12747 * fontset.c:
12748 * font.h:
12749 * font.c:
12750 * fns.c:
12751 * fileio.c:
12752 * emacs.c:
12753 * dispnew.c:
12754 * dispextern.h:
12755 * config.in:
12756 * atimer.c:
2ae37cf0 12757 * Makefile.in: Remove code for Carbon.
aac0c6e3 12758
f0131492 127592008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12760
12761 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12762
127632008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12764
12765 * macterm.h (kCGBitmapByteOrder32Host): New define for
12766 non-universal SDKs.
12767
12768 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12769 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12770
12771 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12772 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12773
127742008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12775
12776 * w32inevt.c: Include dispextern.h.
12777
127782008-07-26 Andreas Schwab <schwab@suse.de>
12779
12780 * print.c (print_object): Fix off-by-one in last change.
12781
127822008-07-25 Juanma Barranquero <lekktu@gmail.com>
12783
12784 * term.c (syms_of_term): Don't initialize default_orig_pair,
12785 default_set_foreground and default_set_background on Windows.
12786
127872008-07-25 Jason Rumney <jasonr@gnu.org>
12788
12789 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12790 ScriptItemize. Clean up return value checking. Remove unused
12791 variables.
12792 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12793 shaping engine.
12794
12795 * w32font.c (w32font_has_char): Handle the case where we can't
12796 determine the script for a character.
12797
127982008-07-25 Chong Yidong <cyd@stupidchicken.com>
12799
12800 * term.c (syms_of_term): Initialize default_orig_pair,
12801 default_set_foreground, and default_set_background.
12802
12803 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12804 clash (bug#86).
12805 (getloadavg): Callers changed.
12806
12807 * image.c (svg_load_image): Fix last change.
12808 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12809 image size is valid. Use g_object_unref instead of deprecated
12810 rsvg_handle_free to free rsvg handle.
12811 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12812
128132008-07-25 Jason Rumney <jasonr@gnu.org>
12814
12815 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12816 surrogates before looking up glyph index.
12817 (w32font_text_extents): Encode as surrogates if falling back to
12818 functions that need UTF-16 wide chars.
12819
12820 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12821 BMP as surrogates before looking up glyph index.
12822
128232008-07-25 Chong Yidong <cyd@stupidchicken.com>
12824
12825 * image.c (svg_load_image): Check for failure in return value of
12826 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12827
128282008-07-25 Jason Rumney <jasonr@gnu.org>
12829
12830 * w32font.c (Fx_select_font): Reverse sense of second arg.
12831
128322008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12833
12834 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12835 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12836
12837 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12838 (PURESIZE): Use it.
12839
128402008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12841
12842 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12843 * m/alpha.h (TEXT_END):
12844 * m/ibmrs6000.h (TEXT_END):
12845 * m/macppc.h (TEXT_END):
12846 * s/darwin.h (TEXT_END):
12847 * s/msdos.h (TEXT_END): Remove, unused.
12848 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12849 * s/cygwin.h: Remove comment.
12850
12851 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12852 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12853 * m/intel386.h (DOT_GLOBAL_START):
12854 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12855 (USG): Remove, file not used on USG platforms.
12856
12857 * Makefile.in (HAVE_X11): Remove empty #else.
12858
128592008-07-24 Andreas Schwab <schwab@suse.de>
12860
12861 * fileio.c (Finsert_file_contents): Properly adjust undo list
12862 after format conversion.
12863
128642008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12865
12866 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12867 (menu_nav_ended): Remove.
12868 (create_menus): Remove signal connect for menu_nav_ended.
12869 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12870 create_menus.
12871 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12872
128732008-07-23 Jason Rumney <jasonr@gnu.org>
12874
12875 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12876 with opened font.
12877 (w32font_open): Set font type to gdi.
12878
12879 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12880
128812008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12882
12883 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12884 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12885 defines it.
12886 * unexec.c (ADDR_CORRECT): Define unconditionally.
12887
12888 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12889
12890 * unexec.c: Remove code depending on !COFF and USG, the file is
12891 not used for such systems.
12892
12893 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12894 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12895 (LD_SWITCH_SYSTEM_1): Remove, update users.
12896
12897 * s/darwin.h (DATA_END):
12898 * m/intel386.h (DATA_END):
12899 * m/ibmrs6000.h (DATA_END):
12900 * m/alpha.h (DATA_END): Remove, unused.
12901
12902 * config.in: Regenerate.
12903 * s/ms-w32.h (subprocesses): Define unconditionally.
12904 * s/template.h (subprocesses): Update comment.
12905 * s/vms.h (subprocesses):
12906 * s/usg5-4.h (subprocesses):
12907 * s/hpux10-20.h (subprocesses):
12908 * s/gnu-linux.h (subprocesses):
12909 * s/cygwin.h (subprocesses):
12910 * s/bsd-common.h (subprocesses):
12911 * s/aix4-2.h (subprocesses):
12912 * s/darwin.h (subprocesses): Do not define, defined by default now.
12913
12914 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12915 Remove all references.
12916 (temacs): Add GNUstep specific ld flags.
12917
12918 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12919 similarly to what X does.
12920
129212008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12922
12923 * nsfns.m (x-list-fonts): Remove.
12924 (syms_of_nsfns): Drop the x-list-fonts declaration.
12925 * nsterm.m: Get rid of remaining "//" comments.
12926
129272008-07-22 Chong Yidong <cyd@stupidchicken.com>
12928
12929 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12930
12931 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12932 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12933 (Fns_own_selection_internal, Fx_disown_selection_internal)
12934 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12935
12936 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12937 ... */' style of docstrings. Doc fixes.
12938
129392008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12940
12941 * terminfo.c (UP, BC, PC): Undo previous change.
12942
12943 * nsfns.m: Rename ns prefixed functions/variables to the
12944 corresponding x versions. Update references.
12945
129462008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12947
12948 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12949
129502008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12951
12952 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12953 Remove forwarding functions.
12954 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12955 non-static.
12956 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12957 non-static.
12958 (ns_frame_parm_handlers): Use the new names.
12959 (syms_of_nsfns): Move to the end of file.
12960
12961 * nsterm.m (syms_of_nsterm): Move to the end of file.
12962
12963 * dispnew.c (init_display): Remove code for X10.
12964
129652008-07-22 Jason Rumney <jasonr@gnu.org>
12966
12967 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12968 bare drive.
12969
129702008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12971
12972 * nsterm.m (syms_of_nsterm): Remove debugging println.
12973
129742008-07-22 David Reitter <david.reitter@gmail.com>
12975
12976 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12977 Carbon implementation of the same functionality: execute arbitrary
12978 AppleScript code.
12979
129802008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12981
12982 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12983 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12984 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12985 (Fx_display_mm_height, Fx_display_mm_width)
12986 (Fx_display_backing_store, Fx_display_visual_class)
12987 (Fx_display_save_under, Fx_open_connection)
12988 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12989 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12990 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12991 (Fx_display_pixel_width, Fx_display_pixel_height)
12992 (Fx_display_usable_bounds, Fx_display_planes)
12993 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12994 ... */' style of docstrings.
12995
129962008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12997
12998 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12999 on this platform.
13000 (mips):
13001 * m/iris4d.h (mips): Do not define.
13002 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13003
13004 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13005
13006 * image.c:
13007 * nsfns.m:
13008 * nsselect.m:
13009 * nsterm.h:
13010 * nsterm.m: Rename ns prefixed functions/variables to the
13011 corresponding x versions. Update references.
13012
13013 * m/ibms390x.h (NO_REMAP): Do not undefine.
13014
13015 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13016
130172008-07-21 Chong Yidong <cyd@stupidchicken.com>
13018
13019 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13020 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13021 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13022 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13023 (Fns_display_mm_height, Fns_display_mm_width)
13024 (Fns_display_backing_store, Fns_display_visual_class)
13025 (Fns_display_save_under, Fns_open_connection)
13026 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13027 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13028 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13029 (Fns_display_pixel_width, Fns_display_pixel_height)
13030 (Fns_display_usable_bounds, Fx_display_planes)
13031 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13032
130332008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13034
13035 * print.c (print_object): Check print_depth before searching for
13036 circularities.
13037
130382008-07-21 Michael Albinus <michael.albinus@gmx.de>
13039
13040 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13041 only sprintf.
13042
130432008-07-21 Kenichi Handa <handa@m17n.org>
13044
13045 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13046
130472008-07-20 Andreas Schwab <schwab@suse.de>
13048
13049 * syntax.c (find_start_pos, find_start_value)
13050 (find_start_value_byte, find_start_begv, find_defun_start)
13051 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13052
130532008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13054
13055 * s/sol2-3.h: Insert contents of s/sol2.h.
13056 (LD_SWITCH_SYSTEM): Remove redundant definition.
13057 * s/sol2.h: Remove, unused.
13058
130592008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13060
13061 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13062
130632008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13064
13065 * Makefile.in (ns_appdir): Fix typo in find command.
13066
130672008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13068
13069 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13070
13071 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13072 added not supported anymore.
13073
13074 * s/usg5-4-2.h (LIBS_SYSTEM):
13075 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13076
13077 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13078 * s/lynxos.h (GETPGRP_NO_ARG):
13079 * s/hpux10-20.h (NO_SIOCTL_H):
13080 * s/gnu.h (GETPGRP_NO_ARG):
13081 * s/gnu-linux.h (NO_SIOCTL_H):
13082 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13083 * s/cygwin.h (GETPGRP_NO_ARG):
13084 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13085 (C_DEBUG_SWITCH): Remove duplicate definition.
13086
13087 * m/ibms390.h: Remove boilerplate comments.
13088
13089 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13090
13091 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13092 (wait_reading_process_output): Remove code for SunOS, platform not
13093 supported anymore. Use SOLARIS2 instead of sun.
13094
130952008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13096
13097 * font.c (font_open_by_name): Under NS, default lface height to zero.
13098 (font_open_for_lface): Under NS, set size based on frame fontsize.
13099 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13100 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13101
131022008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13103
13104 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13105 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13106 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13107 YES/NO.
13108 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13109 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13110 * Makefile.in (clean): Clear out build destination dir.
13111
131122008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13113
13114 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13115 xterm, xselect.
13116 * lisp.h: Remove declaration of hash_remove.
13117 * nsgui.h: Remove redefinitions of hash_remove.
13118 * fns.c (hash_remove): Rename to hash_remove_from_table.
13119
131202008-07-19 Seiji Zenitani <zenitani@mac.com>
13121
13122 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13123 strdup() the family UTF8String before modifying it.
13124
131252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13126
13127 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13128 NS_FACE_BACKGROUND with 0 instead of nil.
13129 * nsfont.m (nsfont_draw): Same.
13130
131312008-07-19 Chong Yidong <cyd@stupidchicken.com>
13132
13133 * nsfns.m (ns_set_background_color): Fix crash.
13134
131352008-07-18 Chong Yidong <cyd@stupidchicken.com>
13136
13137 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13138
131392008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13140
13141 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13142
131432008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13144
13145 * gtkutil.c: Include <config.h> instead of "config.h".
13146
13147 * lisp.h (Foverlay_buffer): Add EXFUN.
13148
13149 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13150 child process to complete child_setup. Undo 2005-09-21 change.
13151
13152 * s/darwin.h: Mention setsid after vfork.
13153
131542008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13155
13156 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13157 Depend on macgui.h.
13158
13159 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13160 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13161
13162 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13163 and f19.
13164 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13165
13166 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13167 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13168 Remove enumerators.
13169
13170 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13171 Check if FACE_FROM_ID returns NULL.
13172
131732008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13174
13175 * w32inevt.c (change_frame_size): Remove extern declaration.
13176 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13177 change_frame_size.
13178
131792008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13180
13181 * getloadavg.c: Revert last change (2008-07-15).
13182
131832008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13184
13185 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13186 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13187 from configure.
13188
131892008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13190
13191 * s/sol2.h:
13192 * s/sol2-4.h: Reorganize conditionals.
13193
13194 * ecrt0.c: Remove code depending on m68000, not used anymore.
13195
13196 * fns.c (hash_remove): Make static.
13197 * lisp.h (hash_remove): Don't prototype.
13198
13199 * m/ibmrs6000.h:
13200 * m/ibms390x.h:
13201 * m/macppc.h: Remove boilerplate comments.
13202
13203 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13204 Solaris, which does not need them.
13205
13206 * m/vax.h: Remove comments about unsupported systems.
13207
13208 * s/darwin.h: Reorganize ifdefs.
13209
132102008-07-17 Andreas Schwab <schwab@suse.de>
13211
13212 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13213
132142008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13215
13216 Use SDATA. Follow coding convention of placing operators at
13217 beginning of next line rather than end of previous line, and placing
13218 spaces around infix operators.
13219
13220 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13221 in case it was defined already.
13222 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13223 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13224 ns_default.
13225 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13226 Lisp_Objects.
13227 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13228 (ns_defined_color, ns_color_to_lisp): Declare.
13229 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13230 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13231 it's accepted even with USE_LISP_UNION_TYPE.
13232 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13233 (update_frame_tool_bar): Remove apparently obsolete tests for
13234 non-integerness of f->tool_bar_lines.
13235 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13236 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13237 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13238 (nsfont_open): Don't confuse NULL for Qnil.
13239 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13240 * menu.h (find_and_call_menu_selection):
13241 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13242 (find_and_return_menu_selection): Always return something.
13243 * frame.h: Include dispextern.h for Display_Info.
13244 (display_x_get_resource): Declare.
13245
132462008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13247
13248 * syntax.c: Remove stdio.h include accidentally introduced in
13249 Emacs.app commit.
13250 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13251 NS_IMPL_COCOA.
13252 * keyboard.c (handle_async_input, input_available_signal): Remove
13253 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13254
132552008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13256
13257 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13258 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13259 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13260 Use SDATA.
13261
13262 * keymap.c: Remove all NS-specific code.
13263 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13264 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13265 where_is_preferred_modifier, return a different value depending on how
13266 preferred is the binding.
13267 (where_is_internal): Adjust accordingly.
13268 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13269 Adjust to new preferred_sequence_p.
13270 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13271 * keyboard.c (parse_solitary_modifier): Not static any more.
13272 * keyboard.h (parse_solitary_modifier): Declare.
13273
132742008-07-16 Andreas Schwab <schwab@suse.de>
13275
13276 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13277 of easymenu.
13278
132792008-07-16 Chong Yidong <cyd@stupidchicken.com>
13280
13281 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13282 that we don't move off the line.
13283
132842008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13285
13286 * keyboard.c (Qsuper): Remove.
13287 (parse_menu_item): Don't call where_is_internal specially for NS.
13288
132892008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13290
13291 * s/gnu-linux.h: Remove boilerplate comments.
13292
13293 * m/alpha.h (__ELF__): Consolidate conditions.
13294
13295 * m/m68k.h (linux): Use GNU_LINUX instead.
13296 Remove boilerplate comments.
13297
13298 * m/intel386.h: Undo refactoring from previous change.
13299 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13300 too, remove dead code.
13301 (linux): Use GNU_LINUX instead.
13302
133032008-07-16 Jason Rumney <jasonr@gnu.org>
13304
13305 * w32gui.h: Repeat 26 June changes lost by last change.
13306
133072008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13308
13309 * systty.h: Remove code for Aix on 386, unsupported platform.
13310
13311 * s/ms-w32.h: Remove boilerplate comments.
13312 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13313
13314 * s/gnu-linux.h (TERM): Remove support.
13315 (HAVE_SYSVIPC): Remove, unused.
13316 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13317 for this system.
13318
13319 * process.c: Remove support for IRIS, unused.
13320 Remove support for TERM, not relevant anymore.
13321
13322 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13323 used with the definition.
13324
13325 * s/aix4-2.h (static): Do not undef.
13326
13327 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13328 only used on Aix.
13329 (HAVE_SYSVIPC): Remove, unused.
13330
13331 * m/hp800.h (CANNOT_DUMP): Do not undef.
13332
13333 * m/alpha.h: Fix comment.
13334
13335 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13336 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13337 used by this configuration.
13338 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13339 * unexec.c: Remove code depending on HPUX and
13340 USG_SHARED_LIBRARIES, not used with this file. Remove code
13341 depending on IRIS, unused. Remove if 0-ed code.
13342
13343 * s/template.h: Remove comments about static.
13344
13345 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13346 Remove if 0-ed code.
13347 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13348 were the same as the default.
13349 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13350 Remove boilerplate comments.
13351 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13352 (HAVE_SYSVIPC): Remove, unused.
13353 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13354
13355 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13356 Remove boilerplate comments.
13357 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13358 Remove boilerplate comments.
13359 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13360 Remove boilerplate comments.
13361 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13362
13363 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13364 USG systems which do not use DATA_SEG_BITS.
13365 Refactor code. Remove boilerplate comments.
13366
13367 * m/ibms390.h:
13368 * m/m68k.h:
13369 * s/bsd-common.h:
13370 * s/cygwin.h:
13371 * s/darwin.h:
13372 * s/freebsd.h:
13373 * s/gnu.h:
13374 * s/msdos.h: Remove boilerplate comments.
13375
13376 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13377 do not use this file.
aac0c6e3
MR
13378 (IRIS_4D): Remove, unused.
13379
13380 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13381 do not use this file.
aac0c6e3
MR
13382 (SIGN_EXTEND_CHAR):
13383 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13384 * unexmips.c: Remove file, unused.
13385
13386 * editfns.c (Fuser_full_name): Replace the only use of
13387 USER_FULL_NAME with its value.
13388 * config.in: Regenerate.
13389
133902008-07-16 David Reitter <david.reitter@gmail.com>
13391
13392 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13393 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13394
133952008-07-16 Glenn Morris <rgm@gnu.org>
13396
13397 * emacs.c (system-type): Doc fix.
13398
133992008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13400
13401 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13402 If the cache doesn't work, let's fix it, rather than work around it.
13403
134042008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13405
13406 * Makefile.in: Correct additions for nsfont.o in last commit.
13407 * nsfont.m: New file (forgot last commit).
13408
134092008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13410
13411 * callproc.c (set_initial_environment): Initialize
13412 Vprocess_environment under CANNOT_DUMP (fixes crash when
13413 batch-compiling for bootstrap).
13414
134152008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13416 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13417
c4cc8b9a
JB
13418 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13419 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13420
134212008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13422
13423 Changes and additions for NeXTstep windowing system (Cocoa and
13424 GNUstep) support.
13425
13426 * Makefile.in:
13427 * config.in: Support defines and build commands for NS port.
13428 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13429 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13430 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13431 windowing.
13432 (struct face): Add synth_ital field.
13433 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13434 (init_display): Initialize Vinitial_window_system to "ns" when so
13435 compiled.
13436 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13437 (display_arg): Use under NS.
13438 (main): Under NS, allocate autorelease pool and handle command line
13439 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13440 (standard_args): Add NS-specific args.
13441 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13442 * font.c (DEFAULT_ENCODING): New variable.
13443 (font_find_for_lface): Use it.
13444 (syms_of_font): Load syms_of_nsfont under NS.
13445 * font.h: Declare nsfont_driver when compiled under NS.
13446 * fontset.c: When compiling under NS, include nsterm.h.
13447 (fontset_from_font): Autoconstruct fontset under NS.
13448 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13449 symbol, document and use it.
13450 (do_switch_frame): When for_deletion under Cocoa, add
13451 Fraise_frame(Qnil).
13452 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13453 (x_get_arg): Allow "yes" and "no" as boolean values.
13454 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13455 Qright under Cocoa.
13456 (focus-follows-mouse): Default to 0 under NS.
13457 * frame.h (enum output_method): Add output_ns.
13458 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13459 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13460 (FRAME_WINDOW_P): NS-specific definition.
13461 * fringe.c (max_used_fringe_bitmap): Make public.
13462 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13463 (getloadavg): Use NeXT code under descendant OS's.
13464 * image.c (includes and header section, x_create_bitmap_from_data)
13465 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13466 (image_background_transparent, x_clear_image_1)
13467 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13468 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13469 (x_to_xcolors, x_from_xcolors, x_disable_image)
13470 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13471 other GUIs, including XPM support using code originally written for
13472 Carbon GUI.
13473 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13474 using NS API.
13475 (image_ascent): Use font metrics macros instead of direct struct field
13476 access.
13477 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13478 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13479 Also, handle NS as GTK for menu bar purposes.
13480 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13481 toolkit where they differ.
13482 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13483 use cachelist, still needed under NS.
13484 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13485 (struct widget_value): Define it here for menu.c.
13486 * keymap.c (includes): Include modifier internals.
13487 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13488 NS.
13489 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13490 support for preferring sequences using certain modifiers, specified by
13491 the FIRSTONLY argument.
13492 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13493 under NS GNUstep implementation.
13494 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13495 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13496 * menu.c: Include nsterm.h under NS.
13497 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13498 (free_menubar_widget_tree_value, update_submenu_strings)
13499 (find_and_call_menu_selection): Treat NS as X and NT.
13500 (find_and_return_menu_selection): New function, used for popup menus.
13501 * nsgui.h:
13502 * nsterm.h:
13503 * nsfns.m:
13504 * nsimage.m:
13505 * nsmenu.m:
13506 * nsselect.m:
13507 * nsterm.m: New files.
13508 * process.c (wait_reading_process_output): Under NS, call ns_select()
13509 instead of plain select().
13510 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13511 beginning of buffer.
13512 * sysselect.h (init_process): Rename when compiling under Cocoa to
13513 avoid name conflict.
13514 * termhooks.h (display_info): Add ns_display_info to union.
13515 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13516 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13517 COCOA environment.
13518 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13519 unexec() signature. (Note, this will dump, but the resulting file
13520 crashes; unexosx is used instead; keeping around for reference and
13521 possible aid in getting dump working under GNUstep.)
13522 * w32gui.h (button_type, widget_value): Remove definitions (now in
13523 keyboard.h).
13524 * window.c: Include nsterm.h when compiling under NS.
13525 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13526 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13527 other GUI windowing systems.
13528 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13529 GTK.
13530 (x_consider_frame_title): Under NS, set icon type and frame
13531 modified-state indicator; use ns_set_name_as_filename() when using
13532 formatted title.
13533 (update_window_cursor): Make public when compiling under NS.
13534 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13535 (hourglass_atimer, Vhourglass_delay
13536 * xfaces.c (header section, init_frame_faces, clear_font_table)
13537 (defined_color, unload_color, x_face_list_fonts)
13538 (prepare_face_for_display): Add NS support parallel to other GUIs.
13539 Emulate GCs like other non-X GUIs.
13540 (split_font_name): Don't lowercase font name under NS.
13541 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13542 under NS.
13543 * s/darwin.h: Add support for compilation under NS.
13544
135452008-07-15 Jason Rumney <jasonr@gnu.org>
13546
13547 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13548 (w32_show_hourglass): Rename from show_hourglass.
13549 (w32_hide_hourglass): Rename from hide_hourglass.
13550 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13551 (Vhourglass_delay): Declare extern.
13552 (hourglass_started): Remove.
13553
13554 * xdisp.c (Vhourglass_delay): Remove static.
13555 (hourglass_started, start_hourglass, cancel_hourglass):
13556 Don't include these versions on WINDOWSNT.
13557
135582008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13559
13560 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13561 variables (formerly in xfns.c).
13562 (show_hourglass, hide_hourglass): New prototypes (same).
13563 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13564 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13565 in xfns.c).
13566 (syms_of_xdisp): Declare/initialize display-hourglass,
13567 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13568 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13569 formerly in xfns.c.
13570 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13571 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13572 (start_hourglass, cancel_hourglass): Remove.
13573 (show_hourglass, hide_hourglass): Remove prototypes and static
13574 modifiers.
13575 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13576 hourglass_atimer, hourglass_shown_p declaration/initialization.
13577 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13578 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13579 (start_hourglass, cancel_hourglass): Remove.
13580 (show_hourglass, hide_hourglass): Remove prototypes and static
13581 modifiers.
13582 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13583 hourglass_atimer, hourglass_shown_p declaration/initialization.
13584 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13585 (DEFAULT_HOURGLASS_DELAY): Remove.
13586 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13587 hourglass_shown_p declaration/initialization.
13588
135892008-07-14 Jason Rumney <jasonr@gnu.org>
13590
13591 * w32fns.c (w32_get_arg): Remove wrapper function.
13592 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13593 directly.
13594 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13595
135962008-07-14 Kenichi Handa <handa@m17n.org>
13597
13598 * xfont.c (xfont_open): Add workaround for X's bug.
13599
136002008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13601
13602 * fontset.c: Include <stdio.h> unconditionally.
13603
136042008-07-13 Michael Albinus <michael.albinus@gmx.de>
13605
13606 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13607 for filtering.
13608
136092008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13610
13611 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13612
13613 * m/macppc.h:
13614 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13615
c4cc8b9a 13616 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13617 (SPECIAL_EMACS_INT):
13618 * m/ia64.h (SPECIAL_EMACS_INT):
13619 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13620 * s/gnu.h (NLIST_STRUCT):
13621 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13622 * s/gnu-linux.h (LINUX):
13623 * s/msdos.h (HAVE_FACES):
13624 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13625
13626 * systty.h:
13627 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13628 anymore.
13629
136302008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13631
13632 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13633 always defined as int.
13634
13635 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13636 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13637 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13638 * s/freebsd.h (HAVE_WAIT_HEADER):
13639 * s/bsd-common.h (HAVE_UNION_WAIT):
13640 * s/aix4-2.h (HAVE_WAIT_HEADER):
13641 * m/mips.h (HAVE_UNION_WAIT):
13642 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13643 (COFF, static): Do not define, they are undefined later in the file.
13644
13645 * process.c (update_status): Don't use a union.
13646 (status_convert):
13647 (sigchld_handler): Use int instead of WAITTYPE.
13648
136492008-07-12 Chong Yidong <cyd@stupidchicken.com>
13650
13651 * indent.c (Fvertical_motion): Restore hscroll before moving to
13652 goal column.
13653
136542008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13655
13656 * lisp.h: Remove left over code.
13657
136582008-07-11 Andreas Schwab <schwab@suse.de>
13659
13660 * lisp.h: Fix logic in last change.
13661
13662 * menu.h: New file.
13663 * menu.c: Include it.
13664 * xmenu.c: Likewise.
13665 * Makefile.in: Update dependencies.
13666
136672008-07-11 Kenichi Handa <handa@m17n.org>
13668
13669 * fontset.c (fontset_from_font): Cancel the previous change.
13670
136712008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13672
13673 * lisp.h:
13674 * w32heap.c:
13675 * emacs.c:
13676 * alloc.c: Replace all references of NO_UNION_TYPE with
13677 USE_LISP_UNION_TYPE.
13678
13679 * m/xtensa.h (NO_UNION_TYPE):
13680 * m/vax.h (NO_UNION_TYPE):
13681 * m/template.h (NO_UNION_TYPE):
13682 * m/sparc.h (NO_UNION_TYPE):
13683 * m/mips.h (NO_UNION_TYPE):
13684 * m/macppc.h (NO_UNION_TYPE):
13685 * m/m68k.h (NO_UNION_TYPE):
13686 * m/iris4d.h (NO_UNION_TYPE):
13687 * m/intel386.h (NO_UNION_TYPE):
13688 * m/ibms390x.h (NO_UNION_TYPE):
13689 * m/ibms390.h (NO_UNION_TYPE):
13690 * m/ibmrs6000.h (NO_UNION_TYPE):
13691 * m/ia64.h (NO_UNION_TYPE):
13692 * m/hp800.h (NO_UNION_TYPE):
13693 * m/arm.h (NO_UNION_TYPE):
13694 * m/amdx86-64.h (NO_UNION_TYPE):
13695 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13696 defining it the same.
13697
136982008-07-10 Chong Yidong <cyd@stupidchicken.com>
13699
13700 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13701
137022008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13703
13704 * fileio.c:
50426a04 13705 * sysdep.c:
aac0c6e3
MR
13706 * systty.h:
13707 * m/ibmrs6000.h:
13708 * m/iris4d.h:
13709 * s/aix4-2.h:
13710 * s/freebsd.h:
13711 * s/gnu-linux.h:
13712 * s/hpux10-20.h:
13713 * s/hpux11.h:
13714 * s/netbsd.h:
13715 * s/sol2-3.h:
13716 * s/sol2-4.h:
13717 * s/sol2.h:
13718 * s/usg5-4.h:
13719 * s/vms.h: Remove references to unused variables.
13720
137212008-07-10 Andreas Schwab <schwab@suse.de>
13722
13723 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13724 pattern before matching the generic family.
13725
137262008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13727
13728 * unexec.c:
13729 * s/vms.h:
13730 * s/usg5-4-2.h:
13731 * s/sol2-5.h:
13732 * s/freebsd.h:
13733 * s/darwin.h: Remove dead code.
13734
13735 * m/template.h:
13736 * m/sparc.h:
13737 * m/mips.h:
13738 * m/m68k.h:
13739 * m/iris4d.h:
13740 * m/intel386.h:
13741 * m/ibms390x.h:
13742 * m/ibms390.h:
13743 * m/ia64.h:
13744 * m/hp800.h:
13745 * m/arm.h:
13746 * m/amdx86-64.h: Remove dead code and references to unused
13747 and compiler defined symbols.
13748
13749 * unexmips.c:
13750 * unexelf.c: Remove references to desupported systems.
13751
13752 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13753
13754 * m/powermac.h: Remove boilerplate comments.
13755 (NO_REMAP): Remove unused definition.
13756
13757 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13758 define them.
13759
137602008-07-10 Kenichi Handa <handa@m17n.org>
13761
13762 * xfont.c (xfont_open): Log the reason of failure.
13763
137642008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13765
13766 * fontset.c (fontset_get_font_group):
13767 * font.c (font_check_otf): Specify argument types.
13768
137692008-07-09 Kenichi Handa <handa@m17n.org>
13770
13771 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13772 non-ASCII char is found.
13773
13774 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13775 (reorder_font_vector): Change the arg preferred_family to font.
13776 Prefer the spec matching with font.
13777 (fontset_get_font_group): New function.
13778 (fontset_find_font): Change the format of an element of a realized
13779 fontset. Use fontset_get_font_group.
13780 (fontset_font): Try the current fontset, the default fontset, the
13781 fallbacks of the current fontset, and the fallbacks of the default
13782 fontset in this order.
13783 (face_for_char): Delete the shortcut to use the current font.
13784 (fontset_from_font): Don't set fonts for Latin in the fontset.
13785
13786 * font.h (font_make_object, font_match_p): Adjust prototypes.
13787
13788 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13789
13790 * font.c (font_make_object): New arg entity and pixelsize.
13791 (font_check_otf_features, font_check_otf): New functions.
13792 (font_match_p): Check :lang, :script, and :otf properties.
13793
13794 * xfont.c (xfont_open): Adjust it for the change of
13795 font_make_object.
13796 (xfont_text_extents): Fix initial setting of metrics.
13797
13798 * ftfont.c (struct ftfont_info): New member index, delete member
13799 fc_charset_idx. Make the member order compatible with struct
13800 xftfont_info.
13801 (fc_charset_table): Change charset names to registry names.
13802 (ftfont_pattern_entity): Delete the args registry and
13803 fc_charset_idx. Change the value of :font-entity property
13804 to (FONTNAME . INDEX). Always set :registry property to
13805 `iso10646-1'.
13806 (struct ftfont_cache_data): New struct.
13807 (ftfont_lookup_cache): New arg for_face.
13808 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13809 (ftfont_driver): Set the member otf_capability.
13810 (ftfont_get_charset): Adjust it for the change of
13811 fc_charset_table.
13812 (OTF_TAG_SYM): New macro.
13813 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13814 for the change of fc_charset_table.
13815 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13816 ftfont_pattern_entity. Add FC_INDEX to objset.
13817 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13818 and ftfont_pattern_entity.
13819 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13820 font_make_object, struct ftfont_info.
13821 (ftfont_has_char): Use ftfont_get_fc_charset.
13822 (ftfont_otf_features, ftfont_otf_capability): New functions.
13823 (ftfont_shape): Use ftfont_get_otf.
13824 (ftfont_text_extents): Fix initial setting of metrics.
13825
13826 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13827 member order compatible with struct ftfont_info.
13828 (xftfont_open): Add FC_CHARSET to the pattern. Set
13829 xftfont_info->ft_size. Don't unlock the face. Check BDF
13830 properties if appropriate.
13831 (xftfont_close): Unlock the face.
13832 (xftfont_anchor_point, xftfont_shape): Deleted.
13833 (syms_of_xftfont): Don't set members anchor_point and shape of
13834 xftfont_driver.
13835
13836 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13837 font_make_object.
13838
13839 * w32font.c (w32font_open): Adjust it for the change of
13840 font_make_object.
13841 (w32font_open_internal): Don't set properties of font_object here.
13842
138432008-07-08 Chong Yidong <cyd@stupidchicken.com>
13844
13845 * macfns.c (x_create_tip_frame):
13846 * w32fns.c (x_create_tip_frame):
13847 * xfns.c (x_create_tip_frame): Pass parameter argument to
13848 face-set-after-frame-default.
13849
13850 * xfaces.c (Finternal_merge_in_global_face): Save merged
13851 attributes for the default face back into the face vector.
13852
138532008-07-08 Andreas Schwab <schwab@suse.de>
13854
13855 * fontset.h: Declare fontset_from_font. Don't declare
13856 new_fontset_from_font and fontset_from_font_name.
13857 * xterm.c: Include "fontset.h".
13858 * Makefile.in (xterm.o): Update dependencies.
13859
138602008-07-08 Glenn Morris <rgm@gnu.org>
13861
13862 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13863 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13864
138652008-07-07 Chong Yidong <cyd@stupidchicken.com>
13866
13867 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13868 (x_set_frame_parameters): Don't bind it.
13869
138702008-07-07 Juanma Barranquero <lekktu@gmail.com>
13871
13872 * w32fns.c (map_w32_filename): Declare extern.
13873
138742008-07-07 Jason Rumney <jasonr@gnu.org>
13875
13876 * w32term.c (WS_EX_LAYERED): Define if not already.
13877
138782008-07-06 Chong Yidong <cyd@stupidchicken.com>
13879
13880 * xfaces.c (set_font_frame_param): Don't try to set the font
13881 parameter if it is still unspecified in the lface.
13882
138832008-07-05 Chong Yidong <cyd@stupidchicken.com>
13884
13885 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13886 face if it didn't already exist.
13887
13888 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13889
138902008-07-05 Andreas Schwab <schwab@suse.de>
13891
13892 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13893
138942008-07-05 Chong Yidong <cyd@stupidchicken.com>
13895
13896 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13897 word-wrapping.
13898 (IT_DISPLAYING_WHITESPACE): New macro.
13899 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13900 when word-wrapping. Simplify word-wrapping logic. Use correct
13901 pixel positions when saving copies of the iterator.
13902 (display_line): Use proper wrap point if the last character on a
13903 line was preceded by whitespace.
13904
139052008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13906
13907 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13908
139092008-07-04 Kenichi Handa <handa@m17n.org>
13910
13911 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13912
13913 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13914
139152008-07-02 Jason Rumney <jasonr@gnu.org>
13916
13917 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13918 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13919
13920 * xdisp.c (next_element_from_display_vector): Move assignment out
13921 of if statement.
13922
139232008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13924
13925 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13926
13927 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13928 (syms_of_fileio): Initialize and export them.
13929 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13930
13931 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13932 (Fsystem_move_file_to_trash): New function.
13933 (syms_of_w32fns): Export it to lisp.
13934
139352008-07-01 Jason Rumney <jasonr@gnu.org>
13936
13937 * w32font.c (w32font_text_extents): Don't count overhang as part
13938 of width.
13939
139402008-06-30 Miles Bader <miles@gnu.org>
13941
13942 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13943 Add `avoid_cursor_p' field.
13944
13945 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13946 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13947 (append_glyph, append_composite_glyph, produce_image_glyph)
13948 (append_stretch_glyph): Initialize avoid_cursor_p.
13949 (get_it_property): Rename from `get_line_height_property'.
13950 (x_produce_glyphs): Use get_it_property.
13951 (handle_line_prefix, push_display_prop): New functions.
13952 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13953 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13954 New variables.
13955 (syms_of_xdisp): Initialize them.
13956
139572008-06-30 Kenichi Handa <handa@m17n.org>
13958
13959 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13960 XftDefaultSubstitute (they are called in XftFontMatch).
13961 (xftfont_open): Fix args to ftfont_font_format.
13962
13963 * ftfont.c (fc_charset_table): New member lang.
13964 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13965 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13966 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13967 (ftfont_open): Fix args to ftfont_font_format.
13968 (ftfont_font_format): New arg filename.
13969
139702008-06-30 Chong Yidong <cyd@stupidchicken.com>
13971
13972 * xfaces.c (Finternal_merge_in_global_face): If default face was
13973 modified, realize it again. Update the font face attribute.
13974
139752008-06-29 Jason Rumney <jasonr@gnu.org>
13976
13977 * w32term.c (x_set_frame_alpha): Fix logic.
13978
139792008-06-29 Kenichi Handa <handa@m17n.org>
13980
13981 * fontset.c (Finternal_char_font): Return font-object instead of
13982 font-name.
13983
13984 * composite.c (get_composition_id): Fix the width calculation for TAB.
13985
139862008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13987
13988 * indent.c (Fvertical_motion): Properly handle float column arg.
13989
139902008-06-28 Jason Rumney <jasonr@gnu.org>
13991
13992 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13993 (pfnSetLayeredWindowAttributes): New function pointer.
13994 (w32_initialize): Initialize it when supported.
13995 (x_set_frame_alpha): New function.
13996
13997 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13998 (w32_frame_parm_handlers): Set alpha handler.
13999
14000 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14001
140022008-06-27 Jason Rumney <jasonr@gnu.org>
14003
14004 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14005 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14006 (w32_to_x_charset, x_to_w32_charset)
14007 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14008 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14009 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14010 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14011 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14012 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14013 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14014 (Qw32_charset_unicode): Remove.
14015 (syms_of_w32fns): Update for above changes.
14016
14017 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14018 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14019 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14020 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14021 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14022 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14023 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14024 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14025 (syms_of_w32font): Update for above changes.
14026
140272008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14028
14029 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14030 removed #if.
14031 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14032
140332008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14034 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14035
14036 * makefile.w32-in (LOCAL_FLAGS):
14037 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14038
14039 * sysdep.c (_spawnlp, _getpid):
14040 Declare with explicit _cdecl instead of _CRTAPI1.
14041
14042 * editfns.c (Fget_internal_run_time):
14043 Check for WINDOWSNT with #ifdef, not #if.
14044
140452008-06-26 Jason Rumney <jasonr@gnu.org>
14046
14047 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14048
14049 * w32term.c (x_draw_glyph_string_foreground)
14050 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14051 Use FONT_HANDLE macro.
14052 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14053
14054 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14055 (uniscribe_encode_char): Use FONT_HANDLE macro.
14056
14057 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14058 (w32font_text_extents): Use precast w32_font.
14059 (w32font_close): Free cached metrics.
14060 (w32font_open_internal): Allocate space for name on stack.
14061
140622008-06-26 Chong Yidong <cyd@stupidchicken.com>
14063
14064 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14065
140662008-06-26 Jason Rumney <jasonr@gnu.org>
14067
14068 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14069 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14070
140712008-06-26 Juanma Barranquero <lekktu@gmail.com>
14072
14073 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14074
140752008-06-26 Jason Rumney <jasonr@gnu.org>
14076
14077 * w32bdf.c, w32bdf.h: Remove obsolete files.
14078
14079 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14080
14081 * w32gui.h: Don't include w32bdf.h.
14082 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14083 Remove obsolete font support.
14084
14085 * w32font.h (struct w32font_info): Remove compat_w32_font.
14086 Add hfont member.
14087 (FONT_COMPAT): Remove obsolete macro.
14088
14089 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14090 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14091 (w32font_open_internal): Remove compat code. Set new hfont member.
14092 (Fx_select_font): Use new hfont member.
14093
14094 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14095 (uniscribe_encode_char): Use new hfont member.
14096
14097 * w32term.c (x_draw_glyph_string_foreground)
14098 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14099 (x_draw_glyph_string): Use metrics in w32font_info.
14100
141012008-06-26 Kenichi Handa <handa@m17n.org>
14102
14103 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14104
141052008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14106
14107 * unexnext.c:
14108 * m/ews4800.h:
14109 * m/hp9000s300.h:
14110 * m/ibm370aix.h:
14111 * m/mips-siemens.h:
14112 * m/ncr386.h:
14113 * m/next.h:
14114 * m/pmax.h:
14115 * m/powerpcle.h:
14116 * m/tandem-s2.h:
14117 * s/386bsd.h:
14118 * s/bsd386.h:
14119 * s/bsd4-1.h:
14120 * s/bsd4-2.h:
14121 * s/bsdos2-1.h:
14122 * s/bsdos2.h:
14123 * s/bsdos3.h:
14124 * s/bsdos4.h:
14125 * s/nextstep.h:
14126 * s/ultrix4-3.h:
14127 * s/usg5-0.h:
14128 * s/usg5-2-2.h:
14129 * s/usg5-2.h:
14130 * s/usg5-4-3.h:
14131 * s/ux4800.h:
14132 * s/uxpds.h:
14133 * s/uxpv.h: Remove support for obsolete systems.
14134 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14135 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14136 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14137 Remove, insert contents in s/aix4-2.h.
14138 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14139 * s/bsd4-3.h: Rename to ...
14140 * s/bsd-common.h: ... this.
14141 * data.c:
14142 * doc.c:
14143 * ecrt0.c:
14144 * emacs.c:
14145 * fileio.c:
14146 * floatfns.c:
14147 * keyboard.c:
14148 * mem-limits.h:
14149 * print.c:
14150 * process.c:
14151 * sysdep.c:
14152 * syssignal.h:
14153 * systty.h:
14154 * syswait.h:
14155 * term.c:
14156 * unexec.c:
14157 * unexelf.c:
14158 * unexhp9k800.c:
14159 * m/hp800.h:
14160 * m/ibmrs6000.h:
14161 * m/mips.h:
14162 * m/vax.h:
14163 * s/darwin.h:
14164 * s/freebsd.h:
14165 * s/gnu.h:
14166 * s/ms-w32.h:
14167 * s/msdos.h:
14168 * s/netbsd.h:
14169 * s/template.h: Remove references to obsolete variables.
14170
14171 * Makefile.in: Add dependencies for all unexec files.
14172 (admindir): Remove unused variable.
14173 (UNEXEC_SRC): Remove references.
14174
141752008-06-25 Chong Yidong <cyd@stupidchicken.com>
14176
14177 * xfns.c (x_default_font_parameter): If Xft is available, first
14178 try Monospace-12 for the default font.
14179
141802008-06-25 Jason Rumney <jasonr@gnu.org>
14181
14182 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14183
141842008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14185
14186 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14187
14188 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14189
141902008-06-25 Juanma Barranquero <lekktu@gmail.com>
14191
14192 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14193 <scroll-conservatively>: Fix typo in docstring.
14194
14195 * xselect.c (Fx_send_client_event): Doc fix.
14196
141972008-06-25 Kenichi Handa <handa@m17n.org>
14198
14199 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14200
14201 * font.c (font_parse_fcname): Remove unused variables.
14202 (font_sort_entites): Delete the arg SPEC. Caller changed.
14203 Fix for the case of ! best_only.
14204 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14205
14206 * lisp.h (Fstring_to_unibyte): EXFUN it.
14207
14208 * character.h (str_to_unibyte): Extern it.
14209
14210 * character.c (str_to_unibyte): New function.
14211
14212 * fns.c (Fstring_to_unibyte): New function.
14213 (syms_of_fns): Defsubr it.
14214
142152008-06-24 Kenichi Handa <handa@m17n.org>
14216
14217 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14218 DPI too.
14219 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14220
142212008-06-24 Andreas Schwab <schwab@suse.de>
14222
14223 * Makefile.in (${lispsource}loaddefs.el): Rename from
14224 ../lisp/loaddefs.el.
14225 (bootstrap-clean): Do what distclean does but don't remove
14226 Makefile.
14227 (distclean): Depend on bootstrap-clean and remove Makefile.
14228
142292008-06-24 Chong Yidong <cyd@stupidchicken.com>
14230
14231 * buffer.h (struct buffer): New member word_wrap.
14232
14233 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14234 word-wrap.
14235 (init_buffer_once): Initialize them.
14236
14237 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14238 line_wrap enum possessing three possible values.
14239
14240 * termopts.h: Replace truncate_partial_width_windows with
14241 Vtruncate_partial_width_windows.
14242
14243 * dispnew.c (direct_output_for_insert): Avoid direct output when
14244 inserting a space with word wrap on.
14245
14246 * indent.c (compute_motion): Obey integer values of
14247 truncate-partial-width-windows.
14248
14249 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14250 replacing truncate_partial_width_windows.
14251 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14252 truncate only if the window width is below that integer.
14253 (start_display, resize_mini_window, produce_stretch_glyph)
14254 (display_string, move_it_in_display_line_to): Use line_wrap.
14255 (back_to_previous_visible_line_start, reseat_1): Reset
14256 string_from_display_prop_p.
14257 (display_line): Extend default face to end of line when wrapping.
14258
142592008-06-24 Kim F. Storm <storm@cua.dk>
14260
14261 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14262 to wrap continued lines at word boundaries.
14263
142642008-06-24 Jason Rumney <jasonr@gnu.org>
14265
14266 * font.c (Ffont_face_attributes): Multiply pixel size before point
14267 conversion to avoid multiplying rounding error.
14268
142692008-06-23 Jason Rumney <jasonr@gnu.org>
14270
14271 * w32term.c (x_draw_glyph_string_background)
14272 (x_draw_glyph_string): Remove old bdf font code.
14273
14274 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14275
142762008-06-22 Kenichi Handa <handa@m17n.org>
14277
14278 * font.c (font_find_for_lface): Try the adstyle specified in
14279 the property of LFACE_FONT of LFACE (if any).
14280
142812008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14282 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14283
14284 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14285
142862008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14287
14288 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14289 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14290 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14291 (witness-emacs): Remove.
14292 (lisp, shortlisp): Move loaddefs.el earlier.
14293 (mostlyclean): Forget about witness-emacs.
14294
142952008-06-22 Glenn Morris <rgm@gnu.org>
14296
14297 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14298 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14299
143002008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14301
14302 * Makefile.in (PRECOMP): Remove.
14303 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14304 (witness-emacs): Run `compile-first'.
14305 (.el.elc): Use the new compile-onefile target.
14306
143072008-06-21 Kenichi Handa <handa@m17n.org>
14308
14309 * xftfont.c (xftfont_open): Handle QCembolden only when
14310 FC_EMBOLDEN is defined.
14311
143122008-06-21 Andreas Schwab <schwab@suse.de>
14313
14314 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14315 (.el.elc): Likewise.
14316
143172008-06-21 Miles Bader <miles@gnu.org>
14318
14319 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14320 build dir, not the lisp source dir.
14321
143222008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14323
14324 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14325 (bootstrapclean): Remove.
14326 (.el.elc): New rule.
14327 (PRECOMP): New var.
14328 (../lisp/subdirs.el): Remove.
14329 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14330 (witness-emacs): New target.
14331 (mostlyclean): Remove witness-emacs as well.
14332 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14333 Add witness-emacs dependency.
14334
143352008-06-20 Chong Yidong <cyd@stupidchicken.com>
14336
14337 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14338 defined by the font.
14339
143402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14341
14342 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14343 (bootstrap-clean): New target that keeps TAGS around.
14344 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14345 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14346
143472008-06-20 Jason Rumney <jasonr@gnu.org>
14348
14349 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14350 Remove obsolete font code.
14351
14352 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14353 to determine language support.
14354
143552008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14356
14357 * sysdep.c (cfsetspeed): New fun extracted from the code.
14358 (cfmakeraw): Move before first use.
14359
143602008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14361
14362 * sysdep.c (cfmakeraw): Provide fallback implementation.
14363 (serial_configure): Provide fallback implementation of cfsetspeed.
14364
143652008-06-20 Kenichi Handa <handa@m17n.org>
14366
14367 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14368 the pattern.
14369
14370 * fontset.c (fontset_from_font): Copy font_spec before changing
14371 the elements.
14372
14373 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14374
143752008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14376
14377 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14378 for explicit `font' parameters.
14379
14380 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14381
143822008-06-19 Kenichi Handa <handa@m17n.org>
14383
14384 * frame.c: Include <ctype.h>.
14385 (x_set_font_backend): Allow spacing characters in the X resource
14386 for FontBackend.
14387
143882008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14389
14390 * w32fns.c, xfns.c (Qfont_param): New var.
14391 (syms_of_w32fns): Initialize it.
14392 (x_default_font_parameter): Record explicit `font' into
14393 `font-parameter'.
14394
143952008-06-18 Kenichi Handa <handa@m17n.org>
14396
14397 * font.c (font_parse_xlfd): Fix previous change.
14398 (font_parse_fcname): Don't use :fc-unknown-spec.
14399 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14400 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14401 (font_add_log): Prepend the driver name to the resulting fonts.
14402
14403 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14404 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14405 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14406
14407 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14408 (QCembolden): New variables.
14409 (syms_of_xftfont): DEFSYM them.
14410 (xftfont_open): Call XftFontMatch. Don't trust the result of
14411 XftTextExtents8 if the pixel_size is less than 5.
14412
144132008-06-18 Andreas Schwab <schwab@suse.de>
14414
14415 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14416 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14417
144182008-06-18 Jason Rumney <jasonr@gnu.org>
14419
14420 * w32font.c (w32font_list, w32font_match): Add logging.
14421
14422 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14423
144242008-06-17 Chong Yidong <cyd@stupidchicken.com>
14425
14426 * font.c (font_parse_fcname): Store divider characters for
14427 unknown-spec list. For known key symbols, intern using correct
14428 symbol name.
14429
144302008-06-17 Kenichi Handa <handa@m17n.org>
14431
14432 * xfaces.c (realize_default_face): If the frame is not on window
14433 system, set the fontset of face to nil.
14434
144352008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14436
14437 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14438
144392008-06-16 Juanma Barranquero <lekktu@gmail.com>
14440
14441 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14442 (build_font_name_from_vector): Delete externs.
14443
14444 * xfaces.c (struct font_name): Don't declare.
14445
144462008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14447
14448 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14449
144502008-06-16 Chong Yidong <cyd@stupidchicken.com>
14451
14452 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14453
144542008-06-16 Juanma Barranquero <lekktu@gmail.com>
14455
14456 * font.c (Ffont_spec): Fix usage in docstring.
14457 (Ffont_face_attributes): Doc fix.
14458
144592008-06-16 Andreas Schwab <schwab@suse.de>
14460
14461 * font.c (Ffont_face_attributes): Fix definition.
14462
144632008-06-16 Jason Rumney <jasonr@gnu.org>
14464
14465 * font.h (font_style_symbolic_from_value): Remove.
14466
14467 * font.c (font_style_symbolic_from_value): Remove.
14468 (font_style_symbolic): Revert to pre 2008-06-13 version.
14469
14470 * w32font.c (w32_to_fc_weight): New function.
14471 (w32font_full_name, logfont_to_fcname): Use it.
14472
144732008-06-16 Kenichi Handa <handa@m17n.org>
14474
14475 * font.c (font_check_object): Delete it.
14476 (font_clear_cache): Check if a font-object is alive.
14477 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14478 font-object to nil.
14479 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14480 (font_at): Don't call font_check_object.
14481 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14482
144832008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14484
14485 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14486
144872008-06-16 Chong Yidong <cyd@stupidchicken.com>
14488
14489 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14490
144912008-06-15 Chong Yidong <cyd@stupidchicken.com>
14492
14493 * font.c (font_parse_fcname): Only one decimal point.
14494 (font_unparse_fcname): Handle data in family and foundry indices
14495 as symbols, not strings.
14496 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14497
14498 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14499
14500 * font.h (font_unparse_gtkname): Add prototype.
14501
145022008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14503
14504 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14505
145062008-06-15 Andreas Schwab <schwab@suse.de>
14507
14508 * font.c (font_update_drivers): Fix crash when no drivers match.
14509
145102008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14511
14512 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14513 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14514
145152008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14516
14517 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14518
145192008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14520
14521 * process.c (Fserial_process_configure, Fprocess_send_eof):
14522 Use EQ to compare Lisp_Objects.
14523
145242008-06-13 Jason Rumney <jasonr@gnu.org>
14525
14526 * w32fns.c (Fw32_select_font): Remove old font API function.
14527
14528 * w32font.c (logfont_to_fcname): New function.
14529 (Fx_select_font): New font dialog function compatible with
14530 GTK/fontconfig version.
14531
14532 * font.c (font_style_symbolic_from_value): New function.
14533 (font_style_symbolic): Use it.
14534
14535 * font.h (font_style_symbolic_from_value): Declare new function.
14536
145372008-06-13 Juanma Barranquero <lekktu@gmail.com>
14538
14539 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14540 <font-width-table>: Fix typos in docstrings.
14541
145422008-06-13 Daniel Engeler <engeler@gmail.com>
14543
14544 These changes add serial port access.
14545 * process.c: Add HAVE_SERIAL.
14546 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14547 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14548 (list_processes_1, select_wrapper, Fstop_process)
14549 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14550 (status_notify): Modify to handle serial processes.
14551 [HAVE_SERIAL] (Fserial_process_configure)
14552 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14553 New functions.
14554 * process.h (struct Lisp_Process): Add `type'.
14555 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14556 New functions.
14557 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14558 serial ports.
b71ac3dd 14559 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14560 * w32.h: Add FILE_SERIAL.
14561 (struct _child_process): Add ovl_read, ovl_write.
14562
145632008-06-13 Kenichi Handa <handa@m17n.org>
14564
14565 * dispextern.h (enum lface_attribute_index): New member
14566 LFACE_FOUNDRY_INDEX.
14567
14568 * font.c (font_score): Delete arg alternate_families. Check only
14569 weight, slant, width, and size. Ignore the difference of alias
14570 style symbols.
14571 (font_sort_entites): Adjust for the above change. Reflect the
14572 order of font-driver to scores.
14573 (font_list_entities): Don't check alternate_familes here.
14574 (font_clear_prop): Handle foundry.
14575 (font_update_lface): Don't parse "foundry-family" form here.
14576 Handle FONT_FOUNDRY_INDEX.
14577 (font_find_for_lface): Likewise. Handle alternate families here.
14578 If registry is nil, try iso8859-1 and ascii-0.
14579 (font_open_for_lface): Pay attention to size in ENTITY.
14580 (font_open_by_name): Simplify by calling font_load_for_lface.
14581 (free_font_driver_list): Delete it.
14582 (font_update_drivers): Preserve the order of backends.
14583 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14584 of font_score and font_sort_entites.
14585 (font_update_sort_order): Likewise.
14586
14587 * xfaces.c (LFACE_FOUNDRY): New macro.
14588 (check_lface_attrs): Check foundry.
14589 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14590 (merge_face_vectors): Check foundry.
14591 (merge_face_ref): Likewise.
14592 (Finternal_set_lisp_face_attribute): Likewise.
14593 (x_update_menu_appearance): Likewise.
14594 (Finternal_get_lisp_face_attribute): Likewise.
14595 (lface_hash): Likewise.
14596 (lface_same_font_attributes_p): Likewise.
14597 (x_supports_face_attributes_p): Likewise.
14598 (tty_supports_face_attributes_p): Likewise.
14599 (Finternal_set_alternative_font_family_alist): Intern strings.
14600 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14601 (realize_default_face): Set LFACE_FOUNDRY (lface).
14602
14603 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14604 font-driver at first.
14605
14606 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14607
146082008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14609
14610 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14611
146122008-06-12 Jim Meyering <meyering@redhat.com>
14613
14614 Make unexec_free handle NULL the same way free does.
14615 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14616
146172008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14618
14619 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14620 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14621 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14622 (WEAK_ALIAS): Simplify.
14623 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14624 when searching a unibyte buffer.
14625
146262008-06-12 Chong Yidong <cyd@stupidchicken.com>
14627
14628 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14629
146302008-06-12 Juanma Barranquero <lekktu@gmail.com>
14631
14632 * w32font.c: Include ctype.h.
14633
146342008-06-11 Jason Rumney <jasonr@gnu.org>
14635
14636 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14637 misreported as space.
14638 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14639 as aliases for registry iso10646-1.
14640
146412008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14642
14643 * buffer.c (clone_per_buffer_values): Skip `name'.
14644
146452008-06-11 Chong Yidong <cyd@stupidchicken.com>
14646
14647 * font.c (font_parse_fcname): Fix last change; accept decimal
14648 points in font size.
14649
146502008-06-10 Jason Rumney <jasonr@gnu.org>
14651
14652 * w32uniscribe.c (add_opentype_font_name_to_list):
14653 Skip non unicode fonts.
14654
146552008-06-10 Chong Yidong <cyd@stupidchicken.com>
14656
14657 * xfns.c (Fx_font_dialog): New function.
14658
14659 * gtkutil.c (xg_dialog_response_cb): Rename from
14660 xg_file_response_callback.
14661 (pop_down_dialog): Rename from pop_down_file_dialog.
14662 (xg_get_file_name): Callers changed.
14663 (xg_get_font_name): New function.
14664
14665 * gtkutil.h (xg_get_font_name): Insert prototype.
14666
146672008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14668
14669 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14670 x_underline_minimum_display_offset.
14671 (syms_of_xdisp): Declare it here rather than in xterm.c.
14672 * dispextern.h (underline_minimum_offset): Declare it.
14673 * w32term.c (x_draw_glyph_string): Use it.
14674 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14675 (syms_of_xterm): Don't declare it any more.
14676 (x_draw_glyph_string): Adjust to the new name.
14677
8719abec 146782008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14679
14680 * xterm.c (x_underline_minimum_display_offset): New var.
14681 (x_draw_glyph_string): Use it.
14682 (syms_of_xterm): Declare it.
14683
146842008-06-10 Chong Yidong <cyd@stupidchicken.com>
14685
14686 * font.c (font_parse_fcname): Accept GTK-style font names too.
14687
146882008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14689
14690 * dired.c (file_name_completion): Don't return t if the match is exact
14691 but with different capitalization.
14692 * minibuf.c (Ftry_completion): Simplify.
14693
14694 * window.c (Vwindow_point_insertion_type): New var.
14695 (set_window_buffer): Use it.
14696 (syms_of_window): Init and export it to Lisp.
14697
146982008-06-10 Kenichi Handa <handa@m17n.org>
14699
14700 * font.h (font_intern_prop): Prototype adjusted.
14701
14702 * font.c (font_intern_prop): New arg force_symbol.
14703 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14704 Adjust for the change of font_intern_prop.
14705
14706 * ftfont.c (ftfont_pattern_entity):
14707 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14708 (w32_registry):
14709 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14710 the change of font_intern_prop.
14711
147122008-06-09 Juanma Barranquero <lekktu@gmail.com>
14713
14714 * w32menu.c (digest_single_submenu): Declare extern.
14715
147162008-06-09 Jason Rumney <jasonr@gnu.org>
14717
14718 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14719
14720 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14721 (parse_single_submenu): Remove.
14722 (digest_single_submenu): Remove.
14723 (syms_of_w32menu): Don't initialise variables that have moved
14724 to menu.c.
14725 (set_frame_menubar): Sync with version in xmenu.c.
14726 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14727
14728 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14729 Make static again.
14730
147312008-06-09 Jason Rumney <jasonr@gnu.org>
14732
14733 Changes to w32 files related to the move of common menu code
14734 to menu.c on 2008-06-08 by Chong Yidong.
14735
14736 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14737 defs to w32gui.h.
14738 (single_keymap_panes, push_menu_item, push_menu_pane):
14739 Make globally visible.
14740
14741 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14742 (local_free, malloc_widget_value, free_widget_value)
14743 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14744 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14745 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14746 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14747 (menu_items, menu_items_allocated, menu_items_used)
14748 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14749 (init_menu_items, finish_menu_items, discard_menu_items)
14750 (grow_menu_items, push_submenu_start, push_submenu_end)
14751 (push_left_right_boundary, push_menu_pane, push_menu_item)
14752 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14753 (free_menubar_widget_tree_value, parse_single_submenu)
14754 (update_submenu_strings): Remove functions.
14755 (xmalloc_widget_value): Remove and declare extern.
14756
14757 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14758 (OBJ1): Build it.
14759
14760 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14761 (local_heap, local_alloc, local_free, malloc_widget_value)
14762 (free_widget_value): Define here.
14763
147642008-06-09 Kenichi Handa <handa@m17n.org>
14765
14766 * font.h (Qascii_0): Extern it.
14767
14768 * font.c (Qascii_0): New variable.
14769 (syms_of_font): DEFSYM it.
14770 (font_open_by_name): If the registry "iso8859-1" fails, try also
14771 "ascii-0".
14772
14773 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14774
147752008-06-08 Kenichi Handa <handa@m17n.org>
14776
14777 * .gdbinit (xfont): New command.
14778
147792008-06-08 Andreas Schwab <schwab@suse.de>
14780
14781 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14782 * Makefile.in (menu.o): Update dependencies.
14783
14784 * Makefile.in (obj): Always add menu.o.
14785 * emacs.c (main): Always call syms_of_menu.
14786 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14787
147882008-06-08 Chong Yidong <cyd@stupidchicken.com>
14789
14790 * Makefile.in: Compile menu.c.
14791
14792 * lisp.h: Declare syms_of_menu.
14793
14794 * emacs.c (main): Call syms_of_menu.
14795
14796 * keyboard.h: Relocate platform-independent menu definitions from
14797 xmenu.c.
14798
14799 * menu.c: New file. Relocate platform-independent menu
14800 definitions from xmenu.c. Suggested by Adrian Robert.
14801
14802 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14803 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14804 (menu_items_used, menu_items_n_panes)
14805 (menu_items_submenu_depth): Move to keyboard.h.
14806 (init_menu_items, finish_menu_items, unuse_menu_items)
14807 (discard_menu_items, restore_menu_items, save_menu_items)
14808 (grow_menu_items, push_submenu_start, push_submenu_end)
14809 (push_left_right_boundary, push_menu_pane, push_menu_item)
14810 (keymap_panes, single_keymap_panes, single_menu_item)
14811 (list_of_panes, list_of_items, find_and_call_menu_selection)
14812 (xmalloc_widget_value, free_menubar_widget_value_tree)
14813 (parse_single_submenu, digest_single_submenu)
14814 (update_submenu_strings): Move to menu.c.
14815
148162008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14817
14818 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14819
148202008-06-06 Miles Bader <miles@gnu.org>
14821
14822 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14823 face, not frame default.
14824
148252008-06-05 Martin Rudalics <rudalics@gmx.at>
14826
14827 * window.c (pop_up_windows, pop_up_frames)
14828 (display_buffer_reuse_frames, Vpop_up_frame_function)
14829 (Vdisplay_buffer_function, Veven_window_heights)
14830 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14831 (Vspecial_display_function, Vsame_window_buffer_names)
14832 (Vsame_window_regexps, split_height_threshold)
14833 (Vsplit_window_preferred_function): Move those vars to window.el.
14834 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14835 (Fdisplay_buffer): Move those functions to window.el.
14836 (syms_of_window): Remove corresponding declarations.
14837 (display_buffer): New function.
14838 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14839 * dispnew.c (Flast_nonminibuf_frame): New function.
14840 * buffer.c (Fpop_to_buffer): Move to window.el.
14841
148422008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14843
14844 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14845
148462008-06-05 Kenichi Handa <handa@m17n.org>
14847
14848 * coding.c (detect_coding): Fix previous change.
14849 (detect_coding_system): Likewise.
14850
148512008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14852
14853 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14854
14855 * keymap.c (Vminibuffer_local_filename_must_match_map):
14856 Rename from Vminibuffer_local_must_match_filename_map.
14857 (syms_of_keymap):
14858 * minibuf.c (Fcompleting_read): Adjust accordingly.
14859 * commands.h: Rename declaration as well.
14860
148612008-06-05 Kenichi Handa <handa@m17n.org>
14862
14863 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14864 family name.
14865 (Ffont_put): Likewise.
14866
14867 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14868 current font-spec.
14869
14870 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14871 is unspecified.
14872
14873 * xfaces.c (realize_x_face): If the font-related face attributes
14874 are the same as those of default face, realize a new fontset from
14875 default->fontset.
14876 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14877
148782008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14879
14880 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14881 (move_it_in_display_line): New wrapper.
14882
14883 * window.c (window_scroll_pixel_based_preserve_x)
14884 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14885 (window_scroll_pixel_based, window_scroll_line_based):
14886 Use them to preserve column positions.
14887 (syms_of_window): Initialize them.
14888
14889 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14890 (HPOS . VPOS) pair.
14891
14892 * dispextern.h (move_it_in_display_line): Declare.
14893
148942008-06-05 Juanma Barranquero <lekktu@gmail.com>
14895
14896 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14897 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14898 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14899
149002008-06-04 Juanma Barranquero <lekktu@gmail.com>
14901
14902 * window.c (Fset_window_parameter): Doc fix.
14903 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14904
149052008-06-04 Joakim Verona <joakim@verona.se>
14906
14907 * window.h (struct window): Add new member window_parameters.
14908
14909 * window.c (Fwindow_parameters, Fwindow_parameter)
14910 (Fset_window_parameter): New defuns.
14911 (syms_of_window): Defsubr the new defuns.
14912 (make_window): Initialize window_parameters to nil.
14913
149142008-06-04 John Paul Wallington <jpw@pobox.com>
14915
14916 * eval.c (Fdefmacro): Doc fix.
14917
149182008-06-04 Kenichi Handa <handa@m17n.org>
14919
14920 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14921 Be sure to call setup_coding_system when we find a proper coding system.
14922 (detect_coding_system): Fix handling of coding->head_ascii.
14923
149242008-06-03 Andreas Schwab <schwab@suse.de>
14925
14926 * font.c (font_prop_validate_spacing): Fix last change.
14927
149282008-06-03 Kenichi Handa <handa@m17n.org>
14929
14930 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14931 (font_parse_fcname): Fix handling of unknown key.
14932
14933 * xfont.c (xfont_list): Try an alias.
14934
14935 * charset.c (char_charset): Return NULL if the arg charset_list is
14936 specified and C doesn't belong to any of them.
14937
149382008-06-02 Chip Coldwell <coldwell@redhat.com>
14939
14940 * font.c (font_pixel_size): Don't take cdr of an integer.
14941
149422008-06-02 Jim Meyering <meyering@redhat.com>
14943
14944 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14945 * alloc.c (xfree): Return right away for a NULL arg.
14946 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14947 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14948 * mac.c (create_apple_event_from_event_ref): Likewise.
14949 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14950 Likewise.
14951 * doprnt.c (doprnt1): Likewise.
14952 * frame.c (frame): Likewise.
14953 * keyboard.c (wipe_kboard): Likewise.
14954 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14955 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14956 * term.c (tty_default_color_capabilities, maybe_fatal)
14957 (delete_tty): Likewise.
14958 * w16select.c (string): Likewise.
14959 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14960 * w32bdf.c (w32_free_bdf_font): Likewise.
14961 * w32fns.c (w32_unload_font): Likewise.
14962 * w32font.c (w32font_close): Likewise.
14963 * window.c (size_window): Likewise.
14964 * xselect.c (receive_incremental_selection): Likewise.
14965 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14966 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14967 * w32.c (stat): Likewise.
14968
14969 Remove useless if-before-free tests.
14970 * editfns.c (Fset_time_zone_rule): Likewise.
14971 * lread.c (nosuffix): Likewise.
14972 * ralloc.c (get_bloc): Likewise.
14973 * regex.c (reg_free): Likewise.
14974 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14975 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14976 * xsmfns.c (smc_save_yourself_CB): Likewise.
14977
149782008-06-02 Kenichi Handa <handa@m17n.org>
14979
14980 * font.c (font_find_for_lface): Handle float font size.
14981 (font_open_for_lface): Likewise.
14982
14983 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14984 comparing the properties.
14985
149862008-06-01 Jason Rumney <jasonr@gnu.org>
14987
14988 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14989 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14990 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14991 Don't add empty script list.
14992 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14993
149942008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14995
14996 * Makefile.in (dot, dotdot): Remove, update users.
14997 ".." has been used elsewhere in the file for a long time.
14998 (LIBXT_STATIC): Remove conditional based on unused variable.
14999
150002008-06-01 Miles Bader <miles@gnu.org>
15001
15002 * xfaces.c (Vface_remapping_alist): New variable.
15003 (syms_of_xfaces): Initialize it.
15004 (enum named_merge_point_kind): New type.
15005 (struct named_merge_point): Add `named_merge_point_kind' field.
15006 (push_named_merge_point): Make cycle detection respect different
15007 named-merge-point kinds.
15008 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15009 Remove face-name alias resolution.
15010 (lface_from_face_name): New definition using
15011 `lface_from_face_name_no_resolve'.
15012 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15013 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15014 (get_lface_attributes): New definition that layers face-remapping on
15015 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15016 (lookup_basic_face): New function.
15017 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15018 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15019 `get_lface_attributes'.
15020 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15021 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15022 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15023
15024 * xdisp.c (init_iterator): Pass base_face_id through
15025 `lookup_basic_face' when we actually use it as a face-id.
15026 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15027 DEFAULT_FACE_ID.
15028
15029 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15030 lookup the initial face-id.
15031
15032 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15033
150342008-06-01 Juanma Barranquero <lekktu@gmail.com>
15035
15036 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15037 (Fremove_text_properties): Fix typos in docstrings.
15038
150392008-05-31 Kenichi Handa <handa@m17n.org>
15040
15041 * font.c (font_list_entities): Fix the car part of data to be
15042 stored in the cache.
15043
15044 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15045
150462008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15047
15048 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15049 Add a `test' argument so another predicate than `equal' can be used.
15050 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15051 (map_char_table): Remove unused vars `c' and `i'.
15052 * lisp.h (Foptimize_char_table): Adjust declaration.
15053 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15054
150552008-05-30 Kenichi Handa <handa@m17n.org>
15056
15057 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15058 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15059 defined.
15060
150612008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15062
15063 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15064 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15065 frame-local settings for the same variable.
15066
150672008-05-30 Kenichi Handa <handa@m17n.org>
15068
15069 * fontset.c (Ffont_info): Move to font.c.
15070 (syms_of_fontset): Delete defsubr of Sfont_info.
15071
15072 * font.c (font_style_to_value, font_score): Delete casting of the
15073 args to xstcasecmp.
15074 (register_font_driver): Increment num_font_drivers only when
15075 registering the driver globally.
15076 (Ffont_info): Move from fontset.c. Handle a font object too.
15077 (syms_of_font): Defsubr Sfont_info.
15078
150792008-05-29 Kenichi Handa <handa@m17n.org>
15080
15081 * coding.h (enum define_coding_utf8_arg_index): New enum.
15082 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15083 coding_attr_utf_bom.
15084 (enum utf_bom_type): Rename from utf_16_bom_type.
15085 (struct utf_16_spec): Adjust for the above change.
15086 (struct coding_system): Add utf_8_bom in `spec' union.
15087
15088 * coding.c (CODING_UTF_8_BOM): New macro.
15089 (enum coding_category): Delete coding_category_utf_8, add
15090 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15091 coding_category_utf_8_sig.
15092 (CATEGORY_MASK_UTF_8): Delete it.
15093 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15094 (CATEGORY_MASK_UTF_8_SIG): New macros.
15095 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15096 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15097 CATEGORY_MASK_UTF_8_SIG.
15098 (CATEGORY_MASK_UTF_8): New macro.
15099 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15100 (detect_coding_utf_8): Check BOM.
15101 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15102 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15103 (encode_coding_utf_16): Likewise.
15104 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15105 (detect_coding, detect_coding_system): Handle utf-8-auto.
15106 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15107 (syms_of_coding): Fix setting up of Vcoding_category_table.
15108
151092008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15110
15111 * process.c (Faccept_process_output): If `millisec' is non-nil,
15112 `seconds' default to 0.
15113 (wait_reading_process_output): Also return non-nil if we read output
15114 from a non-running process.
15115
151162008-05-29 Jason Rumney <jasonr@gnu.org>
15117
15118 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15119 `raster' specified.
15120 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15121 in the uniscribe backend, but disallow any font that has no
15122 unicode subrange support.
15123
151242008-05-29 Juanma Barranquero <lekktu@gmail.com>
15125
15126 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15127 Fix typos in docstrings.
15128
151292008-05-29 Kenichi Handa <handa@m17n.org>
15130
15131 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15132 (Fx_family_fonts): Set frame correctly.
15133
151342008-05-28 Jason Rumney <jasonr@gnu.org>
15135
15136 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15137
151382008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15139
15140 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15141 calling build_annotations.
15142
151432008-05-28 Juanma Barranquero <lekktu@gmail.com>
15144
15145 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15146 (Fencode_coding_string):
15147 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15148 <latin-extra-code-table>: Fix typos in docstrings.
15149 (syms_of_coding) <coding-system-alist>: Doc fix.
15150 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15151
151522008-05-28 Kenichi Handa <handa@m17n.org>
15153
15154 * fontset.c (Ffont_info): Don't call font_close_object.
15155
15156 * font.c (font_parse_family_registry): Use Ffont_put to validate
15157 foundry and family.
15158 (font_delete_unmatched): Don't check spacing.
15159 (font_list_entities): Add spacing to the spec to list fonts.
15160
15161 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15162 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15163
15164 * coding.c (encode_coding_raw_text): Fix previous change.
15165 (encode_coding_object): When the dst_object is a buffer and is
15166 different from src_object, move gap to PT.
15167
151682008-05-27 Chong Yidong <cyd@stupidchicken.com>
15169
15170 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15171
151722008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15173
15174 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15175 all branches. Compute it differently.
15176
15177 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15178
151792008-05-27 Juanma Barranquero <lekktu@gmail.com>
15180
15181 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15182 into "else if () ... else ...".
15183
151842008-05-27 Jason Rumney <jasonr@gnu.org>
15185
15186 * w32font.c (w32font_open_internal): Determine if glyph indices
15187 are likely to work here.
15188
151892008-05-27 Chong Yidong <cyd@stupidchicken.com>
15190
15191 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15192 draw overlap glyphs with appropriate highlighting.
15193
151942008-05-27 Kenichi Handa <handa@m17n.org>
15195
15196 * xfont.c (xfont_open): Fix calculation of font->average_width.
15197
151982008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15199
15200 * casefiddle.c (casify_object): Try to guess better whether the
15201 argument is a byte or a char.
15202
152032008-05-26 Andreas Schwab <schwab@suse.de>
15204
15205 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15206 Always send multiples of format size.
15207
15208 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15209
152102008-05-26 Jason Rumney <jasonr@gnu.org>
15211
15212 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15213 (compute_metrics): Don't set failure if we just cleared the cache.
15214 (w32_weight_table): Remove unused variable.
15215 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15216 backwards compatibility.
15217
152182008-05-25 Kenichi Handa <handa@m17n.org>
15219
15220 * w32term.c (x_draw_glyph_string):
15221 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15222
15223 * xfaces.c: Delete unused function prototypes.
15224 (xstrlwr, font_frame): Delete them.
15225 (clear_face_cache): Delete unused variable.
15226
15227 * xftfont.c (xftfont_open): Delete unused variable.
15228 If underline_thickness is not 1, adjust underline_position.
15229
15230 * ftxfont.c (ftxfont_open): Delete unused variable.
15231
15232 * fontset.c (face_for_char): Optimize for the case of no charset
15233 property.
15234
15235 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15236 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15237 (otf_open, font_otf_capability, generate_otf_features)
15238 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15239 Comment out by surrounding "#if 0" and "#endif" for the moment.
15240 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15241 (syms_of_font): Codes for accessing above commented out.
15242
152432008-05-24 Eli Zaretskii <eliz@gnu.org>
15244
15245 * w32proc.c: Include dispextern.h.
15246
15247 * w32.c: Include dispextern.h.
15248
152492008-05-23 Juanma Barranquero <lekktu@gmail.com>
15250
15251 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15252 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15253 Fix typos in docstrings.
15254
152552008-05-23 Jason Rumney <jasonr@gnu.org>
15256
15257 * xsmfns.c: Remove includes that are already included by config.h.
15258
152592008-05-23 Kenichi Handa <handa@m17n.org>
15260
15261 * charset.c (Qemacs, charset_emacs): New variables.
15262 (char_charset): Fix for non-Unicode characters.
15263 (syms_of_charset): Define charset_emacs.
15264
15265 * w32term.c (x_draw_glyph_string): Be sure to update
15266 s->underline_thickness and s->underline_position. Be sure to draw
15267 underline within the current line area.
15268
15269 * xterm.c (x_draw_glyph_string): Be sure to update
15270 s->underline_thickness and s->underline_position. Be sure to draw
15271 underline within the current line area.
15272
15273 * fontset.c: Delete unused variables and add casting for char *
15274 throughout the file.
15275 (fontset_font): Try the fallback fonts of the current fontset
15276 before consulting the default fontset.
15277
15278 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15279
15280 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15281
152822008-05-22 Jason Rumney <jasonr@gnu.org>
15283
15284 * font.c: Don't include strings.h.
15285
15286 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15287
15288 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15289 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15290 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15291 to call xstrcasecmp.
15292
15293 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15294
15295 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15296
15297 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15298
15299 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15300
153012008-05-22 Kenichi Handa <handa@m17n.org>
15302
15303 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15304
15305 * font.c (font_prop_validate_style): Adjust for the format
15306 change of font_style_table.
15307
15308 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15309 two args.
15310
15311 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15312 two args.
15313
153142008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15315
15316 * minibuf.c (keys_of_minibuf): Delete.
15317 * lisp.h (keys_of_minibuf): Delete.
15318 * emacs.c (main): Don't call keys_of_minibuf.
15319
153202008-05-22 Kenichi Handa <handa@m17n.org>
15321
15322 * ftfont.c (ftfont_resolve_generic_family): Rename from
15323 ftfont_list_generic_family. Return a single family for each
15324 generic family.
15325 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15326 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15327 Call font_add_log.
15328 (ftfont_match): Call font_add_log.
15329
15330 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15331 (FONT_DEBUG): Define it.
15332 (font_add_log): Extern it.
15333 (font_assert): Rename from xassert.
15334
15335 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15336 (xfont_list_family): Call font_add_log.
15337 (xfont_match): Likewise.
15338 (memq_no_quit): Delete.
15339
15340 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15341 call of Ffont_xlfd_name.
15342
15343 * xfaces.c (struct table_entry, slant_table, weight_table)
15344 (swidth_table): Move to font.c.
15345
15346 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15347 xassert are changed to font_assert. Delete many unused variables.
15348 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15349 New variables.
15350 (struct table_entry): Move from xfaces.c and modified.
15351 (weight_table, slant_table, width_table): Move from xfaces.c and
15352 contents adjusted for the change of struct table_entry.
15353 (font_style_to_value, font_style_symbolic): Adjust for the
15354 format change of font_style_table.
15355 (font_parse_family_registry): Don't overwrite existing foundry and
15356 family of font_spec.
15357 (font_score): Fix calculation of diff for sizes.
15358 (font_sort_entites): Call font_add_log.
15359 (font_delete_unmatched): Return a newly created list.
15360 (font_list_entities): Fix previous change. Call font_add_log.
15361 (font_matching_entity, font_open_entity, font_close_entity):
15362 Call font_add_log.
15363 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15364 (Finternal_set_font_style_table): Delete.
15365 (BUILD_STYLE_TABLE): New macro.
15366 (build_style_table): New function.
15367 (Vfont_log, font_log_env_checked): New variables.
15368 (font_add_log): New function.
15369 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15370 Declare Lisp variables "font-weight-table", "font-slant-table",
15371 "font-width-table", and "font-log". Initialize font_style_table.
15372
153732008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15374
15375 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15376
153772008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15378 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15379
15380 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15381 (Vframe_alpha_lower_limit): New variable.
15382 (x_set_alpha): New function.
15383
15384 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15385
15386 * xfns.c (x-create-frame, Qalpha):
15387 Initialize the frame parameter `alpha'.
15388 * xterm.c (OPAQUE, OPACITY): New.
15389 (x_set_frame_alpha): New function.
15390 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15391
15392 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15393 * w32fns.c (w32_frame_parm_handlers): Likewise.
15394
153952008-05-20 Jason Rumney <jasonr@gnu.org>
15396
15397 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15398 truetype fonts to opentype list.
15399
154002008-05-20 Juanma Barranquero <lekktu@gmail.com>
15401
15402 * fontset.c (Ffontset_info): Doc fix.
15403 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15404 <ignore-relative-composition>: Fix typos in docstrings.
15405
15406 * font.c (syms-of-font) <font-encoding-alist>:
15407 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15408 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15409 (Ffont_otf_alternates): Doc fixes.
15410
154112008-05-20 Kenichi Handa <handa@m17n.org>
15412
15413 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15414 font.h through out the file.
15415 (FONT_DRIVERS): Rename from FONTOBJ.
15416 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15417 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15418
15419 * emacs.c (main): Call syms_of_font unconditionally.
15420
15421 * font.h (find_font_encoding): Extern it.
15422
15423 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15424 fontset.c.
194d44e7 15425 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15426 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15427 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15428 only when HAVE_WINDOW_SYSTEM is defined.
15429 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15430 when HAVE_WINDOW_SYSTEM is defined.
15431
15432 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15433 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15434
15435 * xfaces.c: Include font.h unconditionally.
15436 (merge_face_ref, merge_face_vectors)
15437 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15438
154392008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15440
15441 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15442 indirect_variable.
15443 * eval.c (lisp_indirect_variable): New fun.
15444 (Fuser_variable_p): Use it.
15445
154462008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15447
15448 * lisp.h (indirect_variable):
15449 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15450 Use Lisp_Symbol pointers rather than Lisp_Object.
15451 Adjust callers.
15452 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15453 To this end, change calling-convention.
15454
15455 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15456 if some non-hidden buffers are selected by string&pred.
15457
154582008-05-19 Chong Yidong <cyd@stupidchicken.com>
15459
15460 * process.c (wait_reading_process_output): Always check status
15461 when in batch mode.
15462
154632008-05-19 Kenichi Handa <handa@m17n.org>
15464
15465 * font.c (font_list_entities): Fix handling of cache.
15466 (font_matching_entity): Likewise.
15467
15468 * ftfont.c (cs_iso8859_1): Delete.
15469 (ft_face_cache): New variable.
15470 (struct ftfont_info): New member fc_charset_idx.
15471 (ftfont_build_basic_charsets): Delete.
15472 (fc_charset_table): New variable.
15473 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15474 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15475 Callers changed.
15476 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15477 (ftfont_spec_pattern): New argument fc_charset_idx.
15478 Check registry more rigidly. Change callers.
15479 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15480 change of :font-entity property of the font.
15481
15482 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15483 property of the font.
15484
154852008-05-18 Juanma Barranquero <lekktu@gmail.com>
15486
15487 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15488 (Funencodable_char_position, Fcheck_coding_systems_region)
15489 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15490 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15491 (Ffind_operation_coding_system, Fset_coding_system_priority)
15492 (Fcoding_system_eol_type): Doc fixes.
15493
154942008-05-17 Glenn Morris <rgm@gnu.org>
15495
15496 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15497
154982008-05-16 Eli Zaretskii <eliz@gnu.org>
15499
15500 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15501 and st_gid.
15502
15503 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15504 HAVE_WINDOW_SYSTEM is not defined.
15505
15506 * xfaces.c (merge_face_ref, merge_face_vectors)
15507 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15508 HAVE_WINDOW_SYSTEM is defined.
15509 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15510
155112008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15512
15513 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15514
155152008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15516
15517 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15518
155192008-05-15 Kenichi Handa <handa@m17n.org>
15520
15521 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15522 preference.
15523
155242008-05-15 Glenn Morris <rgm@gnu.org>
15525
15526 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15527
155282008-05-15 Chong Yidong <cyd@stupidchicken.com>
15529
15530 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15531 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15532
15533 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15534
155352008-05-15 Kenichi Handa <handa@m17n.org>
15536
15537 * ftfont.c (ftfont_list): Downcase family name to check generic
15538 families.
15539
15540 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15541 font-spec for QCfont value.
15542
15543 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15544 buffer. Check the return value of it.
15545
155462008-05-14 Jason Rumney <jasonr@gnu.org>
15547
15548 * w32term.c (w32_get_glyph_overhangs): Remove.
15549 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15550
155512008-05-14 Kenichi Handa <handa@m17n.org>
15552
15553 * font.c (font_prop_validate): Make nil a valid value.
15554 (font_clear_cache): Check if the cached vector of entities is nil
15555 or not.
15556
155572008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15558
15559 * emacs.c (main_thread): Conditionalize on
15560 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15561 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15562
15563 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15564 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15565 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15566
155672008-05-14 Kenichi Handa <handa@m17n.org>
15568
15569 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15570 has no corresponding coding system.
15571
155722008-05-14 Jason Rumney <jasonr@gnu.org>
15573
15574 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15575
15576 * w32font.h (w32font_open_internal): Update declaration.
15577
15578 * w32font.c (w32font_open_internal): Change last argument from
15579 w32font_info struct to font object. Fill in font object from
15580 font_entity. Get Outline metrics if possible. Use them to
15581 calculate underline position and thickness. Use xlfd name as name
15582 property. Don't set codepage.
15583 (w32font_open): Pass font_object to w32font_open_internal. Don't
15584 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15585 (w32font_draw): Use s->font.
15586 (clear_cached_metrics): Don't clear non-existent blocks.
15587
15588 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15589 font was not found.
15590 (x_draw_glyph_string): Use underline position and thickness from font.
15591
15592 * w32uniscribe.c (uniscribe_open): Pass font_object to
15593 w32font_open_internal.
15594
155952008-05-14 Kenichi Handa <handa@m17n.org>
15596
15597 These changes are to delete all legacy font-handling codes, and
15598 make Emacs use only font-backends.
15599
15600 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15601 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15602
15603 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15604
15605 * charset.h (Vcharset_non_preferred_head)
15606 (Vcurrent_iso639_language): Extern them.
15607
15608 * charset.c (Vcharset_non_preferred_head): New variable.
15609 (Vcurrent_iso639_language): New variable.
15610 (syms_of_charset): Declare it as a Lisp variable.
15611 (char_charset): Don't check non preferred charsets. As a last
15612 resort, return charset_unicode.
15613 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15614
15615 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15616 conditionals. Don't check enable_font_backend. Delete all codes
15617 used only when USE_FONT_BACKEND is not defined.
15618
15619 * dispextern.h (struct glyph_string): Change type of `font' to
15620 `struct font *'.
15621 (struct glyph_string): New member underline_position and
15622 underline_thickness.
15623 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15624 (struct face): Change type of `font' to `struct font *'. Remove
15625 members `font_name', `font_info_id'.
15626 (per_char_metric, encode_char): Delete externs.
15627 (calc_pixel_width_or_height): Adjust the prototype.
15628
15629 * emacs.c (enable_font_backend): Delete extern.
15630 (main): Don't set enable_font_backend. Don't check the command
15631 line argument "-disable-font-backend".
15632
15633 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15634 (enum font_property_index): New members FONT_DPI_INDEX,
15635 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15636 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15637 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15638 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15639 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15640 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15641 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15642 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15643 (struct font_spec, struct font_entity): New structs.
15644 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15645 (struct font): Many members from old "struct font_info" moved to
15646 here. Members font and entity deleted.
15647 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15648 the new font-related objects.
15649 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15650 (CHECK_FONT_GET_OBJECT): Likewise.
15651 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15652 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15653 (struct font_driver): New members case_sensitive anc check. Type
15654 of the member list and open changed.
15655 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15656 (font_symbolic_width, font_find_object, font_get_spec)
15657 (font_set_lface_from_name): Delete extern.
15658 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15659
15660 * font.c: Include <strings.h>.
15661 (enable_font_backend): Delete it.
15662 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15663 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15664 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15665 (null_string): Delete it.
15666 (null_vector): Make it static.
15667 (font_family_alist): Delete it.
15668 (Qnormal): Extern it.
15669 (QCextra, QClanguage): Delete it.
15670 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15671 (font_make_spec, font_make_entity, font_make_object)
15672 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15673 the string. Callers changed.
15674 (font_pixel_size): Adjusted for the format change of font-related
15675 objects.
15676 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15677 (font_style_to_value, font_style_symbolic): New function.
15678 (build_font_family_alist): Delete it.
15679 (font_registry_charsets): Use Fassoc_string instead of
15680 assq_no_quit.
15681 (font_prop_validate_symbol): Don't return null_string.
15682 (font_prop_validate_style): Adjusted for the change of
15683 style-related values in a font vector.
15684 (font_property_table): Delete entries for QClanguage and
15685 QCantialias, add entries for QCavgwidth.
15686 (get_font_prop_index): Delete the 2nd argument FROM.
15687 (font_prop_validate): Arguments changed.
15688 (font_put_extra): Adjusted for the change of font-related objects.
15689 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15690 (font_parse_fcname, font_unparse_fcname)
15691 (font_prepare_composition): Likewise.
15692 (font_parse_family_registry): Renamed from font_merge_old_spec.
15693 (otf_open): Delete the 1st arg entity.
15694 (font_otf_capability): Adjusted for the above change.
15695 (font_score): New arg alternate_families. Adjusted for the change
15696 of font-related objects.
15697 (font_sort_entites): New arg best_only.
15698 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15699 Delete them.
15700 (font_match_p): Check alternate families.
15701 (font_find_object): Delete it.
15702 (font_check_object): New function.
15703 (font_clear_cache): Adjusted for the change of font-related objects.
15704 (font_delete_unmatched): New arg.
15705 (font_list_entities): Call font_driver->list with a spec that
15706 doesn't specify style-related properties.
15707 (font_matching_entity): Arguments changed. Caller changed.
15708 (font_open_entity): Adjusted for the change of font-related objects.
15709 (font_close_object, font_has_char, font_encode_char)
15710 (font_get_name, font_get_spec): Likewise.
15711 (font_spec_from_name, font_clear_prop, font_update_lface):
15712 New functions.
15713 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15714 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15715 (font_at): Adjusted for the change of font-related objects.
15716 (font_range): New function.
15717 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15718 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15719 (Fcopy_font_spec, Fmerge_font_spec): New function.
15720 (Ffont_family_list): Renamed from list-families.
15721 (Finternal_set_font_style_table): Arguments changed.
15722 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15723 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15724 change of font-related objects.
15725 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15726
15727 * fontset.h (struct font_info): Delete it. Most members go to
15728 struct font.
15729 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15730 (enum FONT_SPEC_INDEX): Delete it.
15731 (font_info, list_fonts_func, load_font_func, query_font_func)
15732 (set_frame_fontset_func, find_ccl_program_func)
15733 (get_font_repertory_func, new_fontset_from_font_name): Delete
15734 externs.
15735 (fontset_from_font_name): Extern it.
15736 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15737 (FONT_INFO_FROM_FACE): Deleted.
15738 (face_for_font): Adjust prototype.
15739
15740 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15741 conditionals. Don't check enable_font_backend. Delete all codes
15742 used only when USE_FONT_BACKEND is not defined.
15743 (get_font_info_func, list_font_func, load_font_func)
15744 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15745 (get_font_repertory_func): Delete them.
15746 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15747 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15748 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15749 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15750 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15751 (fontset_compare_rfontdef): New function.
15752 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15753 rfont-defs by qsort. Adjusted for the change of font-group vector.
15754 (load_font_get_repertory): Deleted.
15755 (fontset_find_font): Use new macros to ref/set elements of
15756 font-def and rfont-def.
15757 (fontset_font): Fix the timing of remembering that no font for C.
15758 (free_face_fontset): Do nothing if the face has no fontset.
15759 (face_suitable_for_char_p): Use new macros to ref/set elements of
15760 rfont-def.
15761 (face_for_char): Likewise. Call face_for_char with font_object.
15762 (fs_load_font): Delete. Delete #pragma surrounding it.
15763 (fs_query_fontset): Use strcasecmp instead of strcmp.
15764 (generate_ascii_font_name): Adjusted for the format change of
15765 font-spec.
15766 (Fset_fontset_font): Likewise. Use new macros to set elements of
15767 font-def.
15768 (Fnew_fontset): Use font_unparse_xlfd to generate
15769 FONTSET_ASCII (fontset).
15770 (new_fontset_from_font_name): Deleted.
15771 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15772 a fontset is already created for the font. FIx updating of
15773 Vfontset_alias_alist.
15774 (fontset_ascii_font): Deleted.
15775 (Ffont_info): Adjusted for the format change of font-spec.
15776 (Finternal_char_font): Likewise.
15777 (Ffontset_info): Likewise.
15778 (syms_of_fontset): Don't check load_font_func.
15779
15780 * fns.c (internal_equal): Handle PREV_FONT.
15781
15782 * frame.h: Delete USE_FONT_BACKEND conditional.
15783
15784 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15785 conditionals. Don't check enable_font_backend. Delete all codes
15786 used only when USE_FONT_BACKEND is not defined.
15787 (x_set_font): Call x_new_font, not x_new_fontset2.
15788 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15789 already set for the frame.
15790
15791 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15792 a font-entity by font_make_entity. Use font_intern_prop instead
15793 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15794 font property. If a font is scalable, set avgwidth property to 0.
15795 Set font-entity property by font_put_extra.
15796 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15797 (ffont_driver): Adjusted for the change of struct font_driver.
15798 (ftfont_spec_pattern): New function.
15799 (ftfont_list): Return a list, not vector.
15800 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15801 (ftfont_list_family): Don't downcase names.
15802 (ftfont_free_entity): Deleted.
15803 (ftfont_open): Return a font-object. Adjusted for the change of
15804 struct font. Get underline_thickness and underline_position from
15805 font property. Don't update dpyinfo->smallest_font_height and
15806 dpyinfo->smallest_char_width.
15807 (ftfont_close): Don't free `struct font'.
15808 (ftfont_has_char): Adjusted for the format change of font-entity.
15809 (ftfont_encode_char, ftfont_text_extents): Likewise.
15810
15811 * ftxfont.c (ftxfont_list): Return a list, not vector.
15812 (ftxfont_open): Return a font-object. Adjusted for the change of
15813 struct font. Get underline_thickness and underline_position from
15814 font property. Don't update dpyinfo->smallest_font_height and
15815 dpyinfo->smallest_char_width.
15816 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15817 (ftxfont_draw): Adjusted for the change of struct font.
15818
15819 * image.c (image_ascent): Don't include "charset.h". Include
15820 "character.h" and "font.h".
15821
15822 * lisp.h (enum pvec_type): New member PREV_FONT.
15823 (Fassoc_string): EXFUN it.
15824
15825 * print.c: Include font.h.
15826 (print_object): Handle font-related objects.
15827
15828 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15829 conditionals. Don't check enable_font_backend. Delete all codes
15830 used only when USE_FONT_BACKEND is not defined.
15831 (handle_auto_composed_prop): Do nothing if it->f is not on a
15832 window system. Check how many following characters can be
15833 displayed by the same font.
15834 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15835 'struct font *'.
15836 (get_char_face_and_encoding): Assign the whole encoding task to
15837 the `encode-char' method of a font driver.
15838 (fill_composite_glyph_string): Adjusted for the change of `struct
15839 face' and `struct glyph_string'.
15840 (fill_glyph_string): Likewise.
15841 (get_per_char_metric): Arguments changed.
15842 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15843 and `struct glyph_string'.
15844 (produce_stretch_glyph, calc_line_height_property)
15845 (x_produce_glyphs): Likewise.
15846
15847 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15848 conditionals. Don't check enable_font_backend. Delete all codes
15849 used only when USE_FONT_BACKEND is not defined. Use
15850 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15851 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15852 (Qp): Extern them.
15853 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15854 Deleted.
15855 (struct font_name): Deleted.
15856 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15857 (compare_fonts_by_sort_order): New function.
15858 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15859 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15860 Deleted.
15861 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15862 compare_fonts_by_sort_order.
15863 (Fx_font_family_list): Call Ffont_family_list.
15864 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15865 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15866 (face_symbolic_slant, face_symbolic_swidth)
15867 (split_font_name_into_vector, build_font_name_from_vector)
15868 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15869 (font_rescale_ratio, split_font_name, build_font_name)
15870 (free_font_names, sort_fonts, x_face_list_fonts)
15871 (face_font_available_p, sorted_font_list, cmp_font_names)
15872 (font_list_1, concat_font_list, font_list, remove_duplicates):
15873 Deleted.
15874 (Fx_list_fonts): Use Ffont_list.
15875 (LFACE_AVGWIDTH): Deleted.
15876 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15877 by FONTP.
15878 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15879 (set_lface_from_font_name): Delete it.
15880 (set_lface_from_font): Renamed from
15881 set_lface_from_font_and_fontset. Caller changed. Don't set
15882 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15883 for face.
15884 (merge_face_vectors): Copy font-spec if necessary.
15885 Clear properties of the font-spec if necessary.
15886 (merge_face_ref): Clear properties of the font-spec if necessary.
15887 (Finternal_set_lisp_face_attribute): Likewise.
15888 (set_font_frame_param): Use font_load_for_lface to load a
15889 font-object, and call Fmodify_frame_parameters with it.
15890 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15891 font name by Ffont_xlfd_name.
15892 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15893 QCslant, and QCwidth.
15894 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15895 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15896 Compare fonts by EQ.
15897 (lookup_non_ascii_face): Deleted.
15898 (face_for_font): The 2nd argument changed.
15899 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15900 Check atomic font properties by case insensitive.
15901 (realize_non_ascii_face): Set face->overstrike correctly.
15902 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15903 (dump_realized_face): Get font name from
15904 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15905
15906 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15907 conditionals. Don't check enable_font_backend. Delete all codes
15908 used only when USE_FONT_BACKEND is not defined.
15909 (xic_create_xfontset): Original code deleted and renamed from
15910 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15911 (x_make_gc): Don't set GCFont in GCs.
15912 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15913 opened by "fixed".
15914 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15915 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15916 get_font_repertory_func.
15917
15918 * xfont.c: Include <stdlib.h> and "ccl.h".
15919 (struct xfont_info): New structure.
15920 (xfont_query_font): Deleted.
15921 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15922 moved from xterm.c.
15923 (xfont_driver): Adjusted for the change of struct font_driver.
15924 (compare_font_names): New function.
15925 (xfont_list_pattern): Sort font names case insensitively. Make
15926 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15927 (xfont_list): Return a list, not vector.
15928 (xfont_match): If the font doesn't have QCname property, generate
15929 a name from the other font properties.
15930 (xfont_open): Return a font-object. Adjusted for the change of
15931 struct font. Get underline_thickness and underline_position from
15932 font property. Don't update dpyinfo->smallest_font_height and
15933 dpyinfo->smallest_char_width.
15934 (xfont_close): Don't free struct font.
15935 (xfont_prepare_face): Adjusted for the change of struct font.
15936 (xfont_done_face): Deleted.
15937 (xfont_has_char): Adjusted for the change of struct font.
15938 (xfont_encode_char, xfont_draw): Likewise.
15939 (xfont_check): New function.
15940
15941 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15942 callback function.
15943 (xftfont_match): Adjusted for the format change of font-entity.
15944 (xftfont_open): Adjusted for the format change of font-entity and
15945 font-object. Adjusted for the change of struct font. Return a
15946 font-object. Don't update dpyinfo->smallest_font_height and
15947 dpyinfo->smallest_char_width.
15948 (xftfont_close): Block input while calling XftFontClose.
15949 (xftfont_prepare_face): Don't block input while calling
15950 xftfont_get_colors. Adjusted for the change of struct font.
15951 (xftfont_shape): Return value of error case fixed.
15952
15953 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15954
15955 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15956 conditionals.
15957 (FONT_WIDTH): Return (f)->max_width.
15958 (struct x_display_info): Delete member `font'.
15959 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15960 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15961 (struct x_output): Change type of `font' to `struct font *'.
15962
15963 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15964 conditionals. Don't check enable_font_backend. Delete all codes
15965 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15966 (x_per_char_metric, x_encode_char): Deleted.
15967 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15968 (x_compute_glyph_string_overhangs): Adjusted for the change of
15969 `struct face'.
15970 (x_draw_glyph_string_foreground)
15971 (x_draw_composite_glyph_string_foreground): Likewise.
15972 (x_draw_glyph_string): Likewise. Use font->underline_position and
15973 font->underline_thickness.
15974 (x_new_font): Renamed from x_new_fontset2.
15975 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15976 (x_check_font): Call `check' method of a font driver.
15977 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15978 (x_query_font, x_get_font_repertory): Deleted.
15979 (x_find_ccl_program): Renamed and moved to xfont.c.
15980 (x_redisplay_interface): Adjusted for the change of `struct
15981 redisplay_interface'.
15982
15983 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15984 conditionals. Don't check enable_font_backend. Delete all codes
15985 used only when USE_FONT_BACKEND is not defined. Surround non-used
15986 code by "#ifdef OLD_FONT" and "endif".
15987 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15988
15989 * w32font.h (struct w32font_info): New member.
15990 (FONT_COMPAT): New macro.
15991 (w32font_open_internal): Prototype adjusted.
15992
15993 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15994 OLD_FONT" and "endif".
15995
15996 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15997 conditionals. Don't check enable_font_backend. Delete all codes
15998 used only when USE_FONT_BACKEND is not defined.
15999 (w32font_open): Return a font-object. Make a font-object by
16000 font_make_object. Adjusted for the change of struct w32font_info.
16001 (w32font_close): Don't free struct font. Adjusted for the change
16002 of struct w32font_info.
16003 (w32font_encode_char, w32font_text_extents, w32font_draw):
16004 Adjusted for the change of struct w32font_info.
16005 (w32font_draw): Likewise.
16006 (w32font_list_internal): Return a list, not vector.
16007 (w32font_open_internal): Change the 4th arg to font-object.
16008 Adjusted for the change of struct w32font_info and font-object format.
16009 (add_font_name_to_list): Don't downcase names.
16010 (w32_enumfont_pattern_entity): Make a font-entity by
16011 font_make_entity. Adjusted for the format change of font-entity.
16012 Use FONT_SET_STYLE to set a style-related font property. If a
16013 font is scalable, set avgwidth property to 0. Set font-entity
16014 property by font_put_extra.
16015 (font_matches_spec): Adjusted for the format change of font-entity.
16016 (w32_weight_table, w32_decode_weight): New variables.
16017 (w32_encode_weight): New function.
16018 (fill_in_logfont): Adjusted for the format change of font-spec.
16019 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16020 weight value.
16021 (w32font_driver): Adjusted for the change of struct font_driver.
16022
16023 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16024 conditionals. Don't check enable_font_backend. Surround non-used
16025 code by "#ifdef OLD_FONT" and "endif".
16026 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16027 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16028
16029 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16030 conditionals. Don't check enable_font_backend. Delete all codes
16031 used only when USE_FONT_BACKEND is not defined. Surround non-used
16032 code by "#ifdef OLD_FONT" and "endif".
16033
16034 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16035 (uniscribe_open): Return value changed to font-object.
16036 Adjusted for the format change of font-object.
16037 (uniscribe_otf_capability): Adjusted for the change of struct font.
16038 (add_opentype_font_name_to_list): Don't downcase names.
16039 (uniscribe_font_driver): Adjusted for the change of struct
16040 font_driver.
16041
160422008-05-13 Chong Yidong <cyd@stupidchicken.com>
16043
16044 * dispnew.c (update_frame_1): Check if tty output is still valid
16045 before flushing it.
16046
160472008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16048
16049 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16050 to Gtk+ menus.
16051
160522008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16053
16054 * dired.c (file_name_completion): Tweak the code so as to always do it
16055 in a single pass. Tighten the scope of some variables.
16056
16057 * dired.c (Qdefault_directory): New var.
16058 (file_name_completion): Use it instead of Fexpand_file_name.
16059 (syms_of_dired): Initialize it.
16060
160612008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16062
16063 * fileio.c (double_dollars): Remove dead code.
16064
160652008-05-10 Eli Zaretskii <eliz@gnu.org>
16066
16067 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16068 Mention w32-get-true-file-attributes in doc string.
16069
16070 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16071
160722008-05-09 Glenn Morris <rgm@gnu.org>
16073
16074 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16075 2008-04-23.
16076
160772008-05-09 Eli Zaretskii <eliz@gnu.org>
16078
16079 Support for reporting owner and group of each file on MS-Windows:
16080 * dired.c (stat_uname, stat_gname): New functions, with special
16081 implementation for w32.
16082 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16083
16084 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16085 (dflt_group_name): New static variable.
16086 (dflt_group): Rename from the_group.
16087 (init_user_info): Init dflt_group fields. Get user's group name
16088 from LookupAccountSid.
16089 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16090 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16091 New initialization states.
16092 (globals_of_w32): Initialize them to zero. Initialize the default
16093 group name to "None".
16094 (GetFileSecurity_Name): New global var, the name of the function
16095 to call for GetFileSecurity.
16096 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16097 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16098 (get_file_security, get_security_descriptor_owner)
16099 (get_security_descriptor_group, is_valid_sid)
16100 (get_file_security_desc, get_rid, get_name_and_id)
16101 (get_file_owner_and_group): New functions.
16102 (stat): Use get_file_security_desc and get_file_owner_and_group to
16103 report the owner and primary group of each file. Don't ignore the
16104 high 32 bits of file's size, now that st_size is 64-bit wide.
16105 Fix test when to get true file attributes.
16106 (init_user_info): Use get_rid instead of equivalent inline code.
16107 (fstat): Don't ignore the high 32 bits of file's size.
16108
161092008-05-09 Chong Yidong <cyd@stupidchicken.com>
16110
16111 * image.c (png_load): Use correct bit-depth for setting background
16112 color.
16113
161142008-05-08 Eli Zaretskii <eliz@gnu.org>
16115
16116 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16117 epa-hook.elc.
16118
161192008-05-08 Juanma Barranquero <lekktu@gmail.com>
16120
16121 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16122
161232008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16124
16125 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16126 because the original parameters are in pure storage now.
16127 (mac_window): Remove unused params. Update callers.
16128
161292008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16130
16131 * lread.c (substitute_object_recurse): Use lower-level primitives.
16132 Don't signal errors when traversing sub-char-tables.
16133 Don't loop over all the possible characters when traversing char-tables.
16134
16135 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16136 just like we do in print.c.
16137
161382008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16139
16140 * minibuf.c (Ftry_completion): Remove code left over from when we used
16141 scmp instead of Fcompare_strings.
16142
161432008-05-04 Juanma Barranquero <lekktu@gmail.com>
16144
16145 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16146
161472008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16148
16149 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16150 Create bitmap context in native byte order.
16151
16152 * macterm.c (XDrawLine)
16153 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16154 context in native byte order.
16155
161562008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16157
16158 * config.in: Regenerate.
16159
16160 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16161 New definitions for Image I/O support.
16162 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16163 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16164 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16165 (mac_data_provider_release_data, image_load_image_io)
16166 [USE_MAC_IMAGE_IO]: New functions.
16167 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16168 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16169 (init_image_func_pointer) [MAC_OSX]: Remove function.
16170 (image_load_quartz2d) [MAC_OSX]: Check availability of
16171 CGImageCreateWithPNGDataProvider at compile time.
16172 Use lowercase `false' for boolean constant.
16173 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16174 Use image_load_image_io.
16175 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16176 Don't check MyCGImageCreateWithPNGDataProvider.
16177 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16178 Don't call init_image_func_pointer.
16179
16180 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16181
16182 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16183 Make variable non-static.
16184 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16185 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16186
16187 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16188 (RED_FROM_ULONG): Mask off higher bits.
16189 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16190
16191 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16192 Include AvailabilityMacros.h.
16193 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16194 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16195
161962008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16197
16198 * chartab.c (Fset_char_table_range): If range is t, really set all
16199 chars to that value.
16200
162012008-05-03 Eli Zaretskii <eliz@gnu.org>
16202
16203 * dired.c (Ffile_attributes): Don't allow the device number become
16204 negative.
16205
162062008-05-02 Daiki Ueno <ueno@unixuser.org>
16207
16208 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16209
162102008-05-02 Juri Linkov <juri@jurta.org>
16211
16212 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16213 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16214 DEFAULT argument as a list of default values in docstrings.
16215
162162008-05-01 Chong Yidong <cyd@stupidchicken.com>
16217
16218 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16219
162202008-05-01 Martin Rudalics <rudalics@gmx.at>
16221
16222 * dispnew.c (change_frame_size_1): Preserve small windows when
16223 shrinking frames by calling set_window_height|width with third
16224 arg 2.
16225
16226 * window.h (struct window): Replace field too_small_ok by field
16227 resize_proportionally.
16228
16229 * window.c (make_window): Initialize resize_proportionally.
16230 (enlarge_window): Temporarily set resize_proportionally to make
16231 sure that shrink_windows does scale the window proportionally.
16232 (shrink_windows): When window has resize_proportionally set try
16233 to shrink it proportionally by stealing from other windows.
16234 (struct saved_window, Fset_window_configuration)
16235 (compare_window_configurations): Handle resize_proportionally.
16236 (WINDOW_TOTAL_SIZE): New macro.
16237 (window_min_size, shrink_windows, size_window): Use it.
16238 (check_min_window_sizes): Remove. Invalid values of
16239 window-min-height|width are handled by window_min_size_2 now.
16240 (size_window, Fsplit_window, enlarge_window)
16241 (adjust_window_trailing_edge, grow_mini_window): Don't call
16242 check_min_window_sizes.
16243 (window_min_size_2, window_min_size_1, window_min_size):
16244 New argument safe_p for retrieving "safe" minimum sizes.
16245 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16246 (adjust_window_trailing_edge, grow_mini_window):
16247 Adjust arguments of window_min_size... functions.
16248 (shrink_windows): Argument min_size removed. New argument
16249 safe_p allows shrinking windows to their safe minimum sizes.
16250 Calculate minimum size and decide whether a window shall be
16251 deleted for each window individually.
16252 (size_window): When nodelete_p equals 2, tell shrink_windows to
16253 delete windows only if their new minimum size is no more safe.
16254 (shrink_window_lowest_first): Call window_min_size_1 to make
16255 sure to preserve modeline of bottom-most window when resizing
16256 the minibuffer.
16257 (Fset_window_configuration, Fcurrent_window_configuration)
16258 (compare_window_configurations): Do not handle
16259 window-min-height|width any more.
16260 (syms_of_window): Clarify window-min-height|width doc-strings.
16261
162622008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16263
16264 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16265 some more. Copy some of the code from Ftry_completions.
16266 Remove special case code that dates back to initial revision when the
16267 slash was only added when necessary and that can't trigger nowadays.
16268
162692008-04-27 Kenichi Handa <handa@m17n.org>
16270
16271 * font.c (font_prop_validate): Signal `error' instead of `font'.
16272
162732008-04-29 Jason Rumney <jasonr@gnu.org>
16274
16275 * w32fns.c (Fw32_battery_status): New defun.
16276 (syms_of_w32fns): Defsubr it.
16277
162782008-04-28 Andreas Schwab <schwab@suse.de>
16279
16280 * dired.c (file_name_completion): Fix another mixing of encoded
16281 and decoded names.
16282
162832008-04-28 Juanma Barranquero <lekktu@gmail.com>
16284
16285 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16286
162872008-04-27 Juanma Barranquero <lekktu@gmail.com>
16288
16289 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16290
162912008-04-27 Andreas Schwab <schwab@suse.de>
16292
16293 * dired.c (file_name_completion): Fix inappropriate mixing of
16294 encoded and decoded names.
16295
16296 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16297
16298 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16299
163002008-04-26 Eli Zaretskii <eliz@gnu.org>
16301
16302 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16303 2008-03-31, it's not needed anymore with `struct stat' definition
16304 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16305 for the same reasons.
16306
163072008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16308
16309 * m/sparc.h: Additional redefinitions for GNU/Linux.
16310
163112008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16312
16313 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16314 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16315 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16316 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16317 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16318 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16319 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16320 Likewise.
16321
16322 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16323 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16324 (mac_ax_number_of_characters): Add externs.
16325 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16326 [USE_MAC_TSM]: Likewise.
16327 (mac_handle_text_input_event) [MAC_OSX]:
16328 Handle kEventTextInputOffsetToPos for no active input area case.
16329 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16330 (mac_handle_document_access_event)
16331 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16332 (install_application_handler) [MAC_OSX]: Register handlers for
16333 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16334 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16335 Register mac_handle_document_access_event.
16336
16337 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16338 Make functions non-static.
16339
163402008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16341
16342 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16343 (read_file_name_completion_ignore_case, insert_default_directory)
16344 (Qdefault_directory): Move to minibuffer.el.
16345 (Fread_file_name): Call the new `read-file-name' instead.
16346
163472008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16348
16349 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16350 Make function non-static.
16351 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16352 Remove function.
16353 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16354 Move to mactoolbox.c.
16355 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16356
16357 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16358 (mac_rect_make): New macro.
16359
16360 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16361 instead of float.
16362 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16363 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16364 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16365 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16366 CGRectMake.
16367 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16368 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16369 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16370 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16371 instead of WindowRef in argument type.
16372 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16373 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16374 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16375 instead of DISPLAY. All uses changed.
16376 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16377 (x_calc_absolute_position): Simplify so as not to use
16378 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16379
16380 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16381 instead of WindowRef in argument type.
16382 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16383 [TARGET_API_MAC_CARBON]: Remove externs.
16384 (create_apple_event, mac_event_parameters_to_lisp)
16385 [TARGET_API_MAC_CARBON]: Add externs.
16386
16387 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16388 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16389 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16390 is clicked.
16391 (x_activate_menubar): Remove extern for saved_menu_event_location.
16392 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16393 Move from mac.c.
16394
163952008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16396
16397 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16398 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16399
164002008-04-23 Jason Rumney <jasonr@gnu.org>
16401
16402 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16403 attributes only for local files.
16404
16405 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16406 default to Qlocal.
16407
164082008-04-22 Juri Linkov <juri@jurta.org>
16409
16410 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16411 read-buffer-to-switch instead of using the letter "B".
16412
164132008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16414
16415 * fileio.c (Qdefault_directory): New variable.
16416 (Fread_file_name): Use it to pass `dir' to the completion functions.
16417
164182008-04-20 Chong Yidong <cyd@stupidchicken.com>
16419
16420 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16421
164222008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16423
16424 * keyboard.c (Vpre_help_message): Remove.
16425 (show_help_echo): Remove default C code.
16426
16427 * dired.c (directory_files_internal, file_name_completion):
16428 Only call ENCODE_FILE if the string is indeed decoded.
16429
164302008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16431
16432 * Makefile.in (TOOLKIT_DEFINES): Remove.
16433 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16434
164352008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16436
16437 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16438 (mactoolbox.o): New target.
16439
16440 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16441 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16442
16443 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16444 Use mac_set_frame_window_background instead of XSetWindowBackground.
16445 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16446 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16447 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16448 instead of SetWindowTitleWithCFString.
16449 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16450 Move function to mactoolbox.c.
16451 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16452 Use mac_set_window_modified instead of SetWindowModified.
16453 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16454 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16455 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16456 FrontNonFloatingWindow. Use mac_activate_window instead of
16457 ActivateWindow. Use mac_active_non_floating_window instead of
16458 ActiveNonFloatingWindow.
16459 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16460 Use mac_show_hourglass and mac_hide_hourglass.
16461 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16462 instead of GetGlobalMouse.
16463 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16464 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16465 Use mac_bring_window_to_front instead of BringToFront.
16466 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16467 mactoolbox.c.
16468 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16469 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16470 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16471 mactoolbox.c.
16472
16473 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16474 (XtPointer): Move typedef from macmenu.c.
16475 (enum button_type): Move enum from macmenu.c.
16476 (widget_value): Move typedef from macmenu.c.
16477 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16478 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16479 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16480 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16481 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16482 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16483 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16484 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16485 (Selection): Move typedef from macselect.c.
16486 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16487 macterm.c.
16488 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16489 (mac_is_window_collapsed, mac_bring_window_to_front)
16490 (mac_send_window_behind, mac_hide_window, mac_show_window)
16491 (mac_collapse_window, mac_front_non_floating_window)
16492 (mac_active_non_floating_window, mac_activate_window)
16493 (mac_move_window_structure, mac_move_window, mac_size_window)
16494 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16495
16496 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16497 (enum mac_menu_kind): Move enum to mactoolbox.c.
16498 (min_menu_id): Move variable to mactoolbox.c.
16499 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16500 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16501 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16502 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16503 [TARGET_API_MAC_CARBON]: Likewise.
16504 (XtPointer): Move typedef to macgui.h.
16505 (enum button_type): Move enum to macgui.h.
16506 (widget_value): Move typedef to macgui.h.
16507 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16508 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16509 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16510 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16511 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16512 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16513 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16514 (popup_activated_flag): Make variable non-static.
16515 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16516 (add_menu_item, fill_menu, dispose_menus):
16517 Move functions to mactoolbox.c.
16518 (restore_show_help_function, menu_target_item_handler)
16519 (install_menu_target_item_handler, mac_handle_dialog_event)
16520 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16521 [TARGET_API_MAC_CARBON]: Likewise.
16522 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16523 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16524 (find_and_call_menu_selection, name_is_separator): Make function
16525 non-static.
16526 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16527 to mactoolbox.c.
16528 (set_frame_menubar): Don't call install_menu_quit_handler.
16529 (menu_item_selection): New variable.
16530 (mac_menu_show): Use create_and_show_popup_menu.
16531 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16532 selection but set variable menu_item_selection. All uses changed.
16533 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16534 Call install_menu_quit_handler. Move to mactoolbox.c.
16535
16536 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16537 (Selection): Move typedef to macgui.h.
16538 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16539 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16540 Make variables non-static.
16541 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16542 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16543 Make functions non-static.
16544 (Vmac_service_selection) [MAC_OSX]: Likewise.
16545 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16546 (mac_valid_selection_target_p, mac_clear_selection)
16547 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16548 (mac_put_selection_value, mac_selection_has_target_p)
16549 (mac_get_selection_value, mac_get_selection_target_list)
16550 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16551 Move functions to mactoolbox.c.
16552 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16553 Likewise.
16554 (copy_scrap_flavor_data, mac_handle_service_event)
16555 (install_service_handler) [MAC_OSX]: Likewise.
16556 (syms_of_macselect) <Vmac_dnd_known_types>:
16557 Use mac_dnd_default_known_types.
16558
16559 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16560 Move to mactoolbox.c.
16561 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16562 (Fx_selection_owner_p): Add EXFUN.
16563 (install_window_handler, remove_window_handler, XSetWindowBackground):
16564 Remove externs.
16565 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16566 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16567 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16568 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16569 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16570 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16571 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16572 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16573 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16574 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16575 (mac_valid_selection_target_p, mac_clear_selection)
16576 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16577 (mac_put_selection_value, mac_selection_has_target_p)
16578 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16579 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16580 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16581 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16582 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16583 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16584 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16585 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16586 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16587
16588 * mactoolbox.c: New file.
16589
165902008-04-18 Jason Rumney <jasonr@gnu.org>
16591
16592 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16593
165942008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16595
16596 * character.c (Fmultibyte_char_to_unibyte):
16597 Return latin1 chars unchanged.
16598
16599 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16600 relocated if it points to `name'.
16601
166022008-04-17 Kenichi Handa <handa@m17n.org>
16603
16604 * data.c (Faset): Allow setting a multibyte character in an
16605 ASCII-only unibyte string.
16606
16607 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16608
166092008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16610
16611 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16612 done in config.h.
16613
166142008-04-16 Juanma Barranquero <lekktu@gmail.com>
16615
16616 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16617 (Fchar_direction): Add usage in the docstring.
16618
166192008-04-15 Chong Yidong <cyd@stupidchicken.com>
16620
16621 * keyboard.c (read_key_sequence): Remove always-true checks.
16622
166232008-04-14 Jason Rumney <jasonr@gnu.org>
16624
16625 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16626 compatibility struct, for better underline positioning.
16627
166282008-04-13 David Hansen <david.hansen@gmx.net>
16629
16630 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16631 string.
16632
166332008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16634
16635 * m/hp800.h (XUINT, XSET): Remove.
16636
166372008-04-12 Juanma Barranquero <lekktu@gmail.com>
16638
16639 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16640 previous change.
16641
166422008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16643
16644 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16645 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16646
166472008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16648
16649 * keymap.h (map_keymap_canonical): Declare.
16650 * xmenu.c (single_keymap_panes): Use it.
16651
166522008-04-11 Glenn Morris <rgm@gnu.org>
16653
16654 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16655 set the target's value to that of the alias.
16656
166572008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16658
16659 * term.c (set_tty_color_mode): Left over typo.
16660
166612008-04-10 Michael Albinus <michael.albinus@gmx.de>
16662
16663 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16664 only after check for file name handler functions. Signal, when
16665 native functionality is not supported.
16666 (syms_of_fileio): Declare it unconditionally.
16667
166682008-04-10 Jason Rumney <jasonr@gnu.org>
16669
16670 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16671 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16672
16673 * w32.c (logon_network_drive): Also logon to remote drives that
16674 are mapped to drive letters.
16675
166762008-04-10 Glenn Morris <rgm@gnu.org>
16677
16678 * xdisp.c (truncate-partial-width-windows): Doc fix.
16679
166802008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16681
16682 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16683 Move functions to minibuffer.el.
16684 (syms_of_fileio): Don't declare them.
16685
166862008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16687
16688 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16689 (syms_of_minibuf): Remove its initialization.
16690
16691 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16692
166932008-04-09 Juanma Barranquero <lekktu@gmail.com>
16694
16695 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16696
166972008-04-09 Jason Rumney <jasonr@gnu.org>
16698
16699 * makefile.w32-in (distclean): Delete makefile too.
16700 (maintainer-clean): New target.
16701
16702 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16703
16704 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16705 for new font backend and composite cases.
16706
167072008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16708
16709 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16710 Most of the code moved to run_timers.
16711 (do_pending_atimers): Call run_timers.
16712 (run_timers): New function.
16713
16714 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16715 run atimers.
16716
16717 * process.c (wait_reading_process_output): The same as above.
16718
167192008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16720
16721 * minibuf.c (last_exact_completion): Remove variable.
16722 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16723 (complete_and_exit_1, complete_and_exit_2)
16724 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16725 (Fdisplay_completion_list, display_completion_list_1)
16726 (Fminibuffer_completion_help, Fself_insert_and_exit)
16727 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16728 minibuffer.el.
16729 (syms_of_minibuf): Remove corresponding initializations.
16730
16731 * keyboard.c (Qdeactivate_mark): New var.
16732 (command_loop_1): Use it to call `deactivate-mark'.
16733 (syms_of_keyboard): Initialize it.
16734
16735 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16736 to another frame.
16737 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16738 Don't call set_tty_color_mode.
16739 (store_frame_param): Reset previous_frame rather than call
16740 set_tty_color_mode.
16741 * term.c (set_tty_color_mode): Rewrite.
16742 * dispextern.h (set_tty_color_mode): New type.
16743 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16744
167452008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16746
16747 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16748 for generic chars, which do not exist any more in emacs-unicode.
16749
167502008-04-08 Michael Albinus <michael.albinus@gmx.de>
16751
16752 * coding.c (detect_coding_emacs_mule)
16753 (Ffind_operation_coding_system): Fix typo.
16754
167552008-04-08 Jason Rumney <jasonr@gnu.org>
16756
16757 * w32uniscribe.c (SNAME): Extract only symbol name.
16758
16759 * w32font.h (struct w32_metric_cache): New struct.
16760 (w32font_info): Use it.
16761 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16762 (CACHE_BLOCKSIZE): New constants.
16763
16764 * w32font.c (Qja, Qko, Qzh): New symbols.
16765 (syms_of_w32font): Initialise them.
16766 (font_matches_spec): Use them to filter by language.
16767 (recompute_cached_metrics): Remove function.
16768 (compute_metrics, clear_cached_metrics): New functions.
16769 (w32font_encode_char): Use them to manage metric cache.
16770 (w32font_text_extents): Cache metrics for all glyphs on demand.
16771 Delay converting glyph indices to WORD until needed.
16772 (w32font_open_internal): Initialize metric cache to empty.
16773 (registry_to_w32_charset): Charset should always be a symbol.
16774 (fill_in_logfont, list_all_matching_fonts): Family should
16775 always be a symbol.
16776
167772008-04-06 Jason Rumney <jasonr@gnu.org>
16778
16779 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16780 Give up if glyph indices not supported. Use uniscribe obtained
16781 ABC widths for individual metrics. Map glyph clusters back to
16782 characters using fClusterStart flag. Return number of glyphs
16783 produced, not chars processed.
16784 (uniscribe_shape): Map char at FROM to current glyph.
16785
167862008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16787
16788 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16789 Use SetMenuItemHierarchicalMenu.
16790
167912008-04-05 Jason Rumney <jasonr@gnu.org>
16792
16793 * image.c (pbm_load): Allow color values up to 65535.
16794 Throw an error if max_color_idx is outside the supported range.
16795 Report an error when image size is invalid.
16796 Read two bytes at a time when raw images have max_color_idx above 255.
16797
aac0c6e3
MR
167982008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16799
16800 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16801 append "CCL: Quitted" when the CCL program is quitted.
16802 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16803
16804 * ccl.h (struct ccl_program): New member quit_silently.
16805
168062008-04-05 Chong Yidong <cyd@stupidchicken.com>
16807
16808 * search.c (compile_pattern_1): Treat non-nil and non-string of
16809 search-spaces-regexp as nil.
16810
16811 * minibuf.c (Fassoc_string): Tweak docstring.
16812
168132008-04-05 Eli Zaretskii <eliz@gnu.org>
16814
16815 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16816 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16817 2008-03-14 to force inode be positive.
16818
16819 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16820 _S_* ones, since we now use our own sys/stat.h.
16821 (stat, fstat): Don't mangle the inode number.
16822 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16823
168242008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16825
16826 * frame.h (struct frame): Give one more bit to `visible' since we use
16827 values larger than 1 to indicate obscured frames on ttys.
16828
16829 * keymap.c (Qkeymap_canonicalize): New var.
16830 (Fmap_keymap_internal): New fun.
16831 (describe_map): Use keymap-canonicalize.
16832
16833 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16834 (Fundo_boundary): Set them.
16835 (syms_of_undo): Initialize them.
16836 (record_point): Use them instead of last_point_position*.
16837 (last_undo_buffer): Change type.
16838
168392008-04-04 Jason Rumney <jasonr@gnu.org>
16840
16841 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16842 (recompute_cached_metrics): Don't set ascent and descent per char.
16843
16844 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16845 (uniscribe_check_otf): Add GC protection before consing.
16846 Rearrange loop for counting features.
16847
168482008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16849
16850 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16851 buffer with byte-size of source buffer.
16852
168532008-04-03 Chong Yidong <cyd@stupidchicken.com>
16854
16855 * callint.c (Fcall_interactively): Handle temporary region even
16856 when shift-select-mode is off.
16857
168582008-04-03 Jason Rumney <jasonr@gnu.org>
16859
16860 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16861
168622008-04-03 Kenichi Handa <handa@m17n.org>
16863
16864 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16865 (CATEGORY_MASK_UTF_16): Likewise.
16866 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16867 binary file.
16868 (detect_coding): Add null-byte detection for a binary file.
16869 (detect_coding_system): Likewise.
16870
168712008-04-03 Jason Rumney <jasonr@gnu.org>
16872
16873 * w32uniscribe.c: New file.
16874
16875 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16876
16877 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16878
16879 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16880 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16881 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16882 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16883 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16884 (Qphonetic): New symbols.
16885 (syms_of_w32font): Initialize them.
16886 (font_supported_scripts): Use them.
16887 (w32font_list_family): List all charsets.
16888 (w32font_text_extents, recompute_cached_metrics): Fix metric
16889 calculations.
16890 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16891 Give opentype fonts their own format.
16892 (font_matches_spec): New arguments backend and logfont.
16893 Handle :otf spec for uniscribe backend.
16894 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16895 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16896
16897 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16898 font backend.
16899 (globals_of_w32fns): Initialize uniscribe font backend.
16900
16901 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16902 dependencies.
16903 (w32uniscribe.$(O)): New file to build.
16904 (FONT_OBJ): Include w32uniscribe.$(O).
16905 (LIBS): Add uniscribe libraries.
16906
16907 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16908
169092008-04-02 Chong Yidong <cyd@stupidchicken.com>
16910
16911 * callint.c (Vshift_select_mode): New var.
16912 (Finteractive): Document new ^ spec.
16913 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16914 is present.
16915
16916 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16917 (command_loop_1): Avoid running the direct display versions of
16918 forward-char and backward-char if shift-selection may occur.
16919 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16920 shift-translation takes place.
16921
16922 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16923 avoid clobbering by define-minor-mode.
16924
16925 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16926 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16927
16928 * syntax.c (Fforward_word): Add ^ interactive spec.
16929
16930 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16931 (Fscroll_right): Add ^ interactive spec.
16932
169332008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16934
16935 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16936
16937 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16938
16939 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16940
169412008-03-31 Juri Linkov <juri@jurta.org>
16942
16943 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16944
169452008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16946
16947 * gtkutil.c (xg_set_geometry): Fix indentation.
16948 (xg_resize_outer_widget): Remove.
16949 (x_wm_size_hint_off): Fix indentation.
16950 (xg_frame_set_char_size): Call flush_and_sync after
16951 gtk_window_resize.
16952 (x_wm_set_size_hint): Pass NULL as geometry window to
16953 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16954 Add menu bar and tool bar height to base height.
16955 (xg_update_frame_menubar, free_frame_menubar)
16956 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16957 (update_frame_tool_bar, free_frame_tool_bar):
16958 Change xg_resize_outer_widget to xg_frame_set_char_size.
16959
169602008-03-30 Michael Albinus <michael.albinus@gmx.de>
16961
16962 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16963 (Fdbus_call_method): New parameter TIMEOUT.
16964 (dbus-send-signal): Optimize UNGCPRO call.
16965
169662008-03-29 Juri Linkov <juri@jurta.org>
16967
16968 * window.c (Fdisplay_buffer): Move call to
16969 Vsplit_window_preferred_function out of conditions that check
16970 if window is eligible for vertical splitting.
16971 When Vsplit_window_preferred_function is non-nil, call it and use
16972 its non-nil return value as window. Otherwise, continue doing
16973 vertical splitting using Fsplit_window with arg horflag=nil.
16974 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16975 default value from `split-window' to nil.
16976
169772008-03-29 Juri Linkov <juri@jurta.org>
16978
16979 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16980 for interactive code letters 'b' and 'B'.
16981
169822008-03-29 Eli Zaretskii <eliz@gnu.org>
16983
16984 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16985 multibyte string.
16986
169872008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16988
16989 * keyboard.c (pending_funcalls): New var.
16990 (timer_check): Run it.
16991 (syms_of_keyboard): Initialize it.
16992 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16993 (Vdelete_terminal_functions): New vars.
16994 (syms_of_terminal): Initialize them.
16995 (Fdelete_terminal): Run delete-terminal-functions.
16996 * xdisp.c (safe_eval): Rewrite.
16997 (safe_call2): New fun.
16998 * frame.c (Qdelete_frame_functions): New var.
16999 (syms_of_frame): Initialize it.
17000 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17001 * lisp.h (safe_call2, pending_funcalls): Declare.
17002
170032008-03-28 Andreas Schwab <schwab@suse.de>
17004
17005 * indent.c (Fmove_to_column): Move declaration before statements.
17006
170072008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17008
17009 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17010 (struct frame): Use bit fields for boolean vars.
17011
17012 * process.c (server_accept_connection): Simplify naming.
17013 (emacs_get_tty_pgrp): Use SDATA.
17014
17015 * coding.c (decode_coding_object): Fix last change.
17016
170172008-03-27 Jason Rumney <jasonr@gnu.org>
17018
17019 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17020
170212008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17022
17023 * charset.c (Fdefine_charset_internal): Change the way of
17024 registering charsets in Vcharset_order_list.
17025 (syms_of_charset): Make the charset `eight-bit' supplementary.
17026
170272008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17028
17029 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17030 operations, to avoid having the difference between pointers
17031 overflow.
17032
170332008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17034
17035 * indent.c (check_display_width): New fun.
17036 (scan_for_column): Use it.
17037
17038 * data.c (syms_of_data): Mark most-positive-fixnum and
17039 most-negative-fixnum as constants.
17040
17041 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17042
17043 * indent.c (scan_for_column): Extract from current_column_1.
17044 Merge with the same code from Fmove_to_column.
17045 (current_column_1, Fmove_to_column): Use it.
17046
170472008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17048
17049 * keymap.c (map_keymap_internal): New fun.
17050 (map_keymap): Use it.
17051 (Fmap_keymap_internal): New fun.
17052 (Fmap_keymap): Remove left-out test from before make_save_value.
17053
17054 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17055
17056 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17057 Use XCAR/XCDR.
17058
17059 * process.h (struct Lisp_Process): Remove filter_multibyte.
17060 * process.c (QCfilter_multibyte): Remove.
17061 (setup_process_coding_systems): Don't use filter_multibyte.
17062 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17063 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17064 (Fset_process_filter_multibyte): Change the coding-system to
17065 approximate the previous behavior.
17066 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17067 coding-system.
17068
17069 * coding.c (decode_coding_object): When not decoding into a buffer,
17070 obey the coding system's preference of (uni|multi)byte.
17071
170722008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17073
17074 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17075 every char is changed and has a different byte-length.
17076 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17077 Fix int -> EMACS_INT.
17078
170792008-03-23 David Hansen <david.hansen@gmx.net>
17080
17081 * dbusbind.c (xd_read_message): Remove extra copying of message
17082 strings. Check for NULL `interface' or `member'.
17083
170842008-03-22 Eli Zaretskii <eliz@gnu.org>
17085
17086 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17087 cFileName a file name that includes `?' characters, use the 8+3
17088 alias in cAlternateFileName instead.
17089
170902008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17091
17092 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17093
170942008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17095
17096 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17097 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17098 work on current_buffer only instead (that was already the case
17099 for some of the code anyway).
17100 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17101 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17102 (SET_PT, SET_PT_BOTH): Adjust.
17103 * intervals.h (set_point, temp_set_point, set_point_both)
17104 (temp_set_point_both): Remove redundant declarations.
17105
171062008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17107
17108 * fileio.c (Finsert_file_contents):
17109 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17110 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17111 when buffer != current_buffer anyway.
17112
171132008-03-20 Andreas Schwab <schwab@suse.de>
17114
17115 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17116 as default.
17117
171182008-03-19 Jason Rumney <jasonr@gnu.org>
17119
17120 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17121 (syms_of_w32fns): Initialize them.
17122 (HOURGLASS_ID): New constant.
17123 (x_window_to_frame): Don't check hourglass_window.
17124 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17125 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17126 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17127 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17128 Only change the cursor if hourglass is not active.
17129 (Fx_create_frame): Initialize frame's current_cursor.
17130 (hourglass_atimer): Remove.
17131 (hourglass_started): New function.
17132 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17133 (show_hourglass): Adapt to w32, changing argument to frame.
17134
17135 * w32term.h (struct w32_output): Remove hourglass_window.
17136 Add current_cursor.
17137
17138 * eval.c (call_debugger, Fsignal):
17139 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17140 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17141 (Fexecute_extended_command, cancel_hourglass_unwind):
17142 * minibuf.c (read_minibuf):
17143 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17144
171452008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17146
17147 * window.c (run_funs): New fun.
17148 (run_window_configuration_change_hook): Use it to run the buffer-local
17149 and the global part of the hook.
17150
17151 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17152 (unwind_format_mode_line): Restore selected window.
17153 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17154
171552008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17156
17157 * editfns.c (Fchar_equal): Check they are valid characters.
17158
17159 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17160
171612008-03-17 Andreas Schwab <schwab@suse.de>
17162
17163 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17164 against a charset.
17165
17166 * lisp.h (Fbuffer_list): Declare.
17167
171682008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17169
aac0c6e3
MR
17170 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17171 handlebox_widget is != 0.
17172
171732008-03-16 Juri Linkov <juri@jurta.org>
17174
17175 * callint.c (Fcall_interactively): For interactive code letters
17176 'b' and 'B' put the buffer list into the list of default "future"
17177 values of the minibuffer.
17178
171792008-03-16 Andreas Schwab <schwab@suse.de>
17180
17181 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17182 modifiers.
17183
17184 * regex.c (re_match_2_internal): Correct matching of a charset
17185 against latin-1 characters.
17186
171872008-03-16 Kenichi Handa <handa@m17n.org>
17188
17189 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17190 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17191 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17192 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17193 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17194 CHAR_STRING_ADVANCE.
17195 (produce_chars): Fix for the case that the source and the
17196 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17197 instead of CHAR_STRING_ADVANCE.
17198 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17199 STRING_CHAR_ADVANCE.
17200
172012008-03-15 Andreas Schwab <schwab@suse.de>
17202
17203 * regex.c (re_match_2_internal): Correct matching of eight bit
17204 characters in unibyte strings.
17205
172062008-03-15 Martin Rudalics <rudalics@gmx.at>
17207
17208 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17209 at end of range when it coincides with the end of the buffer.
17210
172112008-03-14 Eli Zaretskii <eliz@gnu.org>
17212
17213 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17214
17215 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17216
172172008-03-14 Jason Rumney <jasonr@gnu.org>
17218
17219 * editfns.c (initial_tz): New variable.
17220 (syms_of_editfns): Initialize it.
17221 (Fset_time_zone_rule): Set it when first called.
17222 Use it when TZSTRING is nil.
17223
17224 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17225 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17226 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17227 (globals_of_w32fns): Initialize them.
17228 (compute_tip_xy): Use them to position tooltips.
17229
172302008-03-14 Glenn Morris <rgm@gnu.org>
17231
17232 * emacs.c (main): Revert previous change.
17233 (standard_args): Revert -internal-script back to -scriptload,
17234 and remove the long-option form.
17235
172362008-03-13 Glenn Morris <rgm@gnu.org>
17237
17238 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17239 Remove option -enable-font-backend.
17240
172412008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17242
17243 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17244
172452008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17246
17247 * xterm.c (x_connection_closed): For GTK: If this is the last
17248 terminal just exit without closing the display.
17249
172502008-03-11 Jason Rumney <jasonr@gnu.org>
17251
17252 * w32font.c (w32font_full_name): Use floor to round.
17253
f0131492 172542008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17255
17256 * sound.c (alsa_configure): Declare vol at beginning of block.
17257
17258 * fontset.c (Ffontset_info): Remove extra semicolon.
17259
172602008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17261
17262 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17263 size of resulting string.
17264
172652008-03-10 Jason Rumney <jasonr@gnu.org>
17266
17267 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17268
172692008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17270
17271 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17272 Don't pretend as if characters with display property haven't been
17273 consumed for string-replacing-string case.
17274
172752008-03-08 Kim F. Storm <storm@cua.dk>
17276
17277 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17278 (get_next_display_element, next_element_from_string)
17279 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17280
172812008-03-08 Andreas Schwab <schwab@suse.de>
17282
17283 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17284
172852008-03-06 Jason Rumney <jasonr@gnu.org>
17286
17287 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17288 when charset not specified. Only translate ANSI to unicode when
17289 font_type is truetype.
17290 (w32font_coverage_ok): New function.
17291 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17292
172932008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17294
17295 * lread.c (Fread_char): Resolve modifiers.
17296 (Fread_char_exclusive): Likewise.
17297
17298 * character.c (char_resolve_modifier_mask): New function.
17299 (char_string): Use char_resolve_modifier_mask.
17300 (Fchar_resolve_modifiers): New function.
17301 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17302 function.
17303
173042008-03-04 Jason Rumney <jasonr@gnu.org>
17305
17306 * makefile.w32-in: Always include w32font.c in the build.
17307 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17308
173092008-03-04 Andreas Schwab <schwab@suse.de>
17310
17311 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17312 (versionclean): Likewise.
17313
173142008-03-04 Juanma Barranquero <lekktu@gmail.com>
17315
17316 * .cvsignore: Add oo.
17317
173182008-03-03 Andreas Schwab <schwab@suse.de>
17319
17320 * coding.c (decode_coding_object): Inhibit gap shrinking while
17321 decoding in place.
17322
173232008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17324
17325 * w32term.c: Remove unused include "gnu.h".
17326 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17327
17328 * gnu.h: Rename to ...
17329 * emacs-icon.h: ... this.
17330 * xterm.c: Use emacs-icon.h instead of gnu.h.
17331 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17332
173332008-03-03 Juanma Barranquero <lekktu@gmail.com>
17334
17335 * w32font.c: Include math.h.
17336
173372008-03-03 Jason Rumney <jasonr@gnu.org>
17338
17339 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17340 Compute options separately.
17341 (w32font_open_internal): Set glyph_idx before caching metrics.
17342
17343 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17344 Define if system headers don't.
17345 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17346 (w32font_encode_char): Don't declare here.
17347
17348 * w32font.c (Quniscribe, QCformat): New symbols.
17349 (syms_of_w32font): Define them.
17350 (w32font_has_char): Indicate uncertainty.
17351 (w32font_encode_char): Encode as glyph point. Make static.
17352 (recompute_cached_metrics): New function.
17353 (w32font_open_internal): Use it. Set font to use glyph points
17354 initially. Set format based on type of font.
17355 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17356 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17357 on it. Set format based on information available here.
17358 (add_font_entity_to_list): Identify backend based on opentype_only.
17359
173602008-03-02 Andreas Schwab <schwab@suse.de>
17361
17362 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17363
17364 * coding.c (decode_coding_big5, produce_chars):
17365 Fix typos in last change.
17366
173672008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17368
17369 * gnu.h: New icon.
17370
173712008-03-02 Kenichi Handa <handa@m17n.org>
17372
17373 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17374 `dos', don't decode '\r' if that is the last in the source.
17375 (decode_coding_utf_16, decode_coding_emacs_mule)
17376 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17377 (decode_coding_raw_text, decode_coding_charset): Likewise.
17378 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17379
173802008-03-01 Jason Rumney <jasonr@gnu.org>
17381
17382 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17383
173842008-03-01 Kim F. Storm <storm@cua.dk>
17385
17386 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17387
173882008-03-01 Jason Rumney <jasonr@gnu.org>
17389
17390 * w32font.c (w32font_full_name): New function.
17391 (w32font_open_internal): Use it.
17392
173932008-03-01 Kim F. Storm <storm@cua.dk>
17394
17395 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17396
173972008-03-01 Jason Rumney <jasonr@gnu.org>
17398
17399 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17400
174012008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17402
17403 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17404 xg_frame_resized when the event is for the edit widget.
17405
17406 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17407
17408 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17409 set_char_size.
17410 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17411 operations on widgets here. Just set frame size if needed.
17412 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17413 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17414 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17415 the whole frame.
17416 (xg_create_tool_bar): Move attachment of the tool bar to
17417 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17418 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17419
174202008-03-01 Jason Rumney <jasonr@gnu.org>
17421
17422 * w32fns.c (w32_msg_pump): Disable debug code.
17423
174242008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17425
17426 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17427
174282008-02-29 Chong Yidong <cyd@stupidchicken.com>
17429
17430 * xdisp.c (next_overlay_string): Don't set
17431 overlay_strings_at_end_processed_p if we're currently reading from
17432 a display string.
17433
174342008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17435
17436 * xdisp.c (get_overlay_strings_1): Fix typo.
17437
174382008-02-29 Chong Yidong <cyd@stupidchicken.com>
17439
17440 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17441
174422008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17443
17444 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17445
17446 * xdisp.c (display_mode_element): Cancel the previous change.
17447 (decode_mode_spec): Likewise.
17448 (handle_auto_composed_prop): Don't make composition if it->string
17449 is a string.
17450
174512008-02-27 Kim F. Storm <storm@cua.dk>
17452
17453 * lisp.h (GLYPH): Change type from int to struct with separate char
17454 and face_id members.
17455 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17456 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17457 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17458 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17459 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17460 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17461 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17462 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17463 handle new Lisp glyph code encoding, either an integer or a cons.
17464
17465 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17466 (GLYPH_ALIAS): Delete.
17467 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17468 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17469 (GLYPH_FROM_CHAR): Replace macro by ...
17470 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17471
17472 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17473 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17474 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17475 (GLYPH_INVALID_P): New macro.
17476 (spec_glyph_lookup_face): Update prototype.
17477
17478 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17479 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17480 new glyph code encoding.
17481 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17482 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17483
17484 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17485 Adapt to new glyph type and new glyph code encoding.
17486
17487 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17488
17489 * indent.c (current_column, current_column_1, Fmove_to_column)
17490 (compute_motion): Adapt to new glyph code encoding.
17491
17492 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17493
174942008-02-27 Chong Yidong <cyd@stupidchicken.com>
17495
17496 * process.c (wait_reading_process_output): Check for window
17497 changes caused by timers.
17498 Suggested by Johan Bockgård.
17499
175002008-02-27 Glenn Morris <rgm@gnu.org>
17501
17502 * emacs.c (USAGE1): Add `--disable-font-backend'.
17503
175042008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17505
17506 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17507 is made to the buffer.
17508
175092008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17510
17511 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17512 (face_at_string_position):
17513 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17514 (face_at_string_position):
17515 * xdisp.c (display_string, next_overlay_change):
17516 * buffer.h (overlays_at):
17517 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17518 Update callers.
17519
175202008-02-26 Chong Yidong <cyd@stupidchicken.com>
17521
17522 * editfns.c (Fformat): Doc fix.
17523
175242008-02-26 Juanma Barranquero <lekktu@gmail.com>
17525
17526 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17527 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17528 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17529
175302008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17531
17532 * buffer.c (Fbuffer_swap_text): New function.
17533 (syms_of_buffer): Defsubr it.
17534
175352008-02-25 Chong Yidong <cyd@stupidchicken.com>
17536
17537 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17538
175392008-02-25 Jason Rumney <jasonr@gnu.org>
17540
17541 * w32font.c (w32font_draw): Draw one character at a time when padding.
17542
175432008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17544
17545 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17546 Handle a nil arg. Use run_window_configuration_change_hook.
17547 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17548 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17549 Use run_window_configuration_change_hook.
17550
175512008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17552
17553 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17554 1-pixel width.
17555
175562008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17557
17558 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17559 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17560 if the glyph in the font is zero pixel with.
17561
17562 * dispextern.h (struct glyph_string): New member padding_p.
17563
17564 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17565
17566 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17567
17568 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17569
17570 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17571
17572 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17573
175742008-02-25 Jason Rumney <jasonr@gnu.org>
17575
17576 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17577
175782008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17579
17580 Allow fine-grained image-cache flushing.
17581 * dispextern.h (struct image): Add `dependencies' field.
17582 (clear_image_caches): Change arg to Lisp_Object.
17583 * image.c (make_image): Initialize `dependencies' field.
17584 (clear_image_cache): Change arg to allow fine-grained flushing.
17585 Perform the flush even if image-cache-eviction-delay is nil.
17586 (clear_image_caches): Change arg to Lisp_Object.
17587 (Fclear_image_cache): Expand meaning of the argument.
17588 (mark_image): Mark `dependencies' field.
17589 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17590 (lface_hash): Use XHASH rather than XFASTINT.
17591 (face_at_buffer_position): Fix int -> EMACS_INT position.
17592 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17593 (select_frame_for_redisplay): Remove code duplication.
17594 (redisplay_internal): Adapt arg to call to clear_image_caches.
17595
175962008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17597
17598 * s/vms4-0.h:
17599 * s/vms4-2.h:
17600 * s/vms4-4.h:
17601 * s/vms5-5.h: Remove, unused.
17602
17603 * s/irix5-2.h:
17604 * s/irix6-0.h:
17605 * s/riscos5.h:
17606 * s/mach-bsd4-3.h:
17607 * m/mips4.h: Remove files for obsolete systems.
17608
17609 * Makefile.in:
17610 * filelock.c:
17611 * unexmips.c:
17612 * m/hp9000s300.h:
17613 * m/iris4d.h:
17614 * s/aix3-1.h:
17615 * s/hpux.h:
17616 * s/msdos.h:
17617 * s/usg5-0.h:
17618 * s/usg5-2-2.h:
17619 * s/usg5-2.h:
17620 * s/usg5-3.h: Remove references to obsolete variables.
17621
17622 * s/irix5-0.h: Remove, move all the contents ...
17623 * s/irix6-5.h: ... here. Simplify.
17624 * config.in: Regenerate.
17625
176262008-02-24 Jason Rumney <jasonr@gnu.org>
17627
17628 * w32term.c (x_draw_glyph_string_background): Clear the background
17629 manually when cleartype is in use.
17630 (x_draw_glyph_string_foreground): Draw text transparently when
17631 cleartype is in use.
17632
17633 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17634 a font into it unless we have to.
17635
176362008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17637
17638 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17639 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17640
aac0c6e3
MR
176412008-02-18 Jason Rumney <jasonr@gnu.org>
17642
17643 * w32fns.c (Fw32_shell_execute): Encode parameters.
17644
176452008-02-09 Eli Zaretskii <eliz@gnu.org>
17646
17647 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17648
176492008-02-05 Juanma Barranquero <lekktu@gmail.com>
17650
17651 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17652
176532008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17654
17655 * xterm.c (x_set_offset): Don't change the gravity if
17656 CHANGE_GRAVITY is -1.
17657
176582008-02-23 Chong Yidong <cyd@stupidchicken.com>
17659
17660 * fileio.c (auto_save_error_occurred): New var.
17661 (auto_save_error): Set it.
17662 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17663 error occurred.
17664
176652008-02-23 Eli Zaretskii <eliz@gnu.org>
17666
17667 * w32.c (globals_of_w32): Add initializations for
17668 g_b_init_get_sid_sub_authority and
17669 g_b_init_get_sid_sub_authority_count.
17670
176712008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17672
17673 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17674 (font_parse_xlfd): Use them for sanity check.
17675 (Finternal_set_font_style_table): Make sure the table is bijective.
17676
17677 Consolidate the image_cache to the terminal struct.
17678 * termhooks.h (P_): Remove redundant def.
17679 (struct terminal): New field `image_cache'.
17680 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17681 of FRAME_X_IMAGE_CACHE.
17682 * xterm.h (struct x_display_info): Remove image_cache field.
17683 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17684 * w32term.h (struct w32_display_info): Remove image_cache field.
17685 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17686 * macterm.h (struct mac_display_info): Remove image_cache field.
17687 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17688 * xterm.c (x_term_init):
17689 * w32term.c (w32_term_init):
17690 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17691 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17692 Remove declarations.
17693 (clear_image_caches, mark_image_cache): New declarations.
17694 * xfaces.c (clear_face_cache):
17695 * xdisp.c (redisplay_internal): Use clear_image_caches.
17696 * image.c (clear_image_cache): Don't check that a frame is on
17697 a window-system before checking if it shares the same cache.
17698 (clear_image_caches): New function.
17699 (Fclear_image_cache): Use it.
17700 (mark_image): Move from allo.c.
17701 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17702 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17703 (mark_object): Don't call mark_image_cache for frames.
17704 (mark_terminals): Call mark_image_cache.
17705
17706 * lisp.h (Fdelete_terminal): Declare.
17707
17708 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17709 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17710 wrong_type_argument.
17711
177122008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17713
17714 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17715 malayalam.el, and tamil.el. Add sinhala.el.
17716
177172008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17718
17719 * xterm.c (x_connection_closed): Consolidate identical tests.
17720 (x_delete_terminal): Don't crash if called via x_connection_closed.
17721
177222008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17723
17724 * xdisp.c (decode_mode_spec): New arg string.
17725 (display_mode_element): Adjust for the above change.
17726
177272008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17728
17729 * callint.c (Fcall_interactively): Use AREF.
17730
177312008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17732
17733 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17734
177352008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17736
17737 * xfns.c (Fx_show_tip): Set string to " " if empty.
17738
177392008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17740
17741 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17742 with Qt.
17743
177442008-02-17 Kenichi Handa <handa@m17n.org>
17745
17746 * ftfont.c (ftfont_shape): Return Lispy number.
17747
17748 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17749 for GCs.
17750 (Finternal_set_font_selection_order): Call font_update_sort_order
17751 only when enable_font_backend is set.
17752 (realize_x_face): Set face->font_info to that of default face only
17753 when enable_font_backend is set.
17754
17755 * xdisp.c (handle_composition_prop): Set it->c to the fist
17756 character of the composed region.
17757 (fill_composite_glyph_string): Set base_face->font_info to
17758 s->font_info. Get a face for ascii from base_face->ascii_face.
17759 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17760 with a face already decided.
17761 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17762 non-negative.
17763 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17764 call font_prepare_composition unconditionally.
17765
17766 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17767
17768 * xterm.h (struct x_display_info): New member font.
17769
17770 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17771 (x_set_mouse_face_gc, x_new_font): Likewise.
17772 (x_term_init): Setup display_info->font.
17773 (x_delete_terminal): Free display_info->font.
17774
17775 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17776
17777 * ftxfont.c (ftxfont_default_fid): Delete it.
17778 (ftxfont_open): Set xfont->fid to 0.
17779 (ftxfont_end_for_frame): Clear data specific to the frame and the
17780 font-driver.
17781
17782 * xftfont.c (xftfont_default_fid): Delete it.
17783 (xftfont_open): Set xfont->fid to 0.
17784
17785 * fontset.c (FONTSET_OBJLIST): New macro.
17786 (fontset_find_font): Update font-object list of the fontset.
17787 (free_realized_fontset): New function.
17788 (free_face_fontset): Call free_realized_fontset.
17789 (Ffont_info): Call font_close_object only when enable_font_backend
17790 is set.
17791
17792 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17793 [HAVE_NTGUI]: Include w32term.h.
17794 [MAC_OS]: Include macterm.ch.
17795 (font_otf_ValueRecord): Use make_number.
17796 (font_finish_cache): Fix handling of reference count.
17797 (font_clear_cache): Update num_fonts.
17798 (font_open_entity): Update smallest_char_width and
17799 smallest_font_height of the frame.
17800 (font_close_object): Update num_fonts.
17801 (Fclear_font_cache): Fix finding the target cache data.
17802
178032008-02-16 Glenn Morris <rgm@gnu.org>
17804
17805 * fontset.c (Finternal_char_font): Fix compilation warning.
17806
178072008-02-16 Eli Zaretskii <eliz@gnu.org>
17808
17809 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17810 instead of char arrays. Enlarge the size of array passed to
17811 get_token_information.
17812
17813 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17814 warnings.
17815
178162008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17817
17818 * .gdbinit: Don't set `args', it breaks gdb --args.
17819
178202008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17821
17822 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17823 within a narrowed buffer.
17824
178252008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17826
17827 * coding.c (decode_coding_object, encode_coding_object):
17828 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17829
178302008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17831
17832 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17833 hardcoding 1.
17834 (detect_coding_system):
17835 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17836 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17837 * insdel.c (insert_from_gap):
17838 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17839 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17840 (string_to_multibyte):
17841 * character.c (chars_in_text, multibyte_chars_in_text):
17842 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17843
17844 * character.h (FETCH_STRING_CHAR_ADVANCE)
17845 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17846 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17847 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17848
17849 * casefiddle.c (casify_region): Only call after-change and composition
17850 functions on the part of the region that was changed.
17851
17852 * keyboard.c (read_avail_input):
17853 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17854
178552008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17856
17857 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17858 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17859
178602008-02-11 Juanma Barranquero <lekktu@gmail.com>
17861
17862 * w32menu.c (push_submenu_start, push_submenu_end)
17863 (push_left_right_boundary, push_menu_pane, push_menu_item):
17864 * keyboard.c (read_key_sequence): Don't pass args with side effects
17865 to AREF, it fails when compiling with -DENABLE_CHECKING.
17866
178672008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17868
17869 * Makefile.in (${lispsource}international/charprop.el):
17870 Delete this target.
17871
17872 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17873 emacs-unicode-2.
17874
178752008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17876
17877 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17878
178792008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17880
17881 * frame.c (Qnoelisp): New symbol.
17882 (syms_of_frame): Initialize it.
17883 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17884 harmless Elisp code, from a strong `force' from x_connection_closed.
17885 * frame.h (Qnoelisp): Declare.
17886 * xterm.c (x_connection_closed): Pass `noelisp'.
17887
17888 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17889 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17890 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17891 rather than `int' for the type of `type'.
17892
178932008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17894
17895 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17896
17897 * Makefile.in (GNUC): Remove support for gcc-1.x.
17898
178992008-02-10 Richard Stallman <rms@gnu.org>
17900
17901 * lisp.h (ASET): Use AREF, not ASLOT.
17902
179032008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17904
17905 * lisp.h (ASET): Check bounds.
17906
179072008-02-10 Glenn Morris <rgm@gnu.org>
17908
17909 * buffer.c (mode-name): Doc fix.
17910
179112008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17912
17913 * Makefile.in:
17914 * emacs.c:
17915 * gmalloc.c:
17916 * keyboard.c:
17917 * lisp.h:
17918 * m/ibm370aix.h:
17919 * process.c:
17920 * regex.c:
17921 * s/hpux.h:
17922 * sysdep.c:
17923 * sysselect.h:
17924 * systty.h:
17925 * unexec.c:
17926 * w32term.c:
17927 * xsmfns.c:
17928 * xterm.c: Remove code that deals with obsolete variables.
17929
17930 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17931
17932 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17933 nothing else needs it anymore.
17934
179352008-02-09 Eli Zaretskii <eliz@gnu.org>
17936
17937 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17938 instead of unibyte_char_to_multibyte.
17939
179402008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17941
17942 * s/gnu-linux.h: Remove commented out code.
17943
17944 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17945
17946 * Makefile.in: Update what RMS says about using autoconf.
17947 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17948 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17949 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17950 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17951
179522008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17953
17954 * keymap.c (Fkey_description): Move side effect outside of macro call.
17955
17956 * xfaces.c (Finternal_make_lisp_face):
17957 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17958
17959 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17960 (syms_of_fontset): Use ASET.
17961
17962 * fns.c (concat): Move side effect outside of macro call.
17963 (hash_clear): Use ASET.
17964
179652008-02-08 Richard Stallman <rms@gnu.org>
17966
17967 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17968 If FORCE, and frame has a surrogate minibuffer for another frame,
17969 delete the other frame first.
17970
179712008-02-07 Timo Savola <timo.savola@iki.fi>
17972
17973 * xterm.c (x_detect_focus_change): Handle embed client message.
17974 (handle_one_xevent): Ditto.
17975 (handle_one_xevent): If embedded and we get a button press/release,
17976 request focus.
17977 (xembed_set_info, xembed_send_message): New functions.
17978 (x_make_frame_visible): Call xembed_set_info if embedded.
17979 (x_make_frame_invisible): Call xembed_set_info if embedded.
17980 (x_term_init): Initialize Xatom_XEMBED.
17981 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17982 (x_iconify_frame): Ditto.
17983
17984 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17985 (enum xembed_info, enum xembed_message, enum xembed_focus)
17986 (enum xembed_modifier, enum xembed_accelerator): New.
17987 (xembed_set_info, xembed_send_message): Declare.
17988 (FRAME_X_EMBEDDED_P): New.
17989
17990 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17991 gtk_plug_new.
17992
17993 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17994 window ID of a frame.
17995 (x_window): Reparent frame if embedded.
17996 (Fx_create_frame): Don't set border width if embedded.
17997
17998 * emacs.c (USAGE3): Add --parent-id.
17999 (standard_args): Ditto.
18000
180012008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18002
18003 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18004
180052008-02-07 Jim Meyering <meyering@redhat.com>
18006
18007 Use "do...while (0)", not "if (1)...else" in macro definitions.
18008 The latter provokes a warning from gcc about the empty else, when
18009 followed by ";". Also, without that trailing semicolon, it would
18010 silently swallow up any following statement.
18011 * syntax.h (SETUP_SYNTAX_TABLE)
18012 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18013 * buffer.h (DECODE_POSITION): Likewise.
18014 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18015 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18016 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18017 (FETCH_CHAR_ADVANCE): Likewise.
18018 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18019
180202008-02-07 Jim Meyering <meyering@redhat.com>
18021
18022 * lread.c [lint]: Don't include <sys/inode.h>.
18023
180242008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18025
18026 * xselect.c (x_handle_dnd_message):
18027 * xmenu.c (digest_single_submenu, xmenu_show):
18028 * xdisp.c (with_echo_area_buffer_unwind_data)
18029 (format_mode_line_unwind_data, unwind_format_mode_line)
18030 (display_menu_bar):
18031 * eval.c (Ffetch_bytecode):
18032 * doc.c (store_function_docstring):
18033 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18034 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18035 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18036
180372008-02-07 Kenichi Handa <handa@m17n.org>
18038
18039 * ftxfont.c (ftxfont_open): Don't set
18040 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18041
18042 * ftfont.c (ftfont_open): Fix previous change.
18043
180442008-02-06 Jason Rumney <jasonr@gnu.org>
18045
18046 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18047 Use cached metrics for ASCII characters.
18048 (w32font_open_internal): Don't set font's owning_frame.
18049 Cache metrics for ASCII characters.
18050
18051 * w32font.h (struct w32font_info): Add ascii_metrics.
18052 Remove owning_frame.
18053
180542008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18055
18056 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18057 to negative value.
18058
18059 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18060
18061 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18062
18063 * charset.c (syms_of_charset): Set QCtest and Qeq.
18064
180652008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18066
18067 * process.c (Fstart_process):
18068 * callproc.c (Fcall_process): Handle the case where
18069 Funhandled_file_name_directory returns nil.
18070
18071 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18072 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18073 * font.c (check_gstring): Use them and AREF to access the vector before
18074 we know it's really a gstring.
18075 (Ffont_shape_text): Fix typo.
46e722a9 18076 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18077
18078 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18079 Declare.
18080
18081 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18082
180832008-02-05 Jason Rumney <jasonr@gnu.org>
18084
18085 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18086 Set smallest_font_height and smallest_char_width in display info.
18087
180882008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18089
18090 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18091
180922008-02-05 Miles Bader <miles@gnu.org>
18093
18094 * xfaces.c (get_lface_attributes, merge_named_face)
18095 (lookup_named_face, lookup_derived_face, realize_named_face):
18096 Revert 2008-02-01 change by cyd@stupidchicken.com.
18097
180982008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18099
18100 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18101 fallback fonts.
18102 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18103
181042008-02-04 Jason Rumney <jasonr@gnu.org>
18105
18106 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18107 set full_name.
18108 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18109
181102008-02-03 Jason Rumney <jasonr@gnu.org>
18111
18112 * makefile.w32-in (OBJ1): Include font.o here.
18113 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18114
181152008-02-02 Jason Rumney <jasonr@gnu.org>
18116
18117 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18118
181192008-02-01 Jason Rumney <jasonr@gnu.org>
18120
18121 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18122
18123 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18124
181252008-02-01 Andreas Schwab <schwab@suse.de>
18126
18127 * Makefile.in (shortlisp, lisp): Update for rename of
18128 ../lisp/language/myanmar.el.
18129
181302008-02-01 Chong Yidong <cyd@stupidchicken.com>
18131
18132 * xfaces.c (get_lface_attributes): Delete function.
18133 (merge_named_face, lookup_named_face, lookup_derived_face)
18134 (realize_named_face): Call lface_from_face_name directly, and use
18135 the fact that merge_face_vectors does not alter its FROM argument.
18136
181372008-02-01 Jason Rumney <jasonr@gnu.org>
18138
18139 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18140 input in the default locale. Handle non-Unicode multibyte input.
18141
181422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18143
18144 * fontset.c (reorder_font_vector): Exclude nil elements from the
18145 font group. Don't try multiple fonts.
18146 (fontset_font): Adjust for the above change.
18147 (Finternal_char_font): Return nil if the found font doesn't
18148 contain the character ch.
18149
18150 * Makefile.in (lisp, shortlisp): Add cham.el.
18151
181522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18153
18154 * font.h (FONTP): Make it return 1 also for a font-object.
18155
18156 * .gdbinit (xfontset): New function.
18157
18158 * font.c (font_find_for_lface): Check if the character C is
18159 supported or not only for the first font.
18160
18161 * fontset.c (reorder_font_vector): Fix typo.
18162 (fontset_find_font): Don't add a font-spec specifying a script.
18163 Use 0 (not Qt) for the indication of empty font-group. Change the
18164 format of RFONT-DEF. Return Qt if no font in the font-group
18165 support the character.
18166 (fontset_font): Adjust for the above change. If no font was
18167 found the character, remember that.
18168 (face_for_char): Adjust for the change of RFONT-DEF.
18169 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18170 no font for the target.
18171 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18172
181732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18174
18175 * font.c (font_load_for_face): Handle the case that the font in
18176 face->lface is a string.
18177
181782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18179
18180 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18181
181822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18183
18184 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18185 Fix previous change. If the frame is not on a window system,
18186 signal an error.
18187
181882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18189
18190 * coding.c (decode_coding_object, encode_coding_object): Adjust
18191 marker positions after conversion.
18192
18193 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18194
181952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18196
18197 * font.c (font_find_for_lface): Fix the handling of the return
18198 value of font_has_char.
18199 (Ffont_shape_text): Fix previous change.
18200
18201 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18202 (fontset_ref_and_range): Delete it.
18203 (fontset_find_font): Call char_table_ref_and_range instead of
18204 FONTSET_REF_AND_RANGE.
18205 (make_fontset): Don't setup font groups of Latin here.
18206 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18207 (new_fontset_from_font): Make the specified font the default for
18208 all Latin characters.
18209
182102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18211
18212 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18213 is on a window system before accessing the fontset of the frame.
18214
182152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18216
18217 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18218
18219 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18220 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18221
18222 * font.c (Ffont_shape_text): If the font driver doesn't have a
18223 shaper function, make zero-width glyphs to have at least one-pixel
18224 width. Fix setting of `to' field of glyphs.
18225
182262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18227
18228 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18229 glyphs.
18230
18231 * font.h (struct font_driver): Improve docstring of member `shape'.
18232
182332008-02-01 Kenichi Handa <handa@m17n.org>
18234
18235 * composite.c (syms_of_composite): Fix docstring of
18236 auto-composition-function.
18237
18238 * font.h (LGLYPH_SIZE): New macro.
18239
18240 * font.c (Ffont_fill_gstring): Stop filling when a character not
18241 supported by the font is found.
18242 (Ffont_shape_text): When a shape callback function returns nil,
18243 try at most two more times with larger gstring.
18244 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18245
18246 * xdisp.c (handle_auto_composed_prop): Change the argument to
18247 auto-composition-function.
18248
18249 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18250 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18251 Lispy glyph and store it in the lgstring.
18252
18253 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18254
18255 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18256
182572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18258
18259 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18260
18261 * fontset.c (Vfont_encoding_charset_alist): New variable.
18262 (syms_of_fontset): DEFVAR it.
18263 (reorder_font_vector, fontset_find_font): Optimize for the case of
18264 no need of reordering.
18265 (face_for_char): Map the charset property by
18266 Vfont_encoding_charset_alist.
18267
182682008-02-01 Jason Rumney <jasonr@gnu.org>
18269
18270 * w32font.c (logfonts_match): Don't check adstyle here.
18271 (font_matches_spec): Check here against physical font instead.
18272 (add_font_entity_to_list): Avoid some substitutions.
18273
18274 * font.c (font_parse_fcname): Default weight and slant to normal.
18275 (font_score): Prefer normal fonts if weight or slant unspecified.
18276 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18277 match freetype scores.
18278
182792008-02-01 Jason Rumney <jasonr@gnu.org>
18280
18281 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18282 font, as it may have been deleted.
18283 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18284 most common hyphenless variation.
18285 (logfonts_match): Check generic family.
18286 (font_matches_spec): Don't check generic family here.
18287 (fill_in_logfont): Set generic family based on adstyle.
18288
18289 * w32font.h (w32font_get_cache): Update declaration.
18290
182912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18292
18293 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18294
18295 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18296 If none of the new drivers are available, call font_update_drivers
18297 with the old drivers.
18298
18299 * w32font.c (w32font_get_cache): Adjust the argument type.
18300
18301 * xfont.c (xfont_get_cache): Adjust the argument type.
18302
18303 * font.h (struct font_driver): Change argument type of get_cache.
18304
18305 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18306
18307 * font.c (Ffont_get): Fix arguments to Fassoc.
18308 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18309 (font_clear_cache): New function.
18310 (font_list_entities, font_matching_entity): Use font_get_cache.
18311 (font_update_drivers): Call font_clear_cache when finishing a driver.
18312
18313 * fontset.c (fontset_find_font): Fix previous change.
18314
183152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18316
18317 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18318 dpyinfo->font_table.
18319 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18320 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18321
18322 * font.c (font_at): Handle the case that the arg C is negative.
18323 Handle the unibyte case.
18324 (Ffont_at): Call font_at with the arg C -1.
18325
18326 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18327 the position here, and call font_at with the arg C -1.
18328 Don't check the range of the existing composition at the point.
18329
183302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18331
18332 * fontset.c (fontset_add): New args charset_id and family.
18333 Change caller.
18334 (load_font_get_repertory, fontset_find_font): Assume that
18335 font_spec is always a font-spec object.
18336 (Fset_fontset_font): Always store a font-spec object in a fontset.
18337
18338 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18339 instead of get_property_and_range.
18340
183412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18342
18343 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18344 (xftfont_open): Don't keep locking face.
18345 (xftfont_close): Don't unlock face.
18346 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18347
18348 * fontset.c (fontset_find_font): Don't prefer a font of
18349 supplementary charset.
18350
183512008-02-01 Kenichi Handa <handa@m17n.org>
18352
18353 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18354 script, langsys_tag to langsys, new member script.
18355 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18356 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18357 listing to the script specified in that property. Fix arg to
18358 OTF_check_features.
18359
183602008-02-01 Jason Rumney <jasonr@gnu.org>
18361
18362 * w32font.h: New file.
18363
18364 * w32font.c: Include it.
18365 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18366 (w32font_open): Set owning_frame.
18367 (w32font_text_extents): Use owning_frame.
18368 (struct font_callback_data): Add opentype_only field.
18369 (add_font_entity_to_list): Use it to filter fonts.
18370 Don't check against full name.
18371 (w32font_list_internal): New function.
18372 (w32font_list): Use it.
18373 (w32font_match_internal): New function.
18374 (w32font_match): Use it.
18375 (w32font_open_internal): New function.
18376 (w32font_open): Use it.
18377 (w32font_get_cache, w32font_close, w32font_has_char)
18378 (w32font_encode_char, w32font_text_extents, w32font_draw):
18379 Make non-static.
18380
18381 * makefile.w32-in (w32font.o): Depend on w32font.h.
18382
183832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18384
18385 * charset.c (Fdefine_charset_internal): Record a supplementary
18386 charset at the tail of Vcharset_order_list.
18387
18388 * font.c (Ffont_shape_text): Fix the return value.
18389
18390 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18391
18392 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18393
183942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18395
18396 * ftfont.c (struct OpenTypeSpec): New struct.
18397 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18398 (ftfont_get_open_type_spec): New function.
18399 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18400
18401 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18402
184032008-02-01 Jason Rumney <jasonr@gnu.org>
18404
18405 * w32font.c (add_font_entity_to_list): Compare only the beginning
18406 of full name.
18407
184082008-02-01 Kenichi Handa <handa@m17n.org>
18409
18410 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18411 Never return HANDLED_RECOMPUTE_PROPS.
18412
184132008-02-01 Kenichi Handa <handa@m17n.org>
18414
18415 * font.c (font_gstring_produce): Delete it.
18416
18417 * composite.h (COMPOSITION_METHOD):
18418 Handle COMPOSITION_WITH_GLYPH_STRING.
18419
184202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18421
18422 * xfont.c (Qx): Delete.
18423 (syms_of_xfont): Don't initialize Qx.
18424
18425 * composite.h (enum composition_method):
18426 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18427
184282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18429
18430 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18431 (choose_face_font): Accept new form of font-spec.
18432
18433 * frame.h (font_driver_list): Declare it unconditionally.
18434 (struct frame): Define members font_driver_list and font_data_list
18435 unconditionally.
18436
18437 * fontset.c: Include "font.h" unconditionally.
18438 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18439 (Fset_fontset_font): Accept a font-spec object.
18440
18441 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18442 PIXEL_SIZE part a wild card.
18443
18444 * dispextern.h (struct glyph_string): Define members clip and
18445 num_clips unconditionally.
18446 (struct face): Define members font_info and extra unconditionally.
18447
18448 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18449 ftfont_info only when HAVE_LIBOTF is defined.
18450
184512008-02-01 Andreas Schwab <schwab@suse.de>
18452
18453 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18454 and end.
18455
184562008-02-01 Jason Rumney <jasonr@gnu.org>
18457
18458 * w32font.c (w32font_driver): Add new fields.
18459
184602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18461
18462 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18463 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18464 (LIBES): Add @M17N_FLT_CFLAGS@.
18465
18466 * composite.c (compose_text): Don't treat the new style
18467 composition specially.
18468
18469 * emacs.c (main): Call syms_of_font unconditionally.
18470
18471 * font.h (FONT_ENTITY_NOT_LOADABLE)
18472 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18473 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18474 (struct font_driver): New member shape.
18475 (font_registry_charsets): Extern it.
18476 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18477 (font_otf_capability, font_drive_otf): Delete their externs.
18478
18479 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18480 (font_charset_alist, font_registry_charsets): Move from xfont.c
18481 and rename.
18482 (font_prop_validate_otf): New function.
18483 (font_property_table): Register it for QCotf.
18484 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18485 (font_drive_otf): Delete.
18486 (font_prepare_composition): New arg F. Adjust for the change of
18487 lispy gstring.
18488 (font_find_for_lface): New arg C.
18489 (font_load_for_face): Adjust for the change of font_find_for_lface.
18490 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18491 lispy gstring.
18492 (Ffont_shape_text): New function.
18493 (Fopen_font): If the font size is not given, use 12-pixel.
18494 (Ffont_at): New arg STRING.
18495 (syms_of_font): Initalize font_charset_alist.
18496 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18497 conditionally.
18498
18499 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18500 fonts of the same font-spec. Change the format of RFONT-DEF.
18501 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18502 Adjust for the change of RFONT-DEF.
18503 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18504
18505 * ftfont.h: New file.
18506
18507 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18508 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18509 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18510 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18511 font_otf_capability and font_drive_otf, set ftfont_shape.
18512 (ftfont_list): Adjust for the change of :otf property value.
18513 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18514 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18515 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18516 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18517 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18518 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18519
18520 * w32term.c (x_draw_composite_glyph_string_foreground):
18521 Adjust for the change of lispy gstring.
18522
18523 * xdisp.c (handle_composition_prop): Adjust for the change of
18524 lispy gstring. Call a function for auto-composition with the
18525 third arg it->window.
18526 (fill_composite_glyph_string): Adjust for the change of lispy string.
18527 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18528
18529 * xfaces.c (set_font_frame_param): Adjust for the change of
18530 font_find_for_lface.
18531
18532 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18533 (xfont_registry_charsets): Likewise. Change caller.
18534 (syms_of_xfont): Don't handle x_font_charset_alist.
18535
18536 * xftfont.c: Include "ftfont.h".
18537 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18538 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18539 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18540 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18541 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18542 Set xftfont_driver.shape to xftfont_shape.
18543
18544 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18545 the change of lispy gstring.
18546
185472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18548
18549 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18550
185512008-02-01 Jason Rumney <jasonr@gnu.org>
18552
18553 * w32font.c (w32font_draw): Fill background manually.
18554
185552008-02-01 Jason Rumney <jasonr@gnu.org>
18556
18557 * font.c (Qfontp): Remove unused symbol.
18558 (QCantialias): New symbol.
18559 (syms_of_font): Define it.
18560 (font_property_table): Set a validator for QCantialias.
18561
18562 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18563 Define if not already.
18564 (QCfamily): Share with xfaces.c.
18565 (Qstandard, Qsubpixel, Qnatural): New symbols.
18566 (syms_of_w32font): Define them. Don't define QCfamily here.
18567 (w32_antialias_type, lispy_antialias_type): New functions.
18568 (w32_enumfont_pattern_entity): New arg requested_font.
18569 Set antialias parameter if non-default was requested.
18570 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18571
185722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18573
18574 * lread.c (read1): Undo the previous change.
18575
185762008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18577
18578 * frame.c (Fdelete_frame): Call font_update_drivers only when
18579 USE_FONT_BACKEND is defined.
18580
185812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18582
18583 * font.h (struct font_bitmap): New member bits_per_pixel.
18584 (struct font_driver): New members start_for_frame and end_for_frame.
18585 (struct font_data_list): New struct.
18586 (font_put_frame_data, font_get_frame_data): Extern them.
18587
18588 * frame.h (struct frame): New member font_data_list.
18589
18590 * font.c (font_update_drivers): Call driver->start_for_frame and
18591 driver->end_for_frame at proper timings.
18592 (font_put_frame_data, font_get_frame_data): New functions.
18593 (Ffont_spec): Add usage in the docstring.
18594
18595 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18596 (Fdelete_frame): Call font_update_drivers.
18597
18598 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18599 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18600 (xftfont_get_xft_draw): New function.
18601 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18602 (xftfont_end_for_frame): New function.
18603 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18604
18605 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18606 Change argument. Cache GCs in the per-frame data.
18607 (struct ftxfont_frame_data): New struct.
18608 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18609 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18610 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18611 (ftxfont_end_for_frame): New function.
18612 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18613
18614 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18615
186162008-02-01 Kenichi Handa <handa@m17n.org>
18617
18618 * xselect.c (Vselection_coding_system)
18619 (Vnext_selection_coding_system): Delete them.
18620 (syms_of_xselect): Don't declare selection-coding-system and
18621 next-selection-coding-system. They are declared in select.el.
18622
186232008-02-01 Jason Rumney <jasonr@gnu.org>
18624
18625 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18626
18627 * w32fns.c: Include imm.h.
18628 (get_composition_string_fn, get_ime_context_fn): New optional
18629 system functions.
18630 (globals_of_w32fns): Load them from imm32.dll.
18631 (ignore_ime_char): New flag.
18632 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18633 WM_IME_ENDCOMPOSITION messages.
18634
18635 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18636 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18637
186382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18639
18640 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18641 (READCHAR_REPORT_MULTIBYTE): New macro.
18642 (readchar): New 2nd arg MULTIBYTE.
18643 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18644 Make symbol's name multibyte according to the multibyteness of the
18645 source.
18646
186472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18648
18649 * xfaces.c (face_for_overlay_string): Call lookup_face with
18650 correct arguments (fix of synching with the trunk).
18651
186522008-02-01 Kenichi Handa <handa@m17n.org>
18653
18654 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18655 (font_prop_validate_non_neg, font_prop_validate_spacing):
18656 Delete argument prop_index.
18657 (font_property_table): Change arguments to validater. Change Callers.
18658 (font_lispy_object): Delete.
18659 (font_at): Use font_find_object instead fo font_lispy_object.
18660
186612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18662
18663 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18664 and file names.
18665
186662008-02-01 Jason Rumney <jasonr@gnu.org>
18667
18668 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18669 (font_matches_spec): Remove debug output.
18670 (add_font_entity_to_list): Avoid using substituted fonts.
18671
186722008-02-01 Jason Rumney <jasonr@gnu.org>
18673
18674 * doc.c (Fsnarf_documentation):
18675 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18676
186772008-02-01 Miles Bader <miles@gnu.org>
18678
18679 * dispextern.h (struct glyph_row): Only define "clip" field if
18680 HAVE_WINDOW_SYSTEM is defined.
18681
186822008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18683
18684 Fix up multi-tty merge.
18685
18686 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18687 and indentation.
18688
18689 * xfaces.c (free_realized_face, clear_face_gcs):
18690 Include font_done_for_face in the input_blocked section, just in case.
18691
18692 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18693 (get_char_face_and_encoding): Undo last change and remove the *other*
18694 duplicate definition (i.e. keep the one that's better scoped and that
18695 includes code for the font-backend).
18696
18697 * terminal.c (create_terminal): Default keyboard_coding to
18698 `no-conversion' and terminal_coding to `undecided'.
18699
18700 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18701
18702 * fontset.c (free_realized_fontsets): Check that the table entry does
18703 contain a fontset before trying to compare it to `base'.
18704
18705 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18706 syms_of_charset, and syms_of_coding earlier because init_window_once
18707 now needs Vcoding_system_hash_table to be setup.
18708
18709 * coding.h (default_buffer_file_coding): Remove.
18710
18711 * coding.c (default_buffer_file_coding): Remove.
18712 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18713 than ->symbol, and use the terminal-local coding system.
18714 (syms_of_coding): Don't setup the coding-systems that are not
18715 terminal-local.
18716 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18717
18718 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18719 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18720
18721 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18722 in chartab.c and were re-added here by mistake.
18723 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18724
18725 * doc.c (Fsnarf_documentation):
18726 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18727 src to etc.
18728
18729 * ChangeLog.10: Add mistakenly removed entry.
18730
187312008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18732
18733 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18734
187352008-02-01 Miles Bader <miles@gnu.org>
18736
18737 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18738 Add extra args to FACE_FOR_CHAR.
18739
187402008-02-01 Kenichi Handa <handa@m17n.org>
18741
18742 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18743 in sequence.
18744
18745 * chartab.c (map_sub_char_table, map_char_table): If the range
18746 contains just one character, call the function with that character
18747 even if the depth is not 3.
18748
187492008-02-01 Jason Rumney <jasonr@gnu.org>
18750
18751 * w32font.c (w32font_text_extents): Calculate metrics for the
18752 whole string.
18753
187542008-02-01 Jason Rumney <jasonr@gnu.org>
18755
18756 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18757
187582008-02-01 Jason Rumney <jasonr@gnu.org>
18759
18760 * w32term.c (x_set_glyph_string_clipping): Use
18761 get_glyph_string_clip_rects.
18762 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18763 Adjust for the change of struct glyph_string.
18764
18765 * w32font.c (w32font_draw): Do clipping here.
18766
187672008-02-01 Kenichi Handa <handa@m17n.org>
18768
18769 * xftfont.c (xftfont_draw): Adjust for the change of struct
18770 glyph_string.
18771
18772 * xterm.c (x_set_glyph_string_clipping): Use
18773 get_glyph_string_clip_rects.
18774 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18775 Adjust for the change of struct glyph_string.
18776
18777 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18778 the resulting clip(s}.
18779 (expose_overlaps): Add arg r. Change callers. Set it to
18780 row->clip temporarily.
18781 (expose_window): Redraw rows overlapping the exposed area.
18782
18783 * dispextern.h (struct glyph_row): New member clip.
18784 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18785 clip_height, new member clip, and num_clips.
18786
187872008-02-01 Kenichi Handa <handa@m17n.org>
18788
18789 * data.c (Fchar_or_string_p): Fix docstring.
18790
187912008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18794 create a temporary XftDraw object.
18795
187962008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * font.c (Ffontp): Fix docstring.
18799
18800 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18801 strong evidence of ISO-2022.
18802
188032008-02-01 Kenichi Handa <handa@m17n.org>
18804
18805 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18806 SYNTAX_ENTRY_FOLLOW_PARENT.
18807
188082008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18809
18810 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18811 its type.
18812 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18813 Update to the new type of weak_hash_tables and next_weak.
18814
18815 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18816 a plain C pointer to Lisp_Hash_Table.
18817
18818 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18819 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18820 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18821 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18822 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18823 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18824 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18825 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18826 (GC_EQ): Remove since they've been identical to their non-GC_
18827 alter-egos ever since the markbit was eradicated.
18828
18829 * alloc.c:
18830 * buffer.c:
18831 * buffer.h:
18832 * data.c:
18833 * fileio.c:
18834 * filelock.c:
18835 * fns.c:
18836 * frame.h:
18837 * lisp.h:
18838 * macterm.c:
18839 * print.c:
18840 * process.c:
18841 * w32fns.c:
18842 * w32menu.c:
18843 * w32term.c:
18844 * xfns.c:
18845 * xmenu.c:
18846 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18847
188482008-02-01 Kenichi Handa <handa@m17n.org>
18849
18850 * chartab.c (map_sub_char_table): Make it work for the top-level
18851 char-table. Fix handling of parent char-table.
18852 (map_char_table): Adjust for the above change.
18853
188542008-02-01 Jason Rumney <jasonr@gnu.org>
18855
18856 * w32font.c (Qgdi): Rename from Qw32.
18857
188582008-02-01 Jason Rumney <jasonr@gnu.org>
18859
18860 * w32bdf.c (get_quoted_string): Make function static.
18861
188622008-02-01 Kenichi Handa <handa@m17n.org>
18863
18864 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18865 bigger ascent and descent than those of the font, use them as
18866 font's ascent and descent.
18867
188682008-02-01 Kenichi Handa <handa@m17n.org>
18869
18870 * Makefile.in (${lispsource}international/charprop.el): Move this
18871 target within "#ifdef HAVE_UNIDATA" and "#endif".
18872
188732008-02-01 Kenichi Handa <handa@m17n.org>
18874
18875 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18876 (shortlisp): Add ../lisp/language/tai-viet.el.
18877
188782008-02-01 Ulrich Mueller <ulm@gentoo.org>
18879
18880 * Makefile.in (${lispsource}international/charprop.el): Depend on
18881 temacs${EXEEXT}.
18882
188832008-02-01 Jason Rumney <jasonr@gnu.org>
18884
18885 * w32font.c (w32font_close): Delete the GDI font object.
18886
18887 * w32menu.c: Include character.h.
18888
18889 * w32proc.c: Likewise.
18890
18891 * w32select.c: Likewise.
18892
18893 * makefile.w32-in (w32proc.o): Depend on character.h.
18894
188952008-02-01 Jason Rumney <jasonr@gnu.org>
18896
18897 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18898
18899 * w32menu.c (syms_of_w32menu): Likewise.
18900
18901 * w32proc.c (syms_of_ntproc): Likewise.
18902
18903 * w32select.c (syms_of_w32select): Likewise.
18904
18905 * w32term.c (syms_of_w32term): Likewise.
18906
189072008-02-01 Jason Rumney <jasonr@gnu.org>
18908
18909 * w32font.c (w32font_draw): Delete brush after using it.
18910
189112008-02-01 Jason Rumney <jasonr@gnu.org>
18912
18913 * w32font.c (w32font_open): Don't set font_idx.
18914 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18915 to font settings.
18916 (w32font_draw): Fill background explicitly.
18917
189182008-02-01 Jason Rumney <jasonr@gnu.org>
18919
18920 * w32term.c (w32_initialize): Don't call w32font_initialize.
18921
18922 * w32font.c (w32font_info): Remove subranges.
18923 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18924 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18925 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18926 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18927 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18928 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18929 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18930 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18931 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18932 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18933 New symbols.
18934 (font_callback_data): New struct.
18935 (w32font_list, w32font_match): Use it.
18936 (w32font_open): Don't populate subranges.
18937 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18938 (w32font_encode_char): Always return unicode code-point as-is.
18939 (w32font_text_extents): Supply a transformation matrix to
18940 GetGlyphOutline. Never look up by glyph index. Avoid looping
18941 twice. Use unicode version of GetTexExtentPoint32 instead of
18942 glyph index version.
18943 (set_fonts_frame): Remove.
18944 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18945 set frame parameter. Use backward compatible fake foundries.
18946 Save generic family in extra slot under QCfamily. Make width slot
18947 constant. Save QCspacing value. Save list of scripts instead of
18948 binary subranges.
18949 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18950 (add_font_entity_to_list): Use font_callback_data struct. Filter
18951 unwanted fonts.
18952 (add_one_font_entity_to_list): Use font_callback_data struct.
18953 (w32_registry): Default to iso10646_1.
18954 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18955 string font registries. Don't fill in font name if it is a generic
18956 family name, fill family instead. Use spacing, family and script
18957 extra info to fill pitch, family and charset fields.
18958 (list_all_matching_fonts): Use font_callback_data struct.
18959 (unicode_range_for_char): Remove.
18960 (font_supported_scripts): New function.
18961 (w32font_initialize): Remove.
18962 (syms_of_w32font): Update which symbols are defined.
18963
189642008-02-01 Jason Rumney <jasonr@gnu.org>
18965
18966 * font.c (font_pixel_size): Reverse assq_no_quit args.
18967
18968 * w32term.h (FONT_WIDTH): Report max width, not average.
18969 (FONT_MAX_WIDTH): Remove.
18970 (FONT_AVG_WIDTH): New macro.
18971
18972 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18973 redefinition of FONT_WIDTH.
18974
18975 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18976 (w32_cache_char_metrics): Use FONT_WIDTH.
18977
18978 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18979
189802008-02-01 Jason Rumney <jasonr@gnu.org>
18981
18982 * w32font.c (w32font_open): Make lfHeight negative.
18983
18984 * w32fns.c (x_default_font_parameter): Use new style font name.
18985 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18986
189872008-02-01 Jason Rumney <jasonr@gnu.org>
18988
18989 * w32font.c (QCsubranges): New symbol.
18990 (w32font_open, w32font_has_char): Get subranges from subproperty
18991 of extra.
18992 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18993 (syms_of_w32font): Define :subranges symbol.
18994
18995 * font.c (font_put_extra): Expose externally.
18996
18997 * font.h (font_put_extra): Move declaration from font.c.
18998
18999 * font.c (Ffont_get): Use font driver to determine otf capability.
19000 (adjust_anchor): Check if driver defines anchor_point before using.
19001
19002 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19003 (w32font_draw): Use options.
19004 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19005 Fix detection of truetype fonts.
19006 (registry_to_w32_charset): Handle charsets other than iso8859-1
19007 expressed as lisp symbols.
19008 (w32_registry): Express charset as lisp symbol.
19009 (fill_in_logfont): Reverse pixel and point height logic.
19010 Don't set width here. Set quality to default.
19011
19012 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19013 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19014
19015 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19016 Remove redundant loop and allocation.
19017
19018 * makefile.w32-in (font.o, w32font.o): New objects.
19019 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19020 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19021
19022 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19023 STORE_XCHARB a valid l-value.
19024
19025 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19026 calculations for non-Truetype fonts.
19027 (x_draw_glyph_string): Sync with xterm.c.
19028 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19029 Remove redundant code.
19030 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19031
19032 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19033 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19034
19035 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19036 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19037
19038 * w32font.c: New file for w32 font backend.
19039
190402008-02-01 Kenichi Handa <handa@m17n.org>
19041
19042 * term.c: Don't include "buffer.h" twice.
19043
190442008-02-01 Kenichi Handa <handa@m17n.org>
19045
19046 * character.c (Funibyte_string): New function.
19047 (syms_of_character): Defsubr it.
19048
190492008-02-01 Jason Rumney <jasonr@gnu.org>
19050
19051 * w32term.c [USE_FONT_BACKEND]:
19052 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19053 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19054 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19055 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19056 (x_free_frame_resources): Sync with xterm.c.
19057
190582008-02-01 Andreas Schwab <schwab@suse.de>
19059
19060 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19061 char-table size.
19062
190632008-02-01 Kenichi Handa <handa@m17n.org>
19064
19065 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19066
190672008-02-01 Kenichi Handa <handa@m17n.org>
19068
19069 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19070 font_otf_gpos, add font_drive_otf.
19071
19072 * fontset.c (fontset_find_font): Pay attention to font size
19073 specified for a font.
19074 (reorder_font_vector): Check contents of font_def.
19075
19076 * font.c (struct otf_list): Delete it.
19077 (otf_list): Make it a lisp variable.
19078 (otf_open): Use lispy otf_list.
19079 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19080 (check_otf_features): New function.
19081 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19082 New functions.
19083 (font_drive_otf): New function merging font_otf_gsub and
19084 font_otf_gpos.
19085 (font_open_for_lface): New arg spec. Change argument order.
19086 (font_load_for_face): Adjust for the change of font_open_for_lface.
19087 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19088 Ffont_otf_gpos.
19089 (syms_of_font): Staticpro otf_list. Delete defsubr of
19090 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19091
19092 * xfaces.c (set_font_frame_param): Adjust for the change of
19093 font_open_for_lface.
19094
19095 * font.h (font_open_for_lface): Adjust prototype.
19096 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19097 member otf_drive.
19098 (font_otf_gsub, font_otf_gpos): Delete externs.
19099 (font_drive_otf): Extern it.
19100
191012008-02-01 Kenichi Handa <handa@m17n.org>
19102
19103 * font.c (font_at): If the window W is not on a window system,
19104 return Qnil.
19105
19106 * coding.c (produce_chars, encode_coding): Don't call
19107 insert_from_gap if no characters to produce.
19108
191092008-02-01 Kenichi Handa <handa@m17n.org>
19110
19111 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19112 Fclear_face_cache.
19113
19114 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19115
191162008-02-01 Miles Bader <miles@gnu.org>
19117
19118 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19119 Parse "--disable-font-backend" option.
19120 (standard_args): Add "--disable-font-backend" option.
19121
191222008-02-01 Kenichi Handa <handa@m17n.org>
19123
19124 * fontset.c (fontset_find_font): New function.
19125 (fontset_font): Use fontset_find_font.
19126 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19127 Register the specified font for all Latin characters.
19128 (new_fontset_from_font): Register the specified font for all Latin
19129 characters.
19130 (dump_fontset): For a realized fontset, include the base fontset
19131 name in the returned vector.
19132
191332008-02-01 Kenichi Handa <handa@m17n.org>
19134
19135 * character.h (CHAR_STRING): Cast C to unsigned on calling
19136 char_string.
19137
19138 * character.c (char_string): Type of arg C changed to unsigned.
19139 Signal an error if C is an invalid character code.
19140
19141 * editfns.c (general_insert_function, Fchar_to_string):
19142 Use CHARACTERP, not INTEGERP.
19143
191442008-02-01 Kenichi Handa <handa@m17n.org>
19145
19146 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19147 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19148
19149 * regex.c (analyse_first): Fix for multibyte characters in "case
19150 charset:" and "case categoryspec:".
19151
191522008-02-01 Andreas Schwab <schwab@suse.de>
19153
19154 * Makefile.in (LIBES): Move standard libraries to the end.
19155
191562008-02-01 Kenichi Handa <handa@m17n.org>
19157
19158 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19159 nonzero, don't shrink the buffer nextb.
19160
19161 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19162
19163 * coding.c (coding_alloc_by_making_gap): New arg offset.
19164 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19165 offset.
19166 (decode_coding_iso_2022): Update coding->safe_charsets.
19167 (decode_coding_gap): Temporarily set
19168 current_buffer->text->inhibit_shrinking to 1.
19169
191702008-02-01 Kenichi Handa <handa@m17n.org>
19171
19172 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19173 indexing into elements of s->cmp and s->char2b.
19174
191752008-02-01 Juanma Barranquero <lekktu@gmail.com>
19176
19177 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19178
191792008-02-01 Kenichi Handa <handa@m17n.org>
19180
19181 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19182 target_multibyte instead of multibyte.
19183 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19184 (bcmp_translate): Change the argument name from multibyte to
19185 target_multibyte.
19186
191872008-02-01 Kenichi Handa <handa@m17n.org>
19188
19189 These changes are to compile a regexp into a pattern that can be
19190 used both for multibyte and unibyte targets.
19191
19192 * Makefile.in (search.o): Depend on charset.h.
19193
19194 * character.c (multibyte_char_to_unibyte_safe): New function.
19195
19196 * search.c: Include "charset.h".
19197 (compile_pattern_1): Delete argument multibyte. Don't set
19198 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19199 (compile_pattern): Don't compare cp->buf.target_multibyte.
19200 Compare cp->buf.charset_unibyte.
19201 (compile_pattern): Set cp->buf.target_multibyte.
19202
19203 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19204
19205 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19206
19207 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19208 multibyte. Change callers.
19209 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19210 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19211 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19212 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19213 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19214 (regex_compile): Make the compiled pattern usable both for
19215 multibyte and unibyte targets.
19216 (analyse_first): Make the fastmap usable both for multibyte and
19217 unibyte targets.
19218 (TRANSLATE_VIA_MULTIBYTE): Delete.
19219 (re_match_2_internal): Pay attention to the case that the
19220 multibyteness of bufp and target may be different.
19221
192222008-02-01 Kenichi Handa <handa@m17n.org>
19223
19224 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19225 empty box occupy at least one column width.
19226
192272008-02-01 Miles Bader <miles@gnu.org>
19228
19229 * Makefile.in: Remove redundant HAVE_XFT clause.
19230
192312008-02-01 Kenichi Handa <handa@m17n.org>
19232
19233 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19234
192352008-02-01 Kenichi Handa <handa@m17n.org>
19236
19237 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19238 being nil.
19239
192402008-02-01 Kenichi Handa <handa@m17n.org>
19241
19242 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19243
192442008-02-01 Kenichi Handa <handa@m17n.org>
19245
19246 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19247
192482008-02-01 Kenichi Handa <handa@m17n.org>
19249
19250 * search.c (simple_search): Fix previous change.
19251
192522008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * xftfont.c (ftfont_font_format): Extern declaration.
19255
19256 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19257
19258 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19259 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19260
19261 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19262 (ftfont_font_format): Fix previous change.
19263
19264 * font.h (Ffont_xlfd_name): EXFUN it.
19265
19266 * font.c (font_parse_xlfd): Fix the array size of `f'.
19267 (register_font_driver): Use EQ to compare driver->type.
19268
19269 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19270 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19271 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19272
192732008-02-01 Kenichi Handa <handa@m17n.org>
19274
19275 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19276 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19277
192782008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * xfont.c (xfont_open): Set font->format.
19281
19282 * xftfont.c (xftfont_open): Set font->format.
19283
19284 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19285 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19286 (ftfont_open): Set font->format.
19287 (ftfont_font_format): New function.
19288
19289 * font.h (struct font): New member format.
19290
19291 * font.c (Qopentype): New variable.
19292 (syms_of_font): Defsym it.
19293 (Fquery_font): Change the format of the last element of the return
19294 value.
19295
192962008-02-01 Kenichi Handa <handa@m17n.org>
19297
19298 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19299 last resort.
19300
193012008-02-01 Kenichi Handa <handa@m17n.org>
19302
19303 * coding.c (detect_coding_charset): Fix detection of multi-byte
19304 charset.
19305
193062008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19307
19308 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19309
193102008-02-01 Kenichi Handa <handa@m17n.org>
19311
19312 * xdisp.c (get_next_display_element): Set it->face_id for the
19313 first component of a composition.
19314 (x_produce_glyphs): Check if the font is changed or not for composition.
19315
193162008-02-01 Kenichi Handa <handa@m17n.org>
19317
19318 * fontset.c (Qlatin): New variable.
19319 (syms_of_fontset): Define it as a lisp symbol.
19320 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * font.c (font_unparse_fcname): Pay attention to the case that
19325 some of font property is a null string.
19326
193272008-02-01 Kenichi Handa <handa@m17n.org>
19328
19329 * term.c: Include "composite.h".
19330 (encode_terminal_code): Output all components of composition.
19331 Check the size of encode_terminal_src.
19332 (produce_glyphs): For composition, call produce_composite_glyph.
19333 (append_composite_glyph, produce_composite_glyph): New functions.
19334
19335 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19336 is not found, get font_info from the current ascii face.
19337
193382008-02-01 Kenichi Handa <handa@m17n.org>
19339
19340 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19341 buffer-file-name to Qnil before calling insert_from_buffer.
19342
19343 * font.c (font_unparse_fcname): Pay attention to the case that
19344 foundry is a null string.
19345
193462008-02-01 Kenichi Handa <handa@m17n.org>
19347
19348 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19349
19350 * font.c (Qunicode_sip): New variable.
19351 (syms_of_font): Declare it as a Lisp symbol.
19352
19353 * font.h (Qunicode_sip): Extern it.
19354
193552008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 * composite.c (get_composition_id): Pay attention to TAB component.
19358
19359 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19360 TAB. Adjust for the change of s->char2b which always points to
19361 the first element of allocated memory.
19362
19363 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19364
19365 * xdisp.c (handle_composition_prop): Set it->c to the first
19366 non-TAB component.
19367 (fill_composite_glyph_string): Change argument.
19368 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19369 (x_produce_glyphs): Fix handling of left/right padding.
19370
193712008-02-01 Kenichi Handa <handa@m17n.org>
19372
19373 * coding.c (detect_coding_system): Fix for handling off
19374 inhibit_iso_escape_detection. Fix for the case that no coding
19375 system is defined for a specific coding category.
19376
193772008-02-01 Kenichi Handa <handa@m17n.org>
19378
19379 * font.c (font_matching_entity): Delete unused local var.
19380
19381 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19382 opening a font.
19383
19384 * fileio.c (Finsert_file_contents): On recovering a file, assume
19385 Unix-like eol.
19386 (choose_write_coding_system): On auto-saving a file, force
19387 Unix-like eol.
19388
19389 * coding.c (setup_coding_system): Fix setting of
19390 coding->common_flags based on eol_type.
19391 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19392 inherit from it.
19393
193942008-02-01 Kenichi Handa <handa@m17n.org>
19395
19396 * alloc.c (NSTATICS): Increas to 0x600.
19397
193982008-02-01 Kenichi Handa <handa@m17n.org>
19399
19400 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19401 (ftfont_list): Don't check :name property.
19402 (ftfont_match): New function.
19403 (ftfont_pattern_entity): If the pattern doesn't contain
19404 FC_SPACING, don't assume FC_MONO.
19405
19406 * font.h (struct font_driver): New member `match'.
19407 (font_update_drivers): Adjust prototype.
19408
19409 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19410 property of FONT.
19411 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19412 them unconditionally.
19413 (font_matching_entity): New function.
19414 (font_open_by_name): Try font_matching_entity if exact match is
19415 not found.
19416 (font_update_drivers): Delete the arg FONT. Return a list of
19417 actually used backends. Don't free faces, font caches here.
19418 Don't store data in frame parameters. Don't call x_set_font.
19419 (Ffont_spec): Store :name property as is.
19420 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19421 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19422 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19423 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19424 Call font->driver->otf_gsub instead of font_otf_gsub.
19425
19426 * frame.c (x_set_font_backend): Do more works that were done in
19427 font_update_drivers before.
19428
19429 * xfont.c (xfont_match): New function.
19430 (xfont_driver): Set xfont_driver.match to xfont_match.
19431 (xfont_draw): Set font in GC if necessary.
19432
19433 * ftxfont.c (ftxfont_match): New function.
19434 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19435
19436 * xftfont.c (xftfont_match): New function.
19437 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19438
194392008-02-01 Kenichi Handa <handa@m17n.org>
19440
19441 * font.h (struct font): New member scalable.
19442 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19443 (font_otf_gsub): Adjust prototype.
19444
19445 * font.c (font_otf_capability): Fix handling of the default langsys.
19446 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19447 Check the contents of SPEC.
19448 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19449 (check_gstring): New function.
19450 (REPLACEMENT_CHARACTER): New macro.
19451 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19452 glyph codes of GSTRING.
19453 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19454 (font_prepare_composition): Set cmp->glyph_len.
19455 (font_open_entity): Set font->scalable.
19456 (Ffont_get): Handle :otf property.
19457 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19458 functions.
19459 (Fquery_font): Use font->font.full_name.
19460 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19461 Sfont_otf_alternates.
19462
19463 * ftfont.c (ftfont_open): Set font->font.full_name and
19464 font->font.name properly. Fix calculation of font->font.height
19465 and font->min_width.
19466
19467 * ftxfont.c (ftxfont_create_gcs): New function.
19468 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19469 (ftxfont_draw_backgrond): Fix filling region.
19470 (ftxfont_default_fid): New function.
19471 (ftxfont_open): Set xfont->fid to the return value of
19472 ftxfont_default_fid.
19473 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19474 (ftxfont_done_face): Free only GCs that are created by
19475 ftxfont_create_gcs.
19476 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19477
19478 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19479 Clip to src->width, etc (not src->clip_XXX).
19480
19481 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19482 FontBackend frame parameter.
19483
194842008-02-01 Kenichi Handa <handa@m17n.org>
19485
19486 * font.h (struct font_driver_list): New member `on'.
19487 (Fclear_font_cache): EXFUN it.
19488 (font_update_drivers): Extern it.
19489
19490 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19491 (font_list_entities): Check driver_list->on.
19492 (register_font_driver): Initalize `on' member to 0.
19493 (font_update_drivers): New function.
19494 (Fclear_font_cache): Check driver_list->on.
19495
19496 * frame.h (Qfont_backend): Extern it.
19497 (x_set_font_backend): Extern it.
19498
19499 * frame.c (Qfont_backend): New variable.
19500 (frame_parms): New element for font-backend.
19501 (x_set_font_backend): New function.
19502
19503 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19504 FontBackend frame parameter.
19505 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19506 x_set_font_backend.
19507
19508 * xfont.c (xfont_list): Don't try listing by :name property if the
19509 name is not for XLFD.
19510
195112008-02-01 Kenichi Handa <handa@m17n.org>
19512
19513 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19514 (LGLYPH_SET_TO): New macros.
19515 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19516 element of G is vector or not.
19517 (font_at): Extern it.
19518
19519 * font.c: Include window.h.
19520 (font_lispy_object): New function.
19521 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19522 end of valid glyph.
19523 (font_close_object): Fix getting (struct font *).
19524 (font_at): New function.
19525 (Ffont_get): If FONT is a font-object, get entity from it.
19526 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19527 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19528 range check.
19529 (Ffont_at): New function.
19530 (syms_of_font): Defsubr Sfont_at.
19531
19532 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19533 before the entry for Qcomposition.
19534 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19535 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19536 the font in gstring.
19537 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19538 LGLYPH_FORM (g) to detect the end of valid glyph.
19539 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19540 we are composing with gstring.
19541
19542 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19543 Check if adjustment is vector or not.
19544
19545 * Makefile.in (font.o): Make it depends on window.h.
19546
195472008-02-01 Kenichi Handa <handa@m17n.org>
19548
19549 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19550 adjustment is vector or not.
19551
195522008-02-01 Miles Bader <miles@gnu.org>
19553
19554 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19555
195562008-02-01 Kenichi Handa <handa@m17n.org>
19557
19558 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19559 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19560 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19561
19562 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19563 (DEVICE_DELTA): Fix typo.
19564 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19565 LGLYPH format.
19566
19567 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19568 the change of LGLYPH format.
19569
195702008-02-01 Kenichi Handa <handa@m17n.org>
19571
19572 * ftfont.c (ftfont_list): Fix typo.
19573 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19574
195752008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19576
19577 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19578
19579 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19580 xftface_info is non-NULL.
19581
195822008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19583
19584 * ftfont.c (ftfont_list): Move misplaced #endif.
19585
195862008-02-01 Kenichi Handa <handa@m17n.org>
19587
19588 * ftfont.c (ftfont_list): Pay attention to the case that
19589 FC_CAPABILITY is not defined.
19590
195912008-02-01 Kenichi Handa <handa@m17n.org>
19592
19593 * xftfont.c (xftfont_open): Set charset related members to -1.
19594
19595 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19596 QCname.
19597 (ftfont_open): Set charset related members to -1.
19598
19599 * fontset.c (Votf_script_alist): New variable.
19600 (syms_of_fontset): Initialize it.
19601 (fontset_font): Delete unused variable.
19602
19603 * fontset.h (Votf_script_alist): Extern it.
19604
19605 * font.c (font_find_for_lface): Optimize code.
19606
19607 * font.h (font_close_object, font_merge_old_spec): Extern them.
19608
196092008-02-01 Kenichi Handa <handa@m17n.org>
19610
19611 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19612 (syms_of_font): Initialize them.
19613 (font_pixel_size): Allow float value in dpi.
19614 (font_prop_validate_type): Delete.
19615 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19616 Change caller.
19617 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19618 (font_prop_validate_extra): Delete.
19619 (font_prop_validate_spacing): New function.
19620 (font_property_table): Add elements for all known properties.
19621 (get_font_prop_index): Rename from check_font_prop_name. New
19622 argument FROM. Change caller.
19623 (font_prop_validate): Validate all known properties.
19624 (font_put_extra): Delete argument force. Change caller.
19625 (font_expand_wildcards): Make it static. Fix the way of shrinking
19626 the possible range.
19627 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19628 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19629 Change caller.
19630 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19631 (font_parse_fcname): Delete argument merge. Fix parsing of point
19632 size. Don't validate properties values here. Change caller.
19633 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19634 (font_open_by_name): Delete unused variable.
19635 (Ffont_spec): Likewise. Validate property values.
19636 (Ffont_match_p): New function.
19637
19638 * font.h (QCscalable): Extern it.
19639 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19640
19641 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19642
19643 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19644 (xfont_list_pattern): New function.
19645 (xfont_list): Use xfont_list_pattern.
19646
196472008-02-01 Kenichi Handa <handa@m17n.org>
19648
19649 * font.h (Flist_fonts): EXFUN it.
19650
196512008-02-01 Jason Rumney <jasonr@gnu.org>
19652
19653 * w32term.c (w32_initialize): Add back smoothing_type and
19654 smoothing_enabled definitions.
19655
196562008-02-01 Kenichi Handa <handa@m17n.org>
19657
19658 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19659 s->face->font on determining underline position.
19660
196612008-02-01 Kenichi Handa <handa@m17n.org>
19662
19663 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19664 (font_has_char): Accept font-object too.
19665 (font_find_for_lface): Try at first with a size specified in face.
19666
196672008-02-01 Kenichi Handa <handa@m17n.org>
19668
19669 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19670 font_open_by_name.
19671
196722008-02-01 Kenichi Handa <handa@m17n.org>
19673
19674 * font.h (QCspacing, QCdpi): Extern them.
19675 (enum font_spacing): New enum.
19676 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19677
19678 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19679 (QCspacing, QCdpi): New variables.
19680 (syms_of_font): Initialize them.
19681 (font_pixel_size): New function.
19682 (font_put_extra): New function.
19683 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19684 in FONT_EXTRA.
19685 (font_parse_fcname): Handle enumerated values (e.g. bold).
19686 Fix handling font size. Add QCname property that contains only
19687 unknown properties.
19688 (font_score): Change argument. Change caller. Pay attention to
19689 FONT_PIXEL_SIZE_QUANTUM.
19690 (font_sort_entites, font_list_entities, font_find_for_lface)
19691 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19692 (Ffont_spec): Add QCname property that contains only unknown properties.
19693
19694 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19695 include weight in listing pattern, instead check weight of each
19696 listed font. Don't include scalable in pattern. Pay attention to
19697 FONT_PIXEL_SIZE_QUANTUM.
19698
196992008-02-01 Kenichi Handa <handa@m17n.org>
19700
19701 * font.c (font_parse_fcname): Fix parsing of point-size.
19702 (font_unparse_fcname): Produce symbolic names for style properties.
19703 (font_list_entities): Handle float size correctly.
19704 (font_open_by_name): Prefer `normal' property values if the name
19705 doesn't specify them.
19706
19707 * fontset.c (Finternal_char_font): Use font_get_name, not
19708 Ffont_xlfd_name.
19709
19710 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19711 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19712 pattern. Don't force scalable.
19713
19714 * xftfont.c (xftfont_open): For generating a name, start from
19715 96-byte buffer.
19716
197172008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19718
19719 * frame.h (x_new_fontset2): Fix prototype.
19720
197212008-02-01 Kenichi Handa <handa@m17n.org>
19722
19723 * font.h (struct font_driver): Delete member parse_name.
19724 (font_match_p, font_get_spec, font_parse_fcname)
19725 (font_unparse_fcname): Extern them.
19726 (font_get_name): Adjust prototype.
19727
19728 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19729 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19730 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19731 unnecessary checks for weight, slant, and swidth.
19732 (font_parse_fcname): New function.
19733 (font_unparse_fcname): New function.
19734 (font_parse_name): New function.
19735 (font_match_p): New function.
19736 (font_get_name): Change return value to Lisp string.
19737 (font_get_spec): New function.
19738 (Qunspecified, Qignore_defface): Don't extern them.
19739 (font_find_for_lface): Assume that LFACE is fully specified.
19740 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19741 object, use it for FACE.
19742 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19743 driver->parse_name.
19744 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19745
19746 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19747 prototype.
19748
19749 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19750 argument F. Don't call Fnew_fontset. Instead, directly call
19751 make_fontset.
19752
19753 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19754
19755 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19756 of x_new_fontset2.
19757
19758 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19759 (Qsans__serif): New variables.
19760 (ftfont_generic_family_list): New variable.
19761 (syms_of_ftfont): Initialize the above variables.
19762 (ftfont_pattern_entity): Delete argument NAME.
19763 (ftfont_list_generic_family): New function.
19764 (ftfont_parse_name): Delete this function.
19765 (ftfont_list): Try generic family only when FcFontList found no font.
19766 (ftfont_list_family): Fix args to FcObjectSetBuild.
19767
19768 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19769 object in attrs[LFACE_FONT_INDEX].
19770 (set_lface_from_font_name): Cancel all changes for font-backend.
19771 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19772 function.
19773 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19774 font object in QCfont attribute.
19775 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19776 (realize_default_face) [USE_FONT_BACKEND]: Call
19777 set_lface_from_font_and_fontset.
19778
19779 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19780 "fixed", and signal error here if no suitable font was found.
19781
19782 * xfont.c (xfont_parse_name): Delete this function.
19783
19784 * xftfont.c (xftfont_open): Change coding style of error
19785 handling. Generate fontconfig's fontname pattern.
19786
19787 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19788 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19789
19790 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19791 Both args FONTSET and FONT_OBJECT must be existing ones.
19792
197932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19794
19795 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19796
197972008-02-01 Kenichi Handa <handa@m17n.org>
19798
19799 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19800
19801 * font.h (struct font): Fix typo.
19802
19803 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19804 XLFD_XXX_INDEX.
19805 (enum xlfd_field_mask): New enum.
19806 (intern_font_field): Changed argument. Change caller. If digits
19807 are followed by non-digits, return a symbol.
19808 (font_expand_wildcards): New function.
19809 (font_parse_xlfd): Fix wildcard handling.
19810 (Ffont_spec): If :name is specified, reflect the info in the other
19811 properties.
19812
19813 * ftfont.c (ftfont_pattern_entity): Fix typo.
19814 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19815 locale.
19816
198172008-02-01 Kenichi Handa <handa@m17n.org>
19818
19819 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19820
19821 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19822 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19823 registry doesn't specify encoding part.
19824 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19825 (font_open_by_name): At first try parsing the name.
19826 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19827 as Lisp symbols.
19828
19829 * fontset.c (reorder_font_vector): Pay attention to the case that
19830 the 3rd element of font_def is nil.
19831 (fontset_font): For the default fontset, append one more fontset
19832 elements for a script-based font specification. Don't add script
19833 attribute on finding a font.
19834 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19835 font name.
19836 (fontset_ascii_font): If a font can't be opened, return nil.
19837
19838 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19839 (ftfont_pattern_entity): New function.
19840 (ftfont_get_cache): Assume that freetype_font_cache is already
19841 initialized.
19842 (ftfont_list): Handle the case that a file is specified in font
19843 name. Use ftfont_pattern_entity to generate entities.
19844 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19845 (syms_of_ftfont): Initialize freetype_font_cache.
19846
19847 * xftfont.c (xftfont_open): Make the font name fontconfig's
19848 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19849 (xftfont_close): Free font->font.name if not NULL.
19850
19851 * xfont.c (xfont_list): If script is specified for a font, return
19852 null_vector.
19853 (xfont_list_family): Declare argument type.
19854
19855 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19856 name, set LFACE_FONT (lface) to nil.
19857
19858 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19859 return Qnil.
19860
198612008-02-01 Kenichi Handa <handa@m17n.org>
19862
19863 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19864 (standard_args): Add "-enable-font-backend".
19865
198662008-02-01 Kenichi Handa <handa@m17n.org>
19867
19868 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19869 (struct xftdraw_list, xftdraw_list): Delete them.
19870 (register_xftdraw, check_xftdraw): Delete them.
19871 (xftfont_prepare_face): Don't call register_xftdraw.
19872 (xftfont_done_face): Don't call check_xftdraw.
19873 (xftfont_draw): Get background color only when with_background is
19874 nonzero.
19875
19876 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19877
198782008-02-01 Kenichi Handa <handa@m17n.org>
19879
19880 These changes are for the new font handling codes.
19881
19882 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19883 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19884 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19885 (FONTSRC, FONTOBJ): New variables.
19886 (obj): Add $(FONTOBJ).
19887 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19888 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19889 @LIBOTF_LIBS@.
19890 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19891 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19892
19893 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19894
19895 * character.h (Vscript_representative_chars): Extern it.
19896
19897 * character.c (Vscript_representative_chars): New variable.
19898 (syms_of_character): Declare it as a Lisp variable.
19899
19900 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19901 enable_font_backend is nonzero, accept the composition method
19902 COMPOSITION_WITH_GLYPH_STRING.
19903
19904 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19905 enumeration COMPOSITION_WITH_GLYPH_STRING.
19906
19907 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19908 members clip_x, clip_y, clip_width, and clip_height.
19909 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19910
19911 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19912 --enable-font-backend. Call syms_of_font.
19913
19914 * fns.c (assoc_no_quit): New function.
19915
19916 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19917 (face_for_font, new_fontset_from_font)
19918 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19919
19920 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19921 (fontset_font, fontset_ascii, face_for_char)
19922 (make_fontset_for_ascii_face, Ffont_info)
19923 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19924 is nonzero, use font-backend mechanism.
19925 (find_font_encoding): Make it non-static.
19926 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19927 New functions.
19928
19929 * frame.h (struct frame): New members resx and resy.
19930 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19931 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19932
19933 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19934 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19935
19936 * lisp.h (assoc_no_quit): Extern it.
19937
19938 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19939 Through out the file, use FONT_INFO_FROM_FACE instead of
19940 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19941 rif->per_char_metric.
19942 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19943 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19944 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19945 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19946 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19947 nonzero, use font-backend mechanism.
19948 (get_per_char_metric): New function.
19949
19950 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19951 (set_lface_from_font_name)
19952 (set_font_frame_param, free_realized_face)
19953 (prepare_face_for_display, clear_face_gcs)
19954 (Finternal_set_font_selection_order, realize_x_face)
19955 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19956 font-backend mechanism.
19957 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19958 (load_face_font) [USE_FONT_BACKEND]: Abort.
19959 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19960 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19961
19962 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19963 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19964 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19965 nonzero, register all available font drivers. Call
19966 x_default_font_parameter for deciding a font.
19967 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19968
19969 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19970 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19971 (x_set_glyph_string_clipping_exactly)
19972 (x_compute_glyph_string_overhangs)
19973 (x_draw_glyph_string_foreground)
19974 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19975 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19976 enable_font_backend is nonzero, use font-backend mechanism.
19977 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19978
199792008-02-01 Kenichi Handa <handa@m17n.org>
19980
19981 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19982 system_eol_type.
19983 (syms_of_coding): Initialize system_eol_type.
19984
19985 * process.c (Fset_process_coding_system): Inherit system's eol
19986 format if necessary.
19987
199882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19989
19990 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19991
199922008-02-01 Kenichi Handa <handa@m17n.org>
19993
19994 * coding.c (decode_eol): Pay attention to buffer relocation in
19995 del_range_2.
19996 (decode_coding): Call decode_eol before restoring undo_list.
19997
199982008-02-01 Kenichi Handa <handa@m17n.org>
19999
20000 * charset.c (Fdefine_charset_internal): Fix setting of
20001 emacs_mule_bytes.
20002
200032008-02-01 Kenichi Handa <handa@m17n.org>
20004
20005 * keyboard.c (read_char): Check if C is a character or not before
20006 looking up Vkeyboard_translate_table.
20007
200082008-02-01 Kenichi Handa <handa@m17n.org>
20009
20010 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20011 condition to terminate the loop.
20012
200132008-02-01 Kenichi Handa <handa@m17n.org>
20014
20015 * coding.c (produce_composition): Compare charbuf[i] instead of
20016 args[i] against 0.
20017 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20018
200192008-02-01 Kenichi Handa <handa@m17n.org>
20020
20021 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20022 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20023 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20024 detect_coding.
20025 (emacs_mule_char): Handle old style (Emacs 20) component character
20026 of a composition.
20027 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20028 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20029 composition rule.
20030 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20031
200322008-02-01 Kenichi Handa <handa@m17n.org>
20033
20034 * coding.c (encode_coding_ccl): Allocate destination dynamically
20035 when necessary.
20036
200372008-02-01 Kenichi Handa <handa@m17n.org>
20038
20039 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20040 the loop. When quitted, show a proper error message.
20041
200422008-02-01 Kenichi Handa <handa@m17n.org>
20043
20044 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20045 src->clip_head and src->clip_tail temporarily instead of src->hl.
20046
20047 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20048 character sequence.
20049 (Fccl_execute_on_string): Use ASET, not XSET.
20050
200512008-02-01 Kenichi Handa <handa@m17n.org>
20052
20053 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20054
200552008-02-01 Kenichi Handa <handa@m17n.org>
20056
20057 * coding.c (decode_coding): Fix the condition of terminating the
20058 decoding loop.
20059
200602008-02-01 Kenichi Handa <handa@m17n.org>
20061
20062 * data.c (Faset): On setting a character bigger than 255 in a
20063 unibyte string, signal an error instead of make the string multibyte.
20064
200652008-02-01 Kenichi Handa <handa@m17n.org>
20066
20067 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20068 made by a mapping table.
20069
200702008-02-01 Kenichi Handa <handa@m17n.org>
20071
20072 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20073 not.
20074 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20075 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20076
20077 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20078 s->face is NULL or not.
20079
200802008-02-01 Kenichi Handa <handa@m17n.org>
20081
20082 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20083 (x_draw_glyph_string): Fix drawing of right_overhang and
20084 left_overhang around/on cursor.
20085
20086 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20087
200882008-02-01 Kenichi Handa <handa@m17n.org>
20089
20090 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20091
200922008-02-01 Kenichi Handa <handa@m17n.org>
20093
20094 * coding.c (Fdefine_coding_system_internal)
20095 (Fdefine_coding_system_alias): Avoid a duplicated element in
20096 Vcoding_system_alist.
20097
200982008-02-01 Kenichi Handa <handa@m17n.org>
20099
20100 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20101
20102 * coding.c (Qcoding_system_define_form): New variable.
20103 (syms_of_coding): Intern and staticpro it.
20104 (Fcoding_system_p): Check Qcoding_system_define_form.
20105 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20106
20107 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20108 Fcoding_system_p.
20109 (CHECK_CODING_SYSTEM): If ID is not available, call
20110 Fcheck_coding_system.
20111 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20112 Try also Fcheck_coding_system.
20113
201142008-02-01 Kenichi Handa <handa@m17n.org>
20115
20116 * coding.c (code_conversion_restore): GCPRO arg.
20117
201182008-02-01 Kenichi Handa <handa@m17n.org>
20119
20120 * character.c (lisp_string_width): Check multibyteness of STRING.
20121
201222008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20123
20124 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20125 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20126 (decode_mac_font_name): Use decode_coding_c_string instead of
20127 decode_coding.
20128 (x_load_font): Initialize fontp->fontset to -1. Set
20129 fontp->encoding_type.
20130
201312008-02-01 Kenichi Handa <handa@m17n.org>
20132
20133 * search.c (search_buffer): Give up BM search on case-fold-search
20134 if one of a target character has a case-equivalence of different
20135 byte length even if that target charcter is an ASCII.
20136 (simple_search): Fix calculation of byte length of matched text.
20137 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20138
201392008-02-01 Kenichi Handa <handa@m17n.org>
20140
20141 * coding.c (decode_coding): Fix handling of invalid bytes.
20142
201432008-02-01 Kenichi Handa <handa@m17n.org>
20144
20145 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20146 Unicode characters.
20147
201482008-02-01 Kenichi Handa <handa@m17n.org>
20149
20150 * coding.c (encode_coding_object): If a pre-write-conversion
20151 function makes a new buffer, kill it.
20152
201532008-02-01 Kenichi Handa <handa@m17n.org>
20154
20155 * coding.c (QCascii_compatible_p): New variable.
20156 (syms_of_coding): Initialize it.
20157 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20158 calling string_char.
20159 (record_conversion_result): Add `default:' case.
20160 (coding_charset_list): Delete unused variable `coding_type'.
20161 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20162 property in the plist of the coding system.
20163 (Fcoding_system_put): Check QCascii_compatible_p.
20164
201652008-02-01 Miles Bader <miles@gnu.org>
20166
20167 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20168 removed calculation of frame `f', as it's now used.
20169
201702008-02-01 Kenichi Handa <handa@m17n.org>
20171
20172 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20173 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20174 (UNIDATA): New variable.
20175 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20176 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20177 $(RUN_TEMACS) unconditionally.
20178
201792008-02-01 Kenichi Handa <handa@m17n.org>
20180
20181 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20182 (admindir): New variable.
20183 ($(lispsource)international/charprop.el): New target.
20184
201852008-02-01 Miles Bader <miles@gnu.org>
20186
20187 * character.c (chars-in-region): Remove obsolete function.
20188 (syms_of_character): Remove its initialization.
20189
201902008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20191
20192 * w32select.c (validate_coding_system)
20193 (setup_windows_coding_system): New functions.
20194 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20195 setup_windows_coding_system.
20196 (setup_config, Fw32_get_clipboard_data): Use
20197 validate_coding_system.
20198 (Fx_selection_exists): Move call to setup_config to a place
20199 where signals are allowed.
20200
20201 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20202 (Fcheck_coding_system): Add declarations.
20203
202042008-02-01 Kenichi Handa <handa@m17n.org>
20205
20206 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20207
202082008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20209
20210 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20211 string as the second argument for x_new_fontset.
20212
202132008-02-01 Kenichi Handa <handa@m17n.org>
20214
20215 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20216 (encode_coding_object): Use safe_call instead of call2.
20217
202182008-02-01 Kenichi Handa <handa@m17n.org>
20219
20220 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20221
20222 * Makefile.in (lisp): Include charprop.el.
20223
202242008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20225
20226 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20227 Not sure if it's unnecessary.
20228
202292008-02-01 Steven Tamm <steventamm@mac.com>
20230
20231 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20232 some possibly unnecessary fontset checking code that crashed
20233 when creating a new frame.
20234
202352008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20238 lookup_face.
20239
20240 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20241
20242 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20243
202442008-02-01 Kenichi Handa <handa@m17n.org>
20245
20246 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20247 (coding_charset_list): New function.
20248
20249 * coding.h (coding_charset_list): Extern it.
20250
202512008-02-01 Kenichi Handa <handa@m17n.org>
20252
20253 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20254 concatenation of family and registry.
20255
202562008-02-01 Kenichi Handa <handa@m17n.org>
20257
20258 * character.h (BYTE8_STRING): Fix typo.
20259
20260 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20261 string to multibyte (sync to HEAD).
20262
20263 * casefiddle.c (casify_region): Handle changes in byte-length
20264 using replace_range_2 (sync to HEAD).
20265
202662008-02-01 Andreas Schwab <schwab@suse.de>
20267
20268 * chartab.c (map_char_table): GCPRO table and arg.
20269
202702008-02-01 Kenichi Handa <handa@m17n.org>
20271
20272 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20273 already at limit.
20274
202752008-02-01 Kenichi Handa <handa@m17n.org>
20276
20277 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20278 instead of fast_c_string_match_ignore_case.
20279 (find_font_encoding): Change argument to Lisp_Object. Use
20280 fast_string_match_ignore_case instead of
20281 fast_c_string_match_ignore_case. Change caller.
20282
202832008-02-01 Kenichi Handa <handa@m17n.org>
20284
20285 * xdisp.c (get_next_display_element): In unibyte case, decide to
20286 display in octal form by checking a character by
20287 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20288
20289 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20290
20291 * character.c (unibyte_has_multibyte_table): New variable.
20292
20293 * character.h (unibyte_has_multibyte_table): Extern it.
20294 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20295
202962008-02-01 Kenichi Handa <handa@m17n.org>
20297
20298 * coding.c (encode_coding_iso_2022): Fix handling of charset
20299 annotation.
20300
203012008-02-01 Kenichi Handa <handa@m17n.org>
20302
20303 * coding.c (setup_coding_system): If coding_system is nil, use
20304 Qundecided.
20305 (Fterminal_coding_system): Return nil if terminal coding system is
20306 `undecided'.
20307 (syms_of_coding): Define coding-system `undecided' here. Setup
20308 terminal_coding as `undecided'.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * xdisp.c (message_dolog, set_message_1): Call
20313 unibyte_char_to_multibyte with arg type int.
20314
20315 * lread.c (read1): Fix reading of a char-table.
20316
20317 * print.c (print_object): Include sub char-table in circularities
20318 detection.
20319
203202008-02-01 Kenichi Handa <handa@m17n.org>
20321
20322 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20323 Append the found sequences in car of ARGS instead of prepending.
20324
203252008-02-01 Kenichi Handa <handa@m17n.org>
20326
20327 * fileio.c (report_file_error): Make a unibyte string from
20328 strerror (errorno).
20329 (Fsubstitute_in_file_name): Fix the arg to
20330 unibyte_char_to_multibyte. It is evaluated twice.
20331
203322008-02-01 Kenichi Handa <handa@m17n.org>
20333
20334 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20335
203362008-02-01 Kenichi Handa <handa@m17n.org>
20337
20338 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20339 BOM is not found.
20340 (detect_coding, detect_coding_system): Optimization for ISO-2022
20341 when no 8-bit data is found.
20342
203432008-02-01 Jason Rumney <jasonr@gnu.org>
20344
20345 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20350 CHARS.
20351
203522008-02-01 Steven Tamm <steventamm@mac.com>
20353
20354 * macterm.c (mac_encode_char): Add charset argument and update
20355 to use encoding_type.
20356 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20357 switch to pure fontset.
20358 (decode_mac_font_name): Temporarily remove decoding.
20359 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20360 (x_load_font): Temporarily remove encoding.
20361
203622008-02-01 Kenichi Handa <handa@m17n.org>
20363
20364 * xfaces.c (Fface_font): If frame is not on a window system,
20365 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20366 refer to face->font.
20367 (split_font_name_into_vector, build_font_name_from_vector)
20368 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20369 when HAVE_WINDOW_SYSTEM is defined.
20370
203712008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20374 (x_produce_glyphs): Fix setting of members of cmp in case
20375 cmp->glyph_len is zero.
20376
20377 * fontset.c (Fset_fontset_font): Fix docstring.
20378 (Ffontset_info): Make it backward compatible. New arg ALL.
20379
203802008-02-01 Kim F. Storm <storm@cua.dk>
20381
20382 * process.c (read_process_output): Grow decoding_buf when needed;
20383 this could cause a crash in allocate_string and compact_small_strings.
20384
203852008-02-01 Kenichi Handa <handa@m17n.org>
20386
20387 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20388
203892008-02-01 Kenichi Handa <handa@m17n.org>
20390
20391 * coding.c (setup_coding_system): Set coding->common_flags
20392 correctly for raw-text.
20393 (consume_chars): On encoding unibyte text by raw-text, don't check
20394 multibyte form.
20395 (encode_coding): On encoding by raw-text, never use translation tables.
20396
20397 * fileio.c (e_write): Short cut for the case of no encoding.
20398
203992008-02-01 Kenichi Handa <handa@m17n.org>
20400
20401 * coding.c (detect_coding, detect_coding_system): Delete unused
20402 variables.
20403
204042008-02-01 Kenichi Handa <handa@m17n.org>
20405
20406 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20407 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20408
204092008-02-01 Kenichi Handa <handa@m17n.org>
20410
20411 * coding.c (Ffind_coding_systems_region_internal): Include
20412 raw-text and no-conversion in the result.
20413
204142008-02-01 Kenichi Handa <handa@m17n.org>
20415
20416 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20417 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20418 FONT_DEF.
20419 (font_def_arg, add_arg, from_arg, to_arg): New args.
20420 (set_fontset_font): Change argument.
20421 (Fset_fontset_font): Fix for the case that TARGET is a script
20422 name and charset name.
20423 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20424
204252008-02-01 Kenichi Handa <handa@m17n.org>
20426
20427 * fontset.c (fontset_font): Rename from fontset_face. Change return
20428 value.
20429 (face_suitable_for_char_p, face_for_char): Adjust for the change
20430 of fontset_font.
20431 (make_fontset_for_ascii_face): Fix setting of the fontset element
20432 for ASCII.
20433 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20434 to get a font name.
20435 (Ffontset_info): Adjust for the change of fontset_font.
20436
20437 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20438
20439 * character.h (LEADING_CODE_LATIN_1_MIN)
20440 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20441
204422008-02-01 Kenichi Handa <handa@m17n.org>
20443
20444 * editfns.c (check_translation): New function.
20445 (Ftranslate_region_internal): Handle M:N mapping.
20446
204472008-02-01 Kenichi Handa <handa@m17n.org>
20448
20449 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20450
204512008-02-01 Kenichi Handa <handa@m17n.org>
20452
20453 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20454 goto invalid_code.
20455 (decode_coding_iso_2022): Fix handling of invalid designation.
20456
20457 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20458 after calling code_conversion_save.
20459
204602008-02-01 Kenichi Handa <handa@m17n.org>
20461
20462 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20463
20464 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20465
20466 * fontset.c: Include "intervals.h".
20467 (fontset_face): Fix comparing of Lisp_Objects.
20468 (free_face_fontset, new_fontset_from_font_name): Fix
20469 Lisp_Object/int mixup.
20470
20471 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20472
20473 * coding.c: Add many prototypes for static functions.
20474 (get_translation_table): Allow max_lookup to be NULL.
20475 (decode_coding, Ffind_coding_systems_region_internal)
20476 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20477 get_translation_table with max_lookup NULL.
20478
204792008-02-01 Kenichi Handa <handa@m17n.org>
20480
20481 * coding.c (get_translation_table): Declare it as Lisp_Object.
20482 (LOOKUP_TRANSLATION_TABLE): New macro.
20483 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20484 instead of CHAR_TABLE_REF.
20485
204862008-02-01 Kenichi Handa <handa@m17n.org>
20487
20488 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20489 annotation data format.
20490 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20491 Change arguments FROM and TO to single argument NCHARS. Change caller.
20492 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20493 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20494 (decode_coding_ccl, decode_coding_charset): Pay attention to
20495 coding->charbuf_used.
20496 (get_translation): New function.
20497 (produce_chars): New arguments translation_table and last_block.
20498 Translate characters here. Return number of carryover chars.
20499 Change caller.
20500 (produce_composition): New argument pos. Change caller.
20501 Adjust for the change of annotation data format.
20502 (produce_charset, produce_annotation): Likewise.
20503 (decode_coding, encode_coding): Don't call translate_chars.
20504 (consume_chars): New arg translation_table. Change caller.
20505 (translate_chars): Delete.
20506 (syms_of_coding): Make translation-table's number of extra slots 2.
20507
205082008-02-01 Kenichi Handa <handa@m17n.org>
20509
20510 * search.c (simple_search): Fix setting this_pos_byte in backward
20511 search.
20512
20513 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20514 byte sequence.
20515 (detect_coding_ccl): Fix setting of the variable valids.
20516
205172008-02-01 Kenichi Handa <handa@m17n.org>
20518
20519 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20520
20521 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20522
20523 * editfns.c (Ftranslate_region_internal): Rename from
20524 Ftranslate_region. Accept a char-table in TABLE.
20525 (syms_of_editfns): Defsubr Stranslate_region_internal.
20526
20527 * xfaces.c (set_lface_from_font_name): If a font is specified for
20528 a frame, generate a fontset from the font.
20529 (build_scalable_font_name): If the scalable font is requested for
20530 a specific size, don't change that size.
20531 (try_font_list): Try a scalable font also in the case that a
20532 pattern string is specified.
20533
205342008-02-01 Kenichi Handa <handa@m17n.org>
20535
20536 * xfaces.c (Fface_font): New optional arg CHARACTER.
20537
205382008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * charset.h (CHARSET_OFFSET): New macro.
20541
205422008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20545
20546 * fontset.c (fontset_face): Handle the case that repertory is a
20547 char-table.
20548 (find_font_encoding): Return nil for unknown encoding.
20549 (Fset_fontset_font): Ignore a font of unknown encoding.
20550
205512008-02-01 Kenichi Handa <handa@m17n.org>
20552
20553 * keymap.c (describe_vector): Handle default value of a char table.
20554
20555 * fontset.c (fontset_face): Handle fallback fonts correctly.
20556 (Ffontset_info): Return infomation about fallback fonts.
20557
205582008-02-01 Kenichi Handa <handa@m17n.org>
20559
20560 * fontset.c (FONTSET_DEFAULT): New macro.
20561 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20562 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20563 the case that it is nil.
20564 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20565 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20566
20567 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20568 subset or superset.
20569
205702008-02-01 Kenichi Handa <handa@m17n.org>
20571
20572 * emacs.c (main): Call init_charset after syms_of_XXX.
20573
20574 * charset.c (Vcharset_map_directory): Delete.
20575 (Vcharset_map_path): New variable.
20576 (load_charset_map_from_file): Use Vcharset_map_path instead.
20577 (init_charset): Initialize Vcharset_map_path.
20578 (syms_of_charset): Delete declaration of "charset-map-directory",
20579 add declaration of "charset-map-path".
20580
205812008-02-01 Kenichi Handa <handa@m17n.org>
20582
20583 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20584 ASCII only string.
20585
20586 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20587
20588 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20589 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20590
205912008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20594
20595 * coding.c (QCmnemonic, QCdefalut_char)
20596 (QCdecode_translation_table, QCencode_translation_table)
20597 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20598 (get_translation_table): Return a list of translation tables if
20599 necessary.
20600 (decode_coding): Call get_translation_table with ENCODEP 0.
20601 (char_encodable_p): If translation_table is non-nil, always call
20602 translate_char.
20603 (Fdefine_coding_system_internal): Accept list of translation
20604 tables as :encode-translation-table and :decode-translation-table.
20605 (Fcoding_system_put): New function.
20606 (syms_of_coding): Declare new symbols. Defsubr
20607 Scoding_system_put.
20608 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20609 typically JISX0212.
20610
20611 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20612 when the charset is superset type.
20613
20614 * character.c (translate_char): Accept list of translation tables.
20615
206162008-02-01 Kenichi Handa <handa@m17n.org>
20617
20618 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20619 (CODING_ATTR_TRANS_TBL): New macro.
20620
20621 * coding.c (get_translation_table): New function.
20622 (translate_chars): Fix the bug of skipping annotation data.
20623 (decode_coding, encode_coding): Utilize get_translation_table.
20624 (char_encodable_p, Funencodable_char_position): Translate char if
20625 necessary.
20626 (Ffind_coding_systems_region_internal)
20627 (Fcheck_coding_systems_region): Setup translation table for encode
20628 in a coding system attribute vector in advance.
20629 (Fdefine_coding_system_internal): Allow a symbol as translation
20630 table. For shift-jis type coding system, allow 4th charset.
20631
206322008-02-01 Kenichi Handa <handa@m17n.org>
20633
20634 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20635
20636 * xdisp.c (get_next_display_element): Pass -1 as POS to
20637 FACE_FOR_CHAR if displaying a C-string.
20638
206392008-02-01 Kenichi Handa <handa@m17n.org>
20640
20641 * composite.c (get_composition_id): Handle xoff and yoff in a
20642 composition rule.
20643
20644 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20645 (struct composition): New member lbearing and rbearing.
20646
20647 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20648 (x_get_glyph_overhangs): Handle a composition glyph.
20649 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20650
20651 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20652 composition glyph.
20653
206542008-02-01 Kenichi Handa <handa@m17n.org>
20655
20656 * print.c: Include charset.h.
20657 (Vprint_charset_text_property): New variable.
20658 (Qdefault): Extern it.
20659 (PRINT_STRING_NON_CHARSET_FOUND)
20660 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20661 (print_check_string_result): New variable.
20662 (print_check_string_charset_prop): New function.
20663 (print_prune_charset_plist): New variable.
20664 (print_prune_string_charset): New function.
20665 (print_object): Call print_prune_string_charset if
20666 Vprint_charset_text_property is not t.
20667 (print_interval): Print nothing if interval->plist is nil.
20668 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20669 variable. Init and staticpro print_prune_charset_plist.
20670
206712008-02-01 Kenichi Handa <handa@m17n.org>
20672
20673 * fontset.c (new_fontset_from_font_name): Use the specified font
20674 for all characters in the new fontset.
20675
20676 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20677 OBJECT args.
20678
20679 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20680 OBJECT args for composition too.
20681
20682 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20683 OBJECT args.
20684
206852008-02-01 Kenichi Handa <handa@m17n.org>
20686
20687 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20688
20689 * fontset.c (reorder_font_vector): Adjust for the change of
20690 FONT_DEF format.
20691 (fontset_face): New arg id. Change caller.
20692 (face_for_char): New args pos and object.
20693 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20694 (fs_query_fontset): Check NAME by Fassoc too.
20695 (Fset_fontset_font): Allow non-XLFD font name.
20696 (Ffontset_info): Adjust for the change of FONT_DEF format.
20697
20698 * fontset.h (face_for_char): Adjust prototype.
20699
20700 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20701 (append_space, extend_face_to_end_of_line)
20702 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20703 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20704
20705 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20706 POS and OBJECT args.
20707
20708 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20709 POS and OBJECT args.
20710
207112008-02-01 Jason Rumney <jasonr@gnu.org>
20712
20713 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20714 of GlobalAlloc'ed memory.
20715
207162008-02-01 Kenichi Handa <handa@m17n.org>
20717
20718 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20719
20720 * charset.h (charset_table_used): Delete extern.
20721
20722 * charset.c (charset_table_used): Make it static.
20723 (map_charset_chars): Fix args to c_function with.
20724
20725 * chartab.c (map_sub_char_table_for_charset): Fix args to
20726 c_function with.
20727
20728 * coding.h (enum coding_result_code): Delete
20729 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20730
20731 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20732 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20733 (Vlast_code_conversion_error): New variables.
20734 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20735 (ONE_MORE_BYTE): Record error if any instead of signaling an
20736 error. If non-ASCII multibyte char is found, return the negative
20737 value of the code. All callers changed to check it.
20738 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20739 (record_conversion_result): New function. Change all codes setting
20740 coding->result to call this function.
20741 (detect_coding_utf_8, decode_coding_utf_8)
20742 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20743 Don't use the local variable incomplete.
20744 (emacs_mule_char): Change the second arg to `const'.
20745 (decode_coding): Fix of flushing out unprocessed data.
20746 (make_conversion_work_buffer): Fix making of a work buffer.
20747 (decode_coding_object): Return coding->dst_object.
20748
20749 * fontset.c (set_fontset_font): Fix args.
20750
20751 * lisp.h (CHARACTERBITS): Define as 22.
20752
20753 * process.c (send_process): Be sure to set coding->src_multibyte.
20754
20755 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20756
207572008-02-01 Kenichi Handa <handa@m17n.org>
20758
20759 * xdisp.c (handle_auto_composed_prop): Give limit to
20760 Fnext_single_char_property_change.
20761
207622008-02-01 Kenichi Handa <handa@m17n.org>
20763
20764 * composite.c (syms_of_composite): Don't make the composition hash
20765 table weak.
20766
20767 * fontset.c (Fset_fontset_font): Fix docstring.
20768
20769 * lisp.h (detect_coding_system): Adjust prototype.
20770
20771 * fileio.c (kill_workbuf_unwind): Delete this function.
20772 (Finsert_file_contents): Adjust the call of detect_coding_system.
20773 Get conversion_buffer by code_conversion_save. Use the macro
20774 CODING_MAY_REQUIRE_DECODING. After decoding, update
20775 coding_system.
20776
20777 * coding.h (make_conversion_work_buffer): Delete extern.
20778 (code_conversion_save): Extern it.
20779
20780 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20781 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20782 (decode_coding_utf_8): Don't do eol converion.
20783 (detect_coding_utf_16): Check coding->src_chars, not
20784 coding->src_bytes. Add heuristics for those that have no signature.
20785 (decode_coding_emacs_mule, decode_coding_iso_2022)
20786 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20787 Don't do eol converion.
20788 (adjust_coding_eol_type): Return a new coding system.
20789 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20790 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20791 each change.
20792 (decode_coding): Pay attention to undo_list. Do eol conversion for
20793 all types of coding-systems (if necessary).
20794 (Vcode_conversion_work_buf_list): Delete it.
20795 (Vcode_conversion_reused_workbuf): Rename from
20796 Vcode_conversion_reused_work_buf.
20797 (Vcode_conversion_workbuf_name): New variable.
20798 (reused_workbuf_in_use): New variable.
20799 (make_conversion_work_buffer): Delete the arg DEPTH.
20800 (code_conversion_restore): Change argument to cons.
20801 (code_conversion_save): Delete the argument BUFFER. Change callers.
20802 (detect_coding_system): New argument src_chars. Change callers.
20803 Fix for utf-16 detection.
20804 (init_coding_once): Don't use ISO_carriage_return.
20805 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20806 reused_workbuf_in_use.
20807
208082008-02-01 Kenichi Handa <handa@m17n.org>
20809
20810 * keymap.c (store_in_keymap): Pay attention to the case that idx
20811 is a cons specifying a character range.
20812
208132008-02-01 Kenichi Handa <handa@m17n.org>
20814
20815 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20816 HANDLED_RECOMPUTE_PROPS.
20817
20818 * coding.c (Fdefine_coding_system_internal): Fix checking of
20819 ascii compatibility.
20820
208212008-02-01 Kenichi Handa <handa@m17n.org>
20822
20823 * charset.c (find_charsets_in_text): Delete unused locale variable.
20824 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20825
20826 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20827 Resync charset_list to Vemacs_mule_charset_list.
20828
20829 * keymap.c (store_in_keymap): Pay attention to the case that idx
20830 is a cons specifying a character range.
20831
208322008-02-01 Kenichi Handa <handa@m17n.org>
20833
20834 * composite.c (update_compositions): Bind inhibit-read-only, etc
20835 to t before calling remove-list-of-text-properties.
20836
20837 * print.c (print_object): Always print ASCII chars as is.
20838
208392008-02-01 Kenichi Handa <handa@m17n.org>
20840
20841 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20842
20843 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20844 is a char table.
20845
208462008-02-01 Kenichi Handa <handa@m17n.org>
20847
20848 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20849
208502008-02-01 Kenichi Handa <handa@m17n.org>
20851
20852 * xfaces.c (set_lface_from_font_name): Fix for the case that
20853 FONTNAME is not fontset name.
20854
208552008-02-01 Kenichi Handa <handa@m17n.org>
20856
20857 * fns.c (base64_encode_1): Fix previous change.
20858
208592008-02-01 Kenichi Handa <handa@m17n.org>
20860
20861 * fontset.c (set_fontset_font): New function.
20862 (Fset_fontset_font): If a font is specified for a charset, use
20863 map_charset_chars to store the font spec in a fontset.
20864
208652008-02-01 Kenichi Handa <handa@m17n.org>
20866
20867 * fontset.c (fontset_face): Create a fallback fontset on demand.
20868 (make_fontset): Don't create a fallback fontset here.
20869 (free_face_fontset): Free a fallback fontset (if any) too.
20870 (n_auto_fontsets): Delete this variable.
20871 (auto_fontset_alist): New variable.
20872 (new_fontset_from_font_name): Check auto_fontset_alist.
20873 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20874 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20875 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20876 Defsubr Sfontset_list_all.
20877
208782008-02-01 Kenichi Handa <handa@m17n.org>
20879
20880 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20881
208822008-02-01 Kenichi Handa <handa@m17n.org>
20883
20884 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20885
208862008-02-01 Kenichi Handa <handa@m17n.org>
20887
20888 * editfns.c (Fgoto_char): Fix docstring.
20889
208902008-02-01 Kenichi Handa <handa@m17n.org>
20891
20892 * insdel.c (insert_from_gap): Adjust intervals correctly.
20893
208942008-02-01 Jason Rumney <jasonr@gnu.org>
20895
20896 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20897 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20898 (w32_initialize): Try to load it.
20899 (x_get_font_repertory): Use it if available.
20900 (w32_encode_char): Add shortcut for unicode output.
20901
20902 * w32fns.c (w32_load_system_font): Default charset to -1.
20903 (x_to_w32_charset): Match all fonts for unicode.
20904 (w32_to_x_charset): New parameter matching. Don't return partial
20905 or wildcard charsets.
20906 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20907 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20908 (w32_to_x_font): Match charset to real charset.
20909 (enum_font_cb2): Always list unicode versions.
20910
20911 * makefile.w32-in (temacs): Increase EMHEAP.
20912
209132008-02-01 Jason Rumney <jasonr@gnu.org>
20914
20915 * w32term.c (w32_encode_char): New charset parameter.
20916 font_info.encoding becomes encoding_type.
20917 (x_get_font_repertory): New function. Warning: stub only!
20918 (x_new_font): Return quickly if font already set.
20919 (x_new_fontset): fontsetname parameter is Lisp_Object.
20920 Use new fs_query_fontset. Try new_fontset_from_font_name.
20921 Use fontset_name for return value.
20922
20923 * w32term.h: Declare x_get_font_repertory.
20924
20925 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20926 place of find_charset_in_text. Use encode_coding_object in place
20927 of encode_coding.
20928 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20929 decode_coding.
20930
20931 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20932 of x_new_fontset.
20933 (w32_load_system_font): Initialize charset as unicode.
20934 font_info.encoding becomes encoding_type.
20935 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20936 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20937 (syms_of_w32fns): Set get_font_repertory_func.
20938
20939 * w32console.c: Include character.h. Use terminal_encode_buffer
20940 from term.c.
20941 (write_glyphs): Use new version of encode_terminal_code. Use
20942 encode_coding_object in place of encode_coding.
20943
20944 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20945 encoding becomes encoding_type.
20946
20947 * term.c (terminal_encode_buffer): Make externally visible.
20948
20949 * makefile.w32-in: Add character.h dependancies.
20950 (character.o, chartab.o): New targets.
20951
209522008-02-01 Kenichi Handa <handa@m17n.org>
20953
20954 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20955 CODING_ID_EOL_TYPE.
20956
209572008-02-01 Andreas Schwab <schwab@suse.de>
20958
20959 * coding.c (produce_chars): Revert last change.
20960
209612008-02-01 Kenichi Handa <handa@m17n.org>
20962
20963 * charset.h (charset_unicode): Extern it.
20964
20965 * charset.c (string_xstring_p): Check by (C >= 0x100).
20966 (find_charsets_in_text): Change format of the arc CHARSETS. New
20967 arg MULTIBYTE.
20968 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20969 change of find_charsets_in_text.
20970 (Fsplit_char): Fix doc. Never return unknown.
20971
20972 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20973
20974 * coding.c (Fdefine_coding_system_alias): Update
20975 Vcoding_system_list.
20976
20977 * fontset.c (load_font_get_repertory): Pay attention to the case
20978 that ENCODING of a font is specified by a char-table.
20979
20980 * xterm.c (x_get_font_repertory): Handle the case that the
20981 encoding of font is other than Unicode.
20982
209832008-02-01 Kenichi Handa <handa@m17n.org>
20984
20985 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20986 if a character is encodable by the terminal coding system. If
20987 not, produces proper number of `?'s. Update
20988 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20989 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20990
209912008-02-01 Kenichi Handa <handa@m17n.org>
20992
20993 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20994 variables.
20995 (encode_terminal_code): Change argument. Encode multiple
20996 characters at once. Store the result of encoding in
20997 terminal_encode_buffer.
20998 (write_glyphs, insert_glyphs): Adjust for the change of
20999 encode_terminal_code.
21000 (term_init): Initialize terminal_encode_buffer and
21001 terminal_encode_buf_size.
21002
21003 * coding.c (consume_chars): If coding->src_object is nil, don't
21004 check annotation.
21005
210062008-02-01 Kenichi Handa <handa@m17n.org>
21007
21008 * character.c (char_string): Use ASCII_CHAR_P instead of
21009 SINGLE_BYTE_CHAR_P.
21010
210112008-02-01 Kenichi Handa <handa@m17n.org>
21012
21013 * xdisp.c (handle_auto_composed_prop): Check if the last
21014 characters of auto-composed region is newly composed with the
21015 following characters.
21016 (handle_composition_prop): Fix checking of point being inside
21017 composition.
21018
210192008-02-01 Kenichi Handa <handa@m17n.org>
21020
21021 * fns.c (concat): Don't change multibyteness of the result by
21022 concatenating an 8-bit character.
21023
21024 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21025 multibyteness of the result when newelt is an 8-bit character.
21026
210272008-02-01 Dave Love <fx@gnu.org>
21028
21029 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21030 EMACS_INT.
21031
21032 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21033
21034 * xfaces.c (face_numeric_value): Declare dim size_t.
21035 (Finternal_lisp_face_equal_p): Remove unused f.
21036
21037 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21038 (MATRIX_ROW): Remove unused vars.
21039 (draw_glyphs, x_insert_glyphs, fast_find_position)
21040 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21041 byte/char counts.
21042
21043 * regex.c (regex_compile): Remove unused var.
21044
21045 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21046
21047 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21048 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21049
21050 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21051
21052 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21053
21054 * fileio.c (Fwrite_region): Remove unused var.
21055
21056 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21057 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21058
21059 * composite.c (Fremove_list_of_text_properties): Declare.
21060
21061 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21062 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21063 (coding_inherit_eol_type): Remove unused attrs.
21064 (detect_coding): Cast arg of detect_eol.
21065
21066 * charset.c (syms_of_charset): Remove unused var p.
21067 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21068 byte/char counts.
21069
21070 * casetab.c (set_case_table): Remove unused var.
21071
21072 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21073 unused vars.
21074
210752008-02-01 Dave Love <fx@gnu.org>
21076
21077 * xterm.c (x_bitmap_mask): Declare.
21078
210792008-02-01 Dave Love <fx@gnu.org>
21080
21081 * xterm.c (x_term_init): Fix type error.
21082
21083 * lisp.h: Add Funibyte_char_to_multibyte.
21084
21085 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21086 (Fset_coding_system_priority): Doc fix.
21087
21088 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21089
21090 * indent.c (check_composition): Make start and end EMACS_INT.
21091
21092 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21093
21094 * xdisp.c (handle_composition_prop, check_point_in_composition):
21095 Make buffer positions EMACS_INT.
21096
21097 * composite.c (find_composition, run_composition_function)
21098 (update_compositions, Ffind_composition_internal): Make buffer
21099 positions EMACS_INT.
21100
21101 * composite.h (find_composition, update_compositions): Make
21102 position args EMACS_INT.
21103
21104 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21105
21106 * intervals.c (get_property_and_range):
21107 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21108
21109 * unexalpha.c: Don't include varargs.h.
21110
211112008-02-01 Dave Love <fx@gnu.org>
21112
21113 * coding.h (ENCODE_UTF_8): New.
21114
21115 * Makefile.in (gtkutil.o): Depend on coding.h.
21116
21117 * coding.c (Fset_coding_system_priority): Doc fix.
21118
211192008-02-01 Kenichi Handa <handa@m17n.org>
21120
21121 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21122 the case of auto saving.
21123
211242008-02-01 Andreas Schwab <schwab@suse.de>
21125
21126 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21127 `range' from GC.
21128
211292008-02-01 Kenichi Handa <handa@m17n.org>
21130
21131 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21132
211332008-02-01 Kenichi Handa <handa@m17n.org>
21134
21135 * fileio.c (choose_write_coding_system): Return a decided coding system.
21136 (Fwrite_region): Set Vlast_coding_system_used to the return value
21137 of choose_write_coding_system.
21138
211392008-02-01 Kenichi Handa <handa@m17n.org>
21140
21141 * charset.c (Fset_charset_priority): Pay attention to duplicated
21142 arguments.
21143
21144 * coding.c (QCcategory): New variable.
21145 (syms_of_coding): Defsym it. Set all elements of
21146 Vcoding_category_table and their symbol values.
21147 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21148 coding-category-XXX, and coding-category-list.
21149 (Fdefine_coding_system_internal): Add category in the plist.
21150
211512008-02-01 Kenichi Handa <handa@m17n.org>
21152
21153 * callproc.c (Fcall_process): Handle carryover correctly.
21154
21155 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21156 (raw_text_coding_system): Check NILP (coding_system).
21157 (coding_inherit_eol_type): Check NILP (coding_system) and
21158 NILP (parent).
21159 (consume_chars): Fix for the case of raw-text.
21160
21161 * process.c (read_process_output): Handle carryover correctly.
21162
211632008-02-01 Dave Love <fx@gnu.org>
21164
21165 * regex.c (re_search_2): Fix last change.
21166
211672008-02-01 Kenichi Handa <handa@m17n.org>
21168
21169 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21170 target_multibyte. Even in a unibyte case, return a converted
21171 multibyte char.
21172 (GET_CHAR_AFTER): New macro.
21173 (PATFETCH): Translate via multibyte char.
21174 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21175 (SETUP_MULTIBYTE_RANGE): New macro.
21176 (regex_compile): Setup compiled code so that its multibyteness
21177 matches that of a target. Fix the handling of "[X-YZ]" using
21178 SETUP_MULTIBYTE_RANGE.
21179 (analyse_first) <charset>: For filling fastmap for all multibyte
21180 characters, don't check by BASE_LEADING_CODE_P.
21181 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21182 the same as RE_MULTIBYTE_P (bufp) now.
21183 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21184 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21185 (TRANSLATE_VIA_MULTIBYTE): New macro.
21186 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21187 It is the same as RE_MULTIBYTE_P (bufp) now.
21188 <exactn>: Translate via multibyte.
21189 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21190 translate it.
21191 <charset, charset_not>: Fetch a character by
21192 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21193 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21194 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21195 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21196 by GET_CHAR_AFTER.
21197 (bcmp_translate): Likewise.
21198
21199 * search.c (compile_pattern): Check the member target_multibyte,
21200 not the member multibyte of buf.
21201
21202 * lread.c (read1): While reading a string, set force_singlebyte
21203 and force_multibyte correctly.
21204
21205 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21206 up of unibyte_to_multibyte_table.
21207
212082008-02-01 Kenichi Handa <handa@m17n.org>
21209
21210 * coding.c (setup_coding_system): If coding has
21211 post-read-conversion or pre-write-conversion, set
21212 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21213 respectively.
21214 (decode_coding_gap): Run post-read-conversion if any.
21215
21216 * fileio.c (Finsert_file_contents): Even if we read into a
21217 unibyte buffer, check if we must decode the result or not.
21218
212192008-02-01 Kenichi Handa <handa@m17n.org>
21220
21221 * coding.c (make_conversion_work_buffer): Change the work buffer
21222 name to the same one as that of Emacs 21.
21223
212242008-02-01 Kenichi Handa <handa@m17n.org>
21225
21226 * coding.h (make_conversion_work_buffer): Adjust prototype.
21227 (code_conversion_restore): Don't extern it.
21228
21229 * coding.c (detected_mask): Delete unused variable.
21230 (decode_coding_iso_2022): Pay attention to the byte sequence of
21231 CTEXT extended segment, and retain those bytes as is.
21232 (decode_coding_ccl): Delete unused variable `valids'.
21233 (setup_coding_system): Delete unused variable `category'.
21234 (consume_chars): Delete unused variable `category'. Make it work
21235 for non-multibyte case.
21236 (make_conversion_work_buffer): Change argument.
21237 (saved_coding): Delete unused variable.
21238 (code_conversion_restore): Don't check saved_coding->destination.
21239 (code_conversion_save): New function.
21240 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21241 instead of record_unwind_protect.
21242 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21243 (detect_coding_system): Delete unused variable `mask'.
21244 (Fdefine_coding_system_internal): Delete unused variable id.
21245
21246 * fileio.c (kill_workbuf_unwind): New function.
21247 (Finsert_file_contents): On replacing, call
21248 make_conversion_work_buffer with correct args, and call
21249 record_unwind_protect with the first arg kill_workbuf_unwind.
21250
21251 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21252
212532008-02-01 Kenichi Handa <handa@m17n.org>
21254
21255 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21256 (fontset_add): Fix for the case that TO is less than TO1.
21257 (Ffontset_info): Don't use fallback fontset on checking the
21258 default fontset.
21259 (dump_fontset): New function for debugging.
21260
21261 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21262 coding_type is Qcharset.
21263
212642008-02-01 Kenichi Handa <handa@m17n.org>
21265
21266 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21267 (map_char_table): Don't inherit the value from the parent on
21268 initializing VAL. Adjust for the above change.
21269
212702008-02-01 Kenichi Handa <handa@m17n.org>
21271
21272 * coding.c (Qsignature, Qendian): Delete these variables.
21273 (syms_of_coding): Don't initialize them.
21274 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21275 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21276 detect_info->found.
21277 (decode_coding_utf_16): Don't detect BOM here.
21278 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21279 is NOT utf_16_without_bom.
21280 (setup_coding_system): For a coding system of type utf-16, check
21281 if the attribute :endian is Qbig or not (not nil or not), and set
21282 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21283 (detect_coding): If coding type is utf-16 and BOM detection is
21284 required, detect it.
21285 (Fdefine_coding_system_internal): For a coding system of type
21286 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21287
212882008-02-01 Kenichi Handa <handa@m17n.org>
21289
21290 * coding.c (coding_set_source): Fix for the case that the current
21291 buffer is different from coding->src_object.
21292 (decode_coding_object): Don't use the conversion work buffer if
21293 DST_OBJECT is a buffer.
21294
212952008-02-01 Dave Love <fx@gnu.org>
21296
21297 * lread.c (read_emacs_mule_char) [len==2]: Index
21298 emacs_mule_charset correctly.
21299
213002008-02-01 Dave Love <fx@gnu.org>
21301
21302 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21303 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21304 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21305 treated specially.)
21306 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21307 (detected_mask): Remove Big5 bits.
21308
213092008-02-01 Kenichi Handa <handa@m17n.org>
21310
21311 The following changes are to make the font rescaling facility
21312 compatible with Emacs 21.
21313
21314 * xfaces.c (Vface_font_rescale_alist): Rename from
21315 Vface_resizing_fonts.
21316 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21317 (font_rescale_ratio): Rename from font_resizing_ratio.
21318 (split_font_name): Set font->rescale_ratio.
21319 (better_font_p): Pay attention to font->rescale_ratio.
21320 (build_scalable_font_name): Likewise. Change RESX, and RESY
21321 fields.
21322 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21323
213242008-02-01 Kenichi Handa <handa@m17n.org>
21325
21326 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21327 (Qutf_16_le): Remove these variables.
21328 (syms_of_coding): Don't DEFSYM them.
21329 (decode_coding_utf_16): Fix handling of BOM.
21330 (encode_coding_utf_16): Fix handling of BOM.
21331
213322008-02-01 Kenichi Handa <handa@m17n.org>
21333
21334 * fileio.c (Finsert_file_contents): On replacing, before decoding
21335 the file into the work buffer, set point of the work buffer to the end.
21336
213372008-02-01 Dave Love <fx@gnu.org>
21338
21339 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21340
213412008-02-01 Dave Love <fx@gnu.org>
21342
21343 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21344 and fix C types.
21345
213462008-02-01 Kenichi Handa <handa@m17n.org>
21347
21348 * xdisp.c (SKIP_GLYPHS): New macro.
21349 (set_cursor_from_row): Pay attention to string display properties.
21350
21351 * category.c (copy_category_entry): Fix for the case that RANGE
21352 is an integer.
21353
21354 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21355
21356 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21357
213582008-02-01 Kenichi Handa <handa@m17n.org>
21359
21360 * charset.c (Fcharset_id_internal): New function.
21361 (syms_of_charset): Defsubr it.
21362
21363 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21364 with the last arg charset_list acquired from coding.
21365 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21366 the attribute coding_attr_ccl_valids.
21367
21368 * coding.h (enum define_coding_ccl_arg_index): Set the first
21369 member coding_arg_ccl_decoder to coding_arg_max.
21370
21371 * ccl.h (ccl_driver): Adjust prototype.
21372
21373 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21374 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21375 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21376 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21377 last arg Qnil.
21378
213792008-02-01 Kenichi Handa <handa@m17n.org>
21380
21381 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21382 call encode_char.
21383
21384 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21385
213862008-02-01 Dave Love <fx@gnu.org>
21387
21388 * composite.c (syms_of_composite): Make composition_hash_table weak.
21389
213902008-02-01 Kenichi Handa <handa@m17n.org>
21391
21392 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21393 (font_name_registry): Don't extern them.
21394 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21395
21396 * fontset.h (Qfontset): Don't extern it.
21397 (new_fontset_from_font_name): Extern it.
21398
21399 * fontset.c: Give 8 extra slots to fontset objects.
21400 (Qfontset_info): New variable.
21401 (syms_of_fontset): Defsym it.
21402 (FONTSET_FALLBACK): New macro.
21403 (fontset_face): Try also the default fontset.
21404 (make_fontset): Realize a fallback fontset from the default fontset.
21405 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21406 using split_font_name_into_vector and build_font_name_from_vector.
21407 (Fset_fontset_font): Access the elements of font_spec by enum
21408 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21409 name by using split_font_name_into_vector.
21410 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21411 generate a proper font name from the fontset name. Update
21412 Vfontset_alias_alist.
21413 (n_auto_fontsets): New variable.
21414 (new_fontset_from_font_name): New function.
21415 (Ffont_info): Store the information about fonts generated from the
21416 default fontset in the first extra slot of the returned char-table.
21417
21418 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21419 (font_name_registry): Delete function.
21420 (split_font_name_into_vector): New function.
21421 (build_font_name_from_vector): New function.
21422 (font_list): The argument REGISTRY is now a list of registry names.
21423 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21424 specifies an explicit font name, return the name as is. Make a
21425 list of registy names.
21426
21427 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21428 of x_new_fontset.
21429 (Fx_create_frame): Don't call x_new_fontset here. Just use
21430 x_list_fonts to check the existence of fonts.
21431
21432 * xterm.h (x_new_fontset): Adjust prototype.
21433
21434 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21435 string. Use new_fontset_from_font_name to create a fontset from a
21436 font name.
21437
214382008-02-01 Kenichi Handa <handa@m17n.org>
21439
21440 * syntax.c (Vfind_word_boundary_function_table): New name for
21441 Vnext_word_boundary_function_table.
21442 (find-word-boundary-function-table): New name for
21443 next-word-boundary-function-table.
21444
214452008-02-01 Dave Love <fx@gnu.org>
21446
21447 * Makefile.in: Fix some dependencies.
21448
21449 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21450 set it to nil before returning.
21451
21452 * composite.c (update_compositions): Fix type error.
21453
21454 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21455
214562008-02-01 Kenichi Handa <handa@m17n.org>
21457
21458 * xterm.c (x_new_font): Optimize for the case that the font is
21459 already set for the frame.
21460
214612008-02-01 Kenichi Handa <handa@m17n.org>
21462
21463 * chartab.c (char_table_ascii): Check if the char table contents
21464 is sub-char-table or not.
21465 (char_table_set, char_table_set_range): Fix argument to
21466 char_table_ascii.
21467
21468 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21469 (detect_coding_utf_8, detect_coding_utf_16)
21470 (detect_coding_emacs_mule, detect_coding_iso_2022)
21471 (detect_coding_sjis, detect_coding_big5)
21472 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21473 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21474 sequence is valid in this coding system. Change callers.
21475 (MAX_ANNOTATION_LENGTH): New macro.
21476 (ADD_ANNOTATION_DATA): New macro.
21477 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21478 ADD_ANNOTATION_DATA. Change the format of annotation data.
21479 (ADD_CHARSET_DATA): New macro.
21480 (emacs_mule_char): New argument ID. Change callers.
21481 (decode_coding_emacs_mule, decode_coding_iso_2022)
21482 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21483 Produce charset annotation data in coding->charbuf.
21484 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21485 to charset annotation data in coding->charbuf.
21486 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21487 coding->common_flags if the coding system is iso-2022 based and
21488 uses designation.
21489 (produce_composition): Adjust for the new annotation data format.
21490 (produce_charset): New function.
21491 (produce_annotation): Handle charset annotation.
21492 (handle_composition_annotation, handle_charset_annotation): New
21493 functions.
21494 (consume_chars): Handle charset annotation. Utilize the above two
21495 functions.
21496 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21497 buffer, get the deleted text as a string and set
21498 coding->src_object to that string.
21499 (detect_coding, detect_coding_system): Use the new struct
21500 coding_detection_info.
21501
21502 * coding.h (struct coding_detection_info): New structure.
21503 (struct coding_system): Adjust prototype of the member `detector'.
21504 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21505
215062008-02-01 Kenichi Handa <handa@m17n.org>
21507
21508 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21509
215102008-02-01 Dave Love <fx@gnu.org>
21511
21512 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21513 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21514 to new local and nullify apropos_accumulate before returning.
21515 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21516
215172008-02-01 Kenichi Handa <handa@m17n.org>
21518
21519 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21520 correctly.
e3eea1fc 21521
aac0c6e3
MR
215222008-02-01 Dave Love <fx@gnu.org>
21523
21524 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21525
215262008-02-01 Kenichi Handa <handa@m17n.org>
21527
21528 The following changes are to make character composition happen
21529 automatically on displaying.
21530
21531 * Makefile.in (lisp, shortlisp): Add composite.elc.
21532
21533 * composite.h (Qauto_composed, Vauto_composition_function)
21534 (Qauto_composition_function): Extern them.
21535
21536 * composite.c (Vcomposition_function_table)
21537 (Qcomposition_function_table): Delete variables.
21538 (Qauto_composed, Vauto_composition_function)
21539 (Qauto_composition_function): New variables.
21540 (run_composition_function): Don't call
21541 compose-chars-after-function.
21542 (update_compositions): Clear `auto-composed' text property.
21543 (compose_chars_in_text): Delete this function.
21544 (syms_of_composite): Staticpro Qauto_composed and
21545 Qauto_composition_function. Declare Vauto_composition_function as
21546 a Lisp variable.
21547
21548 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21549
21550 * xdisp.c (it_props): Add an entry for Qauto_composed.
21551 (handle_auto_composed_prop): New function.
21552
21553 * xselect.c (selection_data_to_lisp_data): Don't call
21554 compose_chars_in_text.
21555
215562008-02-01 Dave Love <fx@gnu.org>
21557
21558 * keyboard.c (read_char): Modify checking around use of
21559 Vkeyboard_translate_table.
21560
21561 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21562 and fix C types.
21563
215642008-02-01 Kenichi Handa <handa@m17n.org>
21565
21566 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21567 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21568 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21569 the case that the last byte is '\r' correctly.
21570 (decode_coding): Flush out the unprocessed data correctly.
21571 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21572
215732008-02-01 Dave Love <fx@gnu.org>
21574
21575 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21576 Add XK_ISO... case.
21577 (xaw_scroll_callback): Revert last change.
21578
215792008-02-01 Kenichi Handa <handa@m17n.org>
21580
21581 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21582
215832008-02-01 Kenichi Handa <handa@m17n.org>
21584
21585 * xfaces.c (Vface_resizing_fonts): New variable.
21586 (struct font_name): New member `resizing_ratio'.
21587 (font_resizing_ratio): New function.
21588 (split_font_name): Set font->resizing_ratio.
21589 (better_font_p): Pay attention to font->resizing_ratio.
21590 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21591 RESX, and RESY fields.
21592 (try_alternative_families): Try scalable fonts if
21593 Vscalable_fonts_allowed is not Qt.
21594 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21595
215962008-02-01 Dave Love <fx@gnu.org>
21597
21598 * xterm.c (xaw_scroll_callback): Cast correctly.
21599
216002008-02-01 Dave Love <fx@gnu.org>
21601
21602 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21603 (lispy_kana_keys): Comment out.
21604 (make_lispy_event) [XK_kana_A]: Comment out.
21605
21606 * xterm.c (xaw_scroll_callback): Cast call_data.
21607 (XTread_socket): Deal with ASCII keysyms.
21608 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21609
216102008-02-01 Dave Love <fx@gnu.org>
21611
21612 * xterm.c (Vx_keysym_table): New.
21613 (syms_of_xterm): Initialize it.
21614 (XTread_socket): Use it.
21615 From head: Eliminate incorrect optimization that tried to avoid
21616 decoding the output of X*LookupString.
21617 (x_get_font_repertory): Delete charset declaration.
21618
216192008-02-01 Kenichi Handa <handa@m17n.org>
21620
21621 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21622 return 0.
21623 (Fdefine_coding_system_internal): Setup
21624 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21625
216262008-02-01 Dave Love <fx@gnu.org>
21627
21628 * coding.c (Fcheck_coding_system): Doc fix.
21629
21630 * editfns.c (Finsert_byte): Return a proper value.
21631
216322008-02-01 Kenichi Handa <handa@m17n.org>
21633
21634 * coding.c (decode_coding): Fix args to translate_chars. Pay
21635 attention to Vstandard_translation_table_for_decode.
21636 (encode_coding): Fix args to translate_chars. Pay attention to
21637 Vstandard_translation_table_for_encode.
21638
21639 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21640 SINGLE_BYTE_CHAR_P.
21641
21642 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21643 not by SINGLE_BYTE_CHAR_P.
21644
21645 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21646 SINGLE_BYTE_CHAR_P.
21647
21648 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21649 SINGLE_BYTE_CHAR_P.
21650
21651 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21652 by SINGLE_BYTE_CHAR_P.
21653
21654 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21655 SINGLE_BYTE_CHAR_P.
21656
216572008-02-01 Dave Love <fx@gnu.org>
21658
21659 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21660
216612008-02-01 Dave Love <fx@gnu.org>
21662
21663 * fns.c (Flanginfo): Fix typo.
21664
21665 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21666
216672008-02-01 Kenichi Handa <handa@m17n.org>
21668
21669 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21670 (detect_coding_emacs_mule, detect_coding_iso_2022)
21671 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21672 incomplete byte sequence. Don't update *mask when correctly detected.
21673 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21674 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21675 (detect_coding, detect_coding_system): Adjust for the changes above.
21676
216772008-02-01 Kenichi Handa <handa@m17n.org>
21678
21679 * character.c (char_string): Rename from
21680 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21681 (string_char): Rename from string_char.
21682
21683 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21684 if C is greater than MAX_3_BYTE_CHAR.
21685 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21686 string_char instead of string_char_with_unification.
21687
216882008-02-01 Dave Love <fx@gnu.org>
21689
21690 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21691
216922008-02-01 Kenichi Handa <handa@m17n.org>
21693
21694 * keymap.c (push_key_description): Pay attention to force_multibyte.
21695
21696 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21697
216982008-02-01 Dave Love <fx@gnu.org>
21699
21700 * charset.c (define_charset_internal): Rename `supprementary'.
21701
21702 * Makefile.in (lisp, shortlisp): Remove latin-N.
21703
217042008-02-01 Dave Love <fx@gnu.org>
21705
21706 * xfns.c (x_window, x_window): Use use_xim.
21707
21708 * xterm.c (use_xim): Initialize.
21709 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21710 (x_term_init): Maybe set use_xim.
21711
21712 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21713
217142008-02-01 Kenichi Handa <handa@m17n.org>
21715
21716 * search.c (search_buffer): Fix case-fold-search of multibyte
21717 characters.
21718 (boyer_moore): Rename the last argument to char_high_bits.
21719
217202008-02-01 Kenichi Handa <handa@m17n.org>
21721
21722 * xdisp.c (display_string): Fix for the case of zero width glyph.
21723
21724 * xfns.c (x_set_font): Change the error message of the case that
21725 x_new_fontset returns Qt.
21726
21727 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21728 (Finternal_set_lisp_face_attribute): Use signal_error for the
21729 error of invalid fontset.
21730
21731 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21732 fontset, return Qt.
21733
217342008-02-01 Dave Love <fx@gnu.org>
21735
21736 * unexelf.c (unexec): Make .got handling not SGI-specific.
21737
21738 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21739
21740 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21741
21742 * keyboard.c (read_key_sequence): Fix type error.
21743
21744 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21745 type error.
21746
21747 * fontset.c (fontset_add): Return Lisp_Object.
21748
217492008-02-01 Dave Love <fx@gnu.org>
21750
21751 * charset.h (charset_ordered_list_tick): Declare extern.
21752
217532008-02-01 Kenichi Handa <handa@m17n.org>
21754
21755 The following changes (and some of 2008-02-01 changes of mine) are
21756 for handling syntax, category, and case conversion for unibyte
21757 characters by converting them to multibyte on the fly. With these
21758 changes, we don't have to setup syntax and case tables for unibyte
21759 characters in each language environment.
21760
21761 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21762 multibyte if necessary.
21763
21764 * bytecode.c (Fbyte_code): Likewise.
21765
21766 * character.h (LEADING_CODE_LATIN_1_MIN)
21767 (LEADING_CODE_LATIN_1_MAX): New macros.
21768 (unibyte_to_multibyte_table): Extern it.
21769 (unibyte_char_to_multibyte): New macro.
21770 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21771 (CHAR_LEADING_CODE): New macro.
21772 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21773
21774 * character.c (unibyte_to_multibyte_table): New variable.
21775 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21776 (multibyte_char_to_unibyte): If C is an eight-bit character,
21777 convert it to the corresponding byte value.
21778
21779 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21780 not 1, signals an error. Update the elements of
21781 unibyte_to_multibyte_table.
21782 (init_charset_once): Initialize unibyte_to_multibyte_table.
21783 (syms_of_charset): Define the charset `iso-8859-1'.
21784
21785 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21786 as is without converting it to unibyte. In a unibyte buffer,
21787 convert C to multibyte before checking the syntax.
21788
21789 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21790
21791 * minibuf.c (Fminibuffer_complete_word): Use the macro
21792 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21793
21794 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21795
21796 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21797 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21798 that is zero, convert an eight-bit char to multibyte.
21799 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21800 non-emacs case.
21801 (PATFETCH): Convert an eight-bit char to multibyte.
21802 (HANDLE_UNIBYTE_RANGE): New macro.
21803 (regex_compile): Setup the compiled pattern for multibyte chars
21804 even if the given regex string is unibyte. Use PATFETCH_RAW
21805 instead of PATFETCH in many places. To handle `charset'
21806 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21807 only for ASCII chars.
21808 (analyse_first) <exactn>: Simplify because the compiled pattern
21809 is multibyte.
21810 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21811 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21812 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21813 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21814 multibyte always 1.
21815 (re_search_2): In emacs, set the locale variable multibyte to 1,
21816 otherwise to 0. New local variable target_multibyte. Check it
21817 to decide the multibyteness of STR1 and STR2. If
21818 target_multibyte is zero, convert unibyte chars to multibyte
21819 before translating and checking fastmap.
21820 (TARGET_CHAR_AND_LENGTH): New macro.
21821 (re_match_2_internal): In emacs, set the locale variable multibyte
21822 to 1, otherwise to 0. New local variable target_multibyte. Check
21823 it to decide the multibyteness of STR1 and STR2. Use
21824 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21825 <charset, charset_not>: If multibyte is nonzero, check fastmap
21826 only for ASCII chars. Call bcmp_translate with
21827 target_multibyte, not with multibyte.
21828 <begline>: Declare the local variable C as `unsigned'.
21829 (bcmp_translate): Change the last arg name to target_multibyte.
21830
21831 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21832 the regexp pattern and the matching target. Set cp->buf.multibyte
21833 to the multibyteness of the regexp pattern. Set
21834 cp->but.target_multibyte to the multibyteness of the matching target.
21835 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21836 FETCH_STRING_CHAR_ADVANCE.
21837 (Freplace_match): Convert unibyte chars to multibyte.
21838
21839 * syntax.c (char_quoted, back_comment, scan_words)
21840 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21841 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21842 unibyte chars to multibyte.
21843 (skip_chars): Delete the arg syntaxp, and move the code for
21844 handling syntaxes to skip_syntaxes. Change callers.
21845 Fix the case that the multibyteness of STRING and the current
21846 buffer doesn't match.
21847 (skip_syntaxes): New function.
21848 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21849 SINGLE_BYTE_CHAR_P.
21850
218512008-02-01 Kenichi Handa <handa@m17n.org>
21852
21853 * xfaces.c (QCfontset): New variable.
21854 (LFACE_FONTSET): New macro.
21855 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21856 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21857 (Finternal_set_lisp_face_attribute)
21858 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21859 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21860 check also LFACE_FONTSET_INDEX.
21861 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21862 attrs[LFACE_FONT_INDEX].
21863 (syms_of_xfaces): Intern and staticpro QCfontset.
21864
21865 * dispextern.h (enum lface_attribute_index): New member
21866 LFACE_FONTSET_INDEX.
21867
21868 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21869
218702008-02-01 Kenichi Handa <handa@m17n.org>
21871
21872 * coding.c (coding_set_destination): Fix coding->destination for
21873 the case converting a region.
21874 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21875 (encode_coding_object): Fix coding->dst_pos and
21876 coding->dst_pos_byte for the case converting a region.
21877
21878 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21879
21880 * character.h (BYTE8_STRING): New macro.
21881
21882 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21883
218842008-02-01 Kenichi Handa <handa@m17n.org>
21885
21886 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21887 characters by octal form.
21888
21889 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21890
21891 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21892 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21893 _fetch_multibyte_char_len.
21894 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21895
21896 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21897
21898 * casefiddle.c (casify_object): Simplify. Handle the case that
21899 the case conversion change the byte length.
21900 (casify_region): Likewise.
21901
21902 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21903
21904 * character.c (_fetch_multibyte_char_len): Delete this variable.
21905 (syms_of_character): Setup Vprintable_chars.
21906
21907 * editfns.c (Fchar_equal): Fix for the unibyte case.
21908 (Finsert_byte): New function.
21909 (syms_of_editfns): Defsubr it.
21910
21911 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21912 of direct code 0x3ffff.
21913
21914 * search.c (Freplace_match): Fix for the unibyte case.
21915
219162008-02-01 Kenichi Handa <handa@m17n.org>
21917
21918 * lread.c (safe_to_load_p): Fix the logic.
21919
21920 * syntax.c (scan_words): Don't treat characters belonging to
21921 different scripts as constituting a word.
21922
21923 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21924
21925 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21926
21927 * emacs.c (main): In the case of --unibyte, instead of aborting on
21928 finding non-empty buffer, make it unibyte.
21929
219302008-02-01 Kenichi Handa <handa@m17n.org>
21931
21932 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21933 to create a fontset.
21934
219352008-02-01 Dave Love <fx@gnu.org>
21936
21937 * character.c (Funibyte_char_to_multibyte): Doc fix.
21938
21939 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21940
219412008-02-01 Kenichi Handa <handa@m17n.org>
21942
21943 * fontset.c (fontset_add): Make the type `int'.
21944 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21945
21946 * character.c (unibyte_char_to_multibyte)
21947 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21948 charset_unibyte, not charset_primary.
21949
21950 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21951
21952 * charset.c (charset_unibyte): Rename from charset_primary.
21953 (Funibyte_charset): Rename from Fprimary_charset.
21954 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21955 (syms_of_charset): Adjust for the above changes.
21956
21957 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21958 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21959 it->multibyte_p is zero.
21960
21961 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21962 Delete extern.
21963
219642008-02-01 Kenichi Handa <handa@m17n.org>
21965
21966 * coding.c (Fdefine_coding_system_internal): Fix category setting
21967 for a coding system of type iso-2022.
21968
219692008-02-01 Kenichi Handa <handa@m17n.org>
21970
21971 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21972
219732008-02-01 Kenichi Handa <handa@m17n.org>
21974
21975 * syntax.c (Vnext_word_boundary_function_table): New variable.
21976 (next-word-boundary-function-table): Declare it as a Lisp variable
21977 in syms_of_syntax.
21978 (scan_words): Call functions in Vnext_word_boundary_function_table
21979 if any.
21980
21981 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21982
21983 * fontset.c (fs_load_font): If fontp->charset is not negative,
21984 return fontp without setting its members.
21985
219862008-02-01 Dave Love <fx@gnu.org>
21987
21988 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21989
21990 * m/sparc.h (HAVE_ALLOCA): Delete.
21991
21992 * s/irix6-5.h: Don't include strings.h.
21993 (bcopy, bzero, bcmp): Don't undef.
21994
21995 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21996
21997 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21998 (TIOCSIGSEND): Don't test IRIX6.
21999 (bcopy, bzero, bcmp): Define conditionally.
22000
220012008-02-01 Kenichi Handa <handa@m17n.org>
22002
22003 * buffer.c (Qas, Qmake, Qto): New variables.
22004 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22005 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22006
22007 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22008 we are inserting a process output into a multibyte buffer.
22009
22010 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22011 multibyte_char_to_unibyte.
22012
22013 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22014 by the primary charset, make it eight-bit char.
22015 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22016
22017 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22018 (charset_8_bit__control, charset_8_bit_graphic)
22019 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22020 (define_charset_internal): New function.
22021 (syms_of_charset): Call define_charset_internal for pre-defined
22022 charsets.
22023
22024 * charset.h (charset_8_bit): Extern it.
22025
22026 * coding.c (make_conversion_work_buffer): Adjust for the change
22027 of Fset_buffer_multibyte.
22028 (encode_coding_raw_text): Increment p0 in the loop.
22029
22030 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22031
22032 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22033 for the change of Fset_buffer_multibyte.
22034
22035 * fns.c (Fstring_to_multibyte): New function.
22036 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22037
220382008-02-01 Dave Love <fx@gnu.org>
22039
22040 * xfns.c (x_put_x_image): Declare args.
22041
22042 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22043 (try_font_list): Declare an arg.
22044
22045 * xdisp.c (message2_nolog, set_message): Declare an arg.
22046
22047 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22048
22049 * syntax.c (scan_sexps_forward): Declare an arg.
22050
22051 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22052 Declare an arg.
22053
22054 * lisp.h (Fnew_fontset): Declare.
22055
22056 * keymap.c (push_key_description): Call CHARACTERP correctly.
22057
22058 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22059 (face_for_char): Delete unused vars.
22060 (Fset_fontset_font): Doc fix. Delete unused vars.
22061
22062 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22063
22064 * composite.c (update_compositions): Declare arg.
22065
22066 * cm.c (calccost, cmgoto): Declare args.
22067
22068 * charset.c: Remove `emacs' conditional. Doc fixes.
22069 (map_char_table_for_charset): Declare.
22070
22071 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22072
22073 * ccl.c: Remove `emacs' conditional.
22074
220752008-02-01 Kenichi Handa <handa@m17n.org>
22076
22077 The following changes are to allow specifying multiple font
22078 patterns for a character range (specified by script or charset).
22079
22080 * Makefile.in (abbrev.o): Depend on syntax.h.
22081 (xfaces.o): Depend on charset.h.
22082
22083 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22084 SINGLE_BYTE_CHAR_P.
22085
22086 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22087
22088 * character.h (Vchar_script_table): Extern it.
22089
22090 * character.c (Vscript_alist): Delete.
22091 (Vchar_script_table, Qchar_script_table): New variable.
22092 (syms_of_character): Declare Vchar_script_table as a lisp variable
22093 and initialize it.
22094
22095 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22096 have property char-table-extra-slots, make no extra slot.
22097
22098 * dispextern.h (struct face): Delete member `charset'.
22099 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22100 SINGLE_BYTE_CHAR_P.
22101 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22102 Add prototypes.
22103 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22104 (generate_ascii_font_name): Rename from generate_ascii_font.
22105
22106 * fontset.h (get_font_repertory_func): New prototype.
22107 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22108 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22109
22110 * fontset.c (Qprepend, Qappend): New variables.
22111 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22112 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22113 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22114 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22115 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22116 (load_font_get_repertory): New functions.
22117 (fontset_set): Delete.
22118 (fontset_face): New arg FACE. Return face ID, not face.
22119 Complete re-write to handle new fontset structure. Change caller.
22120 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22121 (face_for_char): Don't call lookup_face.
22122 (make_fontset_for_ascii_face): New arg FACE.
22123 (fs_load_font): New arg CHARSET_ID. Don't check
22124 Vfont_encoding_alist here.
22125 (find_font_encoding): New function.
22126 (list_fontsets): Use STRINGP, not ! NILP.
22127 (accumulate_script_ranges): New function.
22128 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22129 re-written to handle new fontset structure.
22130 (Ffontset_font): Return a copy of element.
22131 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22132 docstring of font-encoding-alist.
22133
22134 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22135 (Fset_fotset_font): Fix arguments to 5.
22136
22137 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22138
22139 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22140 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22141 (highlight_trailing_whitespace): Adjust for the change of
22142 lookup_named_face.
22143
22144 * xfaces.c: Include charset.h.
22145 (load_face_font): Delete argument C. Change caller.
22146 (generate_ascii_font_name): Rename from generate_ascii_font.
22147 (font_name_registry): New function.
22148 (cache_face): Store ascii faces before non-ascii faces in buckets.
22149 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22150 Lookup only ascii faces.
22151 (lookup_non_ascii_face): New function.
22152 (lookup_named_face): Delete argument C. Change caller.
22153 (lookup_derived_face): Delete argument C. Change caller.
22154 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22155 a string, just call font_list with it.
22156 (choose_face_font): Delete arguments FACE and C. New arg
22157 FONT_SPEC. Change caller.
22158 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22159 Change caller.
22160 (realize_non_ascii_face): New function.
22161 (realize_x_face): Call load_face_font here.
22162 (realize_tty_face): Delete argument C. Change caller.
22163 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22164 get a face ID.
22165 (dump_realized_face): Don't print charset of FACE.
22166
22167 * xfns.c (x_set_font): Always call x_new_fontset and
22168 store_frame_parameter.
22169 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22170 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22171
22172 * xterm.h (x_get_font_repertory): Extern it.
22173
22174 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22175 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22176 it->multibyte_p is zero.
22177 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22178 (x_new_fontset): If FONTSETNAME doesn't match any existing
22179 fontsets, create a new one.
22180 (x_get_font_repertory): New function.
22181
221822008-02-01 Kenichi Handa <handa@m17n.org>
22183
22184 * coding.c (Ffind_coding_systems_region_internal): Detect an
22185 ASCII only string correctly.
22186
22187 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22188 version is 0.
22189
221902008-02-01 Kenichi Handa <handa@m17n.org>
22191
22192 * lread.c: Include "coding.h".
22193 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22194 (load_each_byte, unread_char): New variables.
22195 (readchar_backlog): Delete.
22196 (readchar): Return a character unless load_each_byte is nonzero.
22197 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22198 cons. If unread_char is not -1, simply return it.
22199 (unreadchar): Handle the case that readcharfun is
22200 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22201 (read_multibyte): Delete.
22202 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22203 (read_emacs_mule_char): New functions.
22204 (Fload): Even if the file doesn't have the extension ".elc", if
22205 safe_to_load_p returns a positive version number, assume that the
22206 file contains bytecompiled code. If the version is less than 22,
22207 load the file while decoding multibyte sequences by emacs-mule.
22208 (readevalloop): Don't use readchar_backlog.
22209 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22210 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22211 (read_escape): Delete the arg BYTEREP.
22212 (read1): Set load_each_byte to 1 temporarily while handling
22213 #@NUMBER. Don't call read_multibyte.
22214 (read_vector): Call Fread with a cons. If readcharfun is
22215 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22216 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22217 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22218 and Qload_force_doc_strings.
22219
222202008-02-01 Kenichi Handa <handa@m17n.org>
22221
22222 * xdisp.c (face_before_or_after_it_pos): Call
22223 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22224
222252008-02-01 Kenichi Handa <handa@m17n.org>
22226
22227 * character.h (TRAILING_CODE_P): New macro.
22228 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22229 (string_char_with_unification): Fix prototype.
22230 (Vscript_alist): Extern it.
22231
22232 * character.c (Vscript_alist): New variable.
22233 (string_char_with_unification, str_as_unibyte)
22234 (string_escape_byte8): Add `const' to local variables.
22235 (syms_of_character): Declare script-alist as a Lisp variable.
22236
22237 * charset.h (Vcharset_ordered_list): Extern it.
22238 (charset_ordered_list_tick): Extern it.
22239 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22240 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22241 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22242 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22243 (Funify_charset): Adjust for the change of Funify_charset.
22244
22245 * charset.c (charset_ordered_list_tick): New variable.
22246 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22247 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22248 deunify instead of unify a charset.
aac0c6e3
MR
22249 (string_xstring_p): Add `const' to local variables.
22250 (find_charsets_in_text): Add `const' to arguments and local variables.
22251 (encode_char): Adjust for the change of Funify_charset. Fix
22252 detecting of invalid code.
22253 (Fset_charset_priority): Increment charset_ordered_list_tick.
22254 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22255 and TO_CODE.
22256
22257 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22258 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22259 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22260 (decode_coding_ccl, consume_chars)
22261 (Ffind_coding_systems_region_internal)
22262 (Fcheck_coding_systems_region): Add `const' to local variables.
22263
22264 * print.c (print_object): Use octal form for printing the
22265 contents of a bool vector.
22266
222672008-02-01 Dave Love <fx@gnu.org>
22268
22269 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22270 <version == 20>: Refuse to load.
22271
222722008-02-01 Dave Love <fx@gnu.org>
22273
22274 * fns.c: Move coding.h.
22275 (Qcodeset, Qdays, Qmonths): New.
22276 (concat): Use CHARACTERP instead of INTEGERP.
22277 (Flocale_codeset): Delete.
22278 (Flanginfo): New function.
22279 (syms_of_fns): Change accordingly.
22280
22281 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22282
222832008-02-01 Dave Love <fx@gnu.org>
22284
22285 * casetab.c (init_casetab_once, init_casetab_once): Fix
22286 CHAR_TABLE_SET call.
22287
22288 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22289
22290 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22291
22292 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22293 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22294 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22295
22296 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22297
22298 * coding.c (ENCODE_DESIGNATION, decode_eol)
22299 (make_conversion_work_buffer, code_conversion_restore)
22300 (Fdefine_coding_system_internal): Convert Lisp types.
22301 (code_conversion_restore): Use EQ, not ==.
22302 (Fencode_coding_string): Fix code_convert_string call.
22303
22304 * coding.h (code_convert_region): Fix prototype.
22305
22306 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22307
22308 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22309 (Ffontset_info): Convert Lisp types.
22310
22311 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22312
22313 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22314
22315 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22316
22317 * chartab.c: Include "...h", not <...h> in some cases.
22318
22319 * callproc.c (Fcall_process): Remove unused variables.
22320
223212008-02-01 Dave Love <fx@gnu.org>
22322
22323 * coding.c (Fset_coding_system_priority): Allow null arg list.
22324
223252008-02-01 Dave Love <fx@gnu.org>
22326
22327 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22328 (Fself_insert_and_exit): Use CHARACTERP.
22329
22330 * callproc.c (Fcall_process): Remove unused vars.
22331
22332 * xterm.c (XTread_socket): Add extra dead keysyms.
22333
22334 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22335
22336 * dispextern.h: Remove prototypes for redraw_frame,
22337 redraw_garbaged_frames.
22338
22339 * cmds.c (Fself_insert_command): Use CHARACTERP.
22340
22341 * chartab.c (make_sub_char_table): Remove unused var.
22342 (Fset_char_table_default, Fmap_char_table): Doc fix.
22343
22344 * keymap.c (access_keymap): Remove generic char code.
22345 (push_key_description): Use CHARACTERP.
22346
223472008-02-01 Dave Love <fx@gnu.org>
22348
22349 * charset.c: Doc fixes.
22350 (Funify_charset): Extra checking.
22351
223522008-02-01 Dave Love <fx@gnu.org>
22353
22354 * lread.c: Remove some unused variables.
22355 (safe_to_load_p): If safe, return the magic number version byte.
22356 (Fload): Maybe use load-with-code-conversion.
22357
223582008-02-01 Kenichi Handa <handa@m17n.org>
22359
22360 * category.c (Fmodify_category_entry): Don't modify the contents
22361 of category_set for characters out of the range. Avoid
22362 unnecessary modification.
22363
22364 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22365 Vchar_unify_table. The default value of the table is now nil.
22366
22367 * character.c (syms_of_character): Setup Vchar_width_table for
22368 eight-bit-control and raw-byte chars.
22369
22370 * charset.h (enum define_charset_arg_index): Delete
22371 charset_arg_parents and add charset_arg_subset and
22372 charset_arg_superset.
22373 (enum charset_attr_index): Delete charset_parents and add
22374 charset_subset and charset_superset.
22375 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22376 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22377 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22378 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22379 (CHARSET_SUPERSET): New macros.
22380 (charset_work): Extern it.
22381 (ENCODE_CHAR): Use charset_work.
22382 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22383 (map_charset_chars): Extern it.
22384
22385 * charset.c (load_charset_map): Set the default value of encoder
22386 and deunifier char-tables to nil.
22387 (map_charset_chars): Change argument. Change callers. Use
22388 map_char_table_for_charset instead of map_char_table.
22389 (Fmap_charset_chars): New optional args from_code and to_code.
22390 (Fdefine_charset_internal): Adjust for the change of
22391 `define-charset' (:parents -> :subset or :superset).
22392 (charset_work): New variable.
22393 (encode_char, syms_of_charset): Adjust for the change of
22394 Fdefine_charset_internal.
22395 (Ffind_charset_string): Setup the vector `charsets' correctly.
22396
22397 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22398 the previous change.
22399 (char_table_ref_and_range): Adjust for the above change.
22400 (map_sub_char_table_for_charset): New function.
22401 (map_char_table_for_charset): New function.
22402
22403 * keymap.c (describe_vector): Handle a char-table directly here.
22404 (describe_char_table): Delete.
22405
22406 * lisp.h (map_charset_chars): Delete.
22407
224082008-02-01 Dave Love <fx@gnu.org>
22409
22410 * fns.c (count_combining): Comment out (unused).
22411 (Flocale_codeset): New.
22412 (syms_of_fns): Defsubr it.
22413
22414 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22415 (size_t): Remove.
22416
224172008-02-01 Dave Love <fx@gnu.org>
22418
22419 * Makefile.in (chartab.o): Depend on charset.h.
22420
224212008-02-01 Kenichi Handa <handa@m17n.org>
22422
22423 * character.c (syms_of_character): Set the default value of
22424 Vprintable_chars to Qnil.
22425
224262008-02-01 Dave Love <fx@gnu.org>
22427
22428 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22429
224302008-02-01 Kenichi Handa <handa@m17n.org>
22431
22432 * charset.c (load_charset_map): Handle the case that from < to
22433 correctly.
22434
22435 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22436 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22437 Pay attention to raw-8-bit chars.
22438
224392008-02-01 Kenichi Handa <handa@m17n.org>
22440
22441 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22442 It is not bytecompiled now.
22443
22444 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22445 (charset_jisx0208): New variables.
22446 (Fdefine_charset_internal): Setup them if appropriate.
22447 (init_charset_once): Initialize them to -1.
22448
22449 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22450 (charset_jisx0208): Extern them.
22451
22452 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22453 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22454 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22455 (setup_iso_safe_charsets): Fix arguments to Fassq.
22456 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22457 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22458 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22459 (encode_coding_iso_2022): Change the 1st arg to
22460 ENCODE_ISO_CHARACTER to a variable.
22461
224622008-02-01 Kenichi Handa <handa@m17n.org>
22463
22464 * charset.h (enum define_charset_arg_index): New enums
22465 charset_arg_min_code and charset_arg_max_code.
22466 (struct charset): New member char_index_offset.
22467
22468 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22469 Take charset->char_index_offset into account.
22470 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22471 args[charset_arg_max_code]. Setup charset.char_index_offset.
22472 (syms_of_charset): Fix args to Fdefine_charset_internal.
22473
224742008-02-01 Dave Love <fx@gnu.org>
22475
22476 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22477
224782008-02-01 Dave Love <fx@gnu.org>
22479
22480 * coding.c: Doc fixes.
22481 (Fcoding_system_aliases): Fix return value.
22482 (Qmac): Remove (duplicated) definition.
22483
224842008-02-01 Dave Love <fx@gnu.org>
22485
362654a6
JB
22486 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22487 New functions.
aac0c6e3
MR
22488
22489 * character.c (Fstring): Doc fix.
22490
22491 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22492
362654a6 22493 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22494 (font-encoding-alist): Doc fix.
22495
224962008-02-01 Dave Love <fx@gnu.org>
22497
22498 * term.c (costs_set): Declare static, non-initialized for pcc.
22499 (encode_terminal_code): Remove unused var.
22500
22501 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22502 for K&R.
22503
22504 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22505
22506 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22507 (suffixes): Move out of make_subsidiaries for K&R.
22508
22509 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22510
22511 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22512
225132008-02-01 Dave Love <fx@gnu.org>
22514
22515 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22516
22517 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22518
225192008-02-01 Yong Lu <lyongu@asia-infonet.com>
22520
22521 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22522
22523 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22524
225252008-02-01 Kenichi Handa <handa@m17n.org>
22526
22527 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22528 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22529
225302008-02-01 Kenichi Handa <handa@m17n.org>
22531
22532 * coding.c (decode_coding_charset): Adjust for the change of
22533 Fdefine_coding_system_internal.
22534 (Fdefine_coding_system_internal): For a coding system of
22535 `charset' type, store a list of charset IDs in
22536 `charset_attr_charset_valids' element of coding attributes.
22537
225382008-02-01 Kenichi Handa <handa@m17n.org>
22539
22540 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22541 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22542 caller. Handle 2-byte and 3-byte charsets correctly.
22543 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22544 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22545 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22546 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22547 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22548 sequence.
22549 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22550 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22551 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22552 and alt&rule composition.
22553 (decode_coding_iso_2022): Handle composition correctly.
22554 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22555
22556 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22557 re-defining a charset. If the charset has :emacs-mule-id, setup
22558 emacs_mule_bytes.
22559 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22560
225612008-02-01 Kenichi Handa <handa@m17n.org>
22562
22563 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22564 (encode_coding_big5, encode_coding_charset): If coding requires safe
22565 encoding, produce a character specified by
22566 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22567
225682008-02-01 Dave Love <fx@gnu.org>
22569
22570 * xterm.c (XSetIMValues): Declare.
22571
22572 * process.c: Conditionally include sys/wait.h, pty.h.
22573
22574 * print.c (print_object): Fix print format for 64-bit systems.
22575
22576 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22577
22578 * buffer.c (emacs_strerror): Declare.
22579
22580 * fontset.c (Fclear_face_cache): Declare.
22581 (accumulate_font_info): Comment-out (unused).
22582 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22583 variables.
22584
22585 * character.h (string_escape_byte8): Declare.
22586
22587 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22588 unused vars.
22589 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22590 (Fmap_charset_chars): Doc fix.
22591
22592 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22593 (Fset_coding_system_priority, Fset_coding_system_priority)
22594 (Fdefine_coding_system_internal): Doc fix.
22595
225962008-02-01 Dave Love <fx@gnu.org>
22597
22598 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22599
226002008-02-01 Kenichi Handa <handa@m17n.org>
22601
22602 * character.c (string_escape_byte8): Make multibyte string with
22603 correct size.
22604
22605 * charset.c (Fmake_char): Delete unnecessary code.
22606
226072008-02-01 Kenichi Handa <handa@m17n.org>
22608
22609 * xfns.c (x_encode_text): Allocate coding.destination here, and
22610 call encode_coding_object with dst_object Qnil.
22611
22612 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22613 multibyte form correctly.
22614
22615 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22616 against Vfont_encoding_alist.
22617
22618 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22619 handling of charset list.
22620 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22621 (decode_coding_object): Move point to coding->dst_pos before
22622 calling post-read-conversion function.
22623 (encode_coding_object): Give correct arguments to
22624 pre-write-conversion. Ignore the return value of
22625 pre-write-conversion function. Pay attention to the case that
22626 pre-write-conversion changes the current buffer. If dst_object is
22627 Qt, even if coding->src_bytes is zero, allocate at least one byte
22628 to coding->destination.
22629
22630 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22631
22632 * charset.c (Fmake_char): Make it more backward compatible.
22633 (Fmap_charset_chars): Fix docstring.
22634
226352008-02-01 Dave Love <fx@gnu.org>
22636
22637 * coding.c: Doc fixes.
22638 (Fdefine_coding_system_alias): Use names, not symbols, in
22639 coding-system-alist.
22640
226412008-02-01 Kenichi Handa <handa@m17n.org>
22642
22643 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22644 of calling free_realized_face.
22645
226462008-02-01 Yong Lu <lyongu@asia-infonet.com>
22647
22648 * charset.c (read_hex): Don't treat SPC as a comment starter.
22649 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22650 (Fdecode_char): Fix typo.
22651
226522008-02-01 Kenichi Handa <handa@m17n.org>
22653
22654 * charset.h (struct charset): New member `code_space_mask'.
22655
22656 * coding.c (coding_set_source): Delete the local variable beg_byte.
22657 (encode_coding_charset, Fdefine_coding_system_internal):
22658 Delete the local variable charset.
22659 (Fdefine_coding_system_internal): Setup
22660 attrs[coding_attr_charset_valids] correctly.
22661
22662 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22663 member to check if CODE is valid or not.
22664 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22665 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22666 is within the range of charset->min_code and carset->max_code.
22667
226682008-02-01 Dave Love <fx@gnu.org>
22669
22670 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22671
22672 * dispextern.h (generate_ascii_font): Fix return type.
22673
22674 * xfaces.c (generate_ascii_font): Fix arg declaration.
22675
22676 * coding.c (coding_inherit_eol_type)
22677 (Fset_terminal_coding_system_internal)
22678 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22679
226802008-02-01 Kenichi Handa <handa@m17n.org>
22681
22682 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22683 multiple charsets correctly.
22684
226852008-02-01 Kenichi Handa <handa@m17n.org>
22686
22687 * search.c (boyer_moore): Fix handling of multibyte character
22688 translation.
22689
22690 * xdisp.c (display_mode_element): When the variable `elt' is
22691 changed, update `this' and `lisp_string'.
22692
226932008-02-01 Kenichi Handa <handa@m17n.org>
22694
22695 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22696
22697 * callproc.c (Fcall_process): Be sure to give the current buffer
22698 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22699
22700 * charset.c (struct charset_map_entries): New struct.
22701 (load_charset_map): Rename from parse_charset_map. New args
22702 entries and n_entries. Change caller.
22703 (load_charset_map_from_file): Rename from load_charset_map.
22704 Change caller. New arg control_flag. Call load_charset_map at
22705 the tail.
22706 (load_charset_map_from_vector): New function.
22707 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22708 (encode_char): If the charset is compact, change a character index
22709 to a code point.
22710
22711 * coding.c (coding_alloc_by_making_gap): Check the case that the
22712 source and destination are the same correctly.
22713 (decode_coding_raw_text): Set coding->consumed_char and
22714 coding->consumed to 0.
22715 (produce_chars): If coding->chars_at_source is nonzero, update
22716 coding->consumed_char and coding->consumed before calling
22717 alloc_destination.
22718 (Fdefine_coding_system_alias): Register ALIAS in
22719 Vcoding_system_alist.
22720 (syms_of_coding): Define `no-conversion' coding system at the tail.
22721
22722 * fileio.c (Finsert_file_contents): Set coding_system instead of
22723 val. If the current buffer is multibyte, always call
22724 decode_coding_gap.
22725
22726 * xfaces.c (try_font_list): Give higher priority to fontset's
22727 family than face's family.
22728
227292008-02-01 Kenichi Handa <handa@m17n.org>
22730
22731 * callproc.c (Fcall_process): Be sure to give the current buffer
22732 to decode_coding_c_string.
22733
22734 * xfaces.c (try_font_list): Give a family specified in a fontset
22735 higher priority than a family specified in a face.
22736
227372008-02-01 Kenichi Handa <handa@m17n.org>
22738
22739 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22740 Fix arguments to insert_from_buffer.
22741
22742 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22743
227442008-02-01 Kenichi Handa <handa@m17n.org>
22745
22746 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22747 (decode_coding_gap): Set coding->dst_multibyte correctly.
22748
227492008-02-01 Kenichi Handa <handa@m17n.org>
22750
22751 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22752 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22753 (encode_coding_utf_16): Substitute coding->default_char for
22754 non-Unicode characters.
22755 (decode_coding): Don't call record_insert here.
22756 (setup_coding_system): Initialize `surrogate' of
22757 coding->spec.utf_16 to 0.
22758 (EMIT_ONE_BYTE): Fix for multibyte case.
22759
22760 * insdel.c (insert_from_gap): Call record_insert.
22761
227622008-02-01 Kenichi Handa <handa@m17n.org>
22763
22764 * casefiddle.c (casify_region): Fix multibyte case.
22765
22766 * character.c (c_string_width): Add return type `int'.
22767 (char_string_with_unification): Delete arg ADVANCED.
22768
22769 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22770 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22771 (CHAR_STRING_ADVANCE): Make it do-while statement.
22772
22773 * chartab.c (sub_char_table_set_range): Optimize for the case
22774 DEPTH == 3. Add workaround code for a GCC optimization bug.
22775
22776 * charset.c (parse_charset_map): Remove an unused variable.
22777
22778 * coding.c: Delete unused variables.
22779
22780 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22781 earlier. If inserted is zero and the coding system doesn't
22782 require flushing, don't call decode_coding_gap.
22783
22784 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22785
227862008-02-01 Kenichi Handa <handa@m17n.org>
22787
22788 The following changes are for using Unicode as an internal
22789 character model, and use UTF-8 format for buffer/string
22790 representation.
22791
22792 * .gdbinit (xchartable): Adjust for the change of char table structure.
22793 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22794
22795 * Makefile.in (obj): Add character.o and chartab.o.
22796 (lisp, shortlisp): Remove utf-8.elc.
22797 (*.o): For many files, change dependency on charset.h to
22798 character.h, and add dependency on character.h.
22799 (character.o, chartab.o): New targets.
22800
22801 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22802 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22803 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22804 of "charset.h".
22805
22806 * dired.c, filelock.c: Include "character.h".
22807
22808 * alloc.c: Include "character.h" instead of "charset.h".
22809 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22810 (syms_of_alloc): Remove defsubr for Smake_char_table.
22811
22812 * buffer.c: Include "character.h" instead of "charset.h", don't
22813 include "coding.h".
22814 (Fset_buffer_multibyte): Adjust for UTF-8.
22815
22816 * buffer.h: EXFUN Fbuffer_live_p.
22817
22818 * callproc.c: Include "character.h" instead of "charset.h".
22819 (Fcall_process): Big change for the new code-conversion APIs.
22820
22821 * casetab.c: Include "character.h" instead of "charset.h".
22822 (set_canon, set_identity, shuffle): Adjust for the new
22823 map_char_table spec.
22824 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22825 accessing the char table structure.
22826
22827 * chartab.c: New file that implements char table.
22828
22829 * category.c: Include "character.h".
22830 (copy_category_entry): New function.
22831 (copy_category_table): Call map_char_table and copy_category_entry.
22832 (Fmake_category_table): Initialize all top-level slots.
22833 (char_category_set): New function.
22834 (modify_lower_category_set): Delete.
22835 (Fmodify_category_entry): Call char_table_ref_and_range.
22836
22837 * category.h (CATEGORY_SET): Just call char_category_set.
22838
22839 * ccl.c: Include "character.h".
22840 (Qccl, Qcclp): New variables.
22841 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22842 it's less than 256.
22843 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22844 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22845 and DST type.
22846 (ccl_driver): Change types of argument, adjust code accordingly.
22847 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22848 ccl_driver.
22849 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22850
22851 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22852 New members src_multibyte, dst_multibyte, consumed, and produced.
22853 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22854 (CODING_SPEC_CCL_PROGRAM): New macro.
22855 (ccl_driver): Update prototype.
22856 (Qccl, Qcclp, Fccl_program_p): Extern them.
22857 (CHECK_CCL_PROGRAM): New macro.
22858
22859 * character.c, character.h, chartab.c: New files.
22860
22861 * charset.c: Mostly re-written. Move character and multibyte sequence
22862 handling codes to character.c.
22863
22864 * charset.h: Mostly re-written. Move character and multibyte sequence
22865 handling codes to character.h.
22866
22867 * coding.c, coding.h: Mostly re-written.
22868
22869 * composite.c: Include "character.h" instead of "charset.h".
22870 (CHAR_WIDTH): Move to character.h.
22871 (HASH_KEY, HASH_VALUE): Delete.
22872
22873 * composite.h (enum composition_method): Change order of enumeration
22874 symbols.
22875
22876 * data.c: Include "character.h" instead of "charset.h".
22877 (Faref): Call CHAR_TABLE_REF for a char table.
22878 (Faset): Call CHAR_TABLE_SET for a char table.
22879
22880 * dispextern.h (free_realized_face, check_face_attribytes)
22881 (generate_ascii_font): Extern them.
22882 (free_realized_multibyte_face): Delete extern.
22883
22884 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22885 table structure.
22886
22887 * editfns.c: Include "character.h" instead of "charset.h".
22888 (Fchar_to_string): Always call CHAR_STRING.
22889
22890 * emacs.c (main): Call init_charset_once, init_charset,
22891 syms_of_chartab, and syms_of_character.
22892
22893 * fileio.c: Include "character.h" instead of "charset.h".
22894 (Finsert_file_contents): Big change for the new code-conversion API.
22895 (choose_write_coding_system, Fwrite_region): Likewise.
22896 (build_annotations_2): Delete.
22897 (e_write): Big change for the new code-conversion API.
22898
22899 * fns.c: Include "character.h" instead of "charset.h".
22900 (copy_sub_char_table): Move to chartab.c.
22901 (Fcopy_sequence): Call copy_char_table for a char table.
22902 (concat): Delete codes calling count_multibyte.
22903 (string_char_to_byte, string_byte_to_char): Adjust for the new
22904 multibyte form.
22905 (internal_equal): Adjust for the change of char table structure.
22906 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22907 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22908 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22909 (char_table_translate, optimize_sub_char_table)
22910 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22911 chartab.c.
22912 (char_table_ref_and_index): Delete.
22913 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22914 (Fmd5): Call preferred_coding_system instead of accessing
22915 Vcoding_category_list. Adjust for the new code-conversion API.
22916 (syms_of_fns): Move defsubr for char table related functions to
22917 chartab.c.
22918
22919 * fontset.c: Mostly re-written.
22920
22921 * fontset.h (struct font_info): Change type of the member encoding_type.
22922 (enum FONT_SPEC_INDEX): New enum.
22923 (fontset_font_pattern, fs_load_font): Update prototype.
22924 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22925
22926 * indent.c: Include "character.h" instead of "charset.h".
22927 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22928
22929 * insdel.c: Include "character.h" instead of "charset.h".
22930 (copy_text): Don't refer to Vnonascii_translation_table.
22931 (insert_from_gap): New function.
22932
22933 * keyboard.c: Include "character.h" instead of "charset.h".
22934 (command_loop_1): Never call direct_output_forward_char before
22935 a non-ASCII character.
22936 (read_char): If Vkeyboard_translate_table is a char table, always
22937 translate a character.
22938
22939 * keymap.c: Include "character.h".
22940 (store_in_keymap): Handle the case that IDX is a cons.
22941 (Fdefine_key): Handle the case that KEY is a cons and the car part
22942 is also a cons (range).
22943 (push_key_description): Adjust for the new character code.
22944 (describe_vector): Call describe_char_table for a char table.
22945 (describe_char_table): New function.
22946
22947 * keymap.h (describe_char_table): Extern it.
22948
22949 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22950 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22951 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22952 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22953 Delete.
22954 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22955 structure.
22956 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22957 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22958 (CHARTAB_SIZE_BITS_3): New macros.
22959 (chartab_size): Extern it.
22960 (struct Lisp_Char_Table): Re-design.
22961 (struct Lisp_Sub_Char_Table): New structure.
22962 (HASH_KEY, HASH_VALUE): Move from fns.c.
22963 (CHARACTERBITS): Define as 22.
22964 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22965 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22966 (GC_SUB_CHAR_TABLE_P): New macro.
22967 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22968 (code_convert_string_norecord): Deleted extern.
22969 (init_character_once, syms_of_character, init_charset)
22970 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22971
22972 * lread.c: Include "character.h".
22973 (read_multibyte): New arg NBYTES.
22974 (read_escape): Change the meaning of returned *BYTEREP.
22975 (to_multibyte): Delete.
22976 (read1): Adjust the handling of char table and string.
22977
22978 * print.c: Include "character.h" instead of "charset.h".
22979 (print_string): Convert 8-bit raw bytes to octal form by
22980 string_escape_byte8.
22981 (print_object): Adjust for the new multibyte form. Print 8-bit
22982 raw bytes always in octal form. Handle sub char table correctly.
22983
22984 * process.c: Include "character.h" instead of "charset.h".
22985 (read_process_output, send_process): Adjust for the new
22986 code-conversion API.
22987
22988 * puresize.h (BASE_PURESIZE): Increase.
22989
22990 * regex.c: Include "character.h" instead of "charset.h".
22991 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22992 (regex_compile): Accept a range whose starting and ending
22993 character have different leading bytes.
22994 (analyse_first): Adjust for the above change.
22995
22996 * search.c: Include "character.h" instead of "charset.h".
22997 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22998 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22999
23000 * syntax.c: Include "character.h" instead of "charset.h".
23001 (syntax_parent_lookup): Delete.
23002 (Fmodify_syntax_entry): Accept a cons as CHAR.
23003 (skip_chars): Adjust for the new multibyte form.
23004 (init_syntax_once): Call char_table_set_range instead of directly
23005 accessing the structure of a char table.
23006
23007 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23008 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23009 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23010 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23011
23012 * term.c: Include "buffer.h" and "character.h".
23013 (encode_terminal_code, write_glyphs): Adjust for the new
23014 code-conversion API.
23015 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23016
23017 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23018
23019 * xdisp.c: Include "character.h".
23020 (get_next_display_element): Adjust for the new multibyte form.
23021 (disp_char_vector): Adjust for the new char table structure.
23022 (decode_mode_spec_coding): Adjust for the new structure of
23023 coding system.
23024 (decode_mode_spec): Adjust for the new code-conversion API.
23025
23026 * xfaces.c: Include "character.h" instead of "charset.h".
23027 (load_face_font): Adjust for the change of choose_face_font and
23028 FS_LOAD_FONT.
23029 (generate_ascii_font): New function.
23030 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23031 (set_font_frame_param): Adjust for the change of choose_face_font.
23032 (free_realized_face): Make it public.
23033 (free_realized_faces_for_fontset): Rename from
23034 free_realized_multibyte_face. Free also faces realized for ASCII.
23035 (choose_face_font): Change arguments. Adjust for the change of
23036 fontset_font_pattern and FS_LOAD_FONT.
23037
23038 * xfns.c: Include "character.h".
23039 (x_encode_text): Adjust for the new code-conversion API.
23040
23041 * xselect.c: Don't include "charset.h".
23042 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23043
23044 * xterm.c: Include "character.h".
23045 (x_encode_char): New argument CHARSET. Change caller.
23046 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23047 Call ENCODE_CHAR instead of SPLIT_CHAR.
23048 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23049 CHAR_WIDTH instead of CHARSET_WIDTH.
23050 (XTread_socket): Adjust for the new code-conversion API.
23051 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23052 (x_load_font): Adjust for the change of struct font.
23053
230542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23055
23056 * xfaces.c (face_at_buffer_position): Remove unused vars.
23057
230582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23059
23060 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23061 Fix overflow checking.
23062
230632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23064
23065 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23066 Cancel previous change.
23067
230682008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23069
23070 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23071 ccl->eight_bit_control. Fix check for buffer overflow.
23072 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23073 (ccl_driver): Initialize extra_bytes to 0.
23074
230752008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23076
23077 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23078 return it ORed with ctrl_modifier.
23079
230802008-01-29 Miles Bader <miles@gnu.org>
23081
23082 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23083
230842008-01-28 Jason Rumney <jasonr@gnu.org>
23085
23086 * w32.c (stat): Don't double check for networked drive.
23087
230882008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23089
23090 * window.c (run_window_configuration_change_hook): New function.
23091 Code extracted from set_window_buffer. Set the selected frame.
23092 (set_window_buffer): Use it.
23093 * window.h (run_window_configuration_change_hook): Declare.
23094 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23095
23096 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23097
230982008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23099
23100 * Makefile.in: Remove references to unused macros.
23101
231022008-01-26 Eli Zaretskii <eliz@gnu.org>
23103
23104 * w32.c (g_b_init_get_sid_sub_authority)
23105 (g_b_init_get_sid_sub_authority_count): New static variables.
23106 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23107 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23108 (init_user_info): Use them to retrieve uid and gid.
23109 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23110 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23111 st_uid and st_gid of the file.
23112
231132008-01-26 Jason Rumney <jasonr@gnu.org>
23114
23115 * w32.c (logon_network_drive): New function.
23116 (stat): Use it.
23117
231182008-01-26 Chong Yidong <cyd@stupidchicken.com>
23119
23120 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23121 invisible text covered with an ellipsis.
23122
231232008-01-25 Richard Stallman <rms@gnu.org>
23124
23125 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23126 jump back to beginning. Move some other initializations after that.
23127 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23128 New variables.
23129 (syms_of_xdisp): Init them.
23130
23131 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23132
23133 * buffer.c (reset_buffer_local_variables):
23134 Implement `permanent-local-hook'.
23135 (Qpermanent_local_hook): New variable.
23136 (syms_of_buffer): Init and staticpro it.
23137
231382008-01-25 Michael Albinus <michael.albinus@gmx.de>
23139
23140 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23141
231422008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23143
23144 * fns.c (Fclrhash): Return TABLE.
23145
231462008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23147
23148 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23149 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23150 is set even without positional changes.
23151 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23152
23153 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23154
231552008-01-23 Jason Rumney <jasonr@gnu.org>
23156
23157 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23158
23159 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23160 the unicode range available in MULE by locale-coding-system.
23161 Improve dbcs lead byte detection. Set event timestamp and modifiers
23162 earlier.
23163
231642008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23165
23166 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23167 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23168 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23169 when used on child processes.
23170
231712008-01-21 Michael Albinus <michael.albinus@gmx.de>
23172
23173 * dbusbind.c (Fdbus_method_return_internal): Rename from
23174 Fdbus_method_return.
23175 (Fdbus_unregister_object): Move to dbus.el.
23176 (Fdbus_call_method, Fdbus_method_return_internal)
23177 (Fdbus_send_signal): Improve debug messages.
23178
231792008-01-20 Martin Rudalics <rudalics@gmx.at>
23180
23181 * undo.c (undo_inhibit_record_point): New variable.
23182 (syms_of_undo): Initialize it.
23183 (record_point): Don't record point when undo_inhibit_record_point
23184 is set.
23185
231862008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23187
23188 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23189
23190 * xdisp.c (Qauto_hscroll_mode): New var.
23191 (syms_of_xdisp): Initialize it.
23192 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23193 window's buffer.
23194 (hscroll_windows): Don't check automatic_hscrolling_p here.
23195
23196 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23197 vscroll if we're setting window-buffer to the value it already has.
23198
231992008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23200
23201 * m/intel386.h: Remove references to XENIX.
23202
232032008-01-17 Andreas Schwab <schwab@suse.de>
23204
23205 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23206 instead of HAVE_X86_64_LIB64_DIR.
23207 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23208
232092008-01-17 Glenn Morris <rgm@gnu.org>
23210
23211 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23212 to HAVE_X86_64_LIB64_DIR.
23213
232142008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23215
23216 * s/irix3-3.h:
23217 * s/irix4-0.h:
23218 * s/386-ix.h:
23219 * s/domain.h:
23220 * s/hpux9-x11r4.h:
23221 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23222
23223 * sysdep.c: Remove code containing references to symbols defined
23224 by unsupported systems.
23225
232262008-01-16 Glenn Morris <rgm@gnu.org>
23227
23228 * coding.c (select-safe-coding-system-function): Doc fix.
23229
232302008-01-15 Glenn Morris <rgm@gnu.org>
23231
23232 * config.in: Revert 2008-01-13 change: this is a generated file.
23233
232342008-01-13 Tom Tromey <tromey@redhat.com>
23235
23236 * lisp.h: Fix typo.
23237
232382008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23239
23240 * m/sequent-ptx.h:
23241 * m/sequent.h:
23242 * s/ptx.h:
23243 * s/ptx4-2.h:
23244 * s/ptx4.h: Remove files for systems no longer supported.
23245
23246 * callproc.c (Fcall_process): Fix previous change.
23247
232482008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23249
23250 * unexsunos4.c: Remove file, system not supported anymore.
23251
23252 * m/mips.h:
23253 * m/intel386.h:
23254 * callproc.c:
23255 * config.in:
23256 * ecrt0.c:
23257 * emacs.c:
23258 * fileio.c:
23259 * frame.c:
23260 * getpagesize.h:
23261 * keyboard.c:
23262 * lread.c:
23263 * process.c:
23264 * puresize.h:
23265 * sysdep.c:
23266 * systty.h:
23267 * syswait.h:
23268 * unexec.c:
23269 * xdisp.c:
23270 * alloc.c: Remove code containing references to symbols defined by
23271 unsupported systems.
23272
232732008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23274
23275 * coding.c (detect_coding_mask): Fix previous change.
23276
232772008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23278
23279 * coding.c (detect_coding_iso2022): New arg
23280 latin_extra_code_state. Allow Latin extra codes only
23281 when *latin_extra_code_state is nonzero.
23282 (detect_coding_mask): If there is a NULL byte, detect the encoding
23283 as UTF-16 or binary. If Latin extra codes exist, detect the
23284 encoding as ISO-2022 only when there's no other proper encoding is
23285 found.
23286
232872008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23288
23289 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23290 #ifdef MAC_OS.
23291
232922008-01-08 Richard Stallman <rms@gnu.org>
23293
23294 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23295
232962008-01-06 Nick Roberts <nickrob@snap.net.nz>
23297
23298 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23299 menu bar in parentheses.
23300
233012008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23302
23303 * m/7300.h:
23304 * m/acorn.h:
23305 * m/alliant-2800.h:
23306 * m/alliant.h:
23307 * m/alliant1.h:
23308 * m/alliant4.h:
23309 * m/altos.h:
23310 * m/amdahl.h:
23311 * m/apollo.h:
23312 * m/att3b.h:
23313 * m/aviion-intel.h:
23314 * m/aviion.h:
23315 * m/celerity.h:
23316 * m/clipper.h:
23317 * m/cnvrgnt.h:
23318 * m/convex.h:
23319 * m/cydra5.h:
23320 * m/delta88k.h:
23321 * m/dpx2.h:
23322 * m/dual.h:
23323 * m/elxsi.h:
23324 * m/f301.h:
23325 * m/gould-np1.h:
23326 * m/gould.h:
23327 * m/i860.h:
23328 * m/ibmps2-aix.h:
23329 * m/ibmrt-aix.h:
23330 * m/ibmrt.h:
23331 * m/irist.h:
23332 * m/is386.h:
23333 * m/isi-ov.h:
23334 * m/mega68.h:
23335 * m/mg1.h:
23336 * m/news-r6.h:
23337 * m/news-risc.h:
23338 * m/news.h:
23339 * m/nh3000.h:
23340 * m/nh4000.h:
23341 * m/ns16000.h:
23342 * m/ns32000.h:
23343 * m/nu.h:
23344 * m/orion.h:
23345 * m/orion105.h:
23346 * m/paragon.h:
23347 * m/pfa50.h:
23348 * m/plexus.h:
23349 * m/pyramid.h:
23350 * m/pyrmips.h:
23351 * m/sh3el.h:
23352 * m/sps7.h:
23353 * m/sr2k.h:
23354 * m/stride.h:
23355 * m/sun1.h:
23356 * m/sun2.h:
23357 * m/sun3-68881.h:
23358 * m/sun3-fpa.h:
23359 * m/sun3-soft.h:
23360 * m/sun3.h:
23361 * m/sun386.h:
23362 * m/symmetry.h:
23363 * m/tad68k.h:
23364 * m/tahoe.h:
23365 * m/targon31.h:
23366 * m/tek4300.h:
23367 * m/tekxd88.h:
23368 * m/tower32.h:
23369 * m/tower32v3.h:
23370 * m/ustation.h:
23371 * m/wicat.h:
23372 * m/xps100.h:
23373 * s/cxux.h:
23374 * s/cxux7.h:
23375 * s/dgux.h:
23376 * s/dgux4.h:
23377 * s/dgux5-4-3.h:
23378 * s/dgux5-4r2.h:
23379 * s/esix.h:
23380 * s/esix5r4.h:
23381 * s/hiuxmpp.h:
23382 * s/hiuxwe2.h:
23383 * s/iris3-5.h:
23384 * s/iris3-6.h:
23385 * s/isc2-2.h:
23386 * s/isc3-0.h:
23387 * s/isc4-0.h:
23388 * s/isc4-1.h:
23389 * s/newsos5.h:
23390 * s/newsos6.h:
23391 * s/osf1.h:
23392 * s/osf5-0.h:
23393 * s/riscix1-1.h:
23394 * s/riscix12.h:
23395 * s/sco4.h:
23396 * s/sco5.h:
23397 * s/sunos4-0.h:
23398 * s/sunos4-1.h:
23399 * s/sunos413.h:
23400 * s/sunos4shr.h:
23401 * s/umax.h:
23402 * s/unipl5-2.h:
23403 * s/xenix.h:
23404 * cxux-crt0.s:
23405 * unexapollo.c:
23406 * unexconvex.c:
23407 * unexenix.c:
23408 * unexsni.c: Remove files for systems no longer supported.
23409
23410 * m/intel386.h: Remove references to unsupported systems.
23411
23412 * w32.c (get_emacs_configuration): Remove reference to i860.
23413
23414 * sysdep.c: Remove dead code.
23415
234162008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23417
23418 * s/rtu.h:
23419 * m/masscomp.h: Remove files. Platform is obsolete.
23420
234212008-01-04 Michael Albinus <michael.albinus@gmx.de>
23422
23423 * dbusbind.c (Fdbus_method_return): New function.
23424 (xd_read_message): Add the serial number to the event.
23425 (Fdbus_register_method): Activate the function.
23426
234272008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23428
23429 * keyboard.c (read_key_sequence): Fix typo.
23430
234312008-01-03 Michael Albinus <michael.albinus@gmx.de>
23432
23433 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23434 (xd_signature, xd_append_arg): Handle element type detection for
23435 empty arrays.
23436 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23437 SDATA () calls; this must be solved more general.
23438 (Fdbus_register_signal): Use SBYTES instead of strlen.
23439
234402008-01-03 Magnus Henoch <magnus@zemdatav>
23441
23442 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23443 unsigned int for byte values (necessary for big-endian platform).
23444 (Fdbus_call_method): Handle the case of no returned arguments.
23445
234462007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23447
23448 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23449
234502007-12-31 Magnus Henoch <mange@freemail.hu>
23451
23452 * dbusbind.c (xd_signature): Signature of variant is just "v".
23453
234542007-12-30 Michael Albinus <michael.albinus@gmx.de>
23455
23456 * dbusbind.c: Fix several errors and compiler warnings.
23457 Reported by Tom Tromey <tromey@redhat.com>.
23458 (XD_ERROR, XD_DEBUG_MESSAGE)
23459 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23460 (xd_append_arg): Part for basic D-Bus types rewritten.
23461 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23462 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23463 appropriate.
23464 (xd_read_message): Return Qnil. Don't signal an error; it is not
23465 useful during event reading.
23466 (Fdbus_register_signal): Signal an error if the check for
23467 FUNCTIONP fails.
23468 (Fdbus_register_method): New function. The implementation is not
23469 complete, the call of the function signals an error therefore.
23470 (Fdbus_unregister_object): New function, renamed from
23471 Fdbus_unregister_signal. The initial check signals an error, if
23472 the object is not well formed.
23473
234742007-12-30 Richard Stallman <rms@gnu.org>
23475
23476 * textprop.c (get_char_property_and_overlay):
23477 Signal error if POSITION is out of range in a buffer.
23478
234792007-12-29 Martin Rudalics <rudalics@gmx.at>
23480
23481 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23482 because the original parameters are in pure storage now.
23483
234842007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23485
23486 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23487
234882007-12-22 Eli Zaretskii <eliz@gnu.org>
23489
23490 * callint.c (syms_of_callint) <command-history>: Add reference to
23491 history-length in the doc string.
23492
234932007-12-17 Jason Rumney <jasonr@gnu.org>
23494
23495 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23496 before passing as wParam.
23497
234982007-12-22 Michael Albinus <michael.albinus@gmx.de>
23499
23500 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23501 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23502 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23503 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23504 as number.
23505 (Fdbus_call_method): Fix docstring.
23506
235072007-12-21 Michael Albinus <michael.albinus@gmx.de>
23508
23509 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23510 New macros.
23511 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23512 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23513 Simplify.
23514 (xd_signature): New function.
23515 (xd_append_arg): Compute also signatures. Major rewrite.
23516 (xd_retrieve_arg): Make debug messages friendly.
23517 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23518 Check for signatures of arguments.
23519
235202007-12-19 Michael Albinus <michael.albinus@gmx.de>
23521
23522 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23523 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23524 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23525 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23526 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23527 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23528 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23529 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23530 (xd_retrieve_value): Remove. Functionality included in ...
23531 (xd_append_arg): New function.
23532 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23533
235342007-12-16 Michael Albinus <michael.albinus@gmx.de>
23535
23536 * dbusbind.c (top): Include <stdio.h>.
23537 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23538 dbus_message_new_method_call and dbus_message_new_signal.
23539 (Fdbus_register_signal): Rename unique_name to uname.
23540 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23541 non-existing unique name. Fix typos in matching rule. Return an
23542 object which is useful in Fdbus_unregister_signal.
23543 (Fdbus_unregister_signal): Reimplementation, in order to remove
23544 only the corresponding entry.
23545 (Vdbus_registered_functions_table): Change the order of entries.
23546 Apply these changes in xd_read_message and Fdbus_register_signal.
23547
235482007-12-16 Andreas Schwab <schwab@suse.de>
23549
23550 * fileio.c (Finsert_file_contents): Fix overflow check to not
23551 depend on undefined integer overflow.
23552
235532007-12-14 Jason Rumney <jasonr@gnu.org>
23554
23555 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23556 for characters above 127.
23557
235582007-12-13 Jason Rumney <jasonr@gnu.org>
23559
23560 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23561 before dereferencing array.
23562 (lookup_vk_code): Remove zero comparison.
23563
235642007-12-14 Michael Albinus <michael.albinus@gmx.de>
23565
23566 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23567 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23568 Use `unsigned int' instead of `uint'.
23569 (xd_read_message, Fdbus_register_signal): Split expressions into
23570 multiple lines before operators "&&" and "||", according to the
23571 GNU Coding Standards.
23572
235732007-12-14 Eli Zaretskii <eliz@gnu.org>
23574
23575 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23576
235772007-12-12 Juri Linkov <juri@jurta.org>
23578
23579 * buffer.c (Frename_buffer): In interactive spec replace
23580 `read-buffer' with `read-string' that uses `buffer-name-history'
23581 as history, and the current buffer's name as default.
23582
235832007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23584
23585 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23586 manipulating the backtrace manually.
23587 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23588 (struct backtrace, backtrace_list): Remove.
23589 (command_loop_1): Remove dead var `no_direct'.
23590
23591 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23592 preserve non-built-in buffer-local variables.
23593 (Fkill_all_local_variables): Don't re-create&re-set permanent
23594 buffer-local variables.
23595
235962007-12-09 Juri Linkov <juri@jurta.org>
23597
23598 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23599 Lisp code that uses `read-buffer' with current buffer as default.
23600
236012007-12-08 Michael Albinus <michael.albinus@gmx.de>
23602
23603 * dbusbind.c (xd_read_message): Generate an event for every
23604 registered handler. There might be several handlers registered
23605 for the same signal.
23606 (Fdbus_register_signal): Don't overwrite a registration for the
23607 same signal. Add a new registration if handlers are different.
23608 (Vdbus_registered_functions_table): Rework doc string.
23609
236102007-12-07 Michael Albinus <michael.albinus@gmx.de>
23611
23612 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23613 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23614 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23615 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23616 Unify argument lists.
23617 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23618 arguments and hash table keys. Use unique name for service.
23619 (Fdbus_unregister_signal): Remove checks.
23620 (Vdbus_registered_functions_table): Fix doc string.
23621
236222007-12-05 Magnus Henoch <mange@freemail.hu>
23623
23624 * process.c (make_process): Initialize pty_flag to 0.
23625
236262007-12-05 Jason Rumney <jasonr@gnu.org>
23627
23628 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23629 specified XBMs.
23630
236312007-12-05 Richard Stallman <rms@gnu.org>
23632
23633 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23634
236352007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23636
23637 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23638 New variable.
23639 (mac_try_close_socket) [MAC_OSX]: New function.
23640 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23641 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23642
23643 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23644 Use mac_try_close_socket.
23645
236462007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23647
23648 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23649 reloc_base.
23650 (copy_dysymtab): Compute relocation base here.
23651 (rebase_reloc_address) [__ppc64__]: New function.
23652 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23653 changed.
23654
236552007-12-05 Jason Rumney <jasonr@gnu.org>
23656
23657 * w32proc.c (sys_spawnve): Quote args with wildcards.
23658
236592007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23660
23661 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23662 __objc_* sections.
23663 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23664
236652007-12-05 Michael Albinus <michael.albinus@gmx.de>
23666
23667 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23668 Move check for Vdbus_registered_functions_table to
23669 xd_read_queued_messages.
23670 (xd_read_queued_messages): Protect xd_read_message calls by
23671 internal_condition_case_1.
23672
236732007-12-04 Michael Albinus <michael.albinus@gmx.de>
23674
23675 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23676 Qdbus_system_bus and Qdbus_session_bus, respectively.
23677 (Vdbus_intern_symbols): Remove.
23678 (Vdbus_registered_functions_table): New hash table.
23679 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23680 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23681 Rewrite in order to manage registered functions by hash table
23682 Vdbus_registered_functions_table.
23683
236842007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23685
23686 * xterm.c: Update URL to Window Manager Specification in comment.
23687
236882007-12-02 Michael Albinus <michael.albinus@gmx.de>
23689
23690 * config.in (HAVE_DBUS): Add.
23691
23692 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23693 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23694 (obj): Add $(DBUS_OBJ).
23695 (LIBES): Add $(DBUS_LIBS).
23696 (dbusbind.o): New target.
23697
23698 * dbusbind.c: New file.
23699
23700 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23701
23702 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23703 (Qdbus_event): New Lisp symbol.
23704 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23705 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23706 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23707
23708 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23709
237102007-12-01 Richard Stallman <rms@gnu.org>
23711
23712 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23713
237142007-11-30 Jason Rumney <jasonr@gnu.org>
23715
23716 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23717 (w32con_reset_terminal_modes): Clear screen buffer.
23718 (w32_face_attributes): Don't use color indexes that are out of range.
23719 Only reverse the default colors.
23720
23721 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23722 WINDOWSNT.
23723
23724 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23725
237262007-11-29 Jason Rumney <jasonr@gnu.org>
23727
23728 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23729 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23730 if the terminal colors are initialized.
23731 (unspecified_fg, unspecified_bg): Remove unused declarations.
23732
237332007-11-29 Andreas Schwab <schwab@suse.de>
23734
23735 * keyboard.c (apply_modifiers): Fix typo.
23736
237372007-11-29 Richard Stallman <rms@gnu.org>
23738
23739 * keymap.c (Fcurrent_local_map): Doc fix.
23740
237412007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23742
23743 * s/gnu-kfreebsd.h: New file.
23744
237452007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23746
23747 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23748 Don't cast redundantly.
23749
23750 * keyboard.c (KEY_TO_CHAR): New macro.
23751 (parse_modifiers, apply_modifiers): Accept integer arguments.
23752 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23753 for chars and symbol keys.
23754 After doing such remapping, apply function-key-map again.
23755
237562007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23757
23758 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23759 compiled anymore.
23760
237612007-11-26 Andreas Schwab <schwab@suse.de>
23762
23763 * process.c (list_processes_1): Fix indentation level of the
23764 command column.
23765
237662007-11-23 Andreas Schwab <schwab@suse.de>
23767
23768 * editfns.c (Fformat): Handle %c specially since it requires the
23769 argument to be of type int.
23770
237712007-11-23 Markus Triska <markus.triska@gmx.at>
23772
23773 * emacs.c (main): Call init_editfns before init_process, since
23774 init_process sets Vprocess_connection_type depending on OS release.
23775
237762007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23777
23778 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23779 (find_symbol_value): Use do_symval_forwarding.
23780
23781 * data.c (set_internal): Set the value in the `cons-cell' (for
23782 Buffer_Local_values) not only for frame-local variables.
23783
237842007-11-22 Andreas Schwab <schwab@suse.de>
23785
23786 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23787 values to sprintf.
23788 * keymap.c (Fsingle_key_description): Likewise.
23789 * print.c (print_object): Likewise.
23790
237912007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23792
23793 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23794 file for image is nil.
23795
237962007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23797
23798 * term.c: Include stdarg.h.
23799 (fatal): Implement using varargs.
23800 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23801
238022007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23803
23804 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23805 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23806 Update call to buffer_slot_type_mismatch.
23807 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23808 (buffer_slot_type_mismatch): Update.
23809 * buffer.c (buffer_local_types): Remove.
23810 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23811 (defvar_per_buffer): Set the type in the buffer_objfwd.
23812
238132007-11-21 Jason Rumney <jasonr@gnu.org>
23814
23815 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23816 CreateFileMapping returns NULL on failure.
23817
238182007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23819
23820 * search.c (Fset_match_data): Remove the `evaporate' feature.
23821 (unwind_set_match_data): Don't use the `evaporate' feature.
23822
238232007-11-21 Jason Rumney <jasonr@gnu.org>
23824
23825 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23826
23827 * w32console.c (w32con_write_glyphs): Remove unused variables.
23828
238292007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23830
23831 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23832
23833 * s/darwin.h (MULTI_KBOARD): Remove.
23834
23835 * macfns.c (x_create_tip_frame, Fx_create_frame)
23836 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23837
238382007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23839
23840 * buffer.c (Fbuffer_local_value): Remove redundant test.
23841 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23842 than in `current-buffer' to match the comment.
23843 Do the swap using swap_in_global_binding.
23844
23845 * data.c (store_symval_forwarding, set_internal):
23846 * eval.c (specbind): Remove dead code.
23847
23848 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23849 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23850 Since we do not want to see internal Lisp_*fwd objects here.
23851
238522007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23853
23854 * sysdep.c (init_system_name): Use getaddrinfo if available.
23855
23856 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23857 (x_scroll_bar_note_movement): start, end, with, height in struct
23858 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23859
238602007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23861
23862 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23863
238642007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23865
23866 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23867 This undoes Richard's change of 14-Oct-2002.
23868
23869 * alloc.c (allocate_other_vector):
23870 * lisp.h (allocate_other_vector): Remove.
23871
23872 * window.c (struct save_window_data): Move non-lisp data to the end
23873 and make it `int' rather than Lisp_Object.
23874 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23875 Done wrap/unwrap integer values.
23876 (Fset_window_configuration, compare_window_configurations):
23877 Update use of fields to their new types.
23878
23879 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23880 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23881 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23882 (SET_SCROLL_BAR_X_WINDOW): Remove.
23883 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23884 Access the new x_window field directly.
23885 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23886 Don't wrap/unwrap integers into Lisp_Objects.
23887 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23888 (x_scroll_bar_report_motion):
23889 Don't wrap/unwrap integers into Lisp_Objects.
23890 (x_term_init): Use SDATA.
23891 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23892 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23893 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23894 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23895 * xfns.c (x_set_background_color):
23896 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23897 Access the new x_window field directly.
23898
23899 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23900 (allocate_pseudovector): Make non-static.
23901
23902 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23903 (allocate_pseudovector): Declare.
23904 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23905
239062007-11-15 Andreas Schwab <schwab@suse.de>
23907
23908 * editfns.c (Fformat): Correctly format EMACS_INT values.
23909 Also take precision into account when formatting an integer.
23910
23911 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23912
239132007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23914
23915 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23916 (syms_of_keyboard): Defsubr it.
23917
23918 * data.c (swap_in_global_binding): Fix longstanding bug where
23919 store_symval_forwarding was not called with the right second argument,
23920 thus causing objfwd-ing from being dropped.
23921
239222007-11-14 Juanma Barranquero <lekktu@gmail.com>
23923
23924 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23925 (Fx_display_pixel_height, Fx_display_planes)
23926 (Fx_display_color_cells, Fx_server_max_request_size)
23927 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23928 (Fx_display_visual_class, Fx_display_save_under):
23929 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23930 (Fx_display_pixel_height, Fx_display_planes)
23931 (Fx_display_color_cells, Fx_server_max_request_size)
23932 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23933 (Fx_display_mm_height, Fx_display_mm_width)
23934 (Fx_display_backing_store, Fx_display_visual_class)
23935 (Fw32_select_font, Fx_display_save_under):
23936 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23937 (Fx_display_pixel_height, Fx_display_planes)
23938 (Fx_display_color_cells, Fx_server_max_request_size)
23939 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23940 (Fx_display_save_under): Fix typos in docstrings.
23941
239422007-11-14 Juanma Barranquero <lekktu@gmail.com>
23943
23944 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23945 corresponding to deleted entries; they are an implementation detail.
23946 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23947 Remove variables.
23948 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23949 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23950 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23951 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23952 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23953 (Fw32_define_rgb_color, Fw32_load_color_file)
23954 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23955 Fix typos in docstrings.
23956 (Fx_server_version): Reflow docstring.
23957 (Fw32_shell_execute): Doc fixes.
23958
239592007-11-13 Juanma Barranquero <lekktu@gmail.com>
23960
23961 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23962 if w32_parse_hot_key returned nil.
23963
239642007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23965
23966 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23967
239682007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23969
aac0c6e3
MR
23970 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23971
23972 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23973
23974 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23975 Remove W32_SCROLL_BAR_CLICK_EVENT.
23976
23977 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23978 Add MULTIMEDIA_KEY_EVENT.
23979
23980 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23981 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23982 (make_lispy_event) [WINDOWSNT]: Use it to translate
23983 MULTIMEDIA_KEY_EVENT.
23984
23985 * w32term.h (WM_APPCOMMAND): Define if not already.
23986 (GET_APPCOMMAND_LPARAM): Likewise.
23987
23988 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23989 WM_APPCOMMAND.
23990
23991 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23992 (syms_of_w32fns): Export and initialize it.
23993 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23994
239952007-11-09 Chong Yidong <cyd@stupidchicken.com>
23996
23997 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23998 twice.
23999
24000 * xdisp.c (handle_face_prop): Fix last change.
24001
240022007-11-09 Richard Stallman <rms@gnu.org>
24003
24004 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24005 not just for after-strings and before-strings.
24006 Call face_for_overlay_string and pass the overlay to it.
24007 (handle_display_prop): Determine whether property came from an overlay.
24008 Pass OVERLAY arg to handle_single_display_spec.
24009 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24010 (load_overlay_strings): Fill in it->string_overlays.
24011 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24012
24013 * xfaces.c (face_for_overlay_string): Function renamed from
24014 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24015
24016 * dispextern.h (struct it): New elt string_overlays.
24017 New elt from_overlay, also in stack.
24018 Rearrange a few elements.
24019 (face_for_overlay_string): Decl renamed from
24020 face_at_buffer_position_no_overlays, and add argument.
24021
240222007-11-09 Richard Stallman <rms@gnu.org>
24023
24024 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24025 to get the base face for an overlay string.
24026
24027 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24028
24029 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24030
24031 * xdisp.c (handle_stop): Move some code out of loop.
24032
240332007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24034
24035 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24036 Fix conversion from Lisp object to ATSUFontID.
24037
240382007-11-09 Jason Rumney <jasonr@gnu.org>
24039
24040 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24041
240422007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24043
24044 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24045 Don't assume regions are aligned to page boundary.
24046 (print_load_command_name): Add LC_UUID if defined.
24047
240482007-11-09 Richard Stallman <rms@gnu.org>
24049
24050 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24051
240522007-11-07 Jason Rumney <jasonr@gnu.org>
24053
24054 * s/windows95.h: Remove.
24055
240562007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24057
24058 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24059 abort with a message on unhandled store_type values.
24060
240612007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24062
24063 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24064 Remove HAVE_X11R5 and HAVE_X11R4.
24065
240662007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24067
24068 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24069
240702007-11-01 Johan Bockgård <bojohan@gnu.org>
24071
24072 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24073 Don't set s->stippled_p here, since it has already been set by
24074 x_set_glyph_string_gc from x_draw_glyph_string.
24075
240762007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24077
24078 * sunfns.c: Remove file.
24079
24080 * m/sun386.h:
24081 * m/sun2.h:
24082 * m/sparc.h: Remove Sun windows code.
24083
240842007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24085
24086 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24087 (init_keyboard): Set current_kboard's window-system to nil.
24088 (tty_read_avail_input): Typo.
24089 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24090
240912007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24092
24093 * s/usg5-4.h:
24094 * s/usg5-3.h:
24095 * s/ptx.h:
24096 * m/is386.h:
24097 * m/ibmps2-aix.h:
24098 * Makefile.in: Remove all mentions of X10.
24099
24100 * dispnew.c (syms_of_display): Don't mention version 10.
24101
241022007-10-28 Juanma Barranquero <lekktu@gmail.com>
24103
24104 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24105 ($(BLD)/abbrev.$(O)): Remove.
24106
241072007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24108
24109 Rewrite abbrev.c in Elisp.
24110 * image.c (Qcount): Don't declare as extern.
24111 (syms_of_image): Initialize and staticpro `Qcount'.
24112 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24113 * emacs.c (main): Don't call syms_of_abbrev.
24114 * Makefile.in (obj): Remove abbrev.o.
24115 (abbrev.o): Remove.
24116 * abbrev.c: Remove.
24117
241182007-10-26 Martin Rudalics <rudalics@gmx.at>
24119
24120 * window.c (window_min_size_2): Don't count header-line.
24121
241222007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24123
24124 * frame.h (struct frame): Move all bit fields after the first bit
24125 field to take advantage of the available space. Group all the
24126 chars together to reduce wasted space due to padding.
24127
241282007-10-26 Juanma Barranquero <lekktu@gmail.com>
24129
24130 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24131
24132 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24133 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24134 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24135 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24136 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24137 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24138 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24139 (last_marked, mark_object_loop_halt): Make static.
24140
24141 * frame.c (syms_of_frame) <delete-frame-functions>:
24142 Fix typo in docstring.
24143
241442007-10-25 Juanma Barranquero <lekktu@gmail.com>
24145
24146 * w32.c (init_environment): Fix tiny memory leak.
24147 (w32_get_resource): Remove unused variable `ok'.
24148
241492007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24150
24151 Make `window-system' into a keyboard-local variable (rather than
24152 frame-local as done originally by multi-tty).
24153
24154 * keyboard.h (struct kboard): Add Vwindow_system.
24155 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24156 (mark_kboards): Mark Vwindow_system.
24157
24158 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24159 (init_display): Don't set the obsolete `window-system' frame-param.
24160
24161 * xterm.c (x_term_init):
24162 * w32term.c (w32_create_terminal):
24163 * term.c (init_tty): Set Vwindow_system.
24164 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24165 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24166
24167 * xfns.c (Fx_create_frame, x_create_tip_frame):
24168 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24169 * macfns.c (Fx_create_frame):
24170 Don't set the obsolete `window-system' frame-param.
24171
24172 * frame.h (Qwindow_system): Remove.
24173 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24174 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24175
241762007-10-24 Richard Stallman <rms@gnu.org>
24177
24178 * frame.c (x_figure_window_size): For fullscreen case,
24179 set USPosition | PPosition without clobbering rest of window_prompting.
24180
24181 * keyboard.c (Fcurrent_idle_time): Doc fix.
24182
24183 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24184
241852007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24186
24187 * process.c (unwind_request_sigio): Only define if __ultrix__.
24188
24189 * callproc.c (child_setup): Remove spurious *.
24190
24191 * lisp.h (Fget_text_property): Declare.
24192 (have_menus_p): Declare it here rather than in sys-dep header files.
24193 * macterm.h (have_menus_p):
24194 * msdos.h (have_menus_p):
24195 * xterm.h (have_menus_p): Remove.
24196
24197 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24198 (Fmake_variable_frame_local): Just check the variable's const-ness
24199 rather than checking nil or t.
24200
242012007-10-22 Jason Rumney <jasonr@gnu.org>
24202
24203 * w32fns.c: Include math.h.
24204 (w32_abort): Declaration moved to nt/config.nt.
24205
24206 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24207 (abort): Redefinition moved to nt/config.nt.
24208
24209 * m/windowsnt.h: Remove.
24210
242112007-10-22 Juanma Barranquero <lekktu@gmail.com>
24212
24213 * emacs.c (Fdump_emacs): Fix typo in message.
24214 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24215 <installation-directory>: Reflow docstring.
24216
242172007-10-22 Juri Linkov <juri@jurta.org>
24218
24219 * minibuf.c: Allow minibuffer default to be a list of default values.
24220 With empty input use the first element of this list as returned default.
24221 (string_to_object)
24222 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24223 (read_minibuf): If defalt is cons, set histstring to its car.
24224 (Fread_string): If default_value is cons, set val to its car.
24225 (Fread_buffer): If def is cons, use its car.
24226 (Fcompleting_read): If defalt is cons, set val to its car.
24227
242282007-10-21 Michael Albinus <michael.albinus@gmx.de>
24229
24230 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24231
242322007-10-20 Juanma Barranquero <lekktu@gmail.com>
24233
24234 * doc.c (Fdocumentation): Check for advice in all cases.
24235
242362007-10-19 Chong Yidong <cyd@stupidchicken.com>
24237
24238 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24239
242402007-10-19 Richard Stallman <rms@gnu.org>
24241
24242 * doc.c (Fdocumentation): Check for and handle an advised function.
24243
242442007-10-19 Juanma Barranquero <lekktu@gmail.com>
24245
24246 * process.c (Fset_process_filter): Doc fix.
24247
242482007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24249
24250 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24251 which caused key-translation-map to applied repeatedly (thus breaking
24252 double-mode).
24253
242542007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24255
24256 * xselect.c (x_own_selection, x_handle_selection_clear)
24257 (x_clear_frame_selections):
24258 * w32menu.c (list_of_panes, list_of_items):
24259 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24260 * textprop.c (validate_plist, interval_has_all_properties)
24261 (interval_has_some_properties, interval_has_some_properties_list)
24262 (add_properties, text_property_list):
24263 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24264 * minibuf.c (Fassoc_string):
24265 * macselect.c (x_own_selection, x_clear_frame_selections)
24266 (Fx_disown_selection_internal):
24267 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24268 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24269
242702007-10-17 Chong Yidong <cyd@stupidchicken.com>
24271
24272 * process.c: Link to libs for calling res_init() if available.
24273 (Fmake_network_process): Call res_init() before getaddrinfo or
24274 gethostbyname, if possible.
24275
242762007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24277
24278 * lread.c (read1): Set pvectype for char_tables.
24279
24280 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24281 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24282 Add type checks.
24283 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24284
24285 * alloc.c (free_misc): Use XMISCTYPE.
24286 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24287
242882007-10-17 Glenn Morris <rgm@gnu.org>
24289
24290 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24291 (syms_of_minibuf): Add Qcompletion_ignore_case.
24292 * dired.c (Qcompletion_ignore_case): Change to external.
24293 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24294 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24295 (Fread_file_name): Use it rather than intern'ing.
24296
24297 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24298 (Fread_coding_system): Ignore case of user input.
24299
243002007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24301
24302 * xdisp.c (handle_display_prop): Ignore display specs after
24303 replacing one when string text is being replaced.
24304 (handle_single_display_spec): Pretend as if characters with display
24305 property haven't been consumed only when buffer text is being replaced.
24306
243072007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24308
24309 * xfns.c (Fx_create_frame, Fx_display_list):
24310 * window.c (window_fixed_size_p, enlarge_window)
24311 (shrink_window_lowest_first):
24312 * macterm.c (init_font_name_table):
24313 * macfns.c (Fx_create_frame, Fx_display_list):
24314 * lread.c (close_load_descs):
24315 * keyboard.c (read_char_x_menu_prompt):
24316 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24317 * coding.c (code_convert_region_unwind): Test the type of an object
24318 rather than just !NILP before extracting data from it.
24319
24320 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24321
24322 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24323 (XMISCANY): New macro.
24324 (XMISCTYPE): Use it.
24325 (struct Lisp_Misc_Any): New type.
24326 (union Lisp_Misc): Use it.
24327 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24328 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24329 (find_symbol_value, set_internal, default_value, Fset_default)
24330 (Fmake_variable_buffer_local, Fmake_local_variable)
24331 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24332 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24333 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24334 * alloc.c (allocate_buffer): Set the size and tag.
24335 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24336 Use XMISCANY.
24337 (die): Follow the GNU convention for error messages.
24338 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24339 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24340 tag any more.
24341 (set_buffer_internal_1):
24342 * frame.c (store_frame_param):
24343 * eval.c (specbind):
24344 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24345
24346 * doc.c (Fsnarf_documentation): Simplify.
24347
243482007-10-14 Juanma Barranquero <lekktu@gmail.com>
24349
24350 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24351 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24352
243532007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24354
24355 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24356
243572007-10-14 Juanma Barranquero <lekktu@gmail.com>
24358
24359 * eval.c (do_autoload): Don't save autoloads.
24360
24361 * data.c (Ffset): Save autoload of the function being set.
24362
243632007-10-07 John Paul Wallington <jpw@pobox.com>
24364
24365 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24366 parameter before setting up faces.
24367
243682007-10-13 Eli Zaretskii <eliz@gnu.org>
24369
24370 * ccl.c (Fregister_code_conversion_map):
24371 * keyboard.c (append_tool_bar_item): Reformat last change.
24372
24373 * lisp.h (eabs): Rename from `abs'. All callers changed.
24374
243752007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24376
24377 * buffer.c (add_overlay_mod_hooklist):
24378 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24379 * fontset.c (make_fontset):
24380 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24381 (append_tool_bar_item):
24382 * macmenu.c (grow_menu_items):
24383 * w32menu.c (grow_menu_items):
24384 * xmenu.c (grow_menu_items): Use larger_vector.
24385
243862007-10-13 Eli Zaretskii <eliz@gnu.org>
24387
24388 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24389 selected frame'' on MSDOS).
24390
243912007-10-12 Martin Rudalics <rudalics@gmx.at>
24392
24393 * frame.c (Qexplicit_name): New variable.
24394 (x_report_frame_params): Report it in parameter alist.
24395 (syms_of_frame): Intern and staticpro it.
24396
243972007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24398
24399 * macfns.c (x_create_tip_frame): Set terminal for frame.
24400
244012007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24402
24403 * frame.c (Qenvironment): Remove.
24404 (syms_of_frame) <Qenvironment>: Don't initialize.
24405 (Fdelete_frame): Don't treat the `environment' param specially.
24406 * frame.h (Qenvironment): Don't declare.
24407 * callproc.c (set_initial_environment): Don't set unused frame param.
24408
24409 * frame.c (Fframe_with_environment): Remove.
24410 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24411
24412 * lisp.h (Fframe_with_environment): Don't declare.
24413
244142007-10-10 Juanma Barranquero <lekktu@gmail.com>
24415
24416 * indent.c (indent_tabs_mode, last_known_column)
24417 (last_known_column_modified): Make static.
24418 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24419
244202007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24421
24422 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24423
244242007-10-09 Jason Rumney <jasonr@gnu.org>
24425
24426 * w32term.c (x_set_window_size): Disable code that attempts to tell
24427 Lisp code about a size change before it actually happens.
24428
244292007-10-09 Richard Stallman <rms@gnu.org>
24430
24431 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24432 return HANDLED_RETURN.
24433
244342007-10-08 Martin Rudalics <rudalics@gmx.at>
24435
24436 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24437 when there's an unread command event.
24438
24439 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24440 window autoselection act appropriately when leaving selected frame.
24441 (syms_of_frame): Initialize focus_follows_mouse.
24442 * frame.h (focus_follows_mouse): Extern it.
24443 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24444 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24445 * msdos.c (dos_rawgetc): Likewise.
24446 * w32term.c (w32_read_socket): Likewise.
24447 * xterm.c (handle_one_xevent): Likewise.
24448 * xdisp.c (syms_of_xdisp): In doc-string of
24449 mouse-autoselect-window mention focus-follows-mouse.
24450
244512007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24452
24453 * macterm.c (mac_load_query_font): Fix missing return value.
24454 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24455 Add BLOCK_INPUT.
24456
244572007-10-08 Richard Stallman <rms@gnu.org>
24458
24459 * xdisp.c (get_window_cursor_type): Implement documented behavior
24460 for cursor-in-non-selected-windows = t.
24461
244622007-10-08 Jason Rumney <jasonr@gnu.org>
24463
24464 * w32.c (w32_get_resource): Always close registry keys.
24465
244662007-10-08 Jason Rumney <jasonr@gnu.org>
24467
24468 * makefile.w32-in (LIBS): Add COMCTL32.
24469
24470 * w32fns.c (globals_of_w32fns): Init common controls.
24471
244722007-10-08 Richard Stallman <rms@gnu.org>
24473
24474 * image.c (our_memory_buffer): Rename from omfib_buffer.
24475
244762007-10-08 Richard Stallman <rms@gnu.org>
24477
24478 * buffer.c (Foverlays_at): Doc fix.
24479
244802007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24481
24482 * fns.c (Fplist_put): Preserve uneven tail data.
24483
244842007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24485
24486 * termhooks.h (enum event_kind): Remove trailing comma.
24487
24488 * frame.h (enum): Remove trailing comma.
24489
244902007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24491
24492 * w32proc.c (delete_child): Don't terminate threads of zombies.
24493
244942007-10-08 Martin Rudalics <rudalics@gmx.at>
24495
24496 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24497
24498 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24499 last-repeatable-command.
24500 (init_kboard): Initialize Vlast_repeatable_command.
24501 (command_loop_1): Set it to real_this_command unless that was
24502 bound to an input event.
24503 (mark_kboards): Mark it.
24504
245052007-10-08 Richard Stallman <rms@gnu.org>
24506
24507 * eval.c (condition-case): Doc fix.
24508
245092007-10-08 Masatake YAMATO <jet@gyve.org>
24510
24511 * xfaces.c (tty_supports_face_attributes_p): Fix code
24512 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24513 was copied and not edited.
24514
245152007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24516
24517 Add new `input-decode-map' keymap and use it for terminal
24518 escape sequences.
24519 * keyboard.h (struct kboard): Add Vinput_decode_map.
24520 Remove Vlocal_key_translation_map.
24521 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24522 (init_kboard): Init input-decode-map.
24523 Replace local-key-translation-map back with key-translation-map.
24524 (syms_of_keyboard): Declare input-decode-map.
24525 Remove local-key-translation-map. Update docstrings.
24526 (mark_kboards): Mark Vinput_decode_map.
24527 Don't mark Vlocal_key_translation_map.
24528 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24529 Replace local-key-translation-map back with key-translation-map.
24530 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24531 Bind in input-decode-map rather than function-key-map.
24532
24533 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24534 This was made redundant by the previous introduction of XSETPVECTYPE.
24535
245362007-10-09 Richard Stallman <rms@gnu.org>
24537
24538 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24539
245402007-09-29 Richard Stallman <rms@gnu.org>
24541
24542 * eval.c (internal_condition_case_2, internal_condition_case_1)
24543 (internal_condition_case): Reenable abort if x_catching_errors ()
24544 to see if that really happens and why.
24545
245462007-10-06 Andreas Schwab <schwab@suse.de>
24547
24548 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24549
245502007-10-04 Juanma Barranquero <lekktu@gmail.com>
24551
24552 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24553
245542007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24555
24556 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24557
245582007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24559
24560 * window.h (struct window):
24561 * window.c (struct save_window_data, struct saved_window):
24562 * termhooks.h (struct terminal):
24563 * process.h (struct Lisp_Process):
24564 * frame.h (struct frame):
24565 * buffer.h (struct buffer):
24566 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24567 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24568 The size field of (pseudo)vectors is now unsigned.
24569 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24570
24571 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24572 Turn `count' into an integer.
24573
24574 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24575 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24576 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24577 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24578 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24579
24580 * alloc.c (allocate_pseudovector): New fun.
24581 (ALLOCATE_PSEUDOVECTOR): New macro.
24582 (allocate_window, allocate_terminal, allocate_frame)
24583 (allocate_process): Use it.
24584 (mark_vectorlike): New function.
24585 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24586 (mark_terminals): Use it.
24587 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24588 (Fmake_byte_code): Use XSETPVECTYPE.
24589
24590 * frame.c (Fframe_parameters): Minor simplification.
24591
24592 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24593
24594 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24595
24596 * buffer.c (Fget_buffer_create, init_buffer_once):
24597 * lread.c (defsubr):
24598 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24599
24600 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24601 defined differently in the m/*.h files.
24602 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24603 (XSETPVECTYPE): New macro.
24604 (XSETPSEUDOVECTOR): Use it.
24605
24606 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24607 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24608
24609 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24610 * lread.c (defvar_per_buffer):
24611 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24612
24613 * window.c (candidate_window_p): Only consider as visible frames that
24614 are on the same terminal.
24615
24616 * m/ibms390x.h (MARKBIT): Remove unused macro.
24617
246182007-10-01 Juanma Barranquero <lekktu@gmail.com>
24619
24620 * lread.c (Fload): Fix typo in docstring.
24621
246222007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24623
24624 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24625 of a non-zero value can't yield zero.
24626
246272007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24628
24629 * term.c (term_clear_mouse_face, term_mouse_highlight)
24630 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24631
24632 * print.c (safe_debug_print): Use XHASH.
24633
24634 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24635 Lisp elements such as tags.
24636 (XHASH): New macro.
24637 (EQ): Use it.
24638 (SREF, SSET, STRING_COPYIN): Use SDATA.
24639 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24640
24641 * alloc.c (mark_terminal): Remove left-over declaration.
24642 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24643 (allocate_vectorlike): Remove type argument. Adjust callers.
24644 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24645 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24646
24647 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24648 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24649 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24650 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24651 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24652 Use them.
24653
24654 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24655 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24656 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24657
246582007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24659
24660 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24661 loaded by default.
24662
246632007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24664
24665 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24666 on this tty.
24667 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24668
24669 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24670 Update all users.
24671 (handle_one_term_event): Use Gpm_DrawPointer.
24672 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24673 Signal errors instead of returning nil. Always return nil.
24674 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24675 Make it a noop if gpm-mouse was not activated.
24676 (syms_of_term): Update names.
24677
246782007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24679
24680 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24681 (init_sys_modes): Check that gpm_tty is the current tty.
24682
24683 * alloc.c (allocate_terminal): Set the vector size to only count the
24684 lisp fields. Initialize those to nil.
24685 (mark_object): Don't treat terminals specially.
24686 (mark_terminal): Remove.
24687 (mark_terminals): Use mark_object instead.
24688
24689 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24690 the GC to the beginning.
24691
24692 * indent.h:
24693 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24694
24695 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24696
246972007-09-25 Jason Rumney <jasonr@gnu.org>
24698
24699 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24700
24701 * w32console.c (create_w32cons_output): Remove.
24702
24703 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24704
24705 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24706 (reset_sys_modes): Use reset_terminal_modes_hook.
24707
247082007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24709
24710 * eval.c (do_autoload): Don't output any message.
24711
247122007-09-24 Juri Linkov <juri@jurta.org>
24713
24714 * emacs.c (standard_args): Change priority of "--no-splash"
24715 from 40 to 3. Add "--no-desktop" with the same priority.
24716
247172007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24718
24719 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24720 and optimize the case where they are all 1.
24721
247222007-09-23 Johannes Weiner <hannes@saeurebad.de>
24723
24724 * lisp.h (abs): Define if not defined.
24725 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24726 Don't define `abs', since it's defined in lisp.h.
24727
247282007-09-22 Eli Zaretskii <eliz@gnu.org>
24729
24730 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24731 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24732 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24733 (init_tty): Use DEV_TTY instead of "/dev/tty".
24734 [WINDOWSNT]: No need to protect from NAME arg being null.
24735
247362007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24737
24738 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24739 up the tty state.
24740
247412007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24742
24743 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24744 (gpm_tty): Change its type.
24745 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24746 (gpm_tty): Change its type and initialize it.
24747 (Fterm_open_connection): Check the frame is indeed a tty.
24748 Use the new gpm_tty.
24749 (Fterm_close_connection): Use the new gpm_tty.
24750 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24751 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24752
247532007-09-21 Juanma Barranquero <lekktu@gmail.com>
24754
24755 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24756 underline_color, to draw strike-through.
24757
247582007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24759
24760 * lisp.h (allocate_terminal): Declare.
24761
24762 * window.c (candidate_window_p): Consider frames that are being placed
24763 by the user as somewhere between visible and iconified.
24764 (window_loop): Prefer windows on the current frame.
24765 (Fselect_window): Move the use of select-frame to the beginning so we
24766 can just delegate all the work (it'll call us back anyway).
24767
24768 * frame.c (Qdisplay_environment_variable):
24769 * frame.h (Qdisplay_environment_variable): Delete.
24770
24771 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24772 of the first arg, since that value may be a union.
24773
24774 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24775 parameter rather than Qdisplay_environment_variable. If all else
24776 fails, look for DISPLAY in initial-environment.
24777
247782007-09-21 Glenn Morris <rgm@gnu.org>
24779
24780 * Makefile.in (emacstool): Remove target.
24781 (lisp, shortlisp): Remove termdev.elc.
24782
247832007-09-21 Markus Triska <markus.triska@gmx.at>
24784
24785 * xterm.c (x_delete_display): Compile session management conditionally.
24786
247872007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24788
24789 * callproc.c (getenv_internal_1): New function.
24790 (getenv_internal): Use it.
24791 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24792
24793 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24794 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24795 (Fset_terminal_parameter): Work with dead terminals as well.
24796 (Fmodify_terminal_parameters): Remove.
24797
24798 * terminal.c (get_terminal): Handle terminals.
24799 Make sure the terminal returned is live.
24800 (create_terminal): Use allocate_terminal.
24801 (mark_terminals): Move to alloc.c.
24802 (delete_terminal): Use terminal->name as liveness status.
24803 NULL out fields after freeing their contents.
24804 Don't deallocate the object.
24805 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24806 rather than an int.
24807 (Fterminal_live_p): Accept non-integer arguments.
24808 (Fterminal_list): Return terminal objects rather than an ints.
24809
24810 * alloc.c (enum mem_type): New member for `terminal' objects.
24811 (allocate_terminal): New function.
24812 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24813 Handle terminals.
24814 (mark_terminal): New fun.
24815 (mark_terminals): Move from terminal.c.
24816
24817 * term.c (get_tty_terminal): Don't treat output_initial specially.
24818 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24819 (delete_tty): Use terminal->name as liveness status.
24820
24821 * termhooks.h (struct terminal): Make it into a pseudovector.
24822 Remove `deleted' replaced by checking `name's nullness.
24823
24824 * print.c (print_object): Handle terminals.
24825
24826 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24827 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24828
24829 * frame.c (make_terminal_frame):
24830 * keyboard.c (tty_read_avail_input):
24831 * w32term.c (x_delete_terminal):
24832 * xfns.c (Fx_create_frame, x_create_tip_frame):
24833 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24834
248352007-09-20 Glenn Morris <rgm@gnu.org>
24836
24837 * process.c (Fmake_network_process): Doc fix.
24838
248392007-09-19 Jason Rumney <jasonr@gnu.org>
24840
24841 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24842
248432007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24844
24845 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24846 Fix a C warning regarding variable constness.
24847
24848 * xterm.c (handle_one_xevent): Fix a C warning.
24849
248502007-09-18 Jason Rumney <jasonr@gnu.org>
24851
24852 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24853
248542007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24855
24856 * gtkutil.c (gdpy_def): New variable.
24857 (xg_initialize): Initialize gdpy_def.
24858 (xg_display_close): If no other display exists, set gdpy_def to a
24859 new connection.
24860
248612007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24862
24863 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24864 when we have no file name for the icon.
24865 (xg_tool_bar_expose_callback): Remove.
24866 (xg_create_tool_bar): Don't connect expose signal to
24867 xg_tool_bar_expose_callback.
24868 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24869
248702007-09-16 Andreas Schwab <schwab@suse.de>
24871
24872 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24873 values instead of zapping them.
24874
248752007-09-14 Glenn Morris <rgm@gnu.org>
24876
24877 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24878 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24879 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24880 scope and rename to omfib_buffer for clarity.
24881 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24882
248832007-09-14 Kenichi Handa <handa@m17n.org>
24884
24885 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24886
248872007-09-13 Jason Rumney <jasonr@gnu.org>
24888
24889 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24890
24891 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24892
24893 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24894 (mac_term_init): Call here instead, passing rif.
24895
248962007-09-13 Glenn Morris <rgm@gnu.org>
24897
24898 * s/hpux.h: No longer define `static' as nothing.
24899
249002007-09-13 Johan Bockgård <bojohan@gnu.org>
24901
24902 * callint.c (Fcall_interactively): Remove unused var `fun'.
24903
249042007-09-12 Romain Francoise <romain@orebokech.com>
24905
24906 * window.c (prefer_window_split_horizontally, display_buffer):
24907 Revert 2007-09-08 change.
24908
249092007-09-12 Glenn Morris <rgm@gnu.org>
24910
24911 * alloca.c: Remove file.
24912 * Makefile.in (alloca): Do not undef.
24913 (allocaobj, alloca.o): Remove.
24914 (otherobj): Remove allocaobj.
24915 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24916 * regex.c (C_ALLOCA): Remove all references and code that was only
24917 used when this was defined.
24918 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24919 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24920 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24921
24922 * Makefile.in (SOURCES, unlock, relock): Delete.
24923
24924 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24925 (menu_grab_callback): All uses changed.
24926
24927 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24928 (x_reply_selection_request): All uses changed.
24929
249302007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24931
24932 * lread.c (load_warn_old_style_backquotes): Change message to look
24933 better when it appears in the middle of byte-compiler messages.
24934
249352007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24936
24937 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24938
24939 * xterm.c (x_create_terminal): Add comment.
24940
24941 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24942
249432007-09-10 Richard Stallman <rms@gnu.org>
24944
24945 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24946
249472007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24948
24949 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24950 (DEFUN): Document `intspec', use it instead of `prompt'.
24951
24952 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24953
24954 * data.c (Finteractive_form): If the interactive specification starts
24955 with a `(', use it as a Lisp form.
24956
24957 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24958 name and file modes.
24959
24960 * callint.c (Fcall_interactively): Comment fixes.
24961
249622007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24963
24964 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24965 and compiled functions.
24966
249672007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24968
24969 * window.c (prefer_window_split_horizontally): New variable.
24970 (display_buffer): Consider splitting window horizontally depending
24971 on prefer_window_split_horizontally.
24972
249732007-09-08 Eli Zaretskii <eliz@gnu.org>
24974
24975 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24976
249772007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24978
24979 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24980
24981 * frame.c (x_set_frame_parameters): Check number is positive before
24982 using XFASTINT.
24983
24984 * window.c (freeze_window_start): Don't presume selected_window holds
24985 a window object.
24986 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24987
249882007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24989
24990 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24991
249922007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24993
24994 * window.c (Vsplit_window_preferred_function): New var.
24995 (Fdisplay_buffer): Use it.
24996 (syms_of_window): Export, and initialize it.
24997
249982007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24999
25000 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25001
250022007-09-06 Glenn Morris <rgm@gnu.org>
25003
25004 * gtkutil.c (menu_grab_callback) <cnt>:
25005 * xselect.c (x_reply_selection_request) <cnt>: Move static
25006 variable to file scope.
25007
250082007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25009
25010 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25011 consistent values of selected_frame and selected_window.
25012
250132007-09-04 Jason Rumney <jasonr@gnu.org>
25014
25015 * w32console.c (initialize_w32_display): Zero unused hooks.
25016
250172007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25018
25019 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25020 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25021
250222007-09-04 Jason Rumney <jasonr@gnu.org>
25023
25024 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25025 in w32console.c. Set up input. Remove XXX comments that have been
25026 confirmed as correct.
25027
25028 * s/ms-w32.h (MULTI_KBOARD): Define.
25029
25030 * w32console.c (one_and_only_w32cons): Remove.
25031 (initialize_w32_display): Take terminal argument.
25032
25033 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25034 initialize_w32_display.
25035 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25036
25037 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25038
25039 * keyboard.c (discard_mouse_events): Discard it.
25040 (make_lispy_event): Translate it to a lisp event.
25041 (lispy_wheel_names): Add wheel-left and right events.
25042 (syms_of_keyboard): Enlarge wheel_syms.
25043
25044 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25045 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25046
25047 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25048
25049 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25050 from WM_MOUSEHWHEEL.
25051 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25052
25053 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25054 terminal.
25055
25056 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25057 keyboard for the terminal.
25058
250592007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25060
25061 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25062 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25063 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25064 and resume-tty-function to resume-tty-hook.
25065 (Fsuspend_tty, Fresume_tty): Use new names.
25066
250672007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25068
25069 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25070 if it starts with "n:".
25071
250722007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25073
25074 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25075
250762007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25077
25078 * frame.h:
25079 * frame.c (Qterm_environment_variable): Remove.
25080 (syms_of_frame): Don't init and staticpro it.
25081
25082 * callproc.c (getenv_internal): Remove special case for $TERM.
25083
25084 * callproc.c (Vinitial_environment): New variable.
25085 (set_initial_environment): Initialize it.
25086 (syms_of_callproc): Declare it.
25087 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25088 TERM under which a process runs is never related to the TERM in which
25089 Emacs is running.
25090
250912007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25092
25093 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25094 * s/darwin.h: ... do it here.
25095
250962007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25097
25098 * lisp.h (set_initial_environment): Rename from set_global_environment.
25099
25100 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25101 removed by mistake on the multi-tty branch.
25102
25103 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25104 (Fmodify_frame_parameters): Return a value.
25105
25106 * image.c (png_load): Comment-out var only used in commented-out code.
25107
25108 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25109 before passing it to mark_object.
25110
25111 * xfaces.c (internal_resolve_face_name): Return a value.
25112 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25113
25114 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25115 (x_icon): Comment-out var only used in commented-out code.
25116
251172007-08-29 Romain Francoise <romain@orebokech.com>
25118
25119 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25120 QUIT hasn't been provided.
25121
251222007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25123
25124 * callproc.c (child_setup, getenv_internal): Use the
25125 display-environment-variable and term-environment-variable frame params.
25126 (set_initial_environment): Initialise Vprocess_environment.
25127
25128 * config.in: Disable multi-keyboard support on a mac.
25129
25130 * frame.c (Qterm_environment_variable)
25131 (Qdisplay_environment_variable): New variables.
25132 (syms_of_frame): Intern and staticpro them.
25133 (Fmake_terminal_frame): Disable output method test.
25134
25135 * frame.h: Declare them here.
25136
25137 * macfns.c (x_set_mouse_color): Get rif from the frame.
25138 (x_set_tool_bar_lines): Don't use updating_frame.
25139 (mac_window): Add 2 new parameters for consistency with other systems.
25140 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25141 frame parameters following what is done in X11 and w32. Don't use
25142 FRAME_MAC_DISPLAY_INFO.
25143 (Fx_open_connection, start_hourglass): Remove window-system check.
25144 (x_create_tip_frame): Get the keyboard from the terminal.
25145
25146 * macmenu.c: Reorder includes.
25147 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25148
25149 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25150 terminal parameter.
25151 (x_clear_frame): Add a frame parameter.
25152 (note_mouse_movement): Get rif from the frame.
25153 (mac_term_init): Initialize the terminal.
25154 (mac_initialize): Make static and move terminal initialization ...
25155 (mac_create_terminal): ... to this new function.
25156
25157 * macterm.h (struct mac_display_info): Add terminal.
25158 (mac_initialize): Delete declaration.
25159
25160 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25161
25162 * sysdep.c: Comment out text after #endif.
25163
25164 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25165 is defined. Better initialize ttys in windows. Use terminal
25166 specific mouse_position_hook.
25167
25168 * termhooks.h (union display_info): Add mac_display_info.
25169
25170 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25171 Set the default minibuffer frame, window_system and the rest of the
25172 frame parameters following what is done in X11.
25173
25174 * w32term.c (w32_initialize): Make static.
25175
25176 * xselect.c (x_handle_selection_clear): Only access
25177 terminal->kboard when MULTI_KBOARD is defined.
25178
25179 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25180 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25181
251822007-08-29 Jason Rumney <jasonr@gnu.org>
25183
25184 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25185 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25186
25187 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25188 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25189
25190 * keyboard.c (restore_kboard_configuration): Only define when
25191 MULTI_KBOARD defined.
25192
25193 * makefile.w32-in: Update dependancies from Makefile.in.
25194 (OBJ1): Add terminal.$(O)
25195
25196 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25197 Don't define function body.
25198 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25199
25200 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25201
25202 * w32.c (request_sigio, unrequest_sigio): Remove.
25203
25204 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25205 (w32con_clear_frame, w32con_clear_end_of_line)
25206 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25207 (w32con_delete_glyphs, w32con_set_terminal_window)
25208 (scroll_line, w32_sys_ring_bell): Add frame arg.
25209 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25210 Add terminal arg.
25211 (PICK_FRAME): Remove.
25212 (w32con_write_glyphs): Use frame specific terminal coding.
25213 (one_and_only_w32cons): New global variable.
25214 (initialize_w32_display): Use it for storing hooks.
25215 (create_w32cons_output): New function.
25216
25217 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25218 arg a frame.
25219
25220 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25221 Set window_system.
25222 (x_set_tool_bar_lines): Don't use updating_frame.
25223 (Fx_create_frame): Set terminal and ref count.
25224 (Fx_open_connection): Remove window-system check.
25225
25226 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25227
25228 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25229 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25230 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25231 Add frame arg.
25232 (x_delete_terminal, w32_create_terminal): New functions.
25233 (w32_term_init): Create a terminal.
25234 (w32_initialize): Move terminal specific initialization to
25235 w32_create_terminal.
25236
25237 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25238 (w32_clear_rect, w32_clear_area): Use background from frame.
25239 (w32_display_info): Add terminal.
25240 (w32_sys_ring_bell, x_delete_display): Declare here.
25241
25242 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25243
25244 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25245
252462007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25247
25248 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25249 Fix get_named_tty calls for the controlling tty.
25250
252512007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25252
194d44e7 25253 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25254
252552007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25256
25257 * term.c (tty_insert_glyphs): Add missing first parameter.
25258
252592007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25260
25261 * buffer.c (Fbuffer_list, Fbury_buffer):
25262 Take frame->buried_buffer_list into account.
25263
25264 * cm.c (current_tty): New variable, for cmputc().
25265 (cmputc): Use it.
25266 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25267 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25268 (cmgoto): Add tty parameter. Pass it on to calccost().
25269 Use emacs_tputs() instead of tputs().
25270
25271 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25272 tputs().
25273 (current_tty): New variable, for cmputc().
25274 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25275
25276 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25277 (internal_condition_case, internal_condition_case_1)
25278 (internal_condition_case_2): Don't abort when x_catching_errors.
25279
25280 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25281 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25282 prevent crashes caused by bogus longjmps in read_char.
25283
25284 * keymap.h (Fset_keymap_parent): Add EXFUN.
25285
25286 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25287 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25288 Remove redundant definition.
25289
25290 * macfns.c (x_set_mouse_color, x_make_gc):
25291 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25292
25293 * w32term.c (x_free_frame_resources):
25294 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25295 (w32_initialize): Use the accessor macros for terminal characteristics.
25296
25297 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25298 Use the accessor macros for terminal characteristics.
25299 * msdos.c (internal_terminal_init): Use the accessor macros for
25300 terminal characteristics.
25301 (ScreenVisualBell, internal_terminal_init):
25302 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25303
25304 * termopts.h (no_redraw_on_reenter): Declare.
25305
25306 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25307 (mark_terminals, mark_ttys): Declare.
25308 (Fgarbage_collect): Call them.
25309 (mark_object): Mark buried_buffer_list.
25310
25311 * prefix-args.c: Include stdlib.h for exit.
25312
25313 * syssignal.h: Add comment.
25314
25315 * indent.c: Include stdio.h.
25316
25317 * window.h (Vinitial_window_system): Declare.
25318 (Vwindow_system): Delete declaration.
25319
25320 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25321
25322 * image.c (lookup_image): Don't initialize `c' until the xasserts
25323 have been run.
25324
25325 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25326 FRAME_FOREGROUND_PIXEL.
25327
25328 * print.c (print_preprocess): Don't lose print_depth levels while
25329 iterating.
25330
25331 * widget.c (update_from_various_frame_slots):
25332 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25333
25334 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25335 frames.
25336 (window_internal_height): Remove bogus make_number call.
25337 (init_window_once): Call make_terminal_frame with two zero parameters.
25338
25339 * fileio.c (Fread_file_name): Update comment.
25340
25341 * callint.c (Fcall_interactively):
25342 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25343 Make sure it is correctly unwound.
25344
25345 * xsmfns.c (x_session_close): New function.
25346
25347 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25348 Delete declarations.
25349
25350 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25351 (x_output): Remove background_pixel and foreground_pixel fields.
25352 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25353 (x_delete_device, x_session_close): Declare.
25354
25355 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25356 (read_filtered_event): Call `read_char' with a local
25357 `wrong_kboard_jmpbuf'.
25358
25359 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25360 Don't call single_kboard_state. Use FRAME_RIF.
25361
25362 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25363 systems.
25364
25365 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25366 (Fframe_with_environment, Fset_input_meta_mode)
25367 (Fset_quit_char): EXFUN.
25368 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25369 (init_sys_modes, reset_sys_modes): Update prototypes.
25370 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25371
25372 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25373 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25374 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25375 Delete declarations.
25376 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25377 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25378 New declarations.
25379
25380 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25381 already does that during init_display(). Call syms_of_keymap
25382 before syms_of_keyboard. Call `syms_of_terminal'.
25383 Call set_initial_environment, not set_process_environment.
25384 (shut_down_emacs): Call reset_all_sys_modes() instead of
25385 reset_sys_modes().
25386
25387 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25388 (internal_resolve_face_name, resolve_face_name_error): New functions.
25389 (resolve_face_name): Protect against loops and errors thrown by Fget.
25390 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25391 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25392
25393 * scroll.c: Replace CURTTY() with local variables throughout the
25394 file (where applicable).
25395 (calculate_scrolling, calculate_direct_scrolling)
25396 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25397 characteristics.
25398
25399 * keymap.c (Vfunction_key_map): Remove.
25400 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25401 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25402 (Vkey_translation_map): Remove.
25403 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25404 (Fdescribe_buffer_bindings)
25405 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25406 Update for terminal-local key-translation-map.
25407
25408 * Makefile.in (callproc.o): Update dependencies.
25409 (lisp, shortlisp): Add termdev.elc.
25410 (obj): Add terminal.o.
25411 (terminal.o): Add dependencies.
25412 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25413 (data.o, fns.o): Add termhooks.h dependency.
25414 (SOME_MACHINE_LISP): Add dnd.elc.
25415 (minibuf.o): Fix typo.
25416 Update dependencies.
25417
25418 * data.c (do_symval_forwarding, store_symval_forwarding)
25419 (find_symbol_value): Use the selected frame's keyboard, not
25420 current_kboard.
25421
25422 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25423 Vwindow_system.
25424
25425 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25426 Fmenu_bar_open.
25427 (syms_of_xmenu): Update defsubr.
25428 (mouse_position_for_popup, Fx_popup_menu)
25429 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25430 (set_frame_menubar, free_frame_menubar)
b97439ce 25431 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25432 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25433 an X frame.
25434
25435 * xselect.c (x_own_selection): Abort if not an X frame.
25436 (some_frame_on_display): Check if it is an X frame.
25437 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25438
25439 * coding.c: Include frame.h and termhooks.h.
25440 (terminal_coding, keyboard_coding): Delete.
25441 (Fset_terminal_coding_system_internal)
25442 (Fset_keyboard_coding_system_internal)
25443 (Fkeyboard_coding_system)
25444 (Fterminal_coding_system): Add a terminal parameter.
25445 Get terminal_coding from the terminal.
25446 (init_coding_once): Don't call setup_coding_system here.
25447
25448 * dispextern.h (set_scroll_region, turn_off_insert)
25449 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25450 (tty_clear_end_of_line, tty_setup_colors)
25451 (delete_tty, updating_frame)
25452 (produce_special_glyphs, produce_glyphs, write_glyphs)
25453 (insert_glyphs): Remove.
25454 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25455 (tty_turn_off_highlight, get_tty_size): Add declaration.
25456 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25457
25458 * frame.h (enum output_method): Add output_initial.
25459 (struct x_output): Delete.
25460 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25461 Access foreground_pixel and background_pixel directly from the frame.
25462 (tty_display): Delete.
25463 (struct frame): Add buried_buffer_list, foreground_pixel,
25464 background_pixel and terminal. Delete kboard.
25465 (union output_data): Add tty.
25466 (FRAME_KBOARD): Get the kboard from the terminal.
25467 (FRAME_INITIAL_P): New macro.
25468 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25469 (Qterm_environment_variable, Qdisplay_environment_variable)
25470 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25471 New declarations.
25472
25473 * termchar.h (tty_output, tty_display_info): New structures.
25474 (tty_list): Declare.
25475 (FRAME_TTY, CURTTY): New macros.
25476 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25477 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25478 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25479 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25480
25481 * callproc.c: Include frame.h and termhooks.h, for terminal
25482 parameters.
25483 (add_env): New function.
25484 (child_setup): Use it.
25485 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25486 (getenv_internal): Fix get_terminal_param call.
25487 (Fgetenv_internal, egetenv): Update doc.
25488 (syms_of_callproc): Initialize Vprocess_environment to nil.
25489 Register and initialize them. Remove obsolete defvars. Update doc
25490 strings.
25491 (child_setup): Handle Vlocal_environment_variables.
25492 (getenv_internal): Add terminal parameter.
25493 Handle Vlocal_environment_variables.
25494 (Fgetenv_internal): Add terminal parameter.
25495 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25496 environment in a frame (not terminal) parameter. Update doc strings.
25497 (set_initial_environment): Rename from set_global_environment.
25498 Store Emacs environment in initial frame parameter.
25499
25500 * xdisp.c (redisplay_internal): Update references to
25501 `previous_terminal_frame'.
25502 (display_mode_line, Fformat_mode_line): Replace calls to
25503 `push_frame_kboard' with `push_kboard'.
25504 (get_glyph_string_clip_rects): Add extra parentheses and
25505 braces to prevent compiler warnings.
25506 (calc_pixel_width_or_height): Add xassert to check that the
25507 frame is alive. Don't call `lookup_image' on a termcap frame.
25508 (message2_nolog, message3_nolog, redisplay_internal)
25509 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25510 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25511 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25512 (Fx_display_pixel_width, Fx_display_pixel_height)
25513 (Fx_display_planes, Fx_display_color_cells)
25514 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25515 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25516 (Fx_display_backing_store, Fx_display_visual_class)
25517 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25518 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25519
25520 * xfns.c (x_set_foreground_color x_set_background_color)
25521 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25522 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25523 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25524 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25525 terminal that is being deleted.
25526 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25527 frame parameter, and make sure it overrides any user-supplied setting.
25528 (Fx_close_connection, Fx_synchronize): Unify argument names with
25529 the rest of the DEFUNs.
25530
25531 * dispnew.c (Fsend_string_to_terminal): Update call to
25532 `get_tty_terminal'.
25533 (Fredraw_frame, Fsend_string_to_terminal)
25534 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25535 FRAME_TERMCAP_P and FRAME_TTY.
25536 (window_change_signal): Don't believe width/height values that are
25537 impossibly small.
25538 (Vinitial_window_system): Rename from Vwindow_system.
25539 (termscript, Wcm, rif): Delete.
25540
25541 * termhooks.h (struct terminal): New struct containing the
25542 previously global text display hooks and new members NAME,
25543 DELETED and PARAM_ALIST.
25544 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25545 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25546 (FRAME_RIF): New macros.
25547 (get_terminal_param, get_device): New declarations.
25548 (termscript): Delete declaration.
25549
25550 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25551 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25552 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25553 FRAME_FOREGROUND_PIXEL.
25554 (x_fully_uncatch_errors): Disable definition.
25555 (x_scroll_bar_expose): Fix reference to foreground pixel.
25556 (XTread_socket): Disable loop on all X displays.
25557 (x_delete_terminal): Don't set terminal->deleted and let
25558 delete_terminal delete the frames on the terminal.
25559 (x_delete_display): Doc update to reflect changes in
25560 delete_terminal.
25561 (x_display_info) <terminal>: Move member earlier in the struct.
25562 (deleting_tty): Remove old variable.
25563 (Fsuspend_tty): Call clear_tty_hooks.
25564 (Fresume_tty, init_tty): Call set_tty_hooks.
25565 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25566 errors on X frames.
25567 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25568 (handle_one_xevent): Initialize `f' to NULL.
25569 (x_delete_terminal, x_create_terminal): New functions.
25570 (XTset_terminal_modes, XTreset_terminal_modes)
25571 (XTread_socket, x_connection_closed, x_term_init)
25572 (x_term_init, x_delete_display): Add terminal parameter.
25573 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25574 X connections.
25575
25576 * frame.c: Include termchar.h.
25577 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25578 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25579 (Qdisplay_environment_variable): New vars.
25580 (Fframep): Deal with output_initial.
25581 (Fframe-live-p): Doc fix.
25582 (Fwindow-system): New function.
25583 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25584 (make_terminal_frame): Don't create frames on a terminal that is
25585 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25586 (store_frame_param): Check for found_for_frame before calling XFRAME.
25587 (Fmake_terminal_frame): Handle NULL tty names correctly.
25588 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25589 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25590 frames to refer to a deleted frame in their 'environment parameter.
25591 (Fframe_with_environment): New function.
25592 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25593 (get_future_frame_param): New function.
25594 (Fmake_terminal_frame): Use it.
25595 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25596
25597 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25598 * sysdep.c (reset_sys_modes): Update for renames.
25599
25600 * keyboard.c (tty_read_avail_input): New function.
25601 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25602 (syms_of_keyboard): Defsubr them.
25603 (Fset_input_meta_mode, Fset_quit_char): New functions.
25604 (Fset_input_mode): Split to above functions.
25605 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25606 parameter. Use it in call to `read_char'.
25607 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25608 Set wrong_kboard_jmpbuf correctly in recursive calls.
25609 Use current_kboard to access Vkeyboard_translate_table.
25610 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25611 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25612 Update longjmp invocations. Remember the original current_kboard,
25613 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25614 changes it. Comment out unnecessary calls to
25615 `record_single_kboard_state' and `any_kboard_state'.
25616 Update recursive calls.
25617 (wrong_kboard_jmpbuf): Remove global variable.
25618 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25619 Handle deleted interrupted_kboards correctly; that is a legal
25620 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25621 and read_char calls. Abort if interrupted_kboard died in read_char.
25622 (any_kboard_state, single_kboard_state)
25623 (push_frame_kboard): Remove function.
25624 (pop_kboard): Switch out of single_kboard mode if the kboard has
25625 been deleted. Remove unused variable. Help debugging by not
25626 changing current_kboard unnecessarily. Set current_kboard to the
25627 kboard of the selected frame when the stored kboard object has
25628 been deleted before pop_kboard.
25629 (temporarily_switch_to_single_kboard): Change first parameter to a
25630 frame pointer. Throw an error when caller wants to change kboards
25631 while in single_kboard mode. Don't push_kboard if we weren't in
25632 single kboard state. Don't pop_kboard if we popped into any
25633 kboard state.
25634 (restore_kboard_configuration): Abort if pop_kboard changed the
25635 kboard in single_kboard mode. Call pop_kboard only after setting
25636 up single_kboard mode.
25637 (Frecursive_edit): Switch to single_kboard mode only in nested
25638 command loops.
25639 (cmd_error, command_loop, command_loop_1, timer_check):
25640 Comment out unnecessary call to `any_kboard_state' and
25641 `record_single_kboard_state'.
25642 (delete_kboard): Exit single_kboard mode if we have just deleted
25643 that kboard. Use FRAME_KBOARD.
25644 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25645 `fatal_error_signal'.
25646 (record_single_kboard_state): Don't push_kboard if we weren't in
25647 single kboard state. Don't pop_kboard if we popped into any
25648 kboard state.
25649 (push_frame_kboard): Rename to push_kboard.
25650 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25651 (read_avail_input): Read input from all terminals.
25652 (mark_kboards): Also mark Vkeyboard_translate_table.
25653 (kbd_buffer_store_event_hold): Simplify condition.
25654 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25655 (Vkeyboard_translate_table): Move to struct kboard.
25656 (init_kboard): Initialize Vkeyboard_translate_table.
25657 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25658 Vkeyboard_translate_table. Update doc strings. Update docs of
25659 local-function-key-map and function-key-map.
25660
25661 * terminal.c: New file.
25662
25663 * term.c: Include errno.h.
25664 (Vring_bell_function, device_list, initial_device)
25665 (next_device_id, ring_bell, update_begin, update_end)
25666 (set_terminal_window, cursor_to, raw_cursor_to)
25667 (clear_to_end, clear_frame, clear_end_of_line)
25668 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25669 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25670 (syms_of_term): Move their initialization to terminal.c.
25671 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25672 (Ftty_display_color_cells)
25673 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25674 (clear_tty_hooks, set_tty_hooks)
25675 (init_tty, maybe_fatal): New functions.
25676 (Ftty_type): Return nil if terminal is not on a tty instead of
25677 throwing an error. Doc update.
25678 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25679 Doc update. Initialize new subrs and variables.
25680 (delete_tty): Use terminal->deleted.
25681 (tty_set_terminal_modes): Rename from set_terminal_modes.
25682 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25683 (set_scroll_region): Rename to `tty_set_scroll_region'.
25684 (turn_on_insert): Rename to `tty_turn_on_insert'.
25685 (turn_off_insert): Rename to `tty_turn_off_insert'.
25686 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25687 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25688 (toggle_highligh): Rename to `tty_toggle_highlight'.
25689 (background_highlight): Rename to `tty_background_highlight'.
25690 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25691 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25692 (tty_set_scroll_region, tty_background_highlight)
25693 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25694 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25695 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25696 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25697 Add static modifier.
25698 (tty_reset_terminal_modes, tty_set_terminal_window)
25699 (tty_set_scroll_region, tty_background_highlight)
25700 (tty_highlight_if_desired, tty_cursor_to)
25701 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25702 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25703 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25704 renames.
25705
257062007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25707
25708 * keyboard.c: Qrtl is new.
25709 (parse_tool_bar_item): Handle :rtl keyword.
25710 (syms_of_keyboard): Intern :rtl keyword.
25711
25712 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25713
25714 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25715 so no Lisp code is executed.
25716 (file_for_image, find_rtl_image): New functions.
25717 (xg_get_image_for_pixmap): Use file_for_image.
25718 (update_frame_tool_bar): If direction is RTL, use RTL image if
25719 defined. Use Gtk stock images if defined.
25720
257212007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25722
25723 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25724 for nonexistent or zero-width glyph in composition glyph.
25725
257262007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25727
25728 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25729
25730 * xdisp.c (Finvisible_p): New function.
25731 (syms_of_xdisp): defsubr it.
25732
257332007-08-24 Juanma Barranquero <lekktu@gmail.com>
25734
25735 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25736 Doc fixes.
25737
257382007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25739
25740 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25741
257422007-08-24 Martin Rudalics <rudalics@gmx.at>
25743
25744 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25745 whether decoding has modified buffer contents.
25746
257472007-08-24 Jason Rumney <jasonr@gnu.org>
25748
25749 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25750 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25751 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25752 (init_svg_functions) [HAVE_NTGUI]: New function.
25753 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25754 (svg_load_image): Use them.
25755 (svg_load_image) [HAVE_NTGUI]: Implement background.
25756
257572007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25758
25759 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25760 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25761 (LIBX): Remove @RSVG_LIBS@.
25762 (LIBES): Add $(RSVG_LIBS).
25763
25764 * image.c (svg_load_image): Blend with specified background if exists.
25765 Use IMAGE_BACKGROUND. Add Mac OS Support.
25766
25767 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25768 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25769 Remove macros.
25770 [MAC_OSX] (socket_callback): Do nothing.
25771 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25772 ReceiveNextEvent.
25773 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25774 socket_callback.
25775 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25776
257772007-08-22 Glenn Morris <rgm@gnu.org>
25778
25779 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25780
257812007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25782
25783 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25784
25785 * image.c: Add support for SVG images. Some additional comments
25786 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25787 (svg_image_p): New function to test for SVG image.
25788 (svg_load): New function to load SVG image.
25789 (svg_load_image): New function, helper for svg_load.
25790 (Qsvg): New Lisp_object.
25791 (svg_keyword_index): New enum.
25792 (svg_format): New static `image_keyword' struct.
25793 (svg_type): New static `image_type' struct.
25794 (librsvg/rsvg.h): Include it.
25795
257962007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25797
25798 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25799
258002007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25801
25802 * lread.c (Qold_style_backquotes): New var.
25803 (syms_of_lread): Init and staticpro it.
25804 (load_warn_old_style_backquotes): New fun.
25805 (Fload): Use them to warn about old style backquotes.
25806 (end_of_file_error, Fload): Remove unused vars.
25807
25808 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25809
25810 * lread.c (Vold_style_backquotes): New var.
25811 (syms_of_lread): Init and export it to Elisp.
25812 (read1): Set it when we find an old-style (back)quote.
25813
258142007-08-22 Jason Rumney <jasonr@gnu.org>
25815
25816 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25817
258182007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25819
25820 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25821
258222007-08-19 Richard Stallman <rms@gnu.org>
25823
25824 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25825
258262007-08-19 Andreas Schwab <schwab@suse.de>
25827
25828 * alloc.c (pure): Round PURESIZE up.
25829
258302007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25831
25832 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25833 active frame.
25834
258352007-08-16 Richard Stallman <rms@gnu.org>
25836
25837 * eval.c (Fcommandp): Add parens to clarify.
25838
25839 * minibuf.c (Fall_completions): Use enum for type of table.
25840
25841 * emacs.c (USAGE2): Improve text.
25842
258432007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25844
25845 * term.c (tty_default_color_capabilities): Declare static
25846 variables in file scope, to avoid HPUX compiler problem.
25847
258482007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25849
25850 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25851 to gtk_toolbar_insert.
25852
258532007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25854
25855 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25856
25857 * insdel.c (reset_var_on_error): New fun.
25858 (signal_before_change, signal_after_change):
25859 Use it to reset (after|before)-change-functions to nil in case of error.
25860 Bind inhibit-modification-hooks to t.
25861 Don't bind (after|before)-change-functions to nil while they run.
25862
258632007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25864
25865 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25866 filling pixmap with stippled background.
25867
258682007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25869
25870 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25871 Don't use invisible frame as parent window for repositioning.
25872
258732007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25874
25875 * print.c (new_backquote_output): Rename from old_backquote_output.
25876 (print): Inverse its logic (according to its name) so as to match the
25877 behavior of new_backquote_flag in lread.c.
25878
258792007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25880
25881 * gmalloc.c (posix_memalign): New function.
25882
25883 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25884 ActivateControl/DeactivateControl here.
25885 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25886 frame-notice-user-settings is non-nil.
25887 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25888 for kEventParamFMFontStyle.
25889 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25890 mac_pass_command_to_system and mac_pass_control_to_system here.
25891 (XTread_socket): Call ActivateControl/DeactivateControl here.
25892 (XTread_socket) [TARGET_API_MAC_CARBON]:
25893 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25894 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25895 for window repositioning.
25896
258972007-08-08 Glenn Morris <rgm@gnu.org>
25898
25899 * Replace `iff' in doc-strings and comments.
25900
259012007-08-07 Chong Yidong <cyd@stupidchicken.com>
25902
25903 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25904
259052007-08-07 Martin Rudalics <rudalics@gmx.at>
25906
25907 * fileio.c (Finsert_file_contents): Run format-decode and
25908 after_insert_file_functions on entire buffer when REPLACE is
25909 non-nil and inhibit modification_hooks and point_motion_hooks.
25910 For consistency, run after_insert_file_functions iff something
25911 got inserted. Move signal_after_change and update_compositions
25912 after code running after_insert_file_functions. Make sure that
25913 undo_list doesn't record intermediate steps of the decoding process.
25914
259152007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25916
25917 * emacs.c (main)
25918 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25919 Call malloc_enable_thread on interactive startup.
25920
25921 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25922 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25923 [USE_PTHREAD]: Conditionalize with it.
25924 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25925 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25926 New functions.
25927
259282007-08-06 Chong Yidong <cyd@stupidchicken.com>
25929
25930 * xdisp.c (redisplay_window): When restoring original buffer
25931 position, make sure it is still valid.
25932
25933 * image.c (png_load): Ignore png-supplied background color.
25934
259352007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25936
25937 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25938 Use kCFAbsoluteTimeIntervalSince1970.
25939
25940 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25941 New variable.
25942 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25943 event loop should be quit.
25944 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25945 Quit dialog event loop if quit_dialog_event_loop is set.
25946
25947 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25948 (Selection): New typedef. Use instead of ScrapRef.
25949 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25950 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25951 (mac_clear_selection): Rename from clear_scrap.
25952 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25953 scrap_has_target_type. All uses changed.
25954 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25955 (mac_selection_has_target_p): New functions.
25956 (mac_put_selection_value): Rename from put_scrap_string.
25957 (mac_get_selection_value): Rename from get_scrap_string.
25958 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25959 (put_scrap_private_timestamp, scrap_has_target_type)
25960 (get_scrap_private_timestamp): Remove functions.
25961 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25962 (x_own_selection, x_get_local_selection):
25963 Use mac_valid_selection_value_p.
25964 (x_own_selection): Don't use put_scrap_private_timestamp.
25965 Record OWNERSHIP-INFO into Vselection_alist instead.
25966 (x_get_local_selection): Don't check type if request is local.
25967 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25968 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25969
259702007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25971
25972 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25973 add comment explaining why.
25974
259752007-08-03 Richard Stallman <rms@gnu.org>
25976
25977 * fileio.c (Fvisited_file_modtime): Use make_time.
25978
259792007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25980
25981 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25982 build.
25983
259842007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25985
25986 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25987
259882007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25989
25990 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25991
259922007-07-30 Richard Stallman <rms@gnu.org>
25993
25994 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25995
259962007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25997
25998 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25999
260002007-07-28 Nick Roberts <nickrob@snap.net.nz>
26001
26002 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26003 remote default-directory.
26004
26005 * buffer.c (mode-line-format): Update doc string.
26006
260072007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26008
26009 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26010 scroll bar gap.
26011 (x_scroll_bar_create): Set bar->fringe_extended_p.
26012 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26013 on frame edge. Check fringe background extension. Don't clear
26014 extended fringe background area.
26015
26016 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26017 (w32_fill_area): Enclose multiple statements with do ... while (0).
26018
26019 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26020 Extend fringe background to scroll bar gap.
26021 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26022 Set bar->fringe_extended_p.
26023 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26024 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26025 background extension. Don't clear extended fringe background area.
26026
26027 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26028 New member fringe_extended_p.
26029
260302007-07-25 Glenn Morris <rgm@gnu.org>
26031
26032 * Relicense all FSF files to GPLv3 or later.
26033
26034 * COPYING: Switch to GPLv3.
26035
260362007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26037
26038 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26039
26040 * data.c (Finteractive_form): Check for the presence of an
26041 `interactive-form' symbol property more thoroughly.
26042
26043 * data.c (Finteractive_form): Use an `interactive-form' property if
26044 present, analogous to the function-documentation property.
26045
260462007-07-24 Jason Rumney <jasonr@gnu.org>
26047
26048 * w32fns.c (x_real_positions): Get real position from OS instead of
26049 calculating it.
26050
260512007-07-23 Jason Rumney <jasonr@gnu.org>
26052
26053 * filelock.c (current_lock_owner): Allow for @ sign in username.
26054
260552007-07-22 Nick Roberts <nickrob@snap.net.nz>
26056
26057 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26058 remote default-directory.
26059
26060 * buffer.c (mode-line-format): Describe above case in doc string.
26061
260622007-07-20 Eli Zaretskii <eliz@gnu.org>
26063
26064 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26065 Define if not defined.
26066
260672007-07-18 Jason Rumney <jasonr@gnu.org>
26068
26069 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26070
260712007-07-18 Richard Stallman <rms@gnu.org>
26072
26073 * data.c (Fsetq_default): Doc fix.
26074
26075 * eval.c (Fsetq): Doc fix.
26076
260772007-07-18 Juanma Barranquero <lekktu@gmail.com>
26078
26079 * coding.c (Ffind_operation_coding_system):
26080 * eval.c (For, Fand): Doc fixes.
26081 Reported by Johan Bockgård.
26082
260832007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26084
26085 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26086
26087 * xterm.h: Declare x_ewmh_activate_frame.
26088
26089 * xterm.c (x_ewmh_activate_frame): New function.
26090 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26091
260922007-07-17 Martin Rudalics <rudalics@gmx.at>
26093
26094 * window.c (Fdisplay_buffer): If largest or LRU window is the
26095 only window, split it even if it is not eligible for splitting.
26096 This restores the original behavior broken by the 2007-07-15
26097 change.
26098
260992007-07-17 Glenn Morris <rgm@gnu.org>
26100
26101 * abbrev.c (abbrev_check_chars): New function.
26102 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26103 Call abbrev_check_chars to check abbrev characters are word
26104 constituents. Doc fix.
26105
261062007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26107
26108 * process.c (Fstart_process, Fmake_network_process)
26109 (read_process_output): Fix up last changes.
26110
261112007-07-16 Eli Zaretskii <eliz@gnu.org>
26112
26113 * makefile.w32-in (clean): Don't delete *~.
26114
261152007-07-16 Andreas Schwab <schwab@suse.de>
26116
26117 * window.c (Fdisplay_buffer): Use NILP.
26118 (Fset_window_scroll_bars): Likewise.
26119
261202007-07-15 Martin Rudalics <rudalics@gmx.at>
26121
26122 * window.c (window_min_size_2): New function.
26123 (window_min_size_1, size_window, Fdisplay_buffer)
26124 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26125 windows without mode- or header-lines when window-min-height is
26126 too small.
26127 (size_window): Reset nodelete_p after testing it, following an
26128 earlier note by Kim F. Storm.
26129 (display_buffer): Do not set split_height_threshold to twice the
26130 value of window_min_height to avoid changing the value of a
26131 customizable variable. Rather explicitly check whether the
26132 height of the window that shall be splitted is at least as large
26133 as split_height_threshold.
26134 (Fwindow_full_width_p): New defun.
26135 (syms_of_window): Defsubr it.
26136
26137 * window.h: Add EXFUN for Fwindow_full_width_p.
26138
261392007-07-14 Jason Rumney <jasonr@gnu.org>
26140
26141 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26142
261432007-07-14 Richard Stallman <rms@gnu.org>
26144
26145 * eval.c (maybe_call_debugger): New function.
26146 (find_handler_clause): Use maybe_call_debugger.
26147 Call it when the handler says `debug'.
26148 Eliminate DEBUGGER_VALUE_PTR.
26149 (Fsignal): Eliminate debugger_value.
26150 (Qdebug): New variable.
26151 (syms_of_eval): Initialize it.
26152
261532007-07-14 Juanma Barranquero <lekktu@gmail.com>
26154
26155 * eval.c (Fprogn):
26156 * keyboard.c (Ftrack_mouse):
26157 * print.c (Fwith_output_to_temp_buffer):
26158 * window.c (Fsave_window_excursion): Doc fix.
26159
261602007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26161
26162 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26163
261642007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26165
26166 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26167 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26168 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26169 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26170 Remove unused encoding_carryover.
26171 * process.c: Adjust all functions accordingly.
26172
261732007-07-12 Richard Stallman <rms@gnu.org>
26174
26175 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26176
261772007-07-11 Jason Rumney <jasonr@gnu.org>
26178
26179 * makefile.w32-in (LIBS): Include OLE32.
26180
26181 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26182 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26183
261842007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26185
26186 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26187 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26188 from a Lisp_Object into a bare pointer.
26189 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26190 Adjust the code correspondingly.
26191
26192 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26193
26194 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26195 (term_show_mouse_face): Remove unused var `j'.
26196 (handle_one_term_event): Remove unused vars `i' and `j'.
26197 Don't cast return value of ttyname since it's not necessary.
26198
261992007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26200
26201 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26202 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26203
26204 * fns.c (map_char_table): Use an array of int for `indices' rather than
26205 an array of Lisp_Objects (which are only ever integers anyway).
26206 (Fmap_char_table): Update caller.
26207 * lisp.h: Update prototype.
26208 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26209 * fontset.c (Ffontset_info):
26210 * casetab.c (set_case_table): Update callers.
26211
26212 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26213
26214 * keymap.c (struct accessible_keymaps_data)
26215 (struct where_is_internal_data): New structures.
26216 (accessible_keymaps_1, where_is_internal_1): Use them to change
26217 interface to adhere to the one used by map_keymap.
26218 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26219 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26220
26221 * keymap.h (map_keymap_function_t): More informative prototype.
26222
262232007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26224
26225 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26226 (looking_at_1): Don't change search_regs and last_thing_searched
26227 if `inhibit-changing-match-data' is non-nil.
26228 (string_match_1, search_buffer, set_search_regs): Likewise.
26229 (syms_of_search): Add Lisp level definition for
26230 `inhibit-changing-match-data' and set it to nil.
26231 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26232 start and end of the match, instead of using values in search_regs.
26233
262342007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26235
26236 * minibuf.c (Fcompleting_read): New value `confirm-only'
26237 for `require-match'.
26238
262392007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26240
26241 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26242 part of the 2007-06-27 change to syms_of_fileio.
26243
262442007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26245
26246 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26247 Check WINDOWP before using XWINDOW. Consolidate return statements.
26248
262492007-06-27 Richard Stallman <rms@gnu.org>
26250
26251 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26252
262532007-06-27 Juanma Barranquero <lekktu@gmail.com>
26254
26255 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26256
262572007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26258
26259 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26260 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26261 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26262 (_free_internal, memalign): Use them.
26263 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26264 Initialize to PTHREAD_MUTEX_INITIALIZER.
26265 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26266 (morecore_nolock): Rename from morecore. All uses changed.
26267 Use only nolock versions of internal allocation functions.
26268 (_malloc_internal_nolock, _realloc_internal_nolock)
26269 (_free_internal_nolock): New functions created from
26270 _malloc_internal, _realloc_internal, and _free_internal.
26271 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26272 Copy hook value to automatic variable before its use.
26273 (memalign): Copy hook value to automatic variable before its use.
26274
262752007-06-26 Kenichi Handa <handa@m17n.org>
26276
26277 * coding.c (Ffind_operation_coding_system): Docstring improved.
26278 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26279
262802007-06-25 David Kastrup <dak@gnu.org>
26281
26282 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26283 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26284 cater for additional parameter.
26285
26286 * keymap.h: Adjust number of parameters to `current-active-maps'.
26287
26288 * doc.c (Fsubstitute_command_keys): Adjust call of
26289 `current-active-maps'.
26290
262912007-06-25 David Kastrup <dak@gnu.org>
26292
26293 * callint.c (Fcall_interactively): Make the parsing of interactive
26294 specs somewhat more readable.
26295
262962007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26297
26298 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26299 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26300 if extended background has already been filled.
26301
263022007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26303
26304 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26305 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26306
26307 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26308 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26309 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26310 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26311 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26312 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26313 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26314 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26315 Run timers during dialog popup.
26316 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26317
263182007-06-21 Jason Rumney <jasonr@gnu.org>
26319
26320 * image.c (convert_mono_to_color_image): Swap fore and background.
26321
263222007-06-20 Jason Rumney <jasonr@gnu.org>
26323
26324 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26325 (w32_free_bdf_font): Unmap memory not handle.
26326
263272007-06-20 Sam Steingold <sds@gnu.org>
26328
26329 * gmalloc.c (__morecore): Fix the declaration to comply with the
26330 definition.
26331
263322007-06-20 Juanma Barranquero <lekktu@gmail.com>
26333
26334 * w32term.c (w32_delete_display): Remove leftover declaration.
26335 (w32_define_cursor, w32_initialize): Make static.
26336
26337 * w32.c (_wsa_errlist): Fix typo in error message.
26338 (init_environment): Ignore any environment variable from the
26339 registry having a null value.
26340
263412007-06-20 Glenn Morris <rgm@gnu.org>
26342
26343 * Makefile.in (LIBGIF): Default to -lgif.
26344
263452007-06-17 Jason Rumney <jasonr@gnu.org>
26346
26347 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26348 unicode strings.
26349
263502007-06-16 Juanma Barranquero <lekktu@gmail.com>
26351
26352 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26353 Fix typo in docstring.
26354
263552007-06-16 Eli Zaretskii <eliz@gnu.org>
26356
26357 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26358 and their keybindings.
26359
263602007-06-15 Chong Yidong <cyd@stupidchicken.com>
26361
26362 * composite.c (update_compositions): Fix last fix.
26363
263642007-06-14 Jason Rumney <jasonr@gnu.org>
26365
26366 * w32.c (get_process_times_fn): New function pointer.
26367 (globals_of_w32): Intialize it if present in kernel32.dll.
26368 (w32_get_internal_run_time): New function.
26369
26370 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26371
263722007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26373
26374 * composite.c (update_compositions): Check the validness of
26375 compositions.
26376
263772007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26378
26379 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26380 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26381
26382 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26383 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26384
26385 * macgui.h (USE_MAC_TOOLBAR): New define.
26386
26387 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26388 Return immediately unless popup is activated.
26389
26390 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26391 background to scroll bar gap.
26392 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26393 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26394 scroll bars on frame edge. Check fringe background extension.
26395 Don't clear extended fringe background area.
26396 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26397 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26398 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26399 [USE_MAC_TOOLBAR]: New macros.
26400 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26401 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26402 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26403 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26404 [USE_MAC_TOOLBAR]: New functions.
26405 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26406 manually if previous repositioning has failed.
26407 (mac_handle_keyboard_event): Use precomputed event kind.
26408 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26409 as tool bar item click. Handle mouse movement over tool bar items.
26410
26411 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26412 toolbar_win_gravity.
26413 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26414 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26415 Add externs.
26416
26417 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26418 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26419
264202007-06-14 Chong Yidong <cyd@stupidchicken.com>
26421
26422 * image.c (search_image_cache): Remove unused variable.
26423
264242007-06-13 Chong Yidong <cyd@stupidchicken.com>
26425
26426 * xfns.c, xmenu.c: Link to xaw3d if available.
26427
264282007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26429
26430 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26431 frame_foreground and frame_background.
26432
26433 * image.c (lookup_image): Save frame foreground and background colors.
26434 (search_image_cache): Check if saved and current frame colors match.
26435
264362007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26437
26438 * regex.c (regex_compile): Remove the `regnum' counter.
26439 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26440
264412007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26442
26443 * term.c: Include intervals.h to declare Fget_text_property.
26444
264452007-06-10 Jason Rumney <jasonr@gnu.org>
26446
26447 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26448
264492007-06-08 Juanma Barranquero <lekktu@gmail.com>
26450
26451 * callint.c (Fcall_interactively):
26452 * editfns.c (Fdelete_and_extract_region):
26453 * fileio.c (Fread_file_name):
26454 * fns.c (Fmapconcat):
26455 * keyboard.c (cmd_error_internal):
26456 * keymap.c (Fkey_description):
26457 * lread.c (openp):
26458 * minibuf.c (read_minibuf):
26459 * search.c (wordify):
26460 * sunfns.c (sel_read):
26461 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26462 * xfns.c (x_default_scroll_bar_color_parameter):
26463 * xmenu.c (menu_help_callback):
26464 * xselect.c (Fx_get_atom_name):
26465 * xterm.c (x_term_init): Use empty_unibyte_string.
26466
264672007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26468
26469 * alloc.c (init_strings): Initialize canonical empty strings.
26470 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26471 canonical empty string when the requested size is 0.
26472
26473 * emacs.c (empty_unibyte_string): Rename from empty_string.
26474 (empty_multibyte_string): New canonical empty string.
26475 (syms_of_emacs): Don't initialize empty_string.
26476
26477 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26478 string, if appropriate.
26479 (empty_unibyte_string, empty_multibyte_string): New externs.
26480 (empty_string): Remove extern.
26481
26482 * lread.c (syms_of_lread): Use empty_unibyte_string.
26483
264842007-06-07 Jason Rumney <jasonr@gnu.org>
26485
26486 * s/ms-w32.h: Don't define HAVE_TZNAME.
26487
26488 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26489
264902007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26491
26492 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26493
26494 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26495 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26496
26497 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26498 Don't call next handler.
26499 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26500 Remove argument. Install handler to application.
26501 (set_frame_menubar): Don't change deep_p.
26502 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26503 FRAME_OUTER_TO_INNER_DIFF_Y.
26504 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26505 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26506 [HAVE_DIALOGS]: New macros.
26507 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26508 Use them.
26509 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26510
26511 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26512 init_service_handler. All callers changed. Return OSStatus value.
26513
26514 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26515 All callers changed so as not to call SetPortWindowPort.
26516 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26517 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26518 mac_draw_string_common.
26519 (mac_draw_image_string_qd): Likewise.
26520 (mac_draw_string_common): Use them. Add INLINE.
26521 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26522 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26523 GetGlobalMouse.
26524 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26525 and FRAME_OUTER_TO_INNER_DIFF_Y.
26526 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26527 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26528 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26529 repositioning window to mac_handle_window_event.
26530 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26531 saving window location to mac_handle_window_event
26532 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26533 (install_menu_target_item_handler): Remove argument in extern.
26534 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26535 Also accept command events.
26536 (do_keystroke): New function created from XTread_socket.
26537 (init_command_handler): Remove functions.
26538 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26539 and save window location by kEventWindowShowing and kEventWindowHiding
26540 handlers here. Don't call next handler for window state change and
26541 focus events.
26542 (mac_handle_application_event, mac_handle_keyboard_event)
26543 [TARGET_API_MAC_CARBON]: New functions.
26544 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26545 kEventWindowShowing and kEventWindowHiding events. Move installation
26546 of mouse, font, text input and menu target item handlers to
26547 install_application_handler.
26548 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26549 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26550 New function.
26551 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26552 Register it.
26553 (XTread_socket) [TARGET_API_MAC_CARBON]:
26554 Consolidate SendEventToEventTarget calls.
26555 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26556 Move application activation handler to mac_handle_application_event.
26557 Move keyboard handler to mac_handle_keyboard_event.
26558 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26559 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26560 init_command_handler. Call install_application_handler.
26561
26562 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26563 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26564
265652007-06-07 Glenn Morris <rgm@gnu.org>
26566
26567 * emacs.c (main): Use `emacs-copyright' in --version output.
26568
265692007-06-06 Chong Yidong <cyd@stupidchicken.com>
26570
26571 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26572
265732007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26574
26575 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26576
26577 * macgui.h: Replace WindowPtr with WindowRef.
26578
26579 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26580 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26581 Replace ControlHandle with ControlRef.
26582 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26583
26584 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26585 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26586 Replace ControlHandle with ControlRef.
26587 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26588 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26589
26590 * macterm.h (struct scroll_bar): Rename member control_handle_low
26591 and control_handle_high to control_ref_low and control_ref_high.
26592 All uses changed.
26593 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26594 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26595 respectively. All uses changed.
26596 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26597 (install_window_handler, remove_window_handler): Replace WindowPtr
26598 with WindowRef in externs.
26599
266002007-06-05 Juanma Barranquero <lekktu@gmail.com>
26601
26602 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26603
266042007-06-03 Nick Roberts <nickrob@snap.net.nz>
26605
26606 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26607
26608 * frame.c (Fmouse_position, Fmouse_pixel_position):
26609 Condition on HAVE_GPM too.
26610
26611 * term.c (term_mouse_highlight): Remove unused variables.
26612 (Fterm_open_connection): Set gpm_zerobased to 1.
26613 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26614 Use zero based co-ordinates.
26615 (handle_one_term_event): Report a drag as mouse movement too.
26616
26617 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26618
266192007-06-03 Chong Yidong <cyd@stupidchicken.com>
26620
26621 * image.c (search_image_cache): New function. Require background
26622 color match if background color is unspecified in the image spec.
26623 (uncache_image, lookup_image): Use it.
26624
266252007-06-01 Juanma Barranquero <lekktu@gmail.com>
26626
26627 * window.c (Fshrink_window): Reflow docstring.
26628
266292007-06-02 Chong Yidong <cyd@stupidchicken.com>
26630
26631 * Version 22.1 released.
26632
266332007-06-01 Richard Stallman <rms@gnu.org>
26634
26635 * xfns.c (x_encode_text): Add GCPRO.
26636
266372007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26638
26639 * xfns.c (x_set_name_internal): Save encoded name before
26640 x_encode_text in case string data is relocated.
26641
266422007-05-31 Richard Stallman <rms@gnu.org>
26643
26644 * buffer.c (syms_of_buffer): Doc fix.
26645
266462007-05-30 Nick Roberts <nickrob@snap.net.nz>
26647
26648 * sysdep.c (init_sys_modes): Add rather than replace with
26649 O_NONBLOCK.
26650
26651 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26652 term_mouse_moveto.
26653
26654 * termhooks.h (term_mouse_moveto): New extern.
26655
26656 * term.c (mouse_face_window): Rename...
26657 (Qmouse_face_window): ...to this.
26658 (term_show_mouse_face, term_clear_mouse_face)
26659 (term_mouse_highlight): Use Qmouse_face_window.
26660 (term_mouse_moveto): New function.
26661 (term_mouse_position): Make it work.
26662 (syms_of_term): Uncomment assignment to mouse_position_hook.
26663 Staticpro Qmouse_face_window.
26664
266652007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26666
26667 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26668 around current_column call.
26669
266702007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26671
26672 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26673 * xdisp.c (next_element_from_buffer):
26674 * window.c (delete_window):
26675 * term.c (term_mouse_highlight):
26676 * msdos.c (getdefdir):
26677 * macterm.c (mac_create_bitmap_from_bitmap_data)
26678 (init_font_name_table):
26679 * fns.c (Fsxhash):
26680 * data.c (Fmake_local_variable):
26681 * ccl.c (ccl_driver): Likewise.
26682
266832007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26684
26685 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26686 Call mac_wakeup_from_rne on window size change.
26687
266882007-05-25 Chong Yidong <cyd@stupidchicken.com>
26689
26690 * image.c (uncache_image): Fix typo.
26691
266922007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26693
26694 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26695
266962007-05-22 Richard Stallman <rms@gnu.org>
26697
26698 * xterm.c (x_connection_closed): Remove NO_RETURN.
26699
267002007-05-22 Martin Rudalics <rudalics@gmx.at>
26701
26702 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26703
267042007-05-21 Chong Yidong <cyd@stupidchicken.com>
26705
26706 * image.c (uncache_image): New function.
26707 (Fimage_refresh): New function.
26708
267092007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26710
26711 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26712
267132007-05-20 Nick Roberts <nickrob@snap.net.nz>
26714
26715 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26716 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26717
267182007-05-20 Nick Roberts <nickrob@snap.net.nz>
26719
26720 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26721 conditional on [HAVE_GPM_H].
26722
267232007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26724
26725 * syntax.c (skip_chars): Update syntax-table only after we checked that
26726 the new location is valid.
26727
267282007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26729
26730 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26731 mac_get_window_bounds.
26732
267332007-05-20 Nick Roberts <nickrob@snap.net.nz>
26734
26735 * Makefile.in (LIBGPM): Allow it to be set from configure.
26736 If set then link Emacs with it.
26737
26738 * config.in: Regenerate.
26739
26740 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26741 New externs.
26742
26743 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26744 Include gpm.h.
26745 (handle_one_term_event, term_gpm): New externs.
26746
26747 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26748 and allow it to be interrupted by SIGIO.
26749
26750 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26751 (wait_reading_process_output): Wait on gpm_fd too.
26752 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26753 (add_gpm_wait_descriptor_called_flag): New variable.
26754 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26755
26756 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26757 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26758 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26759 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26760 (make_lispy_event): Add case GPM_CLICK_EVENT.
26761 (read_avail_input): Handle mouse input.
26762
26763 * term.c (write_glyphs_with_face): New function.
26764 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26765 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26766 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26767 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26768 (last_mouse_x, last_mouse_y): New variables.
26769 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26770 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26771 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26772 (Fterm_close_connection): New functions.
26773 (term_init): Initialise mouse_face_window.
26774
267752007-05-19 Chong Yidong <cyd@stupidchicken.com>
26776
26777 * xdisp.c (redisplay_window): If first window line is a
26778 continuation line, recompute the new window start instead of
26779 recentering.
26780
267812007-05-18 Glenn Morris <rgm@gnu.org>
26782
26783 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26784 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26785
267862007-05-17 Glenn Morris <rgm@gnu.org>
26787
26788 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26789
267902007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26791
26792 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26793 dead key repeat and up events.
26794
267952007-05-14 Chong Yidong <cyd@stupidchicken.com>
26796
26797 * image.c (pbm_load): Check image size for monochrome pbm.
26798
267992007-05-13 Chong Yidong <cyd@stupidchicken.com>
26800
26801 * xterm.c (XTread_socket): Revert last change.
26802
268032007-05-12 Chong Yidong <cyd@stupidchicken.com>
26804
26805 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26806
26807 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26808
268092007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26810
26811 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26812 mixup (YAILOM).
26813
268142007-05-07 Andreas Schwab <schwab@suse.de>
26815
26816 * keymap.c (Flookup_key): Fix typo in last change.
26817
268182007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26819
26820 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26821 mapping for unibyte strings.
26822
268232007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26824
26825 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26826 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26827
268282007-04-29 Richard Stallman <rms@gnu.org>
26829
26830 * insdel.c (replace_range): For undo, record insertion first.
26831
268322007-04-29 Andreas Schwab <schwab@suse.de>
26833
26834 * lisp.h (VECSIZE): Use OFFSETOF.
26835
268362007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26837
26838 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26839 disabled lines.
26840
268412007-04-28 Richard Stallman <rms@gnu.org>
26842
26843 * lread.c (read_escape): In a string, \s is always space.
26844
268452007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26846
26847 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26848
26849 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26850 submenu for menu bar items.
26851
26852See ChangeLog.10 for earlier changes.
26853
26854;; Local Variables:
26855;; coding: utf-8
26856;; add-log-time-zone-rule: t
aac0c6e3
MR
26857;; End:
26858
e3eb1dae 26859 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26860
26861 This file is part of GNU Emacs.
26862
26863 GNU Emacs is free software: you can redistribute it and/or modify
26864 it under the terms of the GNU General Public License as published by
26865 the Free Software Foundation, either version 3 of the License, or
26866 (at your option) any later version.
26867
26868 GNU Emacs is distributed in the hope that it will be useful,
26869 but WITHOUT ANY WARRANTY; without even the implied warranty of
26870 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26871 GNU General Public License for more details.
26872
26873 You should have received a copy of the GNU General Public License
26874 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26875
26876;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40