Allow composition striding over PT.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f6aa6ec6
KH
12010-08-25 Kenichi Handa <handa@m17n.org>
2
3 * composite.c (composition_compute_stop_pos): Don't break
4 composition at PT.
5 (composition_reseat_it): Likewise. Fix calculation of character
6 position starting a composition.
7 (Fcomposition_get_gstring): Don't limit the number of components
8 for automatic composition.
9
ff94e32c
KH
102010-08-25 Kenichi Handa <handa@m17n.org>
11
12 * composite.c (composition_compute_stop_pos): In forward search,
13 pay attention to the possibility that some character after ENDPOS
14 will be composed with charactrs before ENDPOS.
15
1c409d0b
CY
162010-08-24 Chong Yidong <cyd@stupidchicken.com>
17
18 * keyboard.c (command_loop_1): Don't clobber primary selection
19 during handle-switch-frame (Bug#6872).
20
0c372655
MA
212010-08-23 Michael Albinus <michael.albinus@gmx.de>
22
23 * dbusbind.c: Accept UNIX domain sockets as bus address.
24 (Fdbus_close_bus): New function.
25 (Vdbus_registered_buses): New variable.
26 (xd_initialize): Implement string as bus address.
27 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
28 (Fdbus_get_unique_name, Fdbus_call_method)
29 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
30 (Fdbus_method_error_internal, Fdbus_send_signal)
31 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
32 check. This is done in xd_initialize_bus. Adapt doc string, if
33 necessary.
34 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
35 Vdbus_registered_buses.
36 (Vdbus_registered_objects_table): Create hash.
37
7133b7ee
JL
382010-08-22 Juri Linkov <juri@jurta.org>
39
40 * keyboard.c (Fexecute_extended_command): Move reading a command name
41 with `completing-read' to a new Elisp function `read-extended-command'.
42 Call it to read a command to `function' (bug#5364, bug#5214).
43
198a7a97
CY
442010-08-22 Chong Yidong <cyd@stupidchicken.com>
45
46 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
47
b0126eac 482010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
49
50 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
51 instead of SAFE_ALLOCA.
52
b0126eac 532010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
54
55 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
56 (Bug#6214).
57
b0126eac 582010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
59
60 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
61
b0126eac
CY
622010-08-22 Jan Djärv <jan.h.d@swipnet.se>
63
64 * doc.c (Fsnarf_documentation): Initialize skip_file before
65 build-files test.
66
692f3ddc 672010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 68
692f3ddc
JB
69 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
70 New definitions.
b0126eac
CY
71 (HAVE_TERMIO): Remove.
72
5f2f0bc1
EZ
732010-08-22 Eli Zaretskii <eliz@gnu.org>
74
b613941b
EZ
75 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
76
a583bbef
EZ
77 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
78 for w32.
79
80 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
81 it's done in nt/config.nt.
82
83 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
84
5f2f0bc1
EZ
85 * unexcoff.c (report_error, make_hdr, write_segment)
86 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
87 Convert argument lists and prototypes to ANSI C.
88 (make_hdr, write_segment): Remove unused variables.
89 (unexec): Remove commented-out line. Initialize `new' to shut up
90 compiler warnings.
91
a7ebc409
DN
922010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
93
94 Simplify termio code.
95 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
96 HAVE_TERMIO code is obsolete.
97 Replace HAVE_TERMIOS conditionals with !DOS_NT.
98 * systty.h: Do not define HAVE_TCATTR.
99 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
100 Do not define EMACS_HAVE_TTY_PGRP. Only define
101 EMACS_GET_TTY_PGRP for !DOS_NT.
102 * sysdep.c: Include sysselect.h unconditionally. Do not include
103 sys/ioctl.h and termios.h, systty.h does it. Use
104 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
105 (init_baud_rate): Remove HAVE_TERMIO code.
106 (child_setup_tty): Remove HAVE_TERMIO code.
107 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
108 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
109 (new_ltchars, new_tchars): Remove, unused.
110 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
111 code. Remove special casing for __mips__, it was a no-op. Remove
112 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
113 (init_sys_modes): Remove HPUX special case.
114 * process.c: Include stdlib.h unconditionally. Do not include
115 fcntl.h, systty.h does it. Remove conditional code for
116 HAVE_SERIAL, it is always true.
117 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
118 always true when SIGNALS_VIA_CHARACTERS is true.
119 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
120 !WINDOWSNT means HAVE_TERMIOS.
121 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
122 conditional, which is true for all HAVE_TERMIOS systems.
123 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
124 instead of HAVE_TERMIOS.
125 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
126 EMACS_HAVE_TTY_PGRP.
127 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
128 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
129 anyway.
130
40629f17
EZ
1312010-08-21 Eli Zaretskii <eliz@gnu.org>
132
133 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
134 mirroring pixel positions.
135
d931da8c
DN
1362010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
137
b5c76d0c
DN
138 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
139 write only.
140 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
141 malloc_sbrk_used, nothing uses them.
142
74815588
DN
143 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
144 defined, unconditionally defined in lisp.h.
145
f5817d1c
DN
146 * term.c: Do not include <termios.h>, systty.h does it.
147
d931da8c
DN
148 * s/unixware.h (HAVE_TCATTR):
149 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
150 systty.h defines it when HAVE_TERMIOS is defined.
151
ff2de6d2 1522010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 153
b43c883c 154 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 155 terminals: add one-character offset for R2L lines.
b43c883c 156
491a1546
EZ
157 * emacs.c <emacs_version>: Add a comment regarding
158 msdos/mainmake.v2's dependency on the syntax of this declaration.
159
2396cbba
EZ
1602010-08-20 Eli Zaretskii <eliz@gnu.org>
161
162 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
163 position for R2L lines by mirroring the pixel position wrt the
164 text are box. Improve commentary.
165
7df6150a
AS
1662010-08-20 Andreas Schwab <schwab@linux-m68k.org>
167
168 * image.c (imagemagick_clear_image): Remove debugging output.
169
a2e5caf7
SM
1702010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
171
172 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
173 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
174 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
175 self-insert-face.
176 (syms_of_cmds): Initialize the new vars.
177
20d60baf
JR
1782010-08-19 Jason Rumney <jasonr@gnu.org>
179
cc477da7
JR
180 * w32menu.c (set_frame_menubar): Remove call to undefined function.
181
20d60baf
JR
182 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
183
2c0ac867
J
1842010-08-19 Jan Djärv <jan.h.d@swipnet.se>
185
186 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
187
93352106
EZ
1882010-08-18 Eli Zaretskii <eliz@gnu.org>
189
190 * xterm.c (x_draw_bar_cursor):
191 * w32term.c (x_draw_bar_cursor): If the character under cursor is
192 R2L, draw the bar cursor on its right rather than on its left.
193
c785836d
SM
1942010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
195
0193499f
SM
196 * eval.c (Fdefmacro): Only obey one declaration.
197
c785836d
SM
198 * casefiddle.c (casify_region): Setup gl_state.
199
9cb728a5
J
2002010-08-18 Jan Djärv <jan.h.d@swipnet.se>
201
202 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
203
e1e18511
J
2042010-08-18 Jan Djärv <jan.h.d@swipnet.se>
205
206 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
207
64cb6c78
J
2082010-08-18 David De La Harpe Golden <david@harpegolden.net>
209
210 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
211 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
212 QPRIMARY => NXPrimaryPboard.
213 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
214 NXPrimaryPboard => QPRIMARY.
215 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
216 NXSecondaryPboard = SecondarySelection.
217 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
218
0c9b8993
GM
2192010-08-18 Joakim Verona <joakim@verona.se>
220
221 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
222 defined:
223 (imagemagick_image_p): New function to test for ImageMagic image.
224 (imagemagick_load): New function to load ImageMagick image.
225 (imagemagick_load_image): New function, helper for imagemagick_load.
226 (imagemagick-types): New function.
227 (Qimagemagick): New Lisp_object.
228 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 229
c3554f68
SM
2302010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
233 is a string.
234
1ff2e434
J
2352010-08-17 Jan Djärv <jan.h.d@swipnet.se>
236
237 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
238 x_set_tool_bar_position handler.
239
0cc56427
EZ
2402010-08-17 Eli Zaretskii <eliz@gnu.org>
241
242 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
243 x_set_tool_bar_position handler, needed to support changes from
244 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
245
e45a249b
JD
2462010-08-16 Jan Djärv <jan.h.d@swipnet.se>
247
921242c6
J
248 * nsselect.m: include keyboard.h for QPRIMARY, remove its
249 declaration (Bug#6863).
573d150b 250 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 251
e45a249b
JD
252 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
253
254 * keyboard.h (QPRIMARY): Declare (Bug#6864).
255
7c23dd44
CY
2562010-08-16 Chong Yidong <cyd@stupidchicken.com>
257
258 * keyboard.c (command_loop_1): Avoid setting selection twice,
259 since it's done in deactivate-mark as well.
260 (Vselect_active_regions): Change default to t. Replace `lazy'
261 with non-default value `only', meaning only set PRIMARY for
262 temporarily active regions.
263
264 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
265 select-active-regions.
266
0005830c
J
2672010-08-15 Jan Djärv <jan.h.d@swipnet.se>
268
269 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
270 isn't a string.
271
603dfc72
AS
2722010-08-15 Andreas Schwab <schwab@linux-m68k.org>
273
274 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
275
c25ce9d0
J
2762010-08-15 Jan Djärv <jan.h.d@swipnet.se>
277
c3554f68
SM
278 * keyboard.c (parse_tool_bar_item): malloc buf.
279 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
280 new_lbl (Bug#6855).
c25ce9d0 281
5872c762
EZ
2822010-08-14 Eli Zaretskii <eliz@gnu.org>
283
b236615c
EZ
284 * xterm.c (x_draw_stretch_glyph_string):
285 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
286 the cursor on the right edge of the stretch glyph.
287
c3554f68
SM
288 * xdisp.c (window_box_right_offset, window_box_right):
289 Fix commentary.
b236615c 290
5872c762
EZ
291 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
292 direction when point is inside a run of whitespace characters.
293
294 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
295
e66f9a1b
JR
2962010-08-14 Jason Rumney <jasonr@gnu.org>
297
298 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
299
79d6f59e
CY
3002010-08-14 Chong Yidong <cyd@stupidchicken.com>
301
302 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
303
1c9b4129
JR
3042010-08-13 Jason Rumney <jasonr@gnu.org>
305
306 * w32menu.c (simple_dialog_show): Use unicode message box if available.
307 (MessageBoxW_Proc): New function typedef.
308 (unicode-message-box): New function pointer.
309 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
310
2b4e6277
J
3112010-08-13 Jan Djärv <jan.h.d@swipnet.se>
312
313 * frame.h (Qtool_bar_position): Declare.
314
315 * xfns.c (Fx_create_frame): Call x_default_parameter for
316 Qtool_bar_position.
317
94c97d85
EZ
3182010-08-13 Eli Zaretskii <eliz@gnu.org>
319
8ee81892
EZ
320 * unexcoff.c: Remove the parts used when "emacs" is not defined.
321 (report_error, report_error_1): Ditto.
322 (write_segment): Remove "#if 0" unused code.
323 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
324 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
325 (start_of_text): Remove unused function (was used only if NO_REMAP
326 was NOT defined).
327
891ef8f7
EZ
328 * msdos.c (IT_set_face): Fix format string to match argument
329 types.
330 (IT_write_glyphs, IT_note_mode_line_highlight)
331 (IT_set_frame_parameters): Remove unused variables.
332 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
333 (IT_set_terminal_modes): Disambiguate expression in if clause.
334 (Fmsdos_remember_default_colors): Return Qnil.
335 (IT_set_frame_parameters): Add parens to disambiguate boolean
336 expression for logging the cursor type to termscript.
337 (keyboard_layout_list, keypad_translate_map)
338 (grey_key_translate_map): Add braces in inner initializers.
339 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
340 (dos_rawgetc): Remove unused label.
341 (XMenuActivate): Add braces to remove ambiguous `else'.
342 (dos_ttraw): Always return a value.
343 (spawnve): Declare.
344 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
345
346 * dosfns.h (x_set_title): Declare.
347
348 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
349 Remove unused variables.
350
351 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
352 variables.
353 (init_dosfns): Declare get_lim_data.
354 (system_process_attributes): Declare Fget_internal_run_time.
355
38e41e0e
EZ
356 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
357 list to be consistent with menu.h.
358
94c97d85
EZ
359 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
360 warnings due to mixing of "char *" and "const char *".
361
c5683ceb
SM
3622010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
363
364 Introduce a new comment style "c" flag.
365 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
366 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
367 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
368 (syntax_prefix_flag_p): New function.
369 (Fstring_to_syntax): Understand new "c" flag.
370 (Finternal_describe_syntax_value): Recognize new flag; use the
371 SYNTAX_FLAGS_* macros.
372 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
373 comment style to accomodate the new styles.
374 (back_comment, forw_comment, Fforward_comment, scan_lists)
375 (scan_sexps_forward): Update code to obey the new comment style flag.
376
377 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
378
379 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
380
7aee76f4
J
3812010-08-11 Jan Djärv <jan.h.d@swipnet.se>
382
3a46642b
J
383 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
384 first.
94dff98f 385 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
386
387 * gtkutil.h (xg_check_special_colors): Declare.
388
389 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
390 (xg_create_frame_widgets): Connect theme name changes to
391 style_changed_cb.
392
42ca4633
J
393 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
394 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
395 (x_term_init): Use char[] display_opt and name_opt instead of
396 string literal. file is const char*.
397
398 * xsmfns.c (NOSPLASH_OPT): Change to char[].
399 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
400 props. Free them at the end.
401
402 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
403
c5683ceb
SM
404 * xrdb.c (get_system_app): Make path const and use char *p for
405 non-const char.
42ca4633
J
406
407 * xmenu.c (Fx_popup_dialog): error_name is const char*.
408 (xmenu_show): error parameter is const char **. pane_string is const
409 char *.
410 (button_names): Is const char *.
411 (xdialog_show): error_name and pane_string is const.
412
413 * process.h (synch_process_death): Is const char*.
414
415 * w32menu.c (w32_menu_show):
416 * nsmenu.m (ns_menu_show): error parameter is const char **.
417
418 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
419 is const char **.
420
421 * menu.c (Fx_popup_menu): error_name is const.
422
423 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
424 with unsigned char and XtPointer with void *.
425
426 * gtkutil.h: Replace widget_value with struct _widget_value.
427 (enum button_type, struct _widget_value): Remove and use the one from
428 keyboard.h.
429
430 * gtkutil.c (get_utf8_string): Always return an allocated string.
431 Parameter is const.
432 (create_dialog, xg_create_one_menuitem, create_menus)
433 (xg_item_label_same_p, xg_update_menu_item): Free result from
434 get_utf8_string.
435 (xg_separator_p, xg_item_label_same_p): label is const.
436
437 * font.h (font_open_by_name): Make name const.
438
439 * font.c (font_open_by_name): Make name const.
440
441 * floatfns.c (matherr): Use a const char* variable for x->name.
442
443 * emacs.c (main): Pass char[] to putenv instead of literal.
444
445 * callproc.c (synch_process_death): Make const.
446 (Fcall_process): Make signame const.
447
9c5bd55a
J
448 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
449 (addDisplayItemWithImage): Use const char*.
450
451 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
452 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
453
454 * nsfont.m (ns_descriptor_to_entity): Use const char*.
455
456 * keyboard.h (_widget_value): name, value and key are const char*.
457
7aee76f4
J
458 * unexmacosx.c (unexec_error): Use const char *.
459
09d93395
DN
4602010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
461
462 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 463 (font_parse_name, font_open_by_name):
09d93395 464 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 465 (font_parse_name, font_open_by_name): Remove const.
09d93395 466
671d409f
AS
4672010-08-09 Andreas Schwab <schwab@linux-m68k.org>
468
469 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
470 definition.
471
472 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
473 * m/amdx86-64.h: Likewise.
474 * m/arm.h: Likewise.
475 * m/hp800.h: Likewise.
476 * m/ia64.h: Likewise.
477 * m/ibmrs6000.h: Likewise.
478 * m/ibms390.h: Likewise.
479 * m/intel386.h: Likewise.
480 * m/iris4d.h: Likewise.
481 * m/m68k.h: Likewise.
482 * m/macppc.h: Likewise.
483 * m/mips.h: Likewise.
484 * m/sh3.h: Likewise.
485 * m/sparc.h: Likewise.
486 * m/template.h: Likewise.
487 * m/vax.h: Likewise.
488 * m/xtensa.h: Likewise.
489 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
490 WORDS_BIG_ENDIAN.
491 * lisp.h: Likewise.
492 * md5.c: Likewise.
493 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
494
8ea90aa3
DN
4952010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
496
497 Use const char* instead of char*.
498 Reduce the number of warnings with -Wwrite-strings.
499 * xrdb.c (get_environ_db, get_system_name):
500 * unexelf.c (find_section):
501 * term.c (string_cost, string_cost_one_line, per_line_cost)
502 (get_named_tty, init_tty):
503 * sysdep.c (sys_subshell):
504 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
505 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
506 * search.c (Freplace_match):
507 * process.c (Fmake_network_process, send_process, init_process):
508 * lread.c (Fload, init_lread):
509 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
510 * keyboard.c (parse_tool_bar_item, struct event_head):
511 * gtkutil.h (xg_get_font_name):
512 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
513 (make_widget_for_menu_item, make_menu_item, create_menus)
514 (xg_make_tool_item):
515 * font.c (parse_matrix, font_parse_name):
516 * floatfns.c (rounding_driver, float_error_fn_name):
517 * filelock.c (get_boot_time_1, lock_file_1):
518 * fileio.c (barf_or_query_if_file_exists, check_writable):
519 * editfns.c (get_system_name, get_operating_system_release)
520 (Fencode_time, Fset_time_zone_rule):
521 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
522 * buffer.c (defvar_per_buffer): Use const.
523
7815fe19 5242010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 525
692f3ddc 526 * charset.c: Include <stdlib.h>.
7a84eee5
KH
527 (struct charset_sort_data): New struct.
528 (charset_compare): New function.
692f3ddc 529 (Fsort_charsets): New function.
7a84eee5
KH
530 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
531
532 * coding.c (decode_coding_iso_2022): Fix checking of dimension
533 number in CTEXT extended segment.
534
7815fe19 5352010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
536
537 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
538 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
539
7815fe19 5402010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
541
542 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
543 (Fhash_table_size): Fix typos in docstrings.
544 (Fmake_hash_table): Doc fix.
545
7815fe19 5462010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
547
548 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
549 Doc fix (bug#5625).
550
7815fe19 5512010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
552
553 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
554 the MSDOS definition.
555
1b6d8cf0
DN
5562010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
557
675e2c69
DN
558 Use const char* instead of char*.
559 * xterm.c (x_create_toolkit_scroll_bar):
560 * xfont.c (xfont_list_pattern):
561 * xfns.c (x_default_scroll_bar_color_parameter)
562 (xic_create_fontsetname, x_default_font_parameter)
563 (x_screen_planes):
564 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
565 (store_mode_line_string, decode_mode_spec, display_string):
566 * menu.c (digest_single_submenu):
567 * keymap.h (initial_define_key, initial_define_lispy_key):
568 * keymap.c (initial_define_key, initial_define_lispy_key):
569 * image.c (image_error, image_keyword):
570 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
571 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
572 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
573 (ftfont_list, ftfont_match):
574 * frame.c (frame_parm_table):
575 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
576 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
577 (font_add_log, font_deferred_log):
578 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
579 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
580 (font_add_log, font_deferred_log):
581 * emacs.c (argmatch):
582 * dispextern.h (struct it):
583 * coding.c (ENCODE_DESIGNATION):
584 * charset.c (define_charset_internal): Use const.
585
25717ca1
DN
586 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
587
c5683ceb
SM
588 * xrdb.c: Remove include guard.
589 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
590 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
591 realloc->xrealloc instead of using #defines.
592
efb41e21
EZ
5932010-08-08 Eli Zaretskii <eliz@gnu.org>
594
cd21226d 595 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
596 * editfns.c (Fline_beginning_position, Fline_end_position):
597 State in the doc strings that start and end of line are in the
598 logical order.
cd21226d 599
efb41e21
EZ
600 * xdisp.c (display_line): Move the handling of overlay arrow after
601 the call to find_row_edges. (Bug#6699)
602
746812d9
CY
6032010-08-07 Chong Yidong <cyd@stupidchicken.com>
604
605 * keyboard.c (command_loop_1):
606 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
607
9852377f
CY
6082010-08-07 Chong Yidong <cyd@stupidchicken.com>
609
610 * insdel.c (prepare_to_modify_buffer): Save active region text to
611 Vsaved_region_selection.
612
613 * xselect.c (QPRIMARY): Move to keyboard.c.
614
615 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
616 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
617 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 618
0e9c8657
JB
6192010-08-07 Juanma Barranquero <lekktu@gmail.com>
620
621 * alloc.c (lisp_malloc):
622 * buffer.c (set_buffer_internal, set_buffer_internal_1):
623 * charset.h (emacs_mule_charset):
624 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
625 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
626 (bitch_at_user):
627 * lisp.h (Fcheck_coding_system, Fget_text_property)
628 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
629 Remove duplicate declarations.
630
648801d1
DN
6312010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
632
32bc6709
DN
633 * process.c: Simplify include logic.
634
3ef1d108
DN
635 * keyboard.h (quit_char): Add declaration.
636 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
637 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
638 Add declarations.
3ef1d108
DN
639 * sysdep.c:
640 * w32.c: Remove the above declarations.
641
97ec208f
DN
642 Remove extern declarations in .c files, .h files have them.
643 * xterm.c:
644 * xdisp.c:
97ec208f
DN
645 * msdos.c:
646 * image.c:
647 * gtkutil.c:
648 * fileio.c:
649 * eval.c: Remove declarations.
650
94eed851
DN
651 * frame.c (frame_params): Make const.
652
36e053eb
DN
653 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
654
0e843971
DN
655 * emacs.c (emacs_copyright, emacs_version): Make static.
656 (Vinitial_window_system, Vauto_save_list_file_name)
657 (Vinhibit_redisplay): Remove declarations.
658 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
659 for AIX.
660
648801d1
DN
661 Use const for some arrays and functions.
662 * xterm.h (xg_set_icon_from_xpm_data):
663 * xfns.c (xg_set_icon_from_xpm_data):
664 * term.c (fkeys):
665 * keyboard.c (lispy_accent_keys, lispy_function_keys)
666 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
667 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
668 (frame.c frame_parms):
669 * emacs-icon.h (gnu_xpm_bits):
670 * callint.c (callint_argfuns): Use const.
671
8646d999
J
6722010-08-06 Jan Djärv <jan.h.d@swipnet.se>
673
674 * sysdep.c: Move include term.h last of includes (Bug#6812).
675
cb4545ad
EZ
6762010-08-06 Eli Zaretskii <eliz@gnu.org>
677
678 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
679
680 * msdos.c (IT_display_cursor): Log cursor position on termscript.
681
682 * .gdbinit (pgx): Display the avoid_cursor_p flag.
683
da7e2be6
JB
6842010-08-06 Juanma Barranquero <lekktu@gmail.com>
685
686 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
687
3d608a86
J
6882010-08-06 Jan Djärv <jan.h.d@swipnet.se>
689
7908fb60
J
690 * xterm.h (x_get_focus_frame): Declare.
691
692 * keyboard.h (poll_for_input_1): Unconditionally declare.
693
4094bf36
J
694 * nsterm.h (x_set_menu_bar_lines): Declare.
695
696 * window.c: Don't include menu.h, it depends on lots of other .h-files.
697
3d608a86
J
698 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
699
700 * window.c: Include menu.h.
701
702 * unexmacosx.c (print_region_list, print_regions)
703 (build_region_list, find_emacs_zone_regions)
704 (unexec_regions_merge, read_load_commands, dump_it)
705 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
706
707 * term.c: Check HAVE_SYS_IOCTL_H.
708
686b968e 709 * sysdep.c: Check HAVE_TERM_H.
3d608a86 710
686b968e 711 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
712
713 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
714 (ns_ring_bell, ns_defined_color, hide_hourglass)
715 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
716 Convert to ANSI C prototypes.
717 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
718 before code.
719
720 * nsterm.h : Include sysselect.h.
721 (x_sync, x_get_focus_frame, x_set_mouse_position)
722 (x_set_mouse_pixel_position, x_make_frame_visible)
723 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
724 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
725 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
726 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 727 Declare.
3d608a86
J
728
729 * nsmenu.m (popup_activated, name_is_separator)
730 (syms_of_nsmenu): Convert to ANSI C prototypes.
731 (runMenuAt): Prototypes and move declarations before code.
732
733 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
734
735 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
736 prototypes.
737
738 * nsfns.m (have_menus_p, ns_display_info_for_name)
739 (x_set_cursor_type, ns_appkit_version_str)
740 (ns_appkit_version_int, ns_do_applescript)
741 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
742 (syms_of_nsfns): Convert to ANSI C prototypes.
743
744 * menu.h (x_set_menu_bar_line): Declare.
745 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
746
747 * lisp.h (fmod_float): Declare.
748
749 * image.c (xpm_scan, xpm_make_color_table_v)
750 (xpm_put_color_table_v, xpm_get_color_table_v)
751 (xpm_make_color_table_h, xpm_put_color_table_h)
752 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
753 (xpm_load): Convert to ANSI C prototypes.
754
755 * emacs.c: Include nsterm.h if HAVE_NS.
756
757 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
758
fce70521
DN
7592010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
760
761 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
762 subprocesses, only MSDOS does not define HAVE_SOCKETS.
763 (socket_options): Use const char* for name.
764
a11889ab
JB
7652010-08-06 Juanma Barranquero <lekktu@gmail.com>
766
767 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
768
769 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
770 Don't declare xmalloc_widget_value and digest_single_submenu.
771
772 * w32font.c (Qlatin): Remove declaration.
773
774 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
775
c95b508f 776 * dired.c (compile_pattern): Restore declaration.
a11889ab 777
6254cdda
DN
7782010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
779
04bab72c
DN
780 Remove extern declarations in .c files, .h files have them.
781 * data.c:
782 * dired.c:
783 * editfns.c:
784 * filelock.c:
785 * fns.c:
786 * font.c:
787 * fontset.c:
788 * frame.c:
789 * fringe.c:
790 * ftfont.c:
791 * gtkutil.c:
792 * indent.c:
793 * keyboard.c:
794 * keymap.c:
795 * lread.c:
796 * menu.c:
797 * print.c:
798 * search.c:
799 * sound.c:
800 * window.c:
801 * xdisp.c:
802 * xfaces.c:
803 * xfns.c:
804 * xfont.c:
805 * xftfont.c:
806 * xmenu.c:
807 * xterm.c: Remove declarations.
808
dff94ed5
DN
809 Cleanup syssignal.h.
810 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
811 (main_thread): Move down to remove #ifdef.
812 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
813 Remove conditional definition following unconditional ones.
814
99f3388e
DN
815 * lisp.h: Remove HAVE_SHM code, unused.
816 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
817 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
818 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
819 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
820 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
821 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
822 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
823 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
824 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
825 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
826 (Qwindow_scroll_functions, Vafter_load_alist)
827 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
828 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
829 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
830 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
831 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
832 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
833 (initial_argv, last_nonmenu_event, load_in_progress)
834 (noninteractive_need_newline, scroll_margin): Add declarations.
835
836 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
837 declarations, menu.h has them.
838 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
839 (Vinput_method_function, Qinput_method_function)
840 (Qevent_symbol_element_mask, last_event_timestamp):
841 * dispextern.h (Voverflow_newline_into_fringe):
842 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
843 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
844 (syms_of_w32font, syms_of_nsfont):
845 * fontset.h (find_font_encoding, Qlatin):
846 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
847 (Vtool_bar_mode, set_frame_menubar):
848 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
849 * xterm.h (Qx_gtk_map_stock):
850 * keymap.h (meta_prefix_char): Add declarations.
851
9f5dd6f2
DN
852 * term.c: Remove dead code.
853
6254cdda
DN
854 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
855 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
856 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
857 which is what was there before BSD_PGRPS was removed.
858
29cf3e20
EZ
8592010-08-05 Eli Zaretskii <eliz@gnu.org>
860
861 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
862
863 * unexcoff.c: Renamed from unexec.c.
864
aaa0a19a
SM
8652010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
866
867 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
868
8d1d9587
JB
8692010-08-03 Johan Bockgård <bojohan@gnu.org>
870
871 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 872 (Bug#6744)
8d1d9587 873
9a747ba6
JD
8742010-08-02 Jan Djärv <jan.h.d@swipnet.se>
875
4d464ae4
JD
876 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
877 to TRUE if depth of screen is < 16.
878
ac01763e
JD
879 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
880 USE_GTK_TOOLTIP.
e0d62a9b
JB
881 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
882 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 883 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
884 USE_GTK_TOOLTIP.
885 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
886
887 * xterm.h (USE_GTK_TOOLTIP): New define.
888 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
889
9a747ba6
JD
890 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
891 to Control-D (Bug#6771).
892
7b0815ba
JB
8932010-08-02 Juanma Barranquero <lekktu@gmail.com>
894
895 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
896 Wording by Drew Adams <drew.adams@oracle.com>.
897
aa1859f5
J
8982010-08-01 Jan Djärv <jan.h.d@swipnet.se>
899
900 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
901 ttip_lbl.
902
903 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
904 calling gtk_widget_queue_draw.
905 (x_free_frame_resources): Call xg_free_frame_widgets.
906
907 * xfns.c (x_gtk_use_system_tooltips): New variable.
908 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
909 new gtkutil tooltip functions to show the tooltip.
910 (Fx_hide_tip): Call xg_hide_tooltip.
911 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
912
913 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
914 (xg_show_tooltip, xg_hide_tooltip): Declare.
915
916 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
917 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
918 New functions.
aa1859f5
J
919 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
920 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
921 Remove code that is commented out.
922
76417ef4
SM
9232010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
924
925 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
926
16041401
CY
9272010-07-31 Chong Yidong <cyd@stupidchicken.com>
928
929 * xselect.c (x_own_selection): Use list4.
930
2c09a58f
DN
9312010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
932
933 * buffer.c (Qwindow): Do not define, already defined in data.c.
934 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
935
59df9fdd 9362010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 937
59df9fdd
JB
938 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
939 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
940 * config.in: Undef HAVE_DIRENT_H.
1c97e857 941 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 942 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 943
1b231651
DN
9442010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
945
946 Rename s/usg5-4.h -> s/usg5-4-common.h.
947 * s/usg5-4.h: Rename file to ...
948 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
949 * s/unixware.h:
950 * s/sol2-6.h:
951 * s/irix6-5.h: Update includes accordingly.
952
bfeabdc3
JD
9532010-07-29 Jan Djärv <jan.h.d@swipnet.se>
954
2ebf1083
J
955 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
956
bfeabdc3 957 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
958 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
959 Remove toolbar_height.
960 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
961 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
962 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
963 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
964
965 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
966
967 * xfns.c (x_set_tool_bar_position): New function.
968 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
969 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 970 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
971
972 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
973 and FRAME_TOOLBAR_LEFT_WIDTH.
974
975 * gtkutil.h (xg_change_toolbar_position): Declare.
976
977 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
978 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
979 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
980 (xg_create_frame_widgets): Create a hobox for placing widgets
981 vertically. Use gtk_box_pack_start.
982 (xg_height_or_width_changed): Renamed from xg_height_changed.
983 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
984 (xg_update_frame_menubar, free_frame_menubar): Change to
985 xg_height_or_width_changed.
986 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
987 size correctly. Remove hardcoded 4, instead use handlebox size -
988 toolbar size.
989 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 990 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
991 (xg_pack_tool_bar): POS is a new parameter.
992 Set orientation of tool bar based on pos.
993 Only make handlebox_widget if NULL.
994 Check if tool bar goes to vbox or hbox depending on pos.
995 (xg_update_tool_bar_sizes): New function.
686b968e 996 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
997 height, call xg_update_tool_bar_sizes instead.
998 (free_frame_tool_bar): Remove from hbox or vbox depending on
999 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1000 (xg_change_toolbar_position): New function.
1001
1002 * frame.h (struct frame): Add tool_bar_position.
1003 (Qbottom): Declare.
1004
1005 * frame.c (Qtool_bar_position): New variable.
1006 (make_frame): Set tool_bar_position to Qtop.
1007 (frame_parms): Add tool-bar-position.
1008 (x_report_frame_params): Store tool_bar_position.
1009 (x_set_fringe_width): Reset wm size hint after fringe changes.
1010
26469a38
DN
10112010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1012
1013 Make lisp_time_argument declaration work on all systems.
1014 * lisp.h (lisp_time_argument): Move declaration ...
1015 * systime.h (lisp_time_argument): ... here
1016 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1017
8848b728
JD
10182010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1019
1020 * vm-limit.c (POINTER): Add typedef for it.
1021 (start_of_data): Change return type from POINTER to char *.
1022
1023 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1024 HAVE_WINDOW_SYSTEM.
1025
76fd1ee9
DN
10262010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1027
0441987e
DN
1028 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1029 Remove reference to __osf__, unused.
1030
56a000c7
DN
1031 * mem-limits.h: Remove duplicated includes.
1032 (NULL): Remove definition, unused.
1033 (POINTER): Remove definition.
1034 (start_of_data): Use char* in prototype, as the function
1035 definition does.
1036
e6cba650
DN
1037 Remove extern declarations from .c files, and them to .h files.
1038 * keyboard.h (Qhelp_echo, waiting_for_input)
1039 (input_available_clear_time, ignore_mouse_drag_p)
1040 (Vdouble_click_time, real_this_command, Vthis_original_command):
1041 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1042 (Voverriding_local_map_menu_flag):
1043 * lisp.h (Qinteractive_form, use_file_dialog)
1044 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1045 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1046 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1047 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1048 (Qfunction, debug_on_next_call, Qfield)
1049 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1050 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1051 (Qfile_directory_p, Qinsert_file_contents)
1052 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1053 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1054 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1055 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1056 (Qminibuffer_prompt)
1057 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1058 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1059 (gray_bitmap_bits, xic_create_fontsetname):
1060 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1061
1062 * xsmfns.c (Vuser_login_name):
1063 * xrdb.c (Vdouble_click_time):
1064 * xfaces.c (xic_create_fontsetname):
1065 * w32select.c (waiting_for_input):
1066 * print.c (minibuffer_auto_raise):
1067 * msdos.c (Qhelp_echo):
1068 * macros.c (real_this_command):
1069 * keymap.c (Voverriding_local_map):
1070 * xterm.c (poll_for_input_1, gray_bitmap_width)
1071 (gray_bitmap_height, gray_bitmap_bits;
1072 * xmenu.c ( Voverriding_local_map)
1073 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1074 (use_file_dialog, Xt_app_con):
1075 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1076 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1077 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1078 (Qtool_bar_lines, ignore_mouse_drag_p):
1079 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1080 (Qrear_nonsticky, nconc2):
1081 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1082 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1083 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1084 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1085 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1086 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1087 (gc_in_progress):
1088 * doc.c (Voverriding_local_map, Qremap):
1089 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1090 (Vcompletion_regexp_list):
1091 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1092 (Qcompletion_ignore_case):
1093 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1094 (Vhistory_length, Vthis_original_command, real_this_command)
1095 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1096 * image.c (Qrisky_local_variable):
1097 * fontset.c (QCname):
1098 * fns.c (minibuffer_auto_raise, QCname):
1099 * dispnew.c (char_ins_del_cost):
1100 * composite.c (font_fill_lglyph_metrics):
1101 * cmds.c (Qface, Vtranslation_table_for_input):
1102 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1103 * ccl.c (charset_unicode):
1104 * callproc.c (Vtemporary_file_directory):
1105 * buffer.c (emacs_strerror): Remove extern declarations.
1106
1107 * data.c (Qwindow): Make non-static, used from other files too.
1108 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1109
76fd1ee9
DN
1110 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1111 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1112 * s/usg5-4.h (COFF):
1113 * s/template.h:
1114 * s/msdos.h (COFF, NO_REMAP):
1115 * s/ms-w32.h (NO_REMAP):
1116 * s/hpux10-20.h (NO_REMAP):
1117 * m/sparc.h (SEGMENT_MASK):
1118 * m/m68k.h (NO_REMAP):
1119 * m/intel386.h (SEGMENT_MASK):
1120 * m/arm.h (NO_REMAP):
1121 * m/alpha.h (COFF):
1122 * m/template.h: Remove references to unused defines.
1123
8a52f00a
JD
11242010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1125
1126 * xsettings.c (Ftool_bar_get_system_style): Also check for
1127 Qtext_image_horiz.
1128
1129 * xdisp.c (Qtext_image_horiz): Define.
1130 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1131 to documentation of tool-bar-style.
8a52f00a
JD
1132
1133 * lisp.h (Qtext_image_horiz): Declare.
1134
1135 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1136 style text_image_horiz.
1137
89dc303e
DN
11382010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1139
60799703
DN
1140 * emacs.c (Fkill_emacs): Remove return statement.
1141
37254dc1
DN
1142 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1143 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1144 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1145 local extern declarations.
1146
71c7345a
DN
1147 * xmenu.c: Do not included lwlib.h, not needed.
1148
6ba577cb
DN
1149 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1150
fdb183d6
DN
1151 * process.c: Move definitions earlier to minimize #ifdefs.
1152
1153 * xterm.h (x_get_customization_string, x_load_resources)
1154 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1155 (x_check_errors, x_property_data_to_lisp, defined_color)
1156 (xic_set_xfontset, x_defined_color): Use const.
1157
1158 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1159 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1160
1161 * xselect.c (selection_data_to_lisp_data)
1162 (x_property_data_to_lisp):
1163 * xrdb.c (x_get_string_resource, file_p)
1164 (x_get_customization_string, magic_file_p, search_magic_path)
1165 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1166 (x_get_string_resource): Use const.
1167
1168 * xfns.c: Include xlwmenu.h when USE_LUCID.
1169 (x_defined_color, xic_set_xfontset): Use const.
1170 (Fx_hide_tip): Remove local extern declaration.
1171
1172 * xfaces.c (Qmouse_face): Remove declaration.
1173 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1174 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1175
1176 * xdisp.c (do_mouse_tracking): Remove declaration.
1177 (add_to_log): Use const.
1178
1179 * minibuf.c (Qmouse_face): Remove declaration.
1180
1181 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1182
1183 * keyboard.h (do_mouse_tracking): Add declaration.
1184
1185 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1186 (QCdata, QCtype, Qcenter): Remove declarations.
1187
1188 * frame.c (x_get_resource_string, x_get_string_resource)
1189 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1190 (x_default_parameter): Use const.
1191
1192 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1193 (QCheight, QCsize, QCname): Remove declarations.
1194
1195 * emacs.c (main): Remove local extern declaration.
1196
1197 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1198 declarations.
1199
1200 * dispnew.c: Remove duplicate #include <unistd.h>.
1201 (update_window, update_frame_1, init_display): Remove local extern
1202 declarations.
1203
1204 * dispextern.h (add_to_log): Remove declaration.
1205 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1206 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1207
1208 * dired.c (scmp): Add const.
1209 (directory_files_internal): Remove local extern declaration.
1210
1211 * data.c (Finteractive_form): Use const.
1212
1213 * composite.c (syms_of_composite): Remove local extern declarations.
1214
1215 * charset.c (add_to_log): Remove declaration.
1216
1217 * character.c (strwidth, parse_str_to_multibyte): Add const.
1218
1219 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1220
1221 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1222
89dc303e 1223 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1224 (Lisp_Subr): Make doc and intspec constant.
1225 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1226 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1227 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1228 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1229 (display_arg): Add declarations.
89dc303e 1230
0ed082fe 12312010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1232
1233 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1234
0ed082fe
JB
1235 * window.c (Fwindow_height): Doc fix (bug#6518).
1236
12372010-07-27 Juanma Barranquero <lekktu@gmail.com>
1238
1239 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1240
ccaf0336
DN
12412010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1242
977105dc
DN
1243 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1244 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1245 functions.
1246
f5ada890
DN
1247 * frame.h (Qtty_color_mode): Add declaration.
1248
ccaf0336
DN
1249 * lisp.h (Ftop_level, Fexit_recursive_edit)
1250 (Fabort_recursive_edit): Mark as NO_RETURN.
1251
dfe3c90f
KH
12522010-07-26 Kenichi Handa <handa@m17n.org>
1253
1254 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1255 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1256
7d383292
JB
12572010-07-26 Juanma Barranquero <lekktu@gmail.com>
1258
1259 * lread.c (unreadpure, mapatoms_1): Make static.
1260
da31e629
JB
12612010-07-25 Juanma Barranquero <lekktu@gmail.com>
1262
1263 * terminfo.c (tparam): Fix prototype of tparm.
1264
7bfa6d77
AS
12652010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1266
dcc19aac
AS
1267 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1268 find start of text segment.
1269 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1270 is defined.
1271
7bfa6d77
AS
1272 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1273
63f9a672
KB
12742010-07-25 Ken Brown <kbrown@cornell.edu>
1275
1276 * vm-limit.c (check_memory_limits): Fix previous change;
1277 accidentally reverted an earlier change.
1278
24933075
KB
12792010-07-25 Ken Brown <kbrown@cornell.edu>
1280
1281 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1282 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1283
361358ea
JB
12842010-07-25 Juanma Barranquero <lekktu@gmail.com>
1285
1286 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1287 * dired.c (opendir, readdir): Fix prototypes.
1288 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1289 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1290 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1291 (telldir): Remove declaration.
1292 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1293 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1294 * syssignal.h (strsignal): Fix prototype.
1295 * term.c (tparam): Fix prototype.
1296 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1297 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1298 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1299 and __morecore.
1300 * w32gui.h (XParseGeometry): Fix prototype.
1301 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1302 * w32term.c (my_set_focus): Declare inside #if 0.
1303 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1304 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1305 (drain_message_queue, get_next_msg, post_msg, parse_button)
1306 (ClipboardSequence_Proc): Fix prototypes.
1307 (wait_for_sync): Remove declaration.
1308
630b9592
JB
13092010-07-24 Juanma Barranquero <lekktu@gmail.com>
1310
1311 * w32fns.c (w32_to_x_color): Remove, unused.
1312
6a0d6611
AS
13132010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1314
1315 * lisp.h: Remove leftover P_.
1316
4e8608ff
DN
13172010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1318
1319 * ecrt0.c, unexalpha.c: Remove files, unused.
1320
c8197983
AS
13212010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1322
1323 * cmds.c (internal_self_insert): Make static.
1324 * lisp.h (internal_self_insert): Remove declaration.
1325
97b372d7
JB
13262010-07-23 Juanma Barranquero <lekktu@gmail.com>
1327
33ac0414
JB
1328 * alloc.c (free_float):
1329 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1330 * frame.c (delete_frame_handler):
1331 * ralloc.c (reorder_bloc):
1332 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1333 Remove unused static functions.
1334
94da8397
JB
1335 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1336 it is called only from NS code.
1337
2e6c8532
JB
1338 * w32term.c (my_set_focus): #ifdef away; it is called only from
1339 "#ifdef 0" code.
1340
97b372d7
JB
1341 * w32fns.c (x_edge_detection):
1342 * xfaces.c (may_use_scalable_font_p):
1343 Remove obsolete static declarations.
1344
7c3320d8
JB
13452010-07-20 Juanma Barranquero <lekktu@gmail.com>
1346
1347 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1348 (emacs_blocked_realloc, uninterrupt_malloc):
1349 * fringe.c (w32_reset_fringes):
1350 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1351 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1352 * sound.c (be2hs, do_play_sound):
1353 * vm-limit.c (get_lim_data, ret_lim_data):
1354 * w32term.c (x_free_frame_resources):
1355 * xfaces.c (x_create_gc, x_free_gc):
1356 Convert definitions to standard C.
1357
d5273788
SM
13582010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1359
1360 * eval.c (Feval, Ffuncall): Use the new names.
1361
1362 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1363 (DEFUN): Add braces around the union initialisation and use ## to
1364 specify the right union alternative and avoid a cast.
1365
8d16a259
JB
13662010-07-18 Juanma Barranquero <lekktu@gmail.com>
1367
1368 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1369
3b8eff32
CY
13702010-07-17 Chong Yidong <cyd@stupidchicken.com>
1371
1372 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1373
499322ce
J
13742010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1375
1376 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1377 is related to the menu bar (Bug#6499).
a628ad9d 1378 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1379
f6003da5 13802010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1381
1382 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1383
1384 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1385
1386 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1387 i.e. don't put back ButtonRelease (Bug#6608).
1388
1389 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1390 instead of Window. Call xg_event_is_for_menubar when
1391 USE_GTK (Bug#6499).
1392
1393 * gtkutil.h (xg_event_is_for_menubar): Declare.
1394
1395 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1396
f6003da5 13972010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1398
1399 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1400 when it's the same as the old foreground. (Bug#6609)
1401
23243f29
J
14022010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1403
1404 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1405 widget is non-null (Bug#6645).
1406
2b23d2a6
AS
14072010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1408
01b564ff
AS
1409 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1410 Convert old-style definition.
1411
2b23d2a6
AS
1412 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1413 timestamp argument.
1414
c4affd2c
EZ
14152010-07-15 Eli Zaretskii <eliz@gnu.org>
1416
1417 * fringe.c (update_window_fringes): Restore mistakenly reverted
1418 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1419
cf28cebc
J
14202010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1421
1422 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1423 (SET_SAVED_KEY_EVENT): Remove (not used).
1424 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1425 remove size parameter.
1426 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1427 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1428 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1429 ButtonRelease.
6b2c4bd9
J
1430 (x_set_window_size_1): scroll_bar_actual_width is always
1431 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1432
1433 * xdisp.c (pending_menu_activation): Remove extern declaration.
1434 (prepare_menu_bars): Remove setting of pending_menu_activation.
1435
1436 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1437 (x_activate_menubar): Set popup_activated_flag for Xt also.
1438 Remove setting of pending_menu_activation.
cf28cebc
J
1439 (set_frame_menubar): Remove check of pending_menu_activation.
1440 Declare menubar_size before code. Correct spelling in comment.
1441
f6c1c771
KH
14422010-07-14 Kenichi Handa <handa@m17n.org>
1443
1444 * font.c (font_open_entity): Cancel previous change.
1445 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1446
20477505
EZ
14472010-07-13 Eli Zaretskii <eliz@gnu.org>
1448
77defa9a
EZ
1449 Remove subprocesses #ifdefs.
1450 * process.c <inhibit_sentinels>: Move to the common part.
1451 (Fwaiting_for_user_input_p): Move to the common part; return nil
1452 if async subprocesses aren't supported.
1453 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1454 MS-DOS. Remove "#ifdef subprocesses".
1455 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1456 (gettimeofday): Remove "#ifdef subprocesses".
1457 (wait_without_blocking): Remove function.
1458 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1459 Remove "#ifdef subprocesses".
1460 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1461 compiled on MS-DOS.
1462 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1463 wait_for_termination on MS-DOS.
1464 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1465 initialization of inhibit_sentinels.
1466 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1467 subprocesses" conditional.
1468 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1469 wait_for_termination, since `buffer' cannot be an integer when
1470 async subprocesses are not supported
1471 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1472 for ifdefing away the call to Fprocess_status.
1473
20477505
EZ
1474 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1475 away the entire body of the function.
1476
b3ffc17c
DN
14772010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1478
01faa934
DN
1479 Remove subprocesses #ifdefs from term.c.
1480 * process.c (add_keyboard_wait_descriptor)
1481 (delete_keyboard_wait_descriptor): Move to common section, do
1482 nothing when subprocesses is not defined.
a628ad9d
JB
1483 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1484 Remove subprocesses #ifdefs.
01faa934 1485
b3ffc17c
DN
1486 Convert maybe_fatal to standard C.
1487 * lisp.h (verror): Declare.
1488 * eval.c (verror): New function containing the code from ...
1489 (error): ... this. Call verror.
1490 * term.c (vfatal): New function containing the code from ...
1491 (fatal): ... this. Call vfatal.
1492 (maybe_fatal): Convert to standard C, use variable number of
1493 arguments. Declare as non-return.
1494 (init_tty): Fix maybe_fatal call.
1495
0521f580
DN
14962010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1497
1498 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1499 (_scroll_bar_note_movement): Convert definitions to standard C.
1500 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1501 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1502
ebd15611
DN
15032010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1504
1505 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1506 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1507 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1508 (xaw_jump_callback, xaw_scroll_callback)
1509 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1510 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1511 definitions to standard C.
1512 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1513 (popup_activate_callback, popup_deactivate_callback)
1514 (menu_highlight_callback, menubar_selection_callback)
1515 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1516 (free_frame_menubar, popup_selection_callback, as)
1517 (create_and_show_popup_menu, dialog_selection_callback)
1518 (create_and_show_dialog):
1519 * xfns.c (hack_wm_protocols, x_window):
1520 * xfaces.c (x_update_menu_appearance):
1521 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1522 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1523 (set_frame_size, update_wm_hints, setup_frame_gcs)
1524 (update_various_frame_slots, update_from_various_frame_slots)
1525 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1526 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1527 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1528
de06a2dd
AS
15292010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1530
a628ad9d 1531 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1532
fc549af9
EZ
15332010-07-12 Eli Zaretskii <eliz@gnu.org>
1534
1535 * process.c (setup_process_coding_systems): Move to the part
1536 shared by non-subprocesses systems, and make its body empty when
1537 subprocesses is not defined.
1538 (close_process_descs): Move to the part shared by non-subprocesses
1539 systems.
1408902e
EZ
1540 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1541 ANSI C.
fc549af9 1542
d5a3eaaf
AS
15432010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1544
1545 * editfns.c (transpose_markers): Convert old-style definition.
1546 * emacs.c (abort, shut_down_emacs, fixup_locale)
1547 (synchronize_system_time_locale)
1548 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1549 * floatfns.c (extract_float, matherr, init_floatfns)
1550 (syms_of_floatfns): Likewise.
1551 * fns.c (make_hash_table): Likewise.
1552 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1553 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1554 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1555 (ftfont_variation_glyphs): Likewise.
1556 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1557 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1558 * lread.c (read_filtered_event): Likewise.
1559 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1560 * process.c (wait_reading_process_output): Likewise.
1561 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1562 * search.c (search_buffer, boyer_moore): Likewise.
1563 * syntax.c (scan_sexps_forward): Likewise.
1564 * xdisp.c (try_scrolling): Likewise.
1565 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1566 (face_at_string_position): Likewise.
1567 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1568 * xselect.c (x_get_window_property, receive_incremental_selection)
1569 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1570 Likewise.
1571 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1572
6f704c76
DN
15732010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1574
ded80a25
DN
1575 * callproc.c (child_setup): Remove subprocesses conditional.
1576 Remove code dealing with SET_EMACS_PRIORITY, unused.
1577
49d937f4 1578 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1579 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1580
1581 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1582 (__do_global_dtors, __main): Use void in definition.
1583 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1584 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1585 the only users from ...
1586 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1587 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1588 (HAVE_VOLATILE): Remove, unused.
1589
6f704c76
DN
1590 Convert more function definitions to standard C.
1591 * xdisp.c (window_box_edges, handle_single_display_spec)
1592 (display_string): Convert definition to standard C.
1593 * scroll.c (do_direct_scrolling, scrolling_1):
1594 * dispnew.c (allocate_matrices_for_frame_redisplay)
1595 (mirrored_line_dance):
1596 * coding.c (code_convert_string):
1597 * charset.c (map_charset_chars):
1598 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1599 (Fregister_ccl_program, Fregister_code_conversion_map):
1600 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1601 (head_table): Make static and const.
1602
e6cfa7c3
AS
16032010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1604
1605 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1606 (PROFILING_LDFLAGS): Set from substitution.
1607 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1608 CFLAGS last.
1609
892dd565
KH
16102010-07-12 Kenichi Handa <handa@m17n.org>
1611
6f2cdcd1
KH
1612 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1613 (shortlisp): Likewise.
1614
892dd565
KH
1615 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1616
1617 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1618 of FONT_ENTITY_INDEX.
1619 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1620 property, get the property value dynamically.
1621 (Ffont_put): Accept font-entity and font-object too.
1622 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1623 return value changed.
1624 (syms_of_font): Adjusted for the above change.
1625
ae96d47a
AS
16262010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1627
c8fc18ee
AS
1628 * blockinput.h: Remove obsolete comment.
1629
89887d67
AS
1630 * lisp.h: Include <stddef.h>.
1631 (OFFSETOF): Don't define.
1632 (VECSIZE): Use offsetof instead of OFFSETOF.
1633 (PSEUDOVECSIZE): Likewise.
1634 * process.c (conv_sockaddr_to_lisp): Likewise.
1635 * alloc.c: Don't include <stddef.h>.
1636 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1637
ae96d47a
AS
1638 * process.c: Remove obsolete comment.
1639
635c0aa1
CY
16402010-07-11 Chong Yidong <cyd@stupidchicken.com>
1641
1642 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1643
a64df650
AS
16442010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1645
8966b757
AS
1646 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1647 index, rindex.
1648 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1649 * editfns.c (Fuser_full_name, Fformat): Likewise.
1650 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1651 * fileio.c (Ffile_symlink_p): Likewise.
1652 * filelock.c (current_lock_owner): Likewise.
1653 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1654 * fontset.c (fontset_pattern_regexp): Likewise.
1655 * lread.c (read1): Likewise.
1656 * sysdep.c (init_system_name): Likewise.
1657 * xfns.c (select_visual): Likewise.
1658 * s/hpux10-20.h (index, rindex): Don't define.
1659 * s/ms-w32.h (index): Likewise.
1660 * s/usg5-4.h: Likewise.
1661
cf237e27
AS
1662 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1663
a8fe7202
AS
1664 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1665 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1666 (egetenv): Likewise.
1667 * doprnt.c (doprnt): Likewise.
1668 * editfns.c (set_time_zone_rule, format2): Likewise.
1669 * emacs.c (decode_env_path): Likewise.
1670 * eval.c (signal_error, error): Likewise.
1671 * insdel.c (replace_range_2): Likewise.
1672 * keyboard.c (cmd_error_internal): Likewise.
1673 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1674 * print.c (write_string, write_string_1, print_error_message):
1675 Likewise.
1676 * vm-limit.c (warn_function, memory_warnings): Likewise.
1677 * xdisp.c (message1, message1_nolog, message_with_string)
1678 (vmessage, message, message_nolog): Likewise.
1679 * emacs.c: Remove duplicate declaration.
1680 * keyboard.h: Likewise.
1681 * lisp.h: Update prototypes.
1682
bb8e180f
AS
1683 * eval.c: Fix indentation problem.
1684
83380e65
AS
1685 * keyboard.c: Include "process.h"
1686
a64df650
AS
1687 * eval.c: Remove obsolete noinline declaration.
1688 * fns.c: Likewise.
1689
6a8033e1
KR
16902010-07-11 Ken Raeburn <raeburn@raeburn.org>
1691
1692 * doprnt.c (doprnt): Take a va_list argument instead of count and
1693 pointer.
1694 * eval.c (error): Change to a standard-C variadic function.
1695 * xdisp.c (vmessage): Renamed from message, made static, and
1696 changed to take a va_list argument.
1697 (message): New variadic wrapper.
1698 (message_nolog): Now a variadic function, calling vmessage.
1699 * lisp.h: Include stdarg.h for va_list.
1700 (doprnt, error, message, message_nolog): Decls updated.
1701
462aa963
EZ
17022010-07-11 Eli Zaretskii <eliz@gnu.org>
1703
1704 * process.c (syms_of_process) <delete-exited-processes>: Define
1705 even if !subprocesses.
1706 (delete_exited_processes): Ditto.
1707
1708 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1709 (delete_exited_processes): Don't define.
1710
48104462
CY
17112010-07-10 Chong Yidong <cyd@stupidchicken.com>
1712
1713 * frame.c (make_frame): Initialize menu_bar_lines and
1714 tool_bar_lines members.
1715 (make_initial_frame, make_terminal_frame): Initialize
1716 menu_bar_lines using value of menu-bar-mode.
1717
1718 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1719
f388c88a
EZ
17202010-07-10 Eli Zaretskii <eliz@gnu.org>
1721
1722 * process.c: Reshuffle #include's. Condition some of the global
1723 and static variables on `subprocesses'.
1724 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1725 Leave only one implementation.
1726 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1727 (kill_buffer_processes, Flist_system_processes)
1728 (Fprocess_attributes, init_process, syms_of_process): Unify the
1729 implementations for with subprocesses and without them.
1730
723f5a07
J
17312010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1732
1733 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1734 correct size for Motif.
1735 (free_frame_menubar): Call x_set_window_size to update frame size.
1736
1737 * xfns.c (x_window): Set borderWidth to 0 for pane and
1738 EmacsFrame. Frame size calculation is wrong otherwise.
1739
2536a4b7
MA
17402010-07-09 Michael Albinus <michael.albinus@gmx.de>
1741
1742 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1743 allows to suppress errors when polling in Emacs' main loop.
1744 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1745 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1746 (Fdbus_method_error_internal, Fdbus_send_signal)
1747 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1748 (Fdbus_register_method): Use it. (Bug#6579)
1749
5842a27b
DN
17502010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1751
1752 * alloc.c: Convert DEFUNs to standard C.
1753 * buffer.c:
1754 * bytecode.c:
1755 * callint.c:
1756 * callproc.c:
1757 * casefiddle.c:
1758 * casetab.c:
1759 * category.c:
1760 * character.c:
1761 * charset.c:
1762 * chartab.c:
1763 * cmds.c:
1764 * coding.c:
1765 * composite.c:
1766 * data.c:
1767 * dbusbind.c:
1768 * dired.c:
1769 * dispnew.c:
1770 * doc.c:
1771 * dosfns.c:
1772 * editfns.c:
1773 * emacs.c:
1774 * eval.c:
1775 * fileio.c:
1776 * filelock.c:
1777 * floatfns.c:
1778 * fns.c:
1779 * font.c:
1780 * fontset.c:
1781 * frame.c:
1782 * fringe.c:
1783 * image.c:
1784 * indent.c:
1785 * insdel.c:
1786 * keyboard.c:
1787 * keymap.c:
1788 * lread.c:
1789 * macros.c:
1790 * marker.c:
1791 * menu.c:
1792 * minibuf.c:
1793 * msdos.c:
1794 * nsfns.m:
1795 * nsmenu.m:
1796 * nsselect.m:
1797 * print.c:
1798 * process.c:
1799 * search.c:
1800 * sound.c:
1801 * syntax.c:
1802 * term.c:
1803 * terminal.c:
1804 * textprop.c:
1805 * undo.c:
1806 * w16select.c:
1807 * w32console.c:
1808 * w32fns.c:
1809 * w32font.c:
1810 * w32menu.c:
1811 * w32proc.c:
1812 * w32select.c:
1813 * window.c:
1814 * xdisp.c:
1815 * xfaces.c:
1816 * xfns.c:
1817 * xmenu.c:
1818 * xselect.c:
1819 * xsettings.c:
1820 * xsmfns.c: Likewise.
1821
d568829b
EZ
18222010-07-08 Eli Zaretskii <eliz@gnu.org>
1823
1824 * process.c (kbd_is_on_hold, hold_keyboard_input)
1825 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1826
52214050
J
18272010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1828
1829 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1830 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1831 unless USE_LUCID.
1832
313d9eb2
DN
18332010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1834
a628ad9d
JB
1835 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1836 declaration.
d8825aa3 1837
295d0d8f
DN
1838 Clean up include guards.
1839 * tparam.c: Remove include guards for config.h, string.h and code
1840 that assumes #ifndef emacs.
1841 * termcap.c:
1842 * unexalpha.c:
1843 * sysdep.c:
1844 * filemode.c:
1845 * filelock.c:
1846 * bidi.c: Likewise.
1847
49d9e6b0
DN
1848 Remove prefix-args.c
1849 * prefix-args.c: Remove file.
1850 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1851 * Makefile.in (temacs${EXEEXT}): Remove references to
1852 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1853 (mostlyclean): Remove reference to prefix-args.
1854 (prefix-args): Remove.
1855
313d9eb2
DN
1856 Simplify cstart_of_data, start_of_code and related code.
1857 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1858 (start_of_data): Merge into start_of_data function.
1859 * sysdep.c (start_of_text): Remove. Move simplified versions of
1860 it in the only users: unexaix.c and unexec.c.
1861 (read_input_waiting): Remove local declaration of quit_char.
1862 (start, etext): Remove declarations.
1863 (start_of_data): Merge with the version in mem-limits.h and move
1864 to vm-limits.c.
1865 * vm-limit.c (start_of_data): Merged and simplified version of the
1866 code formerly in mem-limits.h and sysdep.c.
1867 * unexec.c (start): New declaration, moved from sysdep.c.
1868 (start_of_text): Simplified version of the code formerly in sysdep.c.
1869 * unexaix.c (start_of_text): Simplified version of the code
1870 formerly in sysdep.c.
1871 * m/alpha.h (HAVE_TEXT_START): Remove.
1872 (TEXT_START): Move ...
1873 * unexalpha.c (TEXT_START): ... here.
1874 * s/hpux10-20.h (TEXT_START): Remove.
1875 * s/darwin.h (TEXT_START):
1876 * m/mips.h (TEXT_START):
1877 * m/macppc.h (HAVE_TEXT_START):
1878 * m/m68k.h (TEXT_START):
1879 * m/iris4d.h (TEXT_START):
1880 * m/intel386.h (TEXT_START):
1881 * m/ibmrs6000.h (TEXT_START):
1882 * m/ia64.h (HAVE_TEXT_START):
1883 * s/msdos.h (TEXT_START): Likewise.
1884
72af86bd
AS
18852010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1886
1887 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1888 (overrun_check_free, xstrdup, allocate_string)
1889 (allocate_string_data, compact_small_strings, Fmake_string)
1890 (make_unibyte_string, make_multibyte_string)
1891 (make_string_from_bytes, make_specified_string, make_float)
1892 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1893 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1894 memcpy, memmove, memset, memcmp.
1895 * atimer.c (start_atimer, set_alarm): Likewise.
1896 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1897 (mmap_realloc, init_buffer_once): Likewise.
1898 * callint.c (Fcall_interactively): Likewise.
1899 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1900 (getenv_internal_1): Likewise.
1901 * casefiddle.c (casify_object): Likewise.
1902 * ccl.c (ccl_driver): Likewise.
1903 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1904 * charset.c (load_charset_map_from_file)
1905 (load_charset_map_from_file, load_charset_map_from_vector)
1906 (Fdefine_charset_internal): Likewise.
1907 * cm.c (Wcm_clear): Likewise.
1908 * coding.c (decode_eol, decode_coding_object)
1909 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1910 * data.c (Faset): Likewise.
1911 * dired.c (directory_files_internal, file_name_completion_stat):
1912 Likewise.
1913 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1914 (clear_glyph_row, copy_row_except_pointers)
1915 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1916 (save_current_matrix, restore_current_matrix)
1917 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1918 (mirror_line_dance, scrolling_window): Likewise.
1919 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1920 Likewise.
1921 * doprnt.c (doprnt): Likewise.
1922 * editfns.c (Fuser_full_name, make_buffer_string_both)
1923 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1924 * emacs.c (sort_args): Likewise.
1925 * eval.c (Fapply, Ffuncall): Likewise.
1926 * fileio.c (Ffile_name_directory, make_temp_name)
1927 (Fexpand_file_name, search_embedded_absfilename)
1928 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1929 (auto_save_error): Likewise.
1930 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1931 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1932 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1933 (Fmake_hash_table): Likewise.
1934 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1935 * ftfont.c (ftfont_text_extents): Likewise.
1936 * getloadavg.c (getloadavg): Likewise.
1937 * image.c (define_image_type, make_image, make_image_cache)
1938 (x_create_x_image_and_pixmap, xbm_image_p)
1939 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1940 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1941 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1942 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1943 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1944 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1945 Likewise.
1946 * indent.c (scan_for_column, compute_motion): Likewise.
1947 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1948 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1949 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1950 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1951 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1952 (store_user_signal_events, menu_bar_items, tool_bar_items)
1953 (process_tool_bar_item, append_tool_bar_item)
1954 (read_char_minibuf_menu_prompt, read_key_sequence)
1955 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1956 Likewise.
1957 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1958 Likewise.
1959 * lisp.h (STRING_COPYIN): Likewise.
1960 * lread.c (Fload, read1, oblookup): Likewise.
1961 * msdos.c (Frecent_doskeys): Likewise.
1962 * nsfns.m (Fx_create_frame): Likewise.
1963 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1964 Likewise.
1965 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1966 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1967 Likewise.
1968 * nsmenu.m (ns_update_menubar): Likewise.
1969 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1970 * print.c (print_unwind, printchar, strout, print_string)
1971 (print_error_message): Likewise.
1972 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1973 (Fmake_network_process, Fnetwork_interface_list)
1974 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1975 (init_process): Likewise.
1976 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1977 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1978 Likewise.
1979 * scroll.c (do_scrolling, do_direct_scrolling)
1980 (scrolling_max_lines_saved): Likewise.
1981 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1982 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1983 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1984 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1985 (emacs_set_tty): Likewise.
1986 * term.c (encode_terminal_code, calculate_costs)
1987 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1988 Likewise.
1989 * termcap.c (tgetst1, gobble_line): Likewise.
1990 * termhooks.h (EVENT_INIT): Likewise.
1991 * tparam.c (tparam1): Likewise.
1992 * unexalpha.c (unexec): Likewise.
1993 * unexec.c (write_segment): Likewise.
1994 * unexmacosx.c (unexec_write_zero): Likewise.
1995 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1996 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1997 * w32font.c (w32font_list_family, w32font_text_extents)
1998 (w32font_list_internal, w32font_match_internal)
1999 (w32font_open_internal, compute_metrics, Fx_select_font):
2000 Likewise.
2001 * w32menu.c (set_frame_menubar, add_menu_item)
2002 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2003 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2004 * w32uniscribe.c (uniscribe_list_family): Likewise.
2005 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2006 * window.c (make_window, replace_window, set_window_buffer)
2007 (Fsplit_window): Likewise.
2008 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2009 (add_to_log, message3, x_consider_frame_title)
2010 (append_space_for_newline, extend_face_to_end_of_line)
2011 (decode_mode_spec_coding, init_glyph_string): Likewise.
2012 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2013 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2014 (face_attr_equal_p, make_realized_face, make_face_cache)
2015 (free_realized_faces, lookup_named_face, smaller_face)
2016 (face_with_height, lookup_derived_face)
2017 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2018 (Finternal_set_font_selection_order, realize_default_face)
2019 (compute_char_face, face_at_buffer_position)
2020 (face_for_overlay_string, face_at_string_position, merge_faces):
2021 Likewise.
2022 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2023 (Fx_window_property, x_create_tip_frame)
2024 (Fx_backspace_delete_keys_p): Likewise.
2025 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2026 (xfont_text_extents): Likewise.
2027 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2028 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2029 * xselect.c (x_queue_event, x_get_window_property)
2030 (receive_incremental_selection): Likewise.
2031 * xsmfns.c (x_session_check_input): Likewise.
2032 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2033 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2034 Likewise.
2035 * character.h (BCOPY_SHORT): Removed.
2036 * config.in: Regenerate.
2037 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2038 * emacs.c (main) [PROFILING]: Don't declare
2039 dump_opcode_frequencies.
2040 * lisp.h (safe_bcopy): Remove declaration.
2041 (memset) [!HAVE_MEMSET]: Declare.
2042 (memcpy) [!HAVE_MEMCPY]: Likewise.
2043 (memmove) [!HAVE_MEMMOVE]: Likewise.
2044 (memcmp) [!HAVE_MEMCMP]: Likewise.
2045 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2046 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2047 Don't define.
2048 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2049 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2050 (BCOPY_DOWNWARD_SAFE): Don't define.
2051 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2052 (memcpy) [!HAVE_MEMCPY]: Define.
2053 (memmove) [!HAVE_MEMMOVE]: Define.
2054 (memcmp) [!HAVE_MEMCMP]: Define.
2055
cb768704
J
20562010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2057
2058 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2059 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2060 New functions.
cb768704
J
2061 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2062 select on empty input mask.
2063 (init_process): Initialize kbd_is_on_hold to 0.
2064
2065 * process.h (hold_keyboard_input, unhold_keyboard_input)
2066 (kbd_on_hold_p): Declare.
2067
2068 * keyboard.c (input_available_signal): Declare.
2069 (kbd_buffer_nr_stored): New function.
2070 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2071 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2072 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2073 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2074 (tty_read_avail_input): If input is on hold, return.
2075 Don't read more that free slots in kbd_buffer (Bug#6571).
2076
3a8ce822
EZ
20772010-07-07 Eli Zaretskii <eliz@gnu.org>
2078
2079 * msdos.h:
2080 * msdos.c:
2081 * dosfns.c:
2082 * w16select.c: Convert function definitions to ANSI C.
2083
a628ad9d
JB
2084 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2085 Remove unused prototypes.
3a8ce822 2086
cf84bb53
JB
20872010-07-07 Juanma Barranquero <lekktu@gmail.com>
2088
2089 * coding.c, sysdep.c: Convert some more functions to standard C.
2090
1a4990fb
JB
20912010-07-07 Juanma Barranquero <lekktu@gmail.com>
2092
2093 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2094 (encode_coding_object): Use SPECPDL_INDEX.
2095 (syms_of_coding): Use DOS_NT.
2096
c0f2f16b
DN
20972010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2098
48fb6855
DN
2099 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2100
c0f2f16b
DN
2101 Make the function member of Lisp_Subr use standard C prototypes.
2102 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2103 (DECL_ALIGN): Add a cast for the function.
2104 * eval.c (Feval, Ffuncall): Use the proper type for each type
2105 function call.
2106
67aecef9
CY
21072010-07-06 Chong Yidong <cyd@stupidchicken.com>
2108
2109 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2110 fringe face id, so face-remapping-alist works (Bug#6091).
2111
b56ceb92
JB
21122010-07-06 Juanma Barranquero <lekktu@gmail.com>
2113
2114 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2115 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2116 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2117
7af07b96
AS
21182010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2119
2120 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2121 * lisp.h: Declare x_get_keysym_name.
2122 * keyboard.c (modify_event_symbol): Don't declare
2123 x_get_keysym_name here.
2124
69e24e34
DN
21252010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2126
2127 * ecrt0.c: Revert conversion to standard C.
2128
d3da34e0 21292010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2130
2131 * vm-limit.c (memory_warnings):
2132 * keyboard.c (modify_event_symbol):
2133 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2134 (round2, emacs_rint):
2135 * process.c (send_process, old_sigpipe): Convert function
2136 definitions and declarations to standard C.
2137
21382010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2139
2140 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2141 * xdisp.c: Convert function definitions to standard C.
2142
2143 * cm.c (cmputc): Arg C is now int, not char.
2144 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2145
00be444c
J
21462010-07-05 James Cloos <cloos@jhcloos.com>
2147
2148 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2149
2150 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2151 _NET_WM_ICON_NAME atoms.
2152
2153 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2154 and _NET_WM_ICON_NAME properties, too, matching what is
2155 done in the Gtk+ case.
2156
e4c8d29a
J
21572010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2158
ff919460
J
2159 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2160
e4c8d29a
J
2161 * xsmfns.c (SSDATA): New macro.
2162 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2163 passed to strlen/strcpy/strcat.
2164 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2165 7:th arg to XChangeProperty to (unsigned char *)
2166
2167 * xsettings.c (something_changedCB, parse_settings)
2168 (apply_xft_settings): Reformat prototype.
2169 (something_changedCB, init_gconf): Remove unused variable i.
2170 (read_settings): Remove unused variable long_len.
2171
2172 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2173 (xg_get_image_for_pixmap, create_dialog)
2174 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2175 (menuitem_highlight_callback, make_menu_item)
2176 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2177 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2178 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2179 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2180 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2181 (xg_tool_bar_item_expose_callback): Reformat prototype.
2182 (xg_update_menubar): GList *group => GSList *group.
2183 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2184 before use.
2185 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2186 to GTK_IMAGE (wimage).
2187
dd4c5104
DN
21882010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2189
898b4c5c
DN
2190 * atimer.c: Use "" instead of <> for local includes for
2191 consistency with the rest of the code.
2192
dd4c5104
DN
2193 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2194 * xrdb.c (get_system_name):
2195 * window.c (shrink_windows):
2196 * syntax.c (forw_comment):
2197 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2198 (ins_del_costs):
2199 * mem-limits.h (start_of_data):
2200 * lread.c (readevalloop):
2201 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2202 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2203 * frame.c (x_get_focus_frame):
2204 * floatfns.c (fmod_float):
2205 * fileio.c (choose_write_coding_system):
2206 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2207 (malloc_initialize_hook, sort_args, synchronize_locale):
2208 * doprnt.c (doprnt):
2209 * dired.c (compile_pattern):
2210 * data.c (fmod_float):
2211 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2212 (map_char_table_for_charset):
2213 * charset.c (define_charset_internal):
2214 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2215 to standard C.
2216
9a39b306 22172010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2218 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2219
2220 * lread.c (read1): Fix up last change to not mess up `c'.
2221
e6cb2cbb
JB
22222010-07-04 Juanma Barranquero <lekktu@gmail.com>
2223
2224 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2225
438105ed
JB
22262010-07-04 Juanma Barranquero <lekktu@gmail.com>
2227
2228 Fix prototypes.
2229
e5447b22 2230 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2231 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2232 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2233 arg, as required by internal_condition_case_1.
dcc7404b 2234 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2235 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2236 (analyse_first): Fix "const const".
e5447b22 2237 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2238 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2239 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2240
971de7fb
DN
22412010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2242
2243 * alloc.c: Convert function definitions to standard C.
2244 * atimer.c:
2245 * bidi.c:
2246 * bytecode.c:
2247 * callint.c:
2248 * callproc.c:
2249 * casefiddle.c:
2250 * casetab.c:
2251 * category.c:
2252 * ccl.c:
2253 * character.c:
2254 * charset.c:
2255 * chartab.c:
2256 * cmds.c:
2257 * coding.c:
2258 * composite.c:
2259 * data.c:
2260 * dbusbind.c:
2261 * dired.c:
2262 * dispnew.c:
2263 * doc.c:
2264 * doprnt.c:
2265 * ecrt0.c:
2266 * editfns.c:
2267 * fileio.c:
2268 * filelock.c:
2269 * filemode.c:
2270 * fns.c:
2271 * font.c:
2272 * fontset.c:
2273 * frame.c:
2274 * fringe.c:
2275 * ftfont.c:
2276 * ftxfont.c:
2277 * gtkutil.c:
2278 * indent.c:
2279 * insdel.c:
2280 * intervals.c:
2281 * keymap.c:
2282 * lread.c:
2283 * macros.c:
2284 * marker.c:
2285 * md5.c:
2286 * menu.c:
2287 * minibuf.c:
2288 * prefix-args.c:
2289 * print.c:
2290 * ralloc.c:
2291 * regex.c:
2292 * region-cache.c:
2293 * scroll.c:
2294 * search.c:
2295 * sound.c:
2296 * strftime.c:
2297 * syntax.c:
2298 * sysdep.c:
2299 * termcap.c:
2300 * terminal.c:
2301 * terminfo.c:
2302 * textprop.c:
2303 * tparam.c:
2304 * undo.c:
2305 * unexelf.c:
2306 * window.c:
2307 * xfaces.c:
2308 * xfns.c:
2309 * xfont.c:
2310 * xftfont.c:
2311 * xgselect.c:
2312 * xmenu.c:
2313 * xrdb.c:
2314 * xselect.c:
2315 * xsettings.c:
2316 * xsmfns.c:
2317 * xterm.c: Likewise.
2318
ae492bec
EZ
23192010-07-03 Eli Zaretskii <eliz@gnu.org>
2320
76ea4cc9
EZ
2321 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2322 frames other than the initial one. Fix reversal of colors when
2323 `reverse' is specified in the frame parameters. Call
2324 update_face_from_frame_parameter instead of
2325 internal-set-lisp-face-attribute. Initialize screen colors from
2326 initial_screen_colors[] when f->default_face_done_p is zero,
2327 instead of depending on being called with default-frame-alist as
2328 the alist argument.
2329
2330 * xfaces.c (update_face_from_frame_parameter): Move out of
2331 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2332 with HAVE_WINDOW_SYSTEM.
2333
1e6255ae
EZ
2334 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2335 to menu-bar-mode, if not set in the frame parameters or in
2336 default-frame-alist.
2337
ae492bec
EZ
2338 * w32console.c (sys_tputs): Adjust argument list to prototype in
2339 term.c.
2340
3a35a84c
JB
23412010-07-03 Juanma Barranquero <lekktu@gmail.com>
2342
2343 * lisp.h (memory_warnings): Fix prototype.
2344
2345 * cm.h (evalcost): Fix prototype.
2346
2347 * cm.c (evalcost): Fix arg type.
2348
c532d349
DN
23492010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2350
2351 * term.c (term_clear_mouse_face, Fidentity):
2352 * syssignal.h (signal_handler_t):
2353 * lisp.h (memory_warnings):
2354 * coding.h (preferred_coding_system):
2355 * cm.h (evalcost):
2356 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2357
c0b36d46
EZ
23582010-07-02 Eli Zaretskii <eliz@gnu.org>
2359
2360 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2361 from prototypes.
2362
2363 * msdos.h (load_pixmap): Don't define away.
2364
383e0970
J
23652010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2366
f57e2426
J
2367 * lisp.h:
2368 * atimer.h: Remove define for P_.
2369
2370 * alloc.c: Remove __P and P_ from .c and .m files.
2371 * atimer.c:
2372 * buffer.c:
2373 * callint.c:
2374 * category.c:
2375 * charset.c:
2376 * chartab.c:
2377 * cm.c:
2378 * coding.c:
2379 * composite.c:
2380 * data.c:
2381 * dired.c:
2382 * dispnew.c:
2383 * doc.c:
2384 * editfns.c:
2385 * emacs.c:
2386 * eval.c:
2387 * fileio.c:
2388 * filelock.c:
2389 * fns.c:
2390 * font.c:
2391 * fontset.c:
2392 * frame.c:
2393 * ftfont.c:
2394 * ftxfont.c:
2395 * gmalloc.c:
2396 * gtkutil.c:
2397 * image.c:
2398 * indent.c:
2399 * intervals.c:
2400 * keyboard.c:
2401 * keymap.c:
2402 * lread.c:
2403 * marker.c:
2404 * menu.c:
2405 * minibuf.c:
2406 * print.c:
2407 * process.c:
2408 * scroll.c:
2409 * search.c:
2410 * sound.c:
2411 * strftime.c:
2412 * syntax.c:
2413 * sysdep.c:
2414 * term.c:
2415 * terminal.c:
2416 * textprop.c:
2417 * unexalpha.c:
2418 * w32console.c:
2419 * w32fns.c:
2420 * w32font.c:
2421 * w32menu.c:
2422 * w32term.c:
2423 * w32uniscribe.c:
2424 * window.c:
2425 * xdisp.c:
2426 * xfaces.c:
2427 * xfns.c:
2428 * xfont.c:
2429 * xftfont.c:
2430 * xmenu.c:
2431 * xselect.c:
2432 * xterm.c: Likewise.
2433
383e0970 2434 Remove P_ and __P macros.
f57e2426
J
2435 * atimer.h: Remove P_ and __P macros.
2436 * buffer.h:
383e0970
J
2437 * category.h:
2438 * ccl.h:
2439 * character.h:
2440 * charset.h:
2441 * cm.h:
2442 * coding.h:
2443 * composite.h:
2444 * dispextern.h:
2445 * disptab.h:
9e892c8d 2446 * dosfns.h:
383e0970
J
2447 * font.h:
2448 * fontset.h:
2449 * frame.h:
2450 * gtkutil.h:
2451 * indent.h:
2452 * intervals.h:
2453 * keyboard.h:
2454 * keymap.h:
2455 * lisp.h:
2456 * macros.h:
2457 * md5.h:
2458 * menu.h:
2459 * msdos.h:
2460 * nsterm.h:
2461 * puresize.h:
2462 * region-cache.h:
2463 * syntax.h:
2464 * syssignal.h:
2465 * systime.h:
2466 * termhooks.h:
9e892c8d 2467 * w32font.h:
383e0970
J
2468 * w32term.h:
2469 * widget.h:
2470 * window.h:
2471 * xgselect.h:
2472 * xsettings.h:
2473 * xterm.h: Likewise.
2474
98601119
DN
24752010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2476
d9170db5
DN
2477 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2478
98601119
DN
2479 Cleanup old code.
2480 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2481 * syssignal.h: Remove code for Lynx, not supported anymore.
2482 * vm-limit.c: Remove unused code the depends on emacs not being
2483 defined and NO_LIM_DATA being defined.
2484 * mem-limits.h: Remove dead code.
2485
1f984e12
J
24862010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2487
c49d071a
J
2488 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2489
9d5405ec
J
2490 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2491 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2492
7a18115b
J
2493 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2494 parameters, they are already absolute.
2495
a628ad9d
JB
2496 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2497 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2498
a628ad9d 2499 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2500
a628ad9d
JB
2501 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2502 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2503
a628ad9d
JB
2504 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2505 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2506
c1ef4455
CY
25072010-06-30 Chong Yidong <cyd@stupidchicken.com>
2508
2509 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2510 check default-frame-alist.
2511
ce8f5a9a
AS
25122010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2513
2514 * process.c (create_process): Avoid using invalid file descriptors.
2515
2516 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2517
bf935339
J
25182010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2519
2520 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2521 Improve documentation. Return font regardless of use_system_font.
2522 (syms_of_xsettings): Improve documentation for font-use-system-font.
2523
7c33a057
CY
25242010-07-10 Chong Yidong <cyd@stupidchicken.com>
2525
2ec1b5ee
CY
2526 * xfaces.c (realize_face): Garbage the frame if a face is removed
2527 (Bug#6593).
2528
25292010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2530
2531 * keyboard.c: Remove duplicate <setjmp.h>.
2532 (read_key_sequence): Remove volatile qualifiers.
2533
25342010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2535
2536 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2537 (struct glyph_row): New members left_fringe_offset and
2538 right_fringe_offset.
2539
2540 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2541 specially.
2542 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2543 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2544
2545 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2546 Take account of bitmap offset.
2ec1b5ee
CY
2547 (draw_window_fringes): Take account of window vscroll.
2548 (update_window_fringes): Likewise. Extend top-aligned top indicator
2549 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2550 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2551 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2552
25532010-07-04 Juanma Barranquero <lekktu@gmail.com>
2554
2555 * w32fns.c (Qtooltip): Declare.
2556 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2557
25582010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2559
2560 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2561 grab on just Press (Bug#6499).
2562
25632010-07-02 Chong Yidong <cyd@stupidchicken.com>
2564
2565 * frame.c (Qtooltip): New var.
2566 (delete_frame): Use it. Fix faulty if statement. Don't update
2567 mode line for tooltip frames. Suggested by Martin Rudalics.
2568
2569 * xfns.c (x_create_tip_frame):
2570 * w32fns.c (x_create_tip_frame): Use it.
2571
25722010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2573
2574 * xftfont.c (xftfont_open): Check font width one by one also when
2575 spacing is dual.
2576
2577 * ftfont.c (ftfont_open): Ditto.
2578
6259c2ec
GM
25792010-06-30 Glenn Morris <rgm@gnu.org>
2580
a46007e9
GM
2581 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2582
6259c2ec
GM
2583 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2584
2585 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2586 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2587 * s/darwin.h (SYSTEM_MALLOC):
2588 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2589
5d1d3d04
J
25902010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2591
2592 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2593 (ns_get_screen): Don't assign integer to f.
2594 (Fx_display_color_cells): Declarations before statements.
2595
e547b051
J
25962010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2597
5fc8e5bc
J
2598 * xfns.c (x_default_font_parameter): Remove got_from_system
2599 (Bug#6526).
2600
e547b051
J
2601 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2602 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2603 defines based on what configure finds.
2604
2605 * xterm.c (XTflash): Use gtk_widget_get_window.
2606 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2607 gtk_adjustment_get_page_size.
2608 (handle_one_xevent): Use gtk_widget_get_mapped.
2609 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2610 messages.
2611
2612 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2613
2614 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2615 HAVE_GTK_FILE_SELECTION_NEW.
2616
2617 * gtkutil.c (xg_display_open, xg_display_close): Remove
2618 HAVE_GTK_MULTIDISPLAY, it is always defined.
2619 (xg_display_open): Return type is void.
2620 (gtk_widget_set_has_window)
2621 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2622 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2623 (gtk_adjustment_set_page_increment)
2624 (gtk_adjustment_get_step_increment): #define these if not found
2625 by configure.
2626 (remove_submenu): New define based on Gtk+ version.
2627 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2628 gtk_widget_get_window.
2629 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2630 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2631 (create_dialog): Use gtk_dialog_get_action_area and
2632 gtk_dialog_get_content_area.
2633 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2634 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2635 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2636 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2637 g_object_ref and g_object_unref.
2638 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2639 gtk_widget_get_sensitive.
2640 (xg_update_submenu): Use remove_submenu.
2641 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2642 properties instead to get old x and y position.
2643 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2644 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2645 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2646 (xg_get_tool_bar_widgets): New function.
2647 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2648 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2649 (toolbar_set_orientation): New #define based on if configure
2650 finds gtk_orientable_set_orientation.
2651 (xg_create_tool_bar): Call toolbar_set_orientation.
2652 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2653 instead of gtk_box_pack_start_defaults.
2654
b9229673
CY
26552010-06-28 Chong Yidong <cyd@stupidchicken.com>
2656
2657 * cmds.c (Fdelete_backward_char): Move into Lisp.
2658
bbc803b0
DN
26592010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2660
2661 * s/freebsd.h (BSD4_2): Remove redundant definition.
2662 bsd-common.h defines it already.
2663
6431f2e6
CY
26642010-06-27 Chong Yidong <cyd@stupidchicken.com>
2665
2666 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2667 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2668 tool-bar-mode, which are now set using these X resources at
2669 startup, to determine the defaults (Bug#2249).
2670
2671 * w32fns.c (Fx_create_frame):
2672 * nsfns.m (Fx_create_frame): Likewise.
2673
2674 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2675
8c079ebb
JB
26762010-06-24 Juanma Barranquero <lekktu@gmail.com>
2677
2678 * gtkutil.c (xg_update_scrollbar_pos):
2679 Avoid C99 mid-block variable declaration.
2680
e9b7ab96
JD
26812010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2682
bc869eca
JD
2683 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2684
2b7e356a 2685 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2686
2687 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2688 if height is less than scroll bar min size.
2689 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2690
e9b7ab96
JD
2691 * xfns.c (x_default_font_parameter): Try to open font from system
2692 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2693
a628ad9d 26942010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2695
2696 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2697
70c4cfbb
EZ
26982010-06-20 Eli Zaretskii <eliz@gnu.org>
2699
2700 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2701 most-positive-fixnum, be extra accurate when scrolling window
2702 start, to avoid missing the cursor line.
2703
ad5a12b5
EZ
27042010-06-19 Eli Zaretskii <eliz@gnu.org>
2705
2706 * xdisp.c (try_scrolling): Compute the limit for searching point
2707 in forward scroll from scroll_max, instead of an arbitrary limit
2708 of 10 screen lines. See
2709 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2710 and
2711 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2712 for details.
2713
2a64315a 27142010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2715
2716 * editfns.c (Fbyte_to_string): Pacify compiler.
2717
288cf4e9
SM
27182010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2719
2720 * lread.c (read1): Phase out old-style backquotes a bit more.
2721
6e6e5760
EZ
27222010-06-12 Eli Zaretskii <eliz@gnu.org>
2723
cbc4fd20
EZ
2724 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2725 bidimirror.h.
2726
2727 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2728
317fbf33
EZ
2729 * bidi.c (bidi_initialize): Remove explicit initialization of
2730 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2731 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2732 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2733
2734 * biditype.h: New file.
2735
cbc4fd20
EZ
2736 * bidimirror.h: New file.
2737
6e6e5760
EZ
2738 * window.c (syms_of_window): Doc fix (bug#6409).
2739
4176cba2
RF
27402010-06-12 Romain Francoise <romain@orebokech.com>
2741
2742 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2743 ediff-hook.
2744
cb4bfcb5
GM
27452010-06-10 Glenn Morris <rgm@gnu.org>
2746
64c60c2f
GM
2747 * editfns.c (Fbyte_to_string): Pacify compiler.
2748
cb4bfcb5
GM
2749 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2750
2ec1b5ee
CY
27512010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2752
2753 * alloc.c (Fmake_byte_code): Don't access undefined argument
2754 (Bug#6517).
2755
27562010-06-25 Chong Yidong <cyd@stupidchicken.com>
2757
2758 * xdisp.c (next_element_from_image): Ensure that after-strings are
2759 read the next time we hit handle_stop (Bug#1336).
2760
27612010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2762
2763 * lread.c (read1): Signal error if #s is not followed by paren.
2764
27652010-06-19 Chong Yidong <cyd@stupidchicken.com>
2766
2767 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2768
2769 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2770
27712010-06-15 Glenn Morris <rgm@gnu.org>
2772
2773 * editfns.c (Fbyte_to_string): Pacify compiler.
2774
e454a4a3
SM
27752010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2776
2777 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2778 Check `object's type before accessing its guts.
2779
c1b1acc2
DN
27802010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2781
2782 * s/usg5-4.h: Fix previous change.
2783 Suggested by Lawrence Mitchell <wence@gmx.li>
2784
657d4c0b
AS
27852010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2786
2787 * minibuf.c (Fall_completions): Add more checks.
2788
9b27fd9f
JB
27892010-06-08 Juanma Barranquero <lekktu@gmail.com>
2790
2791 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2792
a99ebb40
DN
27932010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2794
d7c5d87d
DN
2795 * lread.c (X_OK): Remove, unused.
2796
0263a941
DN
2797 * dispnew.c: Remove obsolete comment.
2798
a99ebb40
DN
2799 Remove INCLUDED_FCNTL.
2800 * xterm.c (INCLUDED_FCNTL):
2801 * callproc.c (INCLUDED_FCNTL):
2802 * alloc.c (INCLUDED_FCNTL):
2803 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2804 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2805
13b5221f
MR
28062010-06-07 Martin Rudalics <rudalics@gmx.at>
2807
2808 * window.c (Fselect_window): Move `record_buffer' up to the
2809 beginning of this function, so the buffer gets recorded
2810 even if the selected window does not change.
2811 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2812
5220357f
JB
28132010-06-07 Juanma Barranquero <lekktu@gmail.com>
2814
2815 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2816 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2817
3085237c
DN
28182010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2819
2820 Remove BSTRING related code, all platforms define it.
2821 * s/usg5-4.h (BSTRING): Remove definition.
2822 * s/template.h (BSTRING):
2823 * s/msdos.h (BSTRING):
2824 * s/ms-w32.h (BSTRING):
2825 * s/hpux10-20.h (BSTRING):
2826 * s/gnu-linux.h (BSTRING):
2827 * s/darwin.h (BSTRING):
2828 * s/cygwin.h (BSTRING):
2829 * s/bsd-common.h (BSTRING):
2830 * s/aix4-2.h (BSTRING): Likewise.
2831 * sysdep.c: Remove code depending on BSTRING not being defined.
2832
409f2919
JB
28332010-06-05 Juanma Barranquero <lekktu@gmail.com>
2834
2835 Remove obsolete macro BASE_LEADING_CODE_P.
2836 * character.h (BASE_LEADING_CODE_P): Remove.
2837 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2838 * buffer.c (Fset_buffer_multibyte):
2839 * indent.c (scan_for_column, compute_motion):
2840 * insdel.c (count_combining_before, count_combining_after):
2841 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2842
087fc47a
JB
28432010-06-04 Juanma Barranquero <lekktu@gmail.com>
2844
2845 Turn `directory-sep-char' into a noop.
2846
2847 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2848 (DIRECTORY_SEP): Define unconditionally.
2849
2850 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2851
2852 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2853 call dostounix_filename directly.
2854
2855 * fileio.c (CORRECT_DIR_SEPS): Remove.
2856 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2857 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2858 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2859 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2860
2861 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2862 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2863
0eb7675e
AS
28642010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2865
a628ad9d
JB
2866 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2867 (Bug#6346)
0eb7675e 2868
78edd3b7
JB
28692010-06-03 Juanma Barranquero <lekktu@gmail.com>
2870
2871 * ccl.c (Fccl_program_p): Fix typo in docstring.
2872
eb697db5
DN
28732010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2874
2875 Move UNEXEC definition to autoconf.
2876 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2877 * s/sol2-10.h (UNEXEC):
2878 * s/irix6-5.h (UNEXEC):
2879 * s/hpux10-20.h (UNEXEC):
2880 * s/gnu-linux.h (UNEXEC):
2881 * s/darwin.h (UNEXEC):
2882 * s/cygwin.h (UNEXEC):
2883 * s/bsd-common.h (UNEXEC):
2884 * s/aix4-2.h (UNEXEC):
2885 * m/alpha.h (UNEXEC): Likewise.
2886 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2887
aa3830c4
JB
28882010-06-03 Juanma Barranquero <lekktu@gmail.com>
2889
2890 Remove obsolete pre-unicode2 macros.
2891 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2892 * composite.c (composition_reseat_it):
2893 * data.c (Faset):
2894 * fns.c (Ffillarray):
2895 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2896 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2897
d234d13e
JL
28982010-06-03 Juri Linkov <juri@jurta.org>
2899
2900 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2901 (Fswitch_to_buffer): Remove unused variable `err'.
2902
0d4bcf4d
GM
29032010-06-03 Glenn Morris <rgm@gnu.org>
2904
e23dc1e2
GM
2905 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2906
05b09564
GM
2907 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2908 now that AH_BOTTOM does it.
2909
824e2978
GM
2910 * m/hp800.h (HAVE_ALLOCA):
2911 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2912
0d4bcf4d
GM
2913 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2914 Remove NOT_C_CODE tests, it is always true now.
2915
c55d2abf
DN
29162010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2917
08a494a3
DN
2918 Fix config.h includes.
2919 * xsettings.c:
2920 * xgselect.c:
2921 * nsterm.m:
2922 * nsselect.m:
2923 * nsimage.m:
2924 * nsfont.m:
2925 * nsfns.m:
2926 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2927 other files do.
2928
75934b1d
DN
2929 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2930
9f32a766
DN
2931 * s/sol2-6.h: Remove obsolete comments.
2932
c55d2abf
DN
2933 Remove unnecessary alloca.h includes.
2934 * keymap.c: Do not include alloca.h, config.h does that.
2935 * sysdep.c: Likewise. Do not define fwrite, not used.
2936
06ac62b4
SM
29372010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2938
2939 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2940 the HAVE_TERMIO where it belongs (bug#6149).
2941
1ab8293c
SM
29422010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2943
2944 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2945 of bug#6305).
2946
6dcfd253
EZ
29472010-05-30 Eli Zaretskii <eliz@gnu.org>
2948
2949 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2950 state is always cached (bug#6306).
2951
6d26bbb2
EZ
29522010-05-29 Eli Zaretskii <eliz@gnu.org>
2953
06fa4a23
EZ
2954 Fix cursor motion in bidi-reordered continued lines.
2955 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2956 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2957 over continuation lines in bidi-reordered buffers. Return
2958 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2959 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2960
f5783df3
MA
29612010-05-28 Michael Albinus <michael.albinus@gmx.de>
2962
2963 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2964
7d56b2dd
KH
29652010-05-28 Kenichi Handa <handa@m17n.org>
2966
2967 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2968 Don't sheck SPEC if it is nil.
2969 (font_list_entities): Call font_delete_unmatched if
b925d231 2970 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2971
e58d4ff7
GM
29722010-05-28 Glenn Morris <rgm@gnu.org>
2973
2974 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2975
f1a5d776
CY
29762010-05-27 Chong Yidong <cyd@stupidchicken.com>
2977
2978 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2979 whether to trash.
2980 (internal_delete_file, Frename_file): Callers changed.
2981 (delete_by_moving_to_trash): Doc fix.
2982 (Fdelete_directory_internal): Don't move to trash.
2983
2984 * callproc.c (delete_temp_file):
2985 * buffer.c (Fkill_buffer): Callers changed.
2986
2987 * lisp.h: Update prototype.
2988
f44a59e6
CY
29892010-05-27 Chong Yidong <cyd@stupidchicken.com>
2990
2991 * xdisp.c (redisplay_window): After redisplay, check if point is
2992 still valid before setting it (Bug#6177).
2993
81ac4f35
GM
29942010-05-27 Glenn Morris <rgm@gnu.org>
2995
2996 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2997 Convert comments to Makefile format.
2998
2999 * Makefile.in (bootstrap-clean): No more Makefile.c.
3000
ccd89fb3
GM
30012010-05-26 Glenn Morris <rgm@gnu.org>
3002
90278cb6
GM
3003 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3004 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3005
ccd89fb3
GM
3006 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3007 Remove.
3008 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3009
b7050583
KH
30102010-05-26 Kenichi Handa <handa@m17n.org>
3011
3012 * composite.c (composition_compute_stop_pos): Fix condition for
3013 backward scanning.
3014
e5458003
GM
30152010-05-25 Glenn Morris <rgm@gnu.org>
3016
c345fe90
GM
3017 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3018 Move before TEMACS_LDFLAGS.
3019 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3020 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3021
2e0689ab
GM
3022 * Makefile.in (NOT_C_CODE): No longer define.
3023 (config.h): No longer include.
3024
8009a5e8
GM
3025 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3026 variables it may reference.
3027
e5458003
GM
3028 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3029 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3030
10f72a37
KH
30312010-05-25 Kenichi Handa <handa@m17n.org>
3032
3033 * dispextern.h (struct composition_it): New members rule_idx and
3034 charpos.
3035
3036 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3037 that the character positions of IT point the last character of the
3038 current grapheme cluster.
3039 (next_element_from_composition): Don't change character positions
3040 of IT.
3041 (append_composite_glyph): Set glyph->charpos to
3042 it->cmp_it.charpos.
3043
3044 * composite.c (autocmp_chars): Change the first argument to RULE,
3045 and try composition with RULE only.
3046 (composition_compute_stop_pos): Record the index number of the
3047 composition rule in CMP_IT->rule_idx.
3048 (composition_reseat_it): Call autocmp_chars repeatedly until the
3049 correct rule of the composition is found.
3050 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3051 is at the last character of the current grapheme cluster when
3052 CMP_IT->reversed_p is nonzero.
3053
171eda53 30542010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3055
171eda53
SM
3056 * editfns.c (Fbyte_to_string): New function.
3057
66a9f7f4
SM
30582010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3059
3060 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3061 Suggested by Masatake YAMATO <yamato@redhat.com>.
3062
d8c315d1
EZ
30632010-05-23 Eli Zaretskii <eliz@gnu.org>
3064
171eda53 3065 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3066
f5b416d2 30672010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3068
3069 * s/netbsd.h: If terminfo is found, use it in preference to
3070 termcap. (Bug#6190) [Backport from trunk]
3071
0416466c
EZ
30722010-05-19 Eli Zaretskii <eliz@gnu.org>
3073
11117830 3074 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3075
3076 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3077 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3078 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3079 and maxpos members instead of start.pos and end.pos, respectively.
3080
3081 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3082 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3083 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3084 (try_window_reusing_current_matrix, try_window_id):
3085 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3086 (init_from_display_pos, init_iterator): Use EMACS_INT for
3087 character and byte positions.
66a9f7f4 3088 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3089 arguments for minimum and maximum buffer positions seen by
3090 display_line for this row. Don't use iterator to find the
3091 position following the maximum one; instead, increment the
11117830
EZ
3092 position found by display_line directly. Fix logic; eol_pos
3093 should be tested before the rest. Handle the case of characters
3094 delivered from display vector (bug#6036). Fix tests related to
3095 it->method. Handle the truncated_on_right_p rows.
3096 (RECORD_MAX_MIN_POS): New macro.
3097 (display_line): Use it to record the minimum and maximum buffer
3098 positions for glyphs in the row being assembled. Record the
3099 position of the newline that terminates the line. If word wrap is
3100 in effect, restore minimum and maximum positions seen up to the
3101 wrap point, when iterator returns to it.
3102 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3103 row and cursor not already at point. Restore original pre-bidi
3104 code for unidirectional buffers.
d36fe237
EZ
3105
3106 * dispnew.c (increment_row_positions, check_matrix_invariants):
3107 Increment and check row->start.pos and row->end.pos, in addition
3108 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3109
11117830
EZ
3110 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3111 Display truncated_on_left_p and truncated_on_right_p flags.
3112 Formatting fixes.
3113 (pmtxrows): Display the ordinal number of each row. Don't display
3114 rows beyond the last one.
3115
3116 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3117 it is not copied by bidi_copy_it.
3118
6e83d800
EZ
31192010-05-22 Eli Zaretskii <eliz@gnu.org>
3120
3121 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3122 (Bug#6237)
3123
110683ad
CY
31242010-05-22 Chong Yidong <cyd@stupidchicken.com>
3125
3126 * image.c (Fimage_flush): Rename from image-refresh.
3127
98fe5161
CY
31282010-05-21 Chong Yidong <cyd@stupidchicken.com>
3129
3130 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3131 just one window.
3132
3133 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3134 (clear_image_cache): If the number of cached images is unusually
3135 large, decrease the cache eviction delay (Bug#6230).
3136
e8752c66
GM
31372010-05-21 Glenn Morris <rgm@gnu.org>
3138
66dbf213
GM
3139 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3140 Move these rules to ns.mk.
3141 * ns.mk: New file.
3142
04384b2d
GM
3143 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3144
e8752c66
GM
3145 * Makefile.in (CANNOT_DUMP): New, set by configure.
3146 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3147
2e2bbddb
JL
31482010-05-20 Juri Linkov <juri@jurta.org>
3149
3150 * fileio.c (Fdelete_file): Change interative spec to use
3151 `read-file-name' like in `find-file-read-args' where the default
3152 value is `default-directory' instead of `buffer-file-name'.
3153 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3154
31c4aaf6
KR
31552010-05-20 Kevin Ryde <user42@zip.com.au>
3156
3157 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3158 (Voverriding_terminal_local_map, Vsystem_key_alist)
3159 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3160
9d5cf9b6
GM
31612010-05-20 Glenn Morris <rgm@gnu.org>
3162
3163 * Makefile.in (DEPDIR): New constant.
3164 (DEPFLAGS): Set with configure, not cpp.
3165 (MKDEPDIR): New, set by configure.
3166 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3167 (clean): Use $DEPDIR.
3168 (deps_frag): Include from configure.
3169 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3170 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3171
ead6f8f5
EZ
3172 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3173 reallocation of the cache. (Bug#6210)
3174
7f34aec3
GM
31752010-05-19 Glenn Morris <rgm@gnu.org>
3176
d494e8f2
GM
3177 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3178
c1d0dcfd
GM
3179 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3180 (GNULIB_VAR): Remove.
3181 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3182
3183 * m/ibms390x.h (LINKER):
3184 * m/macppc.h (LINKER) [GNU_LINUX]:
3185 * s/aix4-2.h (ORDINARY_LINK):
3186 * s/cygwin.h (LINKER):
3187 * s/darwin.h (ORDINARY_LINK):
3188 * s/gnu.h (ORDINARY_LINK):
3189 * s/netbsd.h (LINKER):
3190 * s/usg5-4.h (ORDINARY_LINK):
3191 Move to configure.
3192
7f34aec3
GM
3193 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3194
754790b6
CY
31952010-05-18 Chong Yidong <cyd@stupidchicken.com>
3196
3197 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3198 prevent stack overflow if number of arguments is too large
3199 (Bug#6214).
3200
161e44d1
JB
32012010-05-18 Juanma Barranquero <lekktu@gmail.com>
3202
3203 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3204
be4ff9da
GM
32052010-05-18 Glenn Morris <rgm@gnu.org>
3206
9539dc5d
GM
3207 * s/gnu-linux.h: Combine two conditionals.
3208
3209 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3210 $(POST_ALLOC_OBJ).
3211
40dc6bf4
GM
3212 * Makefile.in (RALLOC_OBJ): New, set by configure.
3213 (rallocobj): Replace with the previous variable.
3214 (otherobj): Use $RALLOC_OBJ.
3215
3216 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3217 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3218
be4ff9da
GM
3219 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3220 (gmallocobj, vmlimitobj): Replace with previous two variables.
3221 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3222
16455a85
GM
32232010-05-17 Glenn Morris <rgm@gnu.org>
3224
3225 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3226 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3227
5fdb7468
GM
32282010-05-16 Glenn Morris <rgm@gnu.org>
3229
7ca1f3f9
GM
3230 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3231
7541dad5
GM
3232 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3233
da53fab9
GM
3234 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3235 trailing "/".
3236
b02a6645
GM
3237 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3238 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3239
8877ca0f
GM
3240 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3241 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3242 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3243 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3244 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3245
5fdb7468
GM
3246 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3247 Remove ${STARTFLAGS}, nothing ever sets it.
3248
95adb4b1
DN
32492010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3250
3251 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3252
676b6304
GM
32532010-05-16 Glenn Morris <rgm@gnu.org>
3254
9beab9ce
GM
3255 * Makefile.in (LIBX_BASE): Always define.
3256
8a95f0e7
GM
3257 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3258
676b6304
GM
3259 * Makefile.in (LIBXT): Always define.
3260
6e546d18
GM
32612010-05-15 Glenn Morris <rgm@gnu.org>
3262
4235ca47 3263 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3264
6e546d18
GM
3265 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3266 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3267
8c5ff6dd
KR
32682010-05-15 Ken Raeburn <raeburn@raeburn.org>
3269
560bb7ae 3270 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3271 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3272
8b4eb796
KR
3273 * emacs.c (main): Initialize initial-environment and
3274 process-environment before generating from env, not after.
3275
8c5ff6dd
KR
3276 Handle --version reasonably in CANNOT_DUMP configuration.
3277 * emacs.c (emacs_version, emacs_copyright): New string variables.
3278 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3279 (syms_of_emacs): Defvar them, and initialize them from the C
3280 string variables.
3281 (main): If initialization hasn't been done, print initial version
3282 info from the C strings, instead of starting an interactive session.
3283
dbd3f723
EZ
32842010-05-15 Eli Zaretskii <eliz@gnu.org>
3285
d20e1419
EZ
3286 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3287 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3288 (bidi_paragraph_init): Remove redundant assertion that we are at
3289 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3290
3291 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3292 (syms_of_xdisp): Defsubr it.
3293
d36fe237
EZ
3294 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3295
dbd3f723
EZ
3296 * Makefile.in: Fix MSDOS-related comments.
3297
02be533b
GM
32982010-05-15 Glenn Morris <rgm@gnu.org>
3299
1a82cca9
GM
3300 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3301 (really-lwlib, really-oldXMenu): Always define.
3302 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3303
3df7b338
GM
3304 * Makefile.in: Simplify cpp conditional.
3305
2b5f541b
GM
3306 * Makefile.in (${ns_appdir}): Simplify using umask.
3307
02be533b
GM
3308 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3309
4e2db1fe
SM
33102010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3311
3312 * eval.c (specbind): Remove left-over duplicate test.
3313 Disallow let-binding frame-local vars. Add comment.
3314
4b292a22
EZ
33152010-05-14 Eli Zaretskii <eliz@gnu.org>
3316
2fe72643 3317 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3318 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3319 (bidi_init_it): Call it.
3320 (bidi_cache_iterator_state): Enlarge the cache if needed.
3321
4e2db1fe 3322 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3323 bidi_get_next_char_visually. All callers changed.
3324
82ebc97b
KH
33252010-05-14 Kenichi Handa <handa@m17n.org>
3326
3327 * dispextern.h (struct composition_it): New member reversed_p.
3328
3329 * composite.c (composition_compute_stop_pos): Search backward if
3330 ENDPOS < CHARPOS.
3331 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3332 Set CMP_IT->reversed_p.
b4b6e17e 3333 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3334
4e2db1fe
SM
3335 * xdisp.c (set_iterator_to_next):
3336 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3337 scanning backward. Call composition_compute_stop_pos if scan
3338 direction is changed.
3339 (next_element_from_buffer): Call composition_compute_stop_pos with
3340 negative ENDPOS if we are scanning backward.
3341 (next_element_from_composition): Pay attention to
3342 IT->cmp_it.reversed_p.
3343
0e5d7800
KH
33442010-05-14 Kenichi Handa <handa@m17n.org>
3345
560bb7ae 3346 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3347
cb027b32
GM
33482010-05-14 Glenn Morris <rgm@gnu.org>
3349
177b0288
GM
3350 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3351
fbc00890
GM
3352 * Makefile.in (mktime, X11, register): Move undefs to configure.
3353
f14d1dfd
GM
3354 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3355 (MSDOS_X_OBJ): New variable.
3356 (MSDOS_SUPPORT_REAL): New constant.
3357 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3358 (obj): Use MSDOS_X_OBJ.
3359 (lisp): Use MSDOS_SUPPORT as a variable.
3360
11842bd8
GM
3361 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3362 (GPM_MOUSE_SUPPORT): Now it's a constant.
3363 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3364 not cpp.
3365
489d31a4 3366 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3367 (ns_appresdir): Remove, unused.
e20f1f07 3368
489d31a4
GM
3369 * Makefile.in (SHELL): Move outside cpp section.
3370
cb027b32
GM
3371 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3372
5a903aa9
GM
33732010-05-13 Glenn Morris <rgm@gnu.org>
3374
3369c79f
GM
3375 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3376 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3377
d5e982a6
GM
3378 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3379 HAVE_WINDOW_SYSTEM must be too.
3380
6192e163
GM
3381 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3382 (lisp): Remove WINNT_SUPPORT.
3383
472c5d6b
GM
3384 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3385 Let configure set these variables (to empty) in this case as well.
3386
0116466b
GM
3387 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3388 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3389
5a903aa9
GM
3390 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3391 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3392 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3393 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3394 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3395 the values output by configure.
5a903aa9
GM
3396 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3397
1a0d7c06
GM
33982010-05-12 Glenn Morris <rgm@gnu.org>
3399
b5457f14
GM
3400 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3401 (LINKER_WAS_SPECIFIED): Remove.
3402
1a0d7c06
GM
3403 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3404 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3405 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3406 * s/cygwin.h (LIB_GCC):
3407 * s/freebsd.h (LIB_GCC):
3408 * s/gnu-linux.h (LIB_GCC):
3409 * s/msdos.h (LIB_GCC):
3410 * s/netbsd.h (LIB_GCC):
3411 Move to configure.
3412
3ffd4615 34132010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3414
3415 * ftfont.c: Fix incorrect parentheses of #if condition for
3416 definining M17N_FLT_USE_NEW_FEATURE.
3417
acddf8ae
GM
34182010-05-11 Glenn Morris <rgm@gnu.org>
3419
3420 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3421 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3422
ae5e04fa
EZ
34232010-05-10 Eli Zaretskii <eliz@gnu.org>
3424
3425 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3426 unibyte buffers. See
3427 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3428
7490175b
GM
34292010-05-10 Glenn Morris <rgm@gnu.org>
3430
97efb629
GM
3431 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3432 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3433 (LIBES): Use LIBS_SYSTEM as a variable.
3434 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3435 * s/aix4-2.h (LIBS_SYSTEM):
3436 * s/freebsd.h (LIBS_SYSTEM):
3437 * s/hpux10-20.h (LIBS_SYSTEM):
3438 * s/sol2-6.h (LIBS_SYSTEM):
3439 * s/unixware.h (LIBS_SYSTEM):
3440 Move to configure.
3441
7490175b
GM
3442 * s/aix4-2.h (MAIL_USE_LOCKF):
3443 * s/bsd-common.h (MAIL_USE_FLOCK):
3444 * s/darwin.h (MAIL_USE_FLOCK):
3445 * s/gnu-linux.h (MAIL_USE_FLOCK):
3446 * s/irix6-5.h (MAIL_USE_FLOCK):
3447 * s/template.h (MAIL_USE_FLOCK):
3448 Move to configure.
3449
0235128c 34502010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3451
3452 * Version 23.2 released.
3453
0235128c 34542010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3455
3456 * composite.c (autocmp_chars): Save point as marker before calling
3457 auto-composition-function (Bug#5984).
3458
3459 * lisp.h (restore_point_unwind): Add prototype.
3460
3461 * fileio.c (restore_point_unwind): Remove static attribute.
3462
0235128c 34632010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3464
3465 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3466 new feature of libotf and m17n-flt.
0235128c
SM
3467 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3468 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3469 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3470 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3471 that OUT is NULL. Use OTF_drive_gsub_with_log and
3472 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3473 OTF_drive_gpos.
3474 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3475 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3476 Setup mflt_enable_new_feature and mflt_try_otf.
3477
4721152c
J
34782010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3479
3480 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3481
3482 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3483 box and toolbar (Bug #6139).
3484 (xg_create_tool_bar): Remove comment (Bug #6139).
3485 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3486 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3487
ee0a16cf
JB
34882010-05-08 Juanma Barranquero <lekktu@gmail.com>
3489
3490 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3491 Update dependencies.
3492
96d79611
EZ
34932010-05-08 Eli Zaretskii <eliz@gnu.org>
3494
3495 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3496 R2L lines.
3497
40c17879
GM
34982010-05-08 Glenn Morris <rgm@gnu.org>
3499
7b42b29f
GM
3500 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3501
40c17879
GM
3502 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3503 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3504 (termcapobj): Replace with TERMCAP_OBJ.
3505 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3506 (LIBES): Use LIBS_TERMCAP as a variable.
3507
3508 * s/freebsd.h (osreldate.h): No longer include, since this file
3509 does not use __FreeBSD_version any more.
3510
3511 * s/aix4-2.h (TERMINFO):
3512 * s/cygwin.h (TERMINFO):
3513 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3514 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3515 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3516 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3517 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3518 * s/irix6-5.h (TERMINFO):
3519 * s/netbsd.h (LIBS_TERMCAP):
3520 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3521 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3522 * s/usg5-4.h (TERMINFO):
3523 Move to configure.
3524
94b612ad
SM
35252010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3526
3527 * eval.c (unbind_to): Don't unbind a local binding into the global
3528 binding when the local binding disappeared. Inversely, don't unbind
3529 a global binding into a newly created local binding.
3530 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3531 can specify the frame to use, when applicable. Adjust callers.
3532
15e12598 35332010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3534 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3535
3536 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3537
f724825e
EZ
35382010-05-07 Eli Zaretskii <eliz@gnu.org>
3539
5cba3209
EZ
3540 * w32fns.c: Include w32.h.
3541 (Fw32_shell_execute): Decode the error message before passing it
3542 to `error'. (Bug#6126)
3543
d16bdfc3
EZ
3544 * msdos.c (dos_set_window_size):
3545 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3546 instead of `XSYMBOL (foo)->value'.
3547
59d93e87
EZ
35482010-05-07 Eli Zaretskii <eliz@gnu.org>
3549
9fdec8bc
EZ
3550 Fix the MS-DOS build, broken by autoconfiscation.
3551
3552 * Makefile.in: Don't use Make-style comments past the "start of
3553 cpp stuff" line.
3554 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3555
3556 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3557 edited directly by msdos/sed1v2.inp).
f724825e 3558
2f86b22b
GM
35592010-05-07 Glenn Morris <rgm@gnu.org>
3560
3561 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3562 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3563 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3564 move out of cpp section.
3565 * s/freebsd.h (LD_SWITCH_SYSTEM):
3566 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3567 * s/netbsd.h (LD_SWITCH_SYSTEM):
3568 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3569
49ebbd65
DN
35702010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3571
3572 Define LIB_STANDARD and START_FILES using autoconf.
3573 * s/usg5-4.h (LIB_STANDARD):
3574 * s/netbsd.h (START_FILES):
3575 * s/irix6-5.h (LIB_STANDARD):
3576 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3577 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3578 * s/freebsd.h (START_FILES):
3579 * s/darwin.h (START_FILES):
3580 * s/cygwin.h (START_FILES):
3581 * s/aix4-2.h (LIB_STANDARD):
3582 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3583 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3584 autoconf, not cpp.
3585
d43c06d6
DN
35862010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3587
28823648
DN
3588 Remove NEED_BSDTTY and NEED_UNISTD_H.
3589 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3590 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3591 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3592 <sys/ptyio.h> and <unistd.h>.
3593
aca00430
DN
3594 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3595
d43c06d6
DN
3596 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3597 * s/gnu.h (START_FILES): Remove empty definition.
3598
3e56b11d
JD
35992010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3600
3601 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3602
e3cf0cde
GM
36032010-05-06 Glenn Morris <rgm@gnu.org>
3604
3605 * Makefile.in (CPP, LN_S): Remove unused variables.
3606
774b9a60
SM
36072010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3608
3609 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3610
4ab92842
LM
36112010-05-05 Lawrence Mitchell <wence@gmx.li>
3612
3613 * m/sparc.h: Fix typo in earlier change.
3614
178f2507
SM
36152010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3616
3617 Misc tweaks.
3618 * eval.c (Fdefvaralias): Remove unintended nested if.
3619 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3620
80f00217 36212010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3622
3623 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3624
ef03a4e6
DN
36252010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3626
58eb6cf0
DN
3627 Remove BSD_PGRPS.
3628 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3629 * s/gnu-linux.h (BSD_PGRPS): Remove.
3630 * term.c (dissociate_if_controlling_tty):
3631 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3632 (init_sys_modes, reset_sys_modes):
3633 * emacs.c (main):
3634 * callproc.c (Fcall_process, child_setup): Remove code depending
3635 on BSD_PGRPS.
3636
ef03a4e6
DN
3637 Remove POSIX_SIGNALS.
3638 * s/usg5-4.h (POSIX_SIGNALS):
3639 * s/netbsd.h (POSIX_SIGNALS):
3640 * s/msdos.h (POSIX_SIGNALS):
3641 * s/ms-w32.h (POSIX_SIGNALS):
3642 * s/hpux11.h (POSIX_SIGNALS):
3643 * s/gnu.h (POSIX_SIGNALS):
3644 * s/gnu-linux.h (POSIX_SIGNALS):
3645 * s/freebsd.h (POSIX_SIGNALS):
3646 * s/darwin.h (POSIX_SIGNALS):
3647 * s/cygwin.h (POSIX_SIGNALS):
3648 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3649 * s/unixware.h:
3650 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3651 * process.c (create_process):
3652 * syssignal.h:
3653 * sysdep.c (wait_for_termination, init_signals):
3654 * process.c (create_process):
3655 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3656 remove all code that assumes the contrary.
3657
49628785
GM
36582010-05-04 Glenn Morris <rgm@gnu.org>
3659
27a2cdfc
GM
3660 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3661 variable.
3662 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3663 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3664 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3665 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3666 LD_SWITCH_SYSTEM_tmp.
3667 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3668 New variables, set by configure.
3669
eb21eab5
GM
3670 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3671 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3672 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3673 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3674 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3675
49628785
GM
3676 * s/aix4-2.h (C_SWITCH_SYSTEM):
3677 * m/alpha.h (C_SWITCH_MACHINE):
3678 Move to configure.in.
3679 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3680 New variables, set by configure.
3681 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3682 $c_switch_machine and $c_switch_system.
3683
7dff330b
DN
36842010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3685
3686 * s/hpux10-20.h (LIB_STANDARD): New definition.
3687 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3688 on it, not used anymore.
3689
53967e09
CY
36902010-05-03 Chong Yidong <cyd@stupidchicken.com>
3691
3692 * eval.c (internal_condition_case_n): Rename from
3693 internal_condition_case_2.
3694 (internal_condition_case_2): New function.
3695
3696 * xdisp.c (safe_call): Use internal_condition_case_n.
3697
3698 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3699 (internal_delete_file, Frename_file): Callers changed.
3700
3701 * buffer.c (Fkill_buffer):
3702 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3703
3704 * lisp.h: Update prototypes.
3705
3dee6fdb
GM
37062010-05-03 Glenn Morris <rgm@gnu.org>
3707
3708 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3709 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3710 (LIBXT): Set with configure, not cpp.
3711 (LIBX): Remove.
3712 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3713
a101e0fb
DN
37142010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3715
3716 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3717 The FreeBSD is not needed, the default works, Solaris version is
3718 not needed, and the remaining case is not supported by configure.
3719
f63d0028
JD
37202010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3721
3722 * xsmfns.c (CHDIR_OPT): New define.
3723 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3724 restarting emacs.
3725
3726 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3727 shut_down_emacs.
3728
3729 * emacs.c (USAGE1): Mention --chdir.
3730 (main): Handle --chdir.
3731 (standard_args): Add --chdir.
3732 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3733 #5552).
3734
e4814a9f
DN
37352010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3736
cd03c74a
DN
3737 Remove LD_SWITCH_MACHINE.
3738 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3739 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3740
c3a398a1
DN
3741 Clean up IRIX code.
3742 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3743 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3744
87e7285c
DN
3745 Clean up AIX code.
3746 * m/ibmrs6000.inp: Remove file, unused.
3747 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3748 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3749 definition ...
3750 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3751
80f00217
JB
3752 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3753 unused.
e4814a9f 3754
59ca28de
EZ
37552010-05-01 Eli Zaretskii <eliz@gnu.org>
3756
197daef4
EZ
3757 Emulate POSIX_SIGNALS on MS-Windows.
3758
3759 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3760 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3761
3762 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3763 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3764 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3765
80f00217
JB
3766 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3767 New stubs.
197daef4 3768
af7c7572
EZ
3769 Miscellaneous fixes of bidi display.
3770
59ca28de
EZ
3771 * xdisp.c (find_row_end): New function, refactored from display_line.
3772 (display_line): Use it.
017ea819
EZ
3773 (extend_face_to_end_of_line): In almost-filled rows, extend only
3774 if the row is R2L and not continued.
166e930d 3775 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3776 Preserve overlay and string info in row->end.
166e930d
EZ
3777 (insert_left_trunc_glyphs): Support addition of left truncation
3778 glyphs to R2L rows.
b47e0dcf 3779 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3780 glyph between adjacent windows. Fix a crash when a display string
3781 is continued to the next line. Don't return zero if cursor was
3782 found by `cursor' property of a display string.
b47e0dcf
EZ
3783 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3784 test for that explicitly.
59ca28de 3785
7acac9f4
GM
37862010-05-01 Glenn Morris <rgm@gnu.org>
3787
3788 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3789 for clarity.
3790 (OTHER_OBJ): Remove.
3791 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3792 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3793
45841e65
KK
37942010-05-01 Karel Klíč <kklic@redhat.com>
3795
3796 * fileio.c (Ffile_selinux_context): Context functions may return null.
3797
afc61943
DN
37982010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3799
80f00217 3800 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3801
5a1bb006
GM
38022010-04-30 Glenn Morris <rgm@gnu.org>
3803
3804 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3805 (OTHER_OBJ): Define as a separate variable, for clarity.
3806
210af043
J
38072010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3808
3809 * xsettings.c: include limits.h and update file comment.
3810
0a7df391
GM
38112010-04-30 Glenn Morris <rgm@gnu.org>
3812
d5096f16
GM
3813 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3814 Set with configure, not cpp.
3815 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3816
7eb1ac33
GM
3817 * Makefile.in (mallocobj): Remove.
3818 (otherobj): Simplify using @OTHER_OBJ@.
3819
517d086b
GM
3820 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3821 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3822 Don't bother making nsgui.h dependency platform-specific.
3823
0a7df391
GM
3824 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3825
d6d23852
SM
38262010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3827
d2630aef
SM
3828 * process.c (read_process_output, exec_sentinel): Don't burp if the
3829 sentinel/filter kills the current buffer (bug#6060).
3830
f9dddf52 3831 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3832 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3833 Remove unused var `args'.
3834 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3835 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3836 * doc.c (store_function_docstring): Use XSETCAR.
3837
f1e3642a
GM
38382010-04-28 Glenn Morris <rgm@gnu.org>
3839
faf535f8
GM
3840 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3841 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3842
c40f9449
GM
3843 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3844
658f86ca
GM
3845 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3846 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3847
bc0b5f61
GM
3848 * Makefile.in (FONT_OBJ): New, set by configure.
3849 (FONT_DRIVERS): Use $FONT_OBJ.
3850
294c50a0
GM
3851 * Makefile.in (LIBXMU): Set with configure, not cpp.
3852 * s/aix4-2.h (LIBXMU):
3853 * s/hpux10-20.h (LIBXMU):
3854 Remove definition, now set in configure.
3855
e6ec4e99
GM
3856 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3857
f1e3642a
GM
3858 * m/amdx86-64.h [i386]: Move this test to configure.in.
3859
c6ea2936
GM
38602010-04-27 Glenn Morris <rgm@gnu.org>
3861
8fdac2c3
GM
3862 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3863 * s/unixware.h (NEED_LIBW): Remove definition.
3864
986fb647
GM
3865 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3866 (TOOLKIT_LIBW): New, set by configure.
3867 (@X_TOOLKIT_TYPE@): No longer define it.
3868
c6ea2936
GM
3869 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3870 (MOTIF_LIBW): Set with configure, not cpp.
3871 * s/aix4-2.h (LIB_MOTIF):
3872 * s/gnu-linux.h (LIB_MOTIF):
3873 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3874
aaa36002
DN
38752010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3876
3877 Reduce CPP usage.
3878 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3879 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3880 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3881 definitions and undefs. Inline definitions in the only user.
3882 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3883
b678dd8b
GM
38842010-04-27 Glenn Morris <rgm@gnu.org>
3885
76cda504
GM
3886 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3887 since the defaults (set by the system file) are fine in most cases.
3888 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3889 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3890 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3891 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3892 Remove definitions, since they are set correctly in s/gnu-linux.h.
3893 * s/freebsd.h (START_FILES, LIB_STANDARD):
3894 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3895 * s/hpux10-20.h (START_FILES):
3896 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3897 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3898
b678dd8b
GM
3899 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3900 (MOTIF_LIBW): Use $LIBXP.
3901 (otherobj): Use $WIDGET_OBJ.
3902
9452ded1
DN
39032010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3904
7e10844c
DN
3905 * Makefile.in (LIBS_MACHINE): Remove, unused.
3906
9452ded1
DN
3907 Use autoconf instead of cpp for LIB_MATH.
3908 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3909 * s/cygwin.h (LIB_MATH): Likewise.
3910 * Makefile.in (LIB_MATH): Do not define with cpp.
3911 (LIBES): Use autoconf for LIB_MATH.
3912
fcebfc6a
KH
39132010-04-26 Kenichi Handa <handa@m17n.org>
3914
3915 * composite.c (Ffind_composition_internal): Fix the return value
3916 for an automatic composition.
3917
39e2ad1b
DN
39182010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3919
3920 Remove all NO_ARG_ARRAY uses.
3921 * fns.c (concat2, concat3, nconc2):
3922 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3923 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3924 * m/xtensa.h (NO_ARG_ARRAY):
3925 * m/template.h (NO_ARG_ARRAY):
3926 * m/sparc.h (NO_ARG_ARRAY):
3927 * m/sh3.h (NO_ARG_ARRAY):
3928 * m/mips.h (NO_ARG_ARRAY):
3929 * m/macppc.h (NO_ARG_ARRAY):
3930 * m/iris4d.h (NO_ARG_ARRAY):
3931 * m/intel386.h (NO_ARG_ARRAY):
3932 * m/ibms390x.h (NO_ARG_ARRAY):
3933 * m/ibms390.h (NO_ARG_ARRAY):
3934 * m/ibmrs6000.h (NO_ARG_ARRAY):
3935 * m/ia64.h (NO_ARG_ARRAY):
3936 * m/hp800.h (NO_ARG_ARRAY):
3937 * m/arm.h (NO_ARG_ARRAY):
3938 * m/amdx86-64.h (NO_ARG_ARRAY):
3939 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3940
adf4f59c
EZ
39412010-04-25 Eli Zaretskii <eliz@gnu.org>
3942
6bdf5d65
EZ
3943 * xdisp.c (display_line): Don't assume 2nd call to
3944 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3945 (iterate_out_of_display_property): New function, body from pop_it.
3946 (pop_it): Use it.
adf4f59c 3947
dfbbda83
GM
39482010-04-24 Glenn Morris <rgm@gnu.org>
3949
3950 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3951 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3952 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3953 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3954
2d4018aa
EZ
39552010-04-24 Eli Zaretskii <eliz@gnu.org>
3956
a49884a6
EZ
3957 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3958 use `get_next_display_element' and `set_iterator_to_next' to
3959 advance to the next character, when looking for the character that
3960 begins the next row.
3961
76db6fcc 3962 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3963 definition of "struct Lisp_Symbol".
3964
70eab5c1
GM
39652010-04-24 Glenn Morris <rgm@gnu.org>
3966
3967 * Makefile.in (CRT_DIR): New variable, set by configure.
3968 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3969 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3970
1ad4cc3d
DN
39712010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3972
e769f484
DN
3973 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3974
4196ff33
DN
3975 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3976
879b0ee4
DN
3977 Remove redundant flags.
3978 * s/freebsd.h (C_SWITCH_SYSTEM):
3979 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3980 * s/netbsd.h (C_SWITCH_SYSTEM):
3981 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3982 of these.
3983
03cbbcb8
DN
3984 Simplify m/intel386.h.
3985 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3986 user: ecrt0.c.
3987 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3988 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3989 the only user: s/unixware.h.
3990 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3991 from m/intel386.h.
3992 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3993 moved here from m/intel386.h.
3994
1ad4cc3d
DN
3995 * m/mips.h: Remove #if 0 code.
3996
8785b888
EZ
39972010-04-23 Eli Zaretskii <eliz@gnu.org>
3998
728588cc
EZ
3999 Fix display of composed characters from L2R scripts in bidi buffers.
4000 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4001 After advancing IT past the composition, resync the bidi iterator
4002 with IT's position. (Bug#5977)
4003
a63f80b4
DN
40042010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4005
4006 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4007 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4008
ff5dec5c
SM
40092010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4010
4011 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4012
8785b888
EZ
40132010-04-23 Eli Zaretskii <eliz@gnu.org>
4014
58ccf243 4015 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4016 * xdisp.c (pop_it): When the stack is popped after displaying
4017 from a string, bidi-iterate to exit from the text portion covered
4018 by the `display' property or overlay. (Bug#5988, bug#5920)
4019
feeb1604
DN
40202010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4021
8e324eb6
DN
4022 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4023 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4024
809fcaba
DN
4025 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4026 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4027
ed710380
DN
4028 Simplify STARTFILES definition.
4029 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4030 relying on Makefile.in to define it.
4031 * s/cygwin.h (START_FILES): Likewise.
4032 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4033
feeb1604
DN
4034 Clean up Solaris code.
4035 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4036 (LIB_MOTIF): Remove, configure takes care of this.
4037 (NOT_USING_MOTIF): Remove, unused.
4038 * xrdb.c: Remove #if 0-ed #include.
4039 (SYSV): Remove conditional for old SysV.
4040 * sysdep.c (closedir): Remove conditional code for Solaris,
4041 Solaris has closedir.
4042
a0d0b563
JD
40432010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4044
4045 * xsettings.c (read_and_apply_settings): Check if current_font is
4046 NULL before strcmp (Bug#6001).
4047
56bae7c7
DN
40482010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4049
4050 Clean up HP-UX files.
4051 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4052 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4053 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4054 * s/hpux10-20.h: ... to the only user, here.
4055
372b7a95
EZ
40562010-04-21 Eli Zaretskii <eliz@gnu.org>
4057
4058 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4059 use buffer-local values of paragraph-start and paragraph-separate.
4060 <paragraph_start_re, paragraph_separate_re>: Rename from
4061 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4062 (Bug#5992)
4063
f904c0f9
JD
40642010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4065
4066 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4067 current_tool_bar_style are new.
4068 (store_config_changed_event): Rename from store_font_changed_event.
4069 (XSETTINGS_TOOL_BAR_STYLE): New define.
4070 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4071 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4072 HAVE_XFT.
4073 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4074 store_config_changed_event.
f904c0f9
JD
4075 (parse_settings): Rename from parse_xft_settings. Read
4076 non-xft xsettings outside #ifdef HAVE_XFT.
4077 (read_settings): Renamed from read_xft_settings.
4078 (apply_xft_settings): Take current settings as parameter. Do not
4079 call read_(xft)_settings.
4080 (read_and_apply_settings): New function.
4081 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4082 read_and_apply_settings if there are settings to be read.
4083 (init_xsettings): Renamed from init_xfd_settings.
4084 Call read_and_apply_settings unconditionally.
4085 (xsettings_initialize): Call init_xsettings.
4086 (Ftool_bar_get_system_style): New function.
4087 (syms_of_xsettings): Define Qmonospace_font_name and
4088 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4089 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4090 dynamic-setting.
31a01b90 4091 Move misplaced HAVE_GCONF
f904c0f9
JD
4092
4093 * xsettings.h (Ftool_bar_get_system_style): Declare.
4094
4095 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4096 Qtext, Qboth, Qboth_horiz are new.
4097 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4098 Vtool_bar_style, tool_bar_max_label_size.
4099
4100 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4101
4102 * keyboard.c: QClabel is new.
4103 (parse_tool_bar_item): Take out QClabel from tool bar items.
4104 Try to construct a label if ther is no QClabel.
4105 (syms_of_keyboard): Intern :label as QClabel.
4106
4107 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4108 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4109 New.
4110
4111 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4112 dynamic-setting.el.
4113
4114 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4115 (xg_make_tool_item, xg_show_toolbar_item): New function.
4116 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4117 Call xg_make_tool_item to make a tool bar item.
4118 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4119
4120 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4121 into account for toolbars.
4122
c632dfda
JD
41232010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4124
4125 * data.c (make_blv): Declarations before code (Bug#5993).
4126
10efe302
GM
41272010-04-21 Glenn Morris <rgm@gnu.org>
4128
4129 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4130 Define using autoconf, not cpp.
4131 (LIBXSM): New variable, set by autoconf.
4132 (LIBXT): Use $LIBXSM.
4133
4285ac5a
DN
41342010-04-21 Dan Nicolaescu <local_user@dannlt>
4135
3ec759e7
DN
4136 Remove NOMULTIPLEJOBS, unused.
4137 * s/template.h (NOMULTIPLEJOBS):
4138 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4139
4285ac5a
DN
4140 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4141 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4142 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4143 detects -znocombreloc and passes it to the linker
4144 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4145
2807228d
GM
41462010-04-21 Glenn Morris <rgm@gnu.org>
4147
4148 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4149
574c05e2
KK
41502010-04-21 Karel Klíč <kklic@redhat.com>
4151
4152 * Makefile.in (LIBSELINUX_LIBS): New.
4153 (LIBES): Add $LIBSELINUX_LIBS.
4154 * eval.c, lisp.h (call7): New function.
4155 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4156 (Ffile_selinux_context, Fset_file_selinux_context):
4157 New functions.
4158 (Fcopy_file): New parameter preserve-selinux-context.
4159 (Frename_file): Preserve selinux context when renaming by copy-file.
4160
91eac4bb 41612010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4162 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4163
50426a04
JB
4164 Don't depend on cm.c or termcap.c on Windows, use stubs.
4165 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4166 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4167 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4168 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4169 (sys_tputs, sys_tgetstr): New stubs.
4170 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4171 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4172
938efb77
JB
41732010-04-20 Juanma Barranquero <lekktu@gmail.com>
4174
4175 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4176
b4bf28b7
SM
41772010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4178
8b1e1112
SM
4179 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4180 Just signal a warning rather than an error when inside a let.
4181 (Fmake_variable_frame_local): Add the same test.
4182
933ac235
SM
4183 * font.c (syms_of_font): Make the style table vars read-only.
4184
b4bf28b7
SM
4185 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4186 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4187
4188 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4189
93d68d0c
EZ
41902010-04-20 Eli Zaretskii <eliz@gnu.org>
4191
4192 Fix R2L paragraph display on TTY.
4193
4194 * xdisp.c (unproduce_glyphs): New function.
4195 (display_line): Use it when produced glyphs are discarded from R2L
4196 glyph rows.
4197 (append_composite_glyph): In R2L rows, prepend the glyph rather
4198 than appending it.
4199
4200 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4201 rather than append it. Set up the resolved_level and bidi_type
4202 attributes of the appended glyph.
283ccc18
EZ
4203 (produce_special_glyphs): Mirror the backslash continuation
4204 character in R2L lines.
93d68d0c 4205
283ccc18 4206 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4207
283ccc18
EZ
4208 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4209 append_stretch_glyph.
4210 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4211 off-by-one error in computing x at end of text in the row.
4212 (append_stretch_glyph): In reversed row, prepend the glyph rather
4213 than append it. Set resolved_level and bidi_type of the glyph.
4214 (extend_face_to_end_of_line): If the row is reversed, prepend a
4215 stretch glyph whose width is such that the rightmost glyph will be
4216 drawn at the right margin of the window. Fix off-by-one error on
4217 TTY frames in testing whether a line needs face extension. Fix
4218 face extension at ZV. If this is the last glyph row, use
4219 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4220 region face.
4221 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4222 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4223 row->continuation_lines_width.
283ccc18
EZ
4224 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4225 are at ZV. Fixes a crash when reseated to ZV by
4226 try_window_reusing_current_matrix.
45903529
EZ
4227 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4228 which happens with R2L glyph rows. Fixes a crash when inserting a
4229 character at end of an R2L line.
283ccc18
EZ
4230 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4231 treat them as having zero-width characters. Improve comments.
4232 Don't reverse pos_before and pos_after for reversed glyph rows.
4233 Set cursor.x to negative value when the cursor might be on the
4234 left fringe.
4235 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4236 left fringe, not the right one.
f951a506
EZ
4237 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4238 (erase_phys_cursor): For reversed cursor_row, support cursor on
4239 the left fringe.
4240
283ccc18
EZ
4241 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4242 of continuation indicators on the fringes.
4243 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4244 left fringe.
4245
f951a506
EZ
4246 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4247 draw cursor on the left fringe.
4248
4249 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4250 cursor on the left fringe.
4251
f951a506
EZ
4252 * dispnew.c (update_text_area): Handle reversed desired rows when
4253 the cursor is on the left fringe.
4254 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4255 below, not by 0, for when the cursor is on the left fringe.
4256
3bb49aaf
JD
42572010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4258
4259 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4260 widget is a scrollbar.
4261
c0be27fd
KH
42622010-04-20 Kenichi Handa <handa@m17n.org>
4263
4264 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4265 only when the arg CHARSET_LIST is nil.
4266
ce5b453a
SM
42672010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4268
4269 Make variable forwarding explicit rather the using special values.
4270 Basically, this makes the structure of buffer-local values and object
4271 forwarding explicit in the type of Lisp_Symbols rather than use
4272 special Lisp_Objects for that. This tends to lead to slightly more
4273 verbose code, but is more C-like, simpler, and makes it easier to make
4274 sure we handled all cases, among other things by letting the compiler
4275 help us check it.
4276 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4277 Removing forwarding objects.
4278 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4279 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4280 explicit rather than hiding them inside Lisp_Object "values".
4281 (XFWDTYPE): New macro.
4282 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4283 (XBUFFER_LOCAL_VALUE): Remove.
4284 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4285 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4286 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4287 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4288 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4289 Remove the Lisp_Misc_* header.
4290 (struct Lisp_Buffer_Local_Value): Redefine.
4291 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4292 (struct Lisp_Misc_Any): Add filler to get the right size.
4293 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4294 Lisp_Intfwd.
4295 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4296 (DEFVAR_KBOARD): Allocate a forwarding object.
4297 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4298 (let_shadows_global_binding_p): New function.
4299 (union Lisp_Val_Fwd): New type.
4300 (make_blv): New function.
4301 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4302 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4303 (swap_in_symval_forwarding, find_symbol_value, Fset)
4304 (let_shadows_buffer_binding_p, set_internal, default_value)
4305 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4306 (Fkill_local_variable, Fmake_variable_frame_local)
4307 (Flocal_variable_p, Flocal_variable_if_set_p)
4308 (Fvariable_binding_locus):
4309 * xdisp.c (select_frame_for_redisplay):
4310 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4311 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4312 * frame.c (store_frame_param):
4313 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4314 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4315 value structure.
4316 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4317 (clone_per_buffer_values): Only adjust markers into the current buffer.
4318 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4319 (Fbuffer_local_value, set_buffer_internal_1)
4320 (swap_out_buffer_local_variables):
4321 Adapt to the new symbol value structure.
4322 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4323 (defvar_per_buffer): Take a new arg for the fwd object.
4324 (buffer_lisp_local_variables): Return a proper alist (different fix
4325 for bug#4138).
4326 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4327 (Fgarbage_collect): Don't handle buffer_defaults specially.
4328 (mark_object): Handle new symbol value structure rather than the old
4329 special Lisp_Misc_* objects.
4330 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4331 * term.c (set_tty_color_mode):
4332 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4333 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4334 a buffer_local_flags.
4335 * print.c (print_object): Get rid of impossible forwarding objects.
4336
fd3998ff
EZ
43372010-04-19 Eli Zaretskii <eliz@gnu.org>
4338
4339 * bidi.c (bidi_get_type, bidi_get_category)
4340 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4341 (bidi_type_of_next_char, bidi_level_of_next_char):
4342 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4343
e42cd1a7
JB
43442010-04-19 Juanma Barranquero <lekktu@gmail.com>
4345
4346 * dired.c (Ffile_attributes): Fix typo in docstring.
4347
6e104790 43482010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4349
4350 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4351 NSInteger (Bug#5811).
4352
6e104790 43532010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4354
4355 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4356 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4357
6e104790 43582010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4359
4360 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4361
6e104790
SM
43622010-04-19 Chong Yidong <cyd@stupidchicken.com>
4363
4364 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4365 terminal frames (Bug#5837).
4366
37dcfea0
EZ
43672010-04-19 Eli Zaretskii <eliz@gnu.org>
4368
d1da276f
EZ
4369 * .gdbinit (xsubchartable): New command.
4370
37dcfea0
EZ
43712010-04-19 Eli Zaretskii <eliz@gnu.org>
4372
4373 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4374 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4375 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4376 and
4377 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4378
e9515805
SM
43792010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4380
4381 * alloc.c (Fpurecopy): Hash-cons if requested.
4382 (syms_of_alloc): Update purify-flag docstring.
4383
22aa44a8
JD
43842010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4385
4386 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4387 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4388
ebb5722e
EZ
43892010-04-17 Eli Zaretskii <eliz@gnu.org>
4390
4391 Fix a crash when an NSM character is inserted at BEGV.
4392
4393 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4394 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4395 NEUTRAL_B or UNKNOWN_BT.
4396
0f4442ef
EZ
43972010-04-16 Eli Zaretskii <eliz@gnu.org>
4398
4399 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4400 other rows with cursor unless they are different from this row and
4401 this row is part of a continued line. (Bug#5943)
4402
7d4e45f8
DN
44032010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4404
4405 * s/freebsd.h: Restore osreldate.h include.
4406 Suggested by Naohiro Aota.
4407
5ba5ec85
J
44082010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4409
4410 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4411
20af301d
CY
44122010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4413
4414 * s/cygwin.h: Avoid linking against static libgcc.
4415
a4b000fb
JL
44162010-04-15 Juri Linkov <juri@jurta.org>
4417
4418 * window.c: Add Qscroll_command.
4419 Remove Vscroll_preserve_screen_position_commands.
4420 (window_scroll_pixel_based, window_scroll_line_based): Check the
4421 `scroll-command' property on the last command instead of searching
4422 the last command in Vscroll_preserve_screen_position_commands.
4423 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4424 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4425 (scroll-preserve-screen-position): Doc fix.
4426 (Vscroll_preserve_screen_position_commands): Remove variable.
4427
bc319ba4
DN
44282010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4429
6bb24457
DN
4430 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4431
19d4c244
DN
44322010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4433
4434 Reduce cpp use in Makefile.in.
4435 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4436 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4437 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4438 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4439 (CRT0_COMPILE): Remove, inline it in the only user.
4440
32129746
JL
44412010-04-14 Juri Linkov <juri@jurta.org>
4442
4443 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4444 `scroll-up-command' and `M-v' from `scroll-down' to
4445 `scroll-down-command'.
4446
9013a7f8
JL
44472010-04-14 Juri Linkov <juri@jurta.org>
4448
4449 * window.c (Vscroll_preserve_screen_position_commands): New variable
4450 with the default value as the list of Qscroll_down and Qscroll_up.
4451 (window_scroll_pixel_based, window_scroll_line_based): Search the
4452 last command in the list Vscroll_preserve_screen_position_commands
4453 instead of comparing with Qscroll_up and Qscroll_down.
4454
4bef8d26
JD
44552010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4456
92848133
JD
4457 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4458 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4459 does that.
4460
4bef8d26
JD
4461 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4462 to zero.
4463
58b963f7
SM
44642010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4465
84164a0d
SM
4466 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4467
2b0a91e7
SM
4468 Try to solve the problem of spurious EOF chars in long lines of text
4469 sent to interactive subprocesses.
4470 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4471 (system_process_attributes): Remove unused var `ttotal'.
4472 * process.c (send_process): Don't bother breaking long line with EOF
4473 chars when talking to ttys any more.
4474 (wait_reading_process_output): Output a warning when called in such
4475 a way that it could block without being interruptible.
4476
58b963f7
SM
4477 Try to detect file modification within the same second.
4478 * buffer.h (struct buffer): New field modtime_size.
4479 * buffer.c (reset_buffer): Initialize it.
4480 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4481 (Fverify_visited_file_modtime): Check it.
4482 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4483 (Fset_visited_file_modtime): Set (or clear) it.
4484
01f5787b
SM
44852010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4486
4487 * process.c (status_notify): Remove unused var `ro'.
4488
83725342
JD
44892010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4490
4491 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4492 more than one visual (Bug#5938).
4493
b9465836
DN
44942010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4495
50426a04
JB
4496 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4497 Undefine.
b9465836 4498
8d9c8ece
DN
44992010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4500
b1f52161
DN
4501 Remove C_SWITCH_SYSTEM_TEMACS.
4502 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4503 (malloc, realloc, free): Use emacs, not temacs for conditional
4504 definition.
4505
4506 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4507 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4508
8d9c8ece
DN
4509 Use autoconf, not cpp for some variables.
4510 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4511 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4512 (ALL_CFLAGS): Use them as make variables.
4513 (really-lwlib, really-oldXMenu): Do not pass them.
4514
1ecb2d3f
JD
45152010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4516
4517 * xmenu.c (apply_systemfont_to_dialog): New.
4518 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4519
3a4fa2f2
SM
45202010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4521
97e53006
SM
4522 * process.c (exec_sentinel): Preserve current-buffer.
4523
3a4fa2f2
SM
4524 * process.c (read_process_output): Move the save-current-buffer to
4525 apply to both the filter and the non-filter branches.
4526
88df7221
DN
45272010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4528
4529 * s/msdos.h (UNEXEC): New definition.
4530
5634ff85
YM
45312010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4532
6eff5c3d
YM
4533 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4534 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4535
4536 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4537 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4538 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4539 TRY_WINDOW_CHECK_MARGINS.
4540
4541 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4542 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4543 width only when it is for padding.
5634ff85 4544
b13aef54
J
45452010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4546
4547 * xfns.c (Fx_show_tip): Call try_window in a loop until
4548 fonts_changed_p is zero (Bug#2423).
4549
21d28484
EZ
45502010-04-08 Eli Zaretskii <eliz@gnu.org>
4551
4552 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4553 the end of TEXT_AREA. (Bug#5856)
4554
0269ef77
JD
45552010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4556
4557 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4558 HAVE_GCONF.
4559
5930fe97
EZ
45602010-04-08 Eli Zaretskii <eliz@gnu.org>
4561
4562 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4563 prev.orig_type, for resolving type of NSM. (Bug#5858)
4564
99852628
JD
45652010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4566
4567 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4568 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4569 in current_font.
4570 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4571 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4572 New functions.
4573 (syms_of_xsettings): Initialize current_font.
4574 defsubr Sfont_get_system_normal_font.
99852628 4575
686b968e
JB
4576 * xsettings.h (Ffont_get_system_normal_font)
4577 (xsettings_get_system_normal_font): Declare.
99852628
JD
4578
4579 * xfns.c (extern xlwmenu_default_font): Remove.
4580 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4581 to xlwmenu.c.
4582
4583 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4584 menu items in UTF-8.
4585
4586 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4587 (apply_systemfont_to_menu): New function.
4588 (set_frame_menubar, create_and_show_popup_menu): Call
4589 apply_systemfont_to_menu.
4590
7fc874c4
J
45912010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4592
4593 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4594 FRAME_LINE_TO_PIXEL_Y.
4595
4596 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4597 pixelwidth/height.
4598
863bf481
DN
45992010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4600
5e5a3b92
DN
4601 Simplify code for HP machines.
4602 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4603 for GNU_LINUX, not needed.
4604 (UNEXEC, NEED_BSDTTY): Move definitions...
4605 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4606
863bf481
DN
4607 * m/iris4d.h (UNEXEC): Move definition ...
4608 * s/irix6-5.h (UNEXEC): ... here.
4609
3e6bec3b
JD
46102010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4611
4612 * xfns.c (set_machine_and_pid_properties): New function.
4613 (Fx_create_frame): Call set_machine_and_pid_properties.
4614
2912322b
SM
46152010-04-03 Eli Zaretskii <eliz@gnu.org>
4616
1502b819
EZ
4617 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4618 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4619 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4620
2912322b
SM
4621 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4622 in this function. (Bug#5703)
4623
46242010-04-03 Chong Yidong <cyd@stupidchicken.com>
4625
4626 * nsterm.h: Fix last change.
4627
c435b432
DN
46282010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4629
a568f507
DN
4630 * m/intel386.h (NO_REMAP): Move definition ...
4631 * s/msdos.h (NO_REMAP): ... here.
4632
4cd9f6c2
DN
4633 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4634
c435b432
DN
4635 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4636 used on those platforms.
4637
42a2c622
DN
46382010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4639
4640 Remove extern errno declarations.
4641 * xterm.c:
4642 * xrdb.c:
4643 * w32term.c:
4644 * unexec.c:
4645 * unexaix.c:
4646 * sysdep.c:
4647 * process.c:
4648 * lread.c:
4649 * keyboard.c:
4650 * floatfns.c:
4651 * filelock.c:
4652 * fileio.c:
4653 * emacs.c (main):
4654 * ecrt0.c:
4655 * dispnew.c:
4656 * callproc.c:
4657 * buffer.c: Remove errno extern declarations.
4658 * s/netbsd.h (NEED_ERRNO): Remove.
4659
8224f93d
DN
46602010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4661
4662 Remove all uses of LIBX11_SYSTEM.
4663 * Makefile.in (LIBX11_SYSTEM): Remove.
4664 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4665 instead.
4666
814062c7
EZ
46672010-04-01 Eli Zaretskii <eliz@gnu.org>
4668
ed68db4d
EZ
4669 Remove support for DJGPP v1.x (bug#5813).
4670
4671 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4672 * s/msdos.h:
4673 * unexec.c (make_hdr, copy_text_and_data):
4674 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4675 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4676 (IT_set_terminal_modes, __write, _rename, gethostname)
4677 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4678 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4679 the value of __DJGPP__.
ed68db4d
EZ
4680 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4681 compatibility code.
8224f93d
DN
4682 * lread.c:
4683 * gmalloc.c (memalign):
4684 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4685 * emacs.c (main):
4686 * dosfns.c (init_dosfns):
ed68db4d
EZ
4687 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4688
52f4d8d5
EZ
46892010-04-01 Eli Zaretskii <eliz@gnu.org>
4690
814062c7
EZ
4691 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4692 string with `cursor' property comes from an `after-string'
4693 overlay. (Bug#5816)
4694
0dc2e11d
GM
46952010-04-01 Glenn Morris <rgm@gnu.org>
4696
4697 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4698 Define as Makefile variables.
4699 (LIBX): Use above variables rather than directly using autoconf.
4700
1d29df59
DN
47012010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4702
4703 Clean up BSD_SYSTEM use.
4704 * xterm.c:
4705 * process.c:
4706 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4707 for including <sys/ioctl.h>.
4708 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4709 code is only used for MSDOS.
4710
1546c559
JL
47112010-03-31 Juri Linkov <juri@jurta.org>
4712
4713 * image.c: Add `Qextension_data'.
4714 (syms_of_image): Initialize and staticpro `Qextension_data'.
4715 (Fimage_metadata): Rename from `Fimage_extension_data'.
4716 (gif_load): Put GIF extension data to the property
4717 `Qextension_data'.
4718
6521c534
CY
47192010-03-31 Chong Yidong <cyd@stupidchicken.com>
4720
4721 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4722 * nsterm.h: Fix prototype.
4723
52c30783
EZ
47242010-03-31 Eli Zaretskii <eliz@gnu.org>
4725
4726 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4727 trailing whitespace in right-to-left rows.
4728
855a0da7
SM
47292010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4730
4731 Get rid of the direct_output optimizations.
4732 * keyboard.c (nonundocount): Remove extern declaration.
4733 (command_loop_1): Remove brittle optimisation for cheap and
4734 common operations.
4735 * xdisp.c (redisplay_internal): Don't bother checking
4736 redisplay_performed_directly_p any more.
4737 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4738 any more.
4739 * dispnew.c (redisplay_performed_directly_p)
4740 (direct_output_for_insert, direct_output_forward_char):
4741 * dispextern.h (redisplay_performed_directly_p)
4742 (direct_output_for_insert, direct_output_forward_char): Remove.
4743 * cmds.c (nonundocount): Make it static.
4744
85738751 47452010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4746
4747 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4748
85738751 47492010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4750
4751 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4752 invisible (Bug#5766).
4753
85738751 47542010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4755
855a0da7
SM
4756 * xdisp.c (x_consider_frame_title, update_window_cursor):
4757 Remove HAVE_NS conditionals.
194d44e7 4758 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4759
4760 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4761 filename for the title.
4762 (ns_set_doc_edited): Do nothing if the selected window is a
4763 minibuffer window.
4764
4765 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4766 ns_set_doc_edited.
4767
4768 * nsterm.m: Remove unneeded prototype.
4769
85738751 47702010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4771
4772 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4773 in the DOC file. (Bug#5336)
4774
85738751 47752010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4776
4777 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4778
75d1428c
SM
47792010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4780
4781 * window.c (keys_of_window): Remove redundant/overridden bindings.
4782
82043cfb
EZ
47832010-03-30 Eli Zaretskii <eliz@gnu.org>
4784
4785 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4786 Restore original behavior when the iterator is not bidi_p.
4787
b5dd0ae7
DN
47882010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4789
4790 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4791
bd924a5d
EZ
47922010-03-30 Eli Zaretskii <eliz@gnu.org>
4793
4794 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4795 are outside the range of cached character positions.
4796
3580374b
JB
47972010-03-30 Juanma Barranquero <lekktu@gmail.com>
4798
4799 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4800
a7b02820
EZ
48012010-03-30 Eli Zaretskii <eliz@gnu.org>
4802
4803 Initial support for bidirectional editing.
4804
4805 * Makefile.in (obj): Include bidi.o.
4806 (bidi.o): New target.
4807
4808 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4809 ($(BLD)/bidi.$(O)): New target.
4810
4811 * bidi.c: New file.
4812
4813 * buffer.h (struct buffer): New members bidi_display_reordering
4814 and bidi_paragraph_direction.
4815
4816 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4817 and bidi_paragraph_direction.
4818 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4819 and bidi-paragraph-direction.
4820 (Fbuffer_swap_text): Swap the values of
4821 bidi_display_reordering and bidi_paragraph_direction.
4822
4823 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4824 (bidi_type_t, bidi_dir_t): New types.
4825 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4826 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4827 prev_stop, base_level_stop, and eol_pos.
4828 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4829 (IT_STACK_SIZE): Enlarge to 5.
4830 (struct glyph_row): New member reversed_p.
4831 <string_buffer_position>: Update prototype.
4832 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4833 glyph_row if bidi_it.paragraph_dir == R2L.
4834 (struct glyph): New members resolved_level and bidi_type.
4835
4836 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4837 processing or buffer's direction is right-to-left.
4838 (prepare_desired_row): Preserve the reversed_p flag.
4839 (row_equal_p): Compare the reversed_p attributes as well.
4840
4841 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4842 bidi_init_it and set it->paragraph_embedding from the current
4843 buffer's value of bidi_paragraph_direction.
4844 (reseat_1): Initialize bidi_it.first_elt.
4845 (set_iterator_to_next, next_element_from_buffer): Use the value of
4846 paragraph_embedding to determine the paragraph direction.
4847 (set_iterator_to_next): Under bidi reordering, call
4848 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4849 new_paragraph flag is set in the bidi iterator.
4850 (next_element_from_buffer): If bidi_it.first_elt is set,
4851 initialize paragraph direction and find the first character to
4852 display in the visual order. If reseated to a middle of a line,
4853 prime the bidi iterator starting at the line's beginning. Handle
4854 the situation where we overstepped stop_charpos due to
4855 non-linearity of the bidi iteration. Likewise for when we back up
4856 beyond the previous stop_charpos. When moving across stop_charpos,
4857 record it in prev_stop.
4858 (display_line): Set row->end and it->start for the next row to the
4859 next character in logical order. Always extend reversed_p rows to
4860 the end of line, even if they end at ZV. Copy the reversed_p flag
4861 to the next glyph row. Keep calling set_cursor_from_row for
4862 bidi-reordered rows even if we already have a possible candidate
4863 for cursor position. Set row_end after all the row's glyphs have
4864 been produced, by looping over the glyphs. Record the position
4865 after EOL in it->eol_pos, and use it to set end_pos of the last
4866 row produced for a continued line.
4867 <Qright_to_left, Qleft_to_right>: New variables.
4868 (syms_of_xdisp): Initialize and staticpro them.
4869 (string_buffer_position_lim): New function.
4870 (string_buffer_position): Most of code moved to
4871 string_buffer_position_lim. Last argument and return value are
4872 now EMACS_INT; all callers changed.
4873 (set_cursor_from_row): Rewritten to support bidirectional text and
4874 reversed glyph rows.
4875 (text_outside_line_unchanged_p, try_window_id): Disable
4876 optimizations if we are reordering bidirectional text and the
4877 paragraph direction can be affected by the change.
4878 (append_glyph, append_composite_glyph)
4879 (produce_image_glyph, append_stretch_glyph): Set the
4880 resolved_level and bidi_type members of each glyph.
4881 (append_glyph): If the glyph row is reversed, prepend the glyph
4882 rather than appending it.
4883 (handle_stop_backwards): New function.
4884 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4885 (reseat): call handle_stop_backwards to recompute prev_stop and
4886 base_level_stop for the new position.
4887 (handle_invisible_prop): Under bidi iteration, skip invisible text
4888 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4889 paragraph direction. Update IT->prev_stop after skipping
4890 invisible text.
4891 (move_it_in_display_line_to): New variables prev_method
4892 and prev_pos. Compare for strict equality in
4893 BUFFER_POS_REACHED_P.
4894 (try_cursor_movement): Examine all the candidate rows that occlude
4895 point, to return the best match. If rows are bidi-reordered
4896 and point moved backwards, back up to the row that is not a
4897 continuation line, and start looking for a suitable row from
4898 there.
4899
4900 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4901 rather than appending, if the glyph_row's reversed_p flag is set.
4902 Set the resolved_level and bidi_type members of each glyph.
4903
4904 * .gdbinit (pbiditype): New command.
4905 (pgx): Use it to display bidi level and type of the glyph.
4906 (pitx): Display some bidi information about the iterator.
4907 (prowlims, pmtxrows): New commands.
4908
32a8894e
DN
49092010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4910
4911 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4912 * s/usg5-4.h (LIBS_DEBUG):
4913 * s/irix6-5.h (C_DEBUG_SWITCH):
4914 * s/gnu-linux.h (LIBS_DEBUG):
4915 * s/darwin.h (LIBS_DEBUG):
4916 * s/bsd-common.h (LIBS_DEBUG):
4917 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4918 * m/iris4d.h (LIBS_DEBUG):
4919 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4920
4921 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4922 (LIBS_DEBUG): Remove definition.
4923
649dbf36
CY
49242010-03-27 Chong Yidong <cyd@stupidchicken.com>
4925
4926 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4927 Windows.
4928
cad4261f
YM
49292010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4930
4931 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4932 `connect' (Bug#5723).
4933
cd591dbc
HE
49342010-03-25 Helmut Eller <eller.helmut@gmail.com>
4935
4936 * process.c (Fmake_network_process): Call `select' for interrupted
4937 `connect' rather than creating new socket (Bug#5173).
4938
e867cb5d 49392010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4940
4941 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4942
4943 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4944
4945 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4946
e867cb5d 49472010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4948
4949 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4950 XLoadQueryFont.
4951
e867cb5d 49522010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4953
4954 * coding.c (decode_coding_ccl): Fix previous change for the
4955 multibyte case.
fb608df3
KH
4956 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4957 case that the output buffer is fullfilled.
4958 (encode_coding): Setup ccl program here.
fbdc1721 4959
5845f0ed
DN
49602010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4961
814fb708
DN
4962 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4963
5845f0ed
DN
4964 Simplify LIBS_MACHINE definitions.
4965 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4966 * m/iris4d.h (LIBS_MACHINE): Likewise.
4967 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4968 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4969 * s/netbsd.h: Remove commented out code.
5845f0ed 4970
b7064064
DN
49712010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4972
df7734b2
DN
4973 Remove dead code dealing with POSIX_SIGNALS.
4974 * atimer.c (set_alarm): Remove dead code, all USG systems define
4975 POSIX_SIGNALS.
4976 * data.c (arith_error): Likewise.
4977 * keyboard.c (input_available_signal, handle_user_signal)
4978 (interrupt_signal): Likewise.
4979 * process.c (sigchld_handler): Likewise.
4980 (create_process): Remove if 0 code. Remove HPUX conditional when
4981 !defined (POSIX_SIGNALS), it cannot be true.
4982 * syssignal.h: Remove USG5_4 and USG conditionals when
4983 !POSIX_SIGNALS, they cannot be true.
4984
b7064064
DN
4985 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4986 NO_SOCK_SIGIO, not used anymore.
4987
55da5ee3
DN
49882010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4989
0be96e3a
DN
4990 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4991 support vax on BSDs.
4992
55da5ee3
DN
4993 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4994 * s/aix4-2.h (ORDINARY_LINK): ... here.
4995
c0282183
AS
49962010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4997
82c3d67a
AS
4998 * Makefile.in (abs_builddir): Define.
4999 (bootstrap_exe): Use it.
5000 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5001
3613edce
SM
50022010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5003
5004 * Makefile.in (bootstrap_exe): Use an absolute name.
5005
7f110ddc
DN
50062010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5007
22e87574
DN
5008 Remove support for old GNU/Linux using libc version 5.
5009 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5010 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5011
05a670e6
DN
5012 Consolidate redundant definitions in s/bsd-common.h.
5013 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5014 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5015 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5016 doing it in all files that include this one.
5017 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5018 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5019 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5020 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5021 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5022 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5023 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5024 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5025 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5026
2968f561
DN
5027 Consolidate redundant definitions.
5028 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5029 it's undefined in all files that include this one.
5030 (POSIX_SIGNALS): Define here instead of doing it in all files that
5031 include this one.
5032 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5033 (POSIX_SIGNALS): Do not define.
5034 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5035 (POSIX_SIGNALS): Do not define.
5036 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5037 (POSIX_SIGNALS): Do not define.
5038
15d25dc0
DN
5039 Remove support for old UNIX System V systems.
5040 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5041 * s/usg-5-4-2.h: Remove.
5042
07e339e4
DN
5043 Remove support for Solaris on PPC and for old versions.
5044 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5045 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5046 that cancel each other.
5047 * s/sol2-3.h:
5048 * s/sol2-4.h:
5049 * s/sol2-5.h: Remove.
5050 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5051 (NO_REMAP): Remove, unused.
5052 (UNEXEC): Move definition ...
5053 * s/aix4-2.h (UNEXEC): ... here.
5054
7f110ddc
DN
5055 * s/openbsd.h: Remove support for non-ELF and for systems that do
5056 not support shared libraries.
5057 * s/netbsd.h:
5058 * s/freebsd.h: Likewise.
5059
605f35cd
DN
50602010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5061
5062 Remove non-working support for lynxos 3.0.
5063 * s/lynxos.h: Remove file.
5064
5065 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5066 COFF_BSD_SYMBOLS, nothing defines it anymore.
5067
aed71cf4
DN
50682010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5069
5070 Remove obsolete uses of HAVE_SHM.
5071 * emacs.c (standard_args):
5072 (Fdump_emacs):
5073 (syms_of_emacs): Remove code depending on HAVE_SHM.
5074
5075 * alloc.c: Remove HAVE_SHM dependent definition.
5076
5077 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5078
aded53ff
GM
50792010-03-18 Glenn Morris <rgm@gnu.org>
5080
17284745
GM
5081 * emacs.c (USAGE4): Hard-code bug address.
5082 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5083 (bug_reporting_address): Remove.
5084 (main): Don't call bug_reporting_address.
5085
aded53ff
GM
5086 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5087 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5088
303500aa
CY
50892010-03-15 Chong Yidong <cyd@stupidchicken.com>
5090
5091 * xfns.c (Fx_create_frame):
5092 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5093 on left.
5094
cef3058f
CY
50952010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5096
5097 * editfns.c (Fformat): Account for string precision when computing
5098 field width (Bug#5710).
5099
a647d59d
CY
51002010-03-12 Chong Yidong <cyd@stupidchicken.com>
5101
4fa42018
CY
5102 * xfns.c (Fx_create_frame): Set default to Qright.
5103
a647d59d
CY
5104 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5105 all window systems.
5106
6da23aaa
EZ
51072010-03-12 Eli Zaretskii <eliz@gnu.org>
5108
a96f6398 5109 These changes remove termcap.c from the build on Posix platforms.
83d02def 5110 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5111 (MSDOS_OBJ): ...to here.
5112 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5113 now identical to when LIBS_TERMCAP is defined.
5114
5115 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5116
5117 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5118
a96f6398 5119 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5120
288f9fc0
CY
51212010-03-10 Chong Yidong <cyd@stupidchicken.com>
5122
5123 * Branch for 23.2.
5124
d48cd3f4
SM
51252010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5126
5127 Cleanup setup of gl_state in various parts of the code.
5128 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5129 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5130 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5131 (skip_chars):
5132 * regex.c (regex_compile): Use it.
5133 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5134 it's now set in regex_compile when/if we need it.
5135
618db430
SM
51362010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5137
c0335e02
SM
5138 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5139 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5140 (QUIT): Use it to consolidate code and remove redundancy.
5141 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5142
254c06a8
SM
5143 * regex.c (regex_compile): Setup gl_state as well.
5144
618db430
SM
5145 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5146 (in_classes): Use CONSP before XCAR/XCDR.
5147
233f0c9f
CY
51482010-03-03 Chong Yidong <cyd@stupidchicken.com>
5149
5150 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5151 definitions, so that keyboard macros are correctly handled
5152 (Bug#5481).
5153
75f80e63
EZ
51542010-03-02 Eli Zaretskii <eliz@gnu.org>
5155
5156 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5157 text that could be relocated inside the call to emacs_mule_char.
5158 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5159 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5160
dcfb9bc4
KH
51612010-03-02 Kenichi Handa <handa@m17n.org>
5162
fc9a17bc
KH
5163 * character.c (parse_str_as_multibyte): Fix handling of the
5164 multibyte form of raw-bytes.
5165 (str_as_multibyte): Likewise.
5166
dcfb9bc4
KH
5167 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5168 form of raw-bytes.
5169
412c01b6
CY
51702010-02-28 Chong Yidong <cyd@stupidchicken.com>
5171
5172 * charset.c (load_charset_map_from_file)
5173 (load_charset_map_from_vector): Zero out allocated
5174 charset_map_entries before using them.
5175
df7e1ea0
AS
51762010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5177
5178 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5179
fe69a722
CY
51802010-02-27 Chong Yidong <cyd@stupidchicken.com>
5181
4ed28cf4
CY
5182 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5183 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5184
7379cfce
KH
51852010-02-26 Kenichi Handa <handa@m17n.org>
5186
f88cc4d6
KH
5187 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5188
7379cfce
KH
5189 * xdisp.c (reseat_to_string): Fix previous change.
5190
cf2fdcfb
CY
51912010-02-26 David Reitter <david.reitter@gmail.com>
5192
5193 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5194 Lisp_Object (Bug#4736).
5195
cc6c7c75
KH
51962010-02-25 Kenichi Handa <handa@m17n.org>
5197
5198 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5199
32e737d7
JD
52002010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5201
5202 * xterm.c (XTflash): Move declarations before statements.
5203
5204 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5205 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5206 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5207 (xg_create_tool_bar): Remove unused variables.
5208 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5209 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5210
676cae9f
CY
52112010-02-21 Chong Yidong <cyd@stupidchicken.com>
5212
5213 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5214
886cc2b8
SM
52152010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5216
5217 * term.c (fatal): Add a final \n if needed (bug#5596).
5218
ddb2d8e2
CY
52192010-02-18 Chong Yidong <cyd@stupidchicken.com>
5220
5221 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5222
2a4f8d3d
GM
52232010-02-18 Glenn Morris <rgm@gnu.org>
5224
5225 * callint.c (Finteractive): Doc fix.
5226
ebaf11b6
KH
52272010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5228
886cc2b8
SM
5229 * coding.c (record_conversion_result):
5230 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5231 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5232 memory allocation error.
5233
d0396581
KH
52342010-02-17 Kenichi Handa <handa@m17n.org>
5235
886cc2b8
SM
5236 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5237 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5238 (decode_coding): Setup ccl program here. Keep looping when the
5239 decoder stopped because the output buffer is
5240 fullfilled (bug#5534).
5241
5242 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5243
98599f74
JD
52442010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5245
471e4f04 5246 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5247 bug #5571.
886cc2b8 5248 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5249 overdrawn.
98599f74 5250
182659ae
JD
52512010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5252
5253 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5254 doing_interact here.
5255 (ice_connection_closed): New function.
5256 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5257 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5258 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5259 returns I/O error.
5260 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5261 bug #5512.
5262
9be32c4e 52632010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5264
5265 * nsfont.m (nsfont_open): The system's value for the font descent
5266 is negative, so round it down to avoid clipping.
5267
a2f3eb19
CY
52682010-02-06 Chong Yidong <cyd@stupidchicken.com>
5269
5270 * charset.c (load_charset_map_from_file)
5271 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5272 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5273
3088147c
CY
52742010-02-05 Chong Yidong <cyd@stupidchicken.com>
5275
5276 * charset.c (load_charset_map_from_file): Allocate large
5277 charset_map_entries structure on the heap rather than the stack.
5278 (Bug#5526).
5279
b57d9029
KH
52802010-01-31 Kenichi Handa <handa@m17n.org>
5281
5282 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5283 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5284
c67d885b
CY
52852010-01-31 Chong Yidong <cyd@stupidchicken.com>
5286
5287 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5288 <deactivated@gmail.com> (Bug#3605).
5289
8fab2362
CY
52902010-01-31 David De La Harpe Golden <david@harpegolden.net>
5291
5292 * fileio.c (Frename_file): Correctly rename symlinks to
5293 directories (Bug#5496).
5294
cb2a62f2
CY
52952010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5296
5297 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5298
944c7a26
AS
52992010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5300
5301 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5302
c024ac08
CY
53032010-01-29 Chong Yidong <cyd@stupidchicken.com>
5304
5305 * frame.c (DEFAULT_ROWS): Change default to 35.
5306
5307 * xfns.c (x_default_font_parameter): Change default XFT font to
5308 monospace-10 (Bug#3643).
5309
af93af83
EZ
53102010-01-29 Eli Zaretskii <eliz@gnu.org>
5311
5312 * w32inevt.c (key_event): Remove unnecessary comparison of
5313 event->uChar.AsciiChar with 128.
5314
ca0eb708
CY
53152010-01-28 Chong Yidong <cyd@stupidchicken.com>
5316
b242dbfc
CY
5317 * fileio.c (Frename_file): Fix last change (Bug#5487).
5318
ca0eb708
CY
5319 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5320
5321 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5322
45d45af5
JD
53232010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5324
5325 * xfns.c (Fx_create_frame): Remove window size matching code from
5326 2010-01-15.
a73f9c9d 5327 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5328
7e233730
JR
53292010-01-27 Jason Rumney <jasonr@gnu.org>
5330
5331 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5332 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5333
86e893e3
KH
53342010-01-27 Kenichi Handa <handa@m17n.org>
5335
5336 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5337 pattern string (Bug#4209).
86e893e3 5338
8719abec
CY
53392010-01-27 David De La Harpe Golden <david@harpegolden.net>
5340
5341 * fileio.c (Frename_file): Call copy-directory and
5342 delete-directory for directories, in order to handle cross-device
5343 renaming (Bug#3353).
5344
844794c8
JD
53452010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5346
aa3e13b5 5347 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5348 sizes 24 and 10. Bug #3643.
844794c8 5349
bd4b5750
SM
53502010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5351
8dc1adf6 5352 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5353 * keymap.c (shadow_lookup): Add `remap' arg.
5354 (describe_map, describe_vector): Update calls to shadow_lookup.
5355 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5356 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5357 perform remapping during shadow_lookup check of remapped_sequences.
5358
285d07e2
CY
53592010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5360
5361 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5362 png_check_sig, which has been removed in libpng 1.4.
5363
c6d09b8d
CY
53642010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5365
5366 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5367 lacks this header file).
5368
3d782998
YM
53692010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5370
5371 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5372 as in Emacs 22.
5373
2aff7c53
YM
53742010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5375
5376 * lisp.h (make_pure_string): String pointer arg now points to const.
5377
5378 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5379 args now point to const.
5380
74327f7a
EZ
53812010-01-22 Eli Zaretskii <eliz@gnu.org>
5382
5383 * lread.c (Fload): Don't treat files without .elc extension as
5384 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5385 them. (bug#5303)
5386
4d1e6632
KH
53872010-01-20 Kenichi Handa <handa@m17n.org>
5388
5389 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5390 treat the source as actual byte sequence.
5391
1fdede8f
AM
53922010-01-19 Alan Mackenzie <acm@muc.de>
5393
5394 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5395 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5396 `signal_after_change_p' to `coherent_change_p', and make the
5397 invocation of `modify_region' conditional on it.
5398
67477f30
JD
53992010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5400
5401 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5402 for debug purpose.
5403 (syms_of_xsettings): Declare xft-settings.
5404
244b023e
CY
54052010-01-18 Chong Yidong <cyd@stupidchicken.com>
5406
5407 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5408
617364fe
CY
54092010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5410
5411 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5412
4fe22cdf
CY
54132010-01-16 Chong Yidong <cyd@stupidchicken.com>
5414
5415 * emacs.c (standard_args): Adjust arg priorities to reflect how
5416 they are processed in startup.el.
5417
e118d2be
AS
54182010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5419
5420 * Makefile.in (lisp, shortlisp): Update.
5421
523ae620
SM
54222010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5423
5424 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5425 code, link the new kboard into all_kboard before running Lisp code,
5426 and protect the new terminal with GCPRO (Bug#5365).
5427 (x_term_init): Remove unused var `atom'.
5428 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5429
f0d13888
JD
54302010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5431
5432 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5433 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5434 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5435 this. Bug #3643.
f0d13888 5436
cc320f07
KH
54372010-01-15 Kenichi Handa <handa@m17n.org>
5438
5439 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5440
7ffdf101
CY
54412010-01-15 Chong Yidong <cyd@stupidchicken.com>
5442
5443 * nsterm.m (Qnone): Define.
5444
5445 * nsfns.m (Qnone): Move definition to nsterm.m.
5446
d12bd917
KH
54472010-01-14 Kenichi Handa <handa@m17n.org>
5448
5449 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5450 systems.
5451
d9a7c140
KH
54522010-01-14 Kenichi Handa <handa@m17n.org>
5453
5454 Make auto-composition work on all buffers even if they are
5455 fundamental mode.
5456
5457 * composite.c (Vauto_composition_mode): New variable.
5458 (composition_compute_stop_pos): Check Vauto_composition_mode
5459 instead of Vauto_composition_function.
5460 (composition_adjust_point, Ffind_composition_internal): Likewise.
5461 (syms_of_composite): Declare Lisp variable
5462 "auto-composition-mode" here.
5463
63286bb2
CY
54642010-01-13 Chong Yidong <cyd@stupidchicken.com>
5465
5466 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5467 during call to vendor-specific-keysyms (Bug#5365).
5468
c2623ee7
YM
54692010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5470
5471 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5472 Call SIGNAL_THREAD_CHECK (Bug#5333).
5473
5474 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5475 Call SIGNAL_THREAD_CHECK.
5476
0b5397c2
SM
54772010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5478
5479 Try to fix bug#5314. This is probably not the final word, tho.
5480 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5481 recent-auto-save-p as a side-effect.
5482 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5483 * buffer.c (Fkill_buffer, reset_buffer):
5484 * editfns.c (Fsubst_char_in_region):
5485 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5486 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5487
dc954cb2
KH
54882010-01-13 Kenichi Handa <handa@m17n.org>
5489
5490 Display buffer name, etc. in mode line by composing correctly.
5491
5492 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5493 STRING is not nil.
0b5397c2 5494 (display_mode_element): Adjust for the change of
dc954cb2
KH
5495 decode_mode_spec and display_line.
5496 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5497 (display_string): Handle the case that STRING is non-null and
5498 LISP_STRING is not nil.
5499
0b5397c2
SM
5500 * xterm.c (x_draw_composite_glyph_string_foreground):
5501 Pay attention to s->face->overstrike.
dc954cb2
KH
5502
5503 * composite.c (composition_reseat_it): Don't check PT if STRING is
5504 non nil.
5505
4a00eaca
YM
55062010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5507
5508 * keyboard.c (read_char): Don't apply previous change when current
5509 buffer is unchanged by command execution.
5510
60abb287
JD
55112010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5512
5513 * keyboard.c (read_char): Return after executing from special map.
5514
893db5bc
GM
55152010-01-12 Glenn Morris <rgm@gnu.org>
5516
5517 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5518 bug-gnu-emacs rather than emacs-pretest-bug.
5519
4d03ece0
CY
55202010-01-11 Chong Yidong <cyd@stupidchicken.com>
5521
5522 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5523 initializing the Lisp variables that depend on them.
5524
1df47e38
YM
55252010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5526
5527 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5528 Clear areas that will not be updated after change of menu bar lines.
5529 Clear the menu bar window's current matrix when the window gets empty.
5530
2f1c6384
CY
55312010-01-09 Chong Yidong <cyd@stupidchicken.com>
5532
e398c61c
CY
5533 * intervals.h, textprop.c (extend_property_ranges): Return value
5534 and args changed. Discard properties that begin at or after the
5535 new end (Bug#5306).
5536
5537 * editfns.c (Fformat): Caller changed.
5538
e5a29a10
CY
5539 * nsterm.m (ns_set_default_prefs): Delete function.
5540 (syms_of_nsterm): Initialize ns_command_modifier,
5541 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5542 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5543
2f1c6384
CY
5544 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5545 position (Bug#4040).
5546
d427a9fa
EZ
55472010-01-09 Eli Zaretskii <eliz@gnu.org>
5548
5549 * editfns.c (Ffloat_time): Doc fix.
5550
21b9df2f
JD
55512010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5552
5553 * xfns.c (Fx_create_frame): Don't create frame larger than display
5554 by default bug#3643.
5555
4b00d3b1
YM
55562010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5557
5558 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5559 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5560 windows above internal border.
5561
5562 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5563 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5564 windows above internal border.
5565
5566 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5567 tool bar windows specially.
5568
5569 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5570
5571 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5572 specially.
5573 (XTflash): Take account of menu bar height.
5574
5575 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5576 specially.
5577
5075d853
JD
55782010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5579
ac146f82 5580 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5581 also be true before we can return early (bug #5339).
5582
474217c8
CY
55832010-01-06 David Reitter <david.reitter@gmail.com>
5584
5585 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5586 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5587 (Bug#3233).
5588
c0e6d47d
JD
55892010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5590
d0cf45b7
JD
5591 * font.c (font_open_entity): Enable chache and call cached_font_ok
5592 for the driver if defined.
5593 (QCuser_spec): New symbol.
5594 (font_spec_from_name): Save name as user-spec.
5595 (font_load_for_lface): Keep user-spec instead of name.
5596 (font_open_by_name): Save name as user-spec.
5597 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5598 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5599
5600 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5601 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5602 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5603
5604 * font.h (struct font_driver): Add cached_font_ok.
5605
c0e6d47d
JD
5606 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5607
7c583cd8
JD
56082010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5609
5610 * xterm.c (x_new_font): Move code for setting rows/cols before
5611 resizing ...
ac146f82 5612 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5613
5614 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5615 (xg_frame_resized, xg_frame_set_char_size):
5616 Call xg_clear_under_internal_border.
7c583cd8 5617 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5618
03f77f0a
CY
56192010-01-05 Chong Yidong <cyd@stupidchicken.com>
5620
5621 * keyboard.c (read_key_sequence): Catch keyboard switch after
5622 making a new tty frame (Bug#5095).
5623
2a1ef5be
KH
56242010-01-05 Kenichi Handa <handa@m17n.org>
5625
5626 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5627
e3eb1dae
SM
56282010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5629
5630 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5631 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5632 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5633
777013f2
MA
56342010-01-03 Michael Albinus <michael.albinus@gmx.de>
5635
5636 * dbusbind.c (xd_add_watch): Improve debug message.
5637 (xd_remove_watch): Improve debug message. If DATA is the session
5638 bus, unset D-Bus session environment.
5639 (Fdbus_init_bus): Pass the bus as argument to
5640 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5641
8932b1c2
CY
56422010-01-01 Chong Yidong <cyd@stupidchicken.com>
5643
87231e2c
CY
5644 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5645
4801c5fa
CY
5646 * lread.c (syms_of_lread): Make it clearer that these are the
5647 names of loaded files (Bug#5068).
5648
8932b1c2
CY
5649 * eval.c (run_hook_with_args): Handle the case where the global
5650 value has the obsolete single-function form (Bug#5026).
5651
11e3c684
CY
56522009-12-27 Chong Yidong <cyd@stupidchicken.com>
5653
5654 * minibuf.c (Fall_completions): Minor optimization.
5655
5b28ce35
EZ
56562009-12-26 Eli Zaretskii <eliz@gnu.org>
5657
5ce6e4f4
JB
5658 * .gdbinit (pgx): Fix display of composite glyphs.
5659 Display cmp.from and cmp.to as well.
5660 (pitx): Fix last change.
5b28ce35 5661
bcffff46
KH
56622009-12-25 Kenichi Handa <handa@m17n.org>
5663
5664 * composite.h (composition_adjust_point): Update prototype.
5665
5666 * composite.c (composition_reseat_it): Don't make a composition
5667 spanning over point.
5668 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5669 composable characters.
5670 (composition_adjust_point): New arg NEW_PT. Callers changed.
5671
5672 * keyboard.c (command_loop_1): Force redisplay if the last point
5673 was within a composition.
5674 (adjust_point_for_property): Don't adjust point for automatic
5675 composition when called after buffer modification.
5676
3f670e9a
EZ
56772009-12-19 Eli Zaretskii <eliz@gnu.org>
5678
5ce6e4f4
JB
5679 * .gdbinit (pitx): Don't use enum names, use their values.
5680 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5681 (pgx): Don't use enum names, use their values.
5682 (pitmethod): New helper command.
5683 (pitx): Use it to display iteration method.
5684 (pgrowit): New command.
5685
ad903955
EZ
5686 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5687
3f670e9a
EZ
5688 Update dependencies in Makefile.in.
5689
5690 * Makefile.in (alloc.o): Depend on termhooks.h.
5691 (atimer.o): Depend on blockinput.h.
5692 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5693 and frame.h.
5694 (callint.o): Depend on systime.h, coding.h, and composite.h.
5695 (callproc.o): Depend on buffer.h.
5696 (casefiddle.o): Don't depend on charset.h.
5697 (casetab.o): Depend on character.h.
5698 (ccl.o): Depend on composite.h.
5699 (chartab.o): Depend on ccl.h.
5700 (cm.o): Depend on dispextern.h.
5701 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5702 (coding.o): Don't depend on $(INTERVALS_H).
5703 (composite.o): Don't depend on dispextern.h explicitly (it's in
5704 $(INTERVALS_H)). Depend on ccl.h.
5705 (data.o): Depend on systime.h, coding.h, composite.h,
5706 dispextern.h, font.h, and ccl.h.
5707 (dired.o): Depend on composite.h.
5708 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5709 composite.h (it's in $(INTERVALS_H)).
5710 (doc.o): Depend on systime.h, coding.h, and composite.h.
5711 (editfns.o): Don't depend explicitly on dispextern.h.
5712 (emacs.o): Depend on frame.h and coding.h.
5713 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5714 (fileio.o): Depend on frame.h and commands.h. Don't depend
5715 explicitly on dispextern.h.
5716 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5717 composite.h.
5718 (fns.o): Don't depend on termhooks.h.
5719 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5720 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5721 coding.h, $(INTERVALS_H), window.h, xterm.h.
5722 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5723 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5724 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5725 fontset.h, ccl.h, and ftfont.h.
5726 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5727 (gtkutil.o): Depend on dispextern.h and composite.h.
5728 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5729 termhooks.h, and ccl.h.
5730 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5731 (intervals.o): Depend on systime.h and coding.h.
5732 (keyboard.o): Depend on composite.h and coding.h.
5733 (keymap.o): Depend on coding.h and frame.h.
5734 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5735 (macros.o): Depend on systime.h, coding.h, and composite.h.
5736 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5737 and atimer.h.
5738 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5739 dispextern.h explicitly.
0b5397c2
SM
5740 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5741 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5742 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5743 (regex.o): Don't depend on charset.h.
5744 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5745 (search.o): Don't depend explicitly on composite.h.
5746 (sound.o): Depend on atimer.h and systime.h.
5747 (syntax.o): Don't depend explicitly on composite.h.
5748 (sysdep.o): Depend on coding.h and composite.h.
5749 (term.o): Depend on xterm.h and buffer.h.
5750 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5751 (textprop.o): Don't depend on dispextern.h explicitly.
5752 (undo.o): Depend on dispextern.h.
5753 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5754 dispextern.h and composite.h explicitly.
5755 (xdisp.o): Depend on ccl.h.
5756 (xfaces.o): Depend on coding.h and ccl.h.
5757 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5758 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5759 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5760 ftfont.h.
5761 (xgselect.o): New dependency.
5762 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5763 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5764 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5765 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5766 (xsmfns.o): Depend on frame.h and dispextern.h.
5767 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5768 sysselect.h.
5769
7a6f7fea
AS
57702009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5771
5772 * font.c (Fclear_font_cache): Pass correct cache argument to
5773 font_clear_cache.
5774
f4c21026
AS
57752009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5776
5777 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5778 twice.
5779
f7ab0997
CY
57802009-12-15 Chong Yidong <cyd@stupidchicken.com>
5781
5782 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5783 calling file-remote-p. Reported by Jim Meyering.
5784
fa8e045a
MA
57852009-12-15 Michael Albinus <michael.albinus@gmx.de>
5786
5787 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5788 avoid compiler warnings. (Bug #5217)
fa8e045a 5789
a63dba42
KH
57902009-12-14 Kenichi Handa <handa@m17n.org>
5791
5792 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5793 in 8-bit encoding.
5794
5ce6e4f4 57952009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5796
5797 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5798 tooltip windows.
5799
223e5fc6
JD
58002009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5801
36acb2a7
JD
5802 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5803 Xatom_net_window_type.
5804
5805 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5806 Xatom_net_window_type.
5807
b8f00677
JD
5808 * xterm.c (my_log_handler): New function.
5809 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5810 so we can filter out buggy messages. (Bug #5120).
b8f00677 5811
e5f0bc9a
JD
5812 * xterm.c (xg_scroll_callback): Parameter list changed,
5813 use parameter GtkScrollType to determine scroll/line/page.
5814 Only allow dragging if a button < 4 is grabbed (bug #5177).
5815 (xg_end_scroll_callback): New function.
5816 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5817 xg_create_scroll_bar.
5818
5819 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5820 (scroll_end_callback): Remove.
5821 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5822 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5823 bug #5177.
e5f0bc9a
JD
5824 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5825 bug #5177.
5826
5827 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5828 (xg_create_scroll_bar): Add GCallback end_callback.
5829
223e5fc6
JD
5830 * xftfont.c (QClcdfilter): New variable.
5831 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5832 (syms_of_xftfont): Initialize QClcdfilter.
5833
3c055b77
JD
58342009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5835
5836 * xsettings.c (struct xsettings): Add member seen.
5837 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5838 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5839 (apply_xft_settings): Only update Xft settings with what member seen
5840 indicates as new.
5841
05fe33ff
EZ
58422009-12-12 Eli Zaretskii <eliz@gnu.org>
5843
c4cc8b9a 5844 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5845 (struct glyph): Use EMACS_INT for charpos.
5846 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5847 region_beg_charpos, region_end_charpos,
5848 redisplay_end_trigger_charpos, and also for
5849 iterator_stack_entry.end_charpos and
5850 iterator_stack_entry.stop_charpos.
5851
e8d7886a
JD
58522009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5853
5ce6e4f4 5854 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5855 (xg_create_scroll_bar): Call scroll_end_callback on button release
5856 event (bug #5177).
5857 (xg_event_is_for_scrollbar): != replaced with ==.
5858
d0db2ec8
KH
58592009-12-12 Kenichi Handa <handa@m17n.org>
5860
5861 * ftfont.c (struct ftfont_info): New member matrix.
5862 (ftfont_open): Setup xftfont_info->matrix.
5863 (MFLTFontFT): New member matrix.
5864 (FLOOR, CEIL, ROUND): New macros.
5865 (ftfont_get_metrics): Handle matrix transformation.
5866 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5867
5868 * xftfont.c (struct xftfont_info): New member matrix.
5869 (xftfont_open): Setup xftfont_info->matrix.
5870
58712009-12-10 Kenichi Handa <handa@m17n.org>
5872
5873 * xdisp.c (append_space_for_newline): Consider face-remapping.
5874
2cc7b62f
AS
58752009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5876
b87dd913
AS
5877 * xsettings.c: Include "keyboard.h".
5878
eba5eb94
AS
5879 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5880
2cc7b62f
AS
5881 Fix implicit function declarations.
5882 * cmds.c: Include "frame.h".
5883 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5884 * frame.h: Move declaration of delete_frame outside of
5885 HAVE_WINDOW_SYSTEM.
5886
a4ef73c8
CY
58872009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5888
5889 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5890
5891 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5892 GTK builds.
5893
944a300c
AS
58942009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5895
5896 * unexelf.c (unexec): Don't search for .data twice.
5897
022eef62
CY
58982009-12-05 Chong Yidong <cyd@stupidchicken.com>
5899
426ac949
CY
5900 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5901 if push failed.
5902 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5903 of push_display_prop (Bug#5000).
5904
022eef62
CY
5905 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5906 value of font_list_entities (Bug#5085).
5907
be95bee9
JB
59082009-12-04 Juanma Barranquero <lekktu@gmail.com>
5909
5910 Fix `string-to-number' to deal consistently with integers and floats.
5911 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5912 trailing characters, not just whitespace.
5913 (read1): Pass new arg 0 to keep old behavior.
5914 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5915 trailing chars, as it is already done for integers. Doc fixes.
5916 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5917
24c2d7ce
EZ
59182009-12-04 Eli Zaretskii <eliz@gnu.org>
5919
0b5397c2
SM
5920 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5921 Delete unused enumeration value.
24c2d7ce 5922
7e694795
EZ
59232009-12-03 Eli Zaretskii <eliz@gnu.org>
5924
5925 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5926
84b31826
SM
59272009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5928
5929 * process.c (Fmake_network_process): Fix up the tests for
5930 "connectionless socket", so they DTRT for seqpacket sockets as well.
5931
f00c449b
SM
59322009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5933
5934 * process.c (Qseqpacket): New symbol.
5935 (HAVE_SEQPACKET): New macro.
5936 (Fmake_network_process): Accept new :type `seqpacket'.
5937 (init_process): Add `seqpacket' feature when applicable.
5938 (syms_of_process): Initialize Qseqpacket.
5939
8096a0ff
YM
59402009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5941
5942 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5943 if entity is Qnil.
5944
3e0de07f
SM
59452009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5946
5947 * print.c (print_preprocess): Preprocess the key_and_value table of
5948 hashtables, even tho they're "hidden" (bug#5082).
5949
abeafb2a
JD
59502009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5951
5952 * frame.c (frame_make_pointer_invisible)
5953 (frame_make_pointer_visible): Declare f before statements.
5954
4bf47195
EZ
59552009-11-28 Eli Zaretskii <eliz@gnu.org>
5956
5957 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5958 omitted dependencies on lisp.h.
5959
c525b3f2
JD
59602009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5961
ece2d4ed
JD
5962 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5963 is NULL.
5964
5965 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5966
5967 * frame.c (frame_make_pointer_invisible)
3e0de07f 5968 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5969 frame.
5970
c525b3f2
JD
5971 * search.c (simple_search): Remove warning by making *p const.
5972
2f00e299
DN
59732009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5974
5975 * xdisp.c (power_letter): Remove duplicate const.
5976
084b049b
JD
59772009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5978
a1fadc6f
JD
5979 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5980
5ce6e4f4 5981 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5982 defaults (bug #5025).
5983
28259cac
SM
59842009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5985
5986 * insdel.c (adjust_markers_for_delete): Move it in the
5987 right direction! (bug#4803)
5988
e8e14166
YM
59892009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5990
5991 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5992
5993 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5994
86677b58
GM
59952009-11-24 Glenn Morris <rgm@gnu.org>
5996
5997 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5998
581e51e8
JD
59992009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6000
cfc86c7a
JD
6001 * Makefile.in: Must create deps for ecrt0.o in its rule.
6002
581e51e8
JD
6003 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6004 because that is what Gtk+ font dialog understands.
6005
6006 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6007 of Fcopy_sequence.
6008 (font_open_by_name): Put name given into QCname for font-object returned.
6009
6010 * frame.c (x_set_font): Save original font name as frame parameter
6011 font-parameter.
6012
6013 * xsettings.c (set_default_xft_settings): New function.
6014 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6015 is found.
6016
8b264ecb
AS
60172009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6018
6019 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6020 searching backwards through multibyte buffer.
6021
872870b2
JD
60222009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6023
6024 * xterm.c: #include xgselect.h.
6025 (x_initialize): Call xgselect_initialize.
6026
6027 * xsettings.c (something_changedCB): C++ comments => C comments.
6028 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6029 does that now.
6030
6031 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6032 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6033 (scroll_bar_button_cb): Remove.
5ce6e4f4 6034 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6035 event.
6036 (xg_create_scroll_bar): Don't bind button-press-event and
6037 button-release-event.
6038
6039 * process.c: Include xgselect.h if defined (USE_GTK) ||
6040 defined (HAVE_GCONF).
6041 (wait_reading_process_output): Call xg_select for the same condition.
6042
6043 * xgselect.c (xg_select): New function to better integrate with
6044 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6045
6046 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6047
6048 * Makefile.in (XOBJ): Add xgselect.o.
6049
62a6e103
AS
60502009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6051
0b5397c2
SM
6052 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6053 Remove ignored second argument. All callers changed.
62a6e103
AS
6054 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6055 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6056 * xdisp.c (string_char_and_length): Likewise.
6057
b0ca0f33
DN
60582009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6059
6060 * xterm.c (x_new_font):
6061 * print.c (print_object):
6062 * cmds.c (Fself_insert_command): Move declarations before statements.
6063
dd5a6279
CY
60642009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6065
6066 * s/cygwin.h: Remove unneeded linker flags.
6067
4a8e097d
JD
60682009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6069
0d1d0d26
JD
6070 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6071
6072 * xsettings.h: Declare xsettings_get_system_font.
6073
6074 * xsettings.c (xsettings_get_system_font): New function.
6075 (init_gconf): No use initiating gconf unless we have Xft also.
6076 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6077 HAVE_GCONF.
6078
4a8e097d
JD
6079 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6080 add a blank entry so it doesn't collapse into nothing.
6081
8ab1650e
SM
60822009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6083
6084 * lread.c (Funintern): Comment out last change.
6085
82c602f0
RS
60862009-11-19 Richard Stallman <rms@gnu.org>
6087
6088 * lread.c (Funintern): Error if symbol is t or nil.
6089
87e32266
SM
60902009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6091
6092 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6093 representation of Lisp integers.
6094 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6095
1b9ac145
AS
60962009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6097
6098 * lisp.h: Remove declaration of Ffont_get_system_font.
6099 * xfns.c: Move include of "xsettings.h".
6100 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6101
dfb3c4c6
JD
61022009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6103
87e32266
SM
6104 * xsettings.c (something_changedCB, Ffont_get_system_font):
6105 Check use_system_font.
dfb3c4c6
JD
6106 (syms_of_xsettings): DEFVAR font-use-system-font.
6107
9370c1d8
AS
61082009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6109
25fe851a
AS
6110 * xfns.c (x_default_font_parameter): Remove dead assignment.
6111
9370c1d8
AS
6112 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6113
637fa988
JD
61142009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6115
87e32266 6116 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6117 not have FC_LCD_*. #define them if not there.
a6eb20d8 6118
87e32266 6119 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6120
637fa988
JD
6121 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6122
6123 * xterm.c (handle_one_xevent): Call xft_settings_event for
6124 ClientMessage, PropertyNotify and DestroyNotify.
6125 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6126 Call xsettings_initialize.
6127
6128 * xftfont.c (xftfont_fix_match): New function.
6129 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6130 Call xftfont_fix_match after XftFontMatch.
6131
6132 * xfont.c (xfont_driver): Initialize all members.
6133
87e32266
SM
6134 * xfns.c (x_default_font_parameter):
6135 Try font from Ffont_get_system_font.
637fa988
JD
6136 Do not get font from x_default_parameter if we got one from
6137 Ffont_get_system_font.
87e32266 6138 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6139
6140 * w32font.c (w32font_driver): Initialize all members.
6141
6142 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6143
6144 * lisp.h: Declare syms_of_xsettings.
6145
87e32266
SM
6146 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6147 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6148
6149 * ftfont.c (ftfont_filter_properties): New function.
6150
6151 * frame.c (x_set_font): Remove unused variable lval.
6152
87e32266 6153 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6154
6155 * font.c (font_put_extra): Don't return if val is nil, it means
6156 boolean option is off.
6157 (font_parse_fcname): Collect all extra properties in extra_props
6158 and call filter_properties for all drivers with extra_props and
6159 font as parameter.
87e32266
SM
6160 (font_open_entity): Do not use cache, it does not pick up new
6161 fontconfig settings like hinting.
637fa988
JD
6162 (font_load_for_lface): If spec had a name in it, store it in entity.
6163
a73f9c9d 6164 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6165
6166 * config.in: HAVE_GCONF is new.
6167
6168 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6169 xsettings.o is new.
6170
5a942932
KH
61712009-11-17 Kenichi Handa <handa@m17n.org>
6172
6173 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6174 back to the default font in case that no suitable font is found.
6175
b7c7a4d1
SM
61762009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6177
6178 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6179 Suggested by Chad Brown <yandros@mit.edu>.
6180 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6181
072f1e39
JD
61822009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6183
6184 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6185
5d1e70a2
AS
61862009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6187
87e32266 6188 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6189
a53cfbe5
JD
61902009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6191
473a99b7
JD
6192 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6193 has a parent.
6194
a53cfbe5 6195 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6196 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6197
6198 * config.in: Generated (AUTO_DEPEND).
6199
f04bb9b2
MA
62002009-11-13 Michael Albinus <michael.albinus@gmx.de>
6201
b7c7a4d1 6202 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6203 Vdbus_registered_functions_table, because it contains also
6204 properties. Fix docstring.
b7c7a4d1 6205 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6206
8f11f7ec
SM
62072009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6208
6209 * alloc.c (mark_object): Don't reprocess marked strings.
6210 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6211 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6212
8a605fe8
KH
62132009-11-13 Kenichi Handa <handa@m17n.org>
6214
8f11f7ec 6215 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6216 semantics of Vword_combining_categories.
6217 (Vword_combining_categories): Describe the slight change of the
6218 semantics.
6219
241c4680
EZ
62202009-11-13 Eli Zaretskii <eliz@gnu.org>
6221
6222 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6223
6224 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6225
5d58e44c
SM
62262009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6227
6228 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6229
5e13f9d3
JB
62302009-11-12 Juanma Barranquero <lekktu@gmail.com>
6231
6232 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6233
cf54c754
DR
62342009-11-11 David Reitter <david.reitter@gmail.com>
6235
6236 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6237 variables to fix 2009-11-09 change.
6238
a4ada374
DN
62392009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6240
91433552
DN
6241 * process.c (ifflag_def): Make flag_sym constant.
6242 (Fnetwork_interface_info): Use a constant pointer.
6243 (ifflag_table):
6244 * xfns.c (cursor_bits):
6245 * xdisp.c (power_letter):
6246 * termcap.c (speeds, esctab):
6247 * sysdep.c (baud_convert):
6248 * keyboard.c (lispy_accent_codes, modifier_names):
6249 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6250 (jpeg_format, tiff_format, gif_format, svg_format)
6251 (interlace_start, interlace_increment, gs_format):
6252 * gtkutil.c (separator_names):
6253 * fringe.c (swap_nibble):
6254 * fns.c (base64_value_to_char, base64_char_to_value):
6255 * fileio.c (make_temp_name_tbl):
6256 * coding.c (suffixes): Make constant.
6257
f4265f6c
DN
6258 * frame.c (make_initial_frame):
6259 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6260 build_string.
6261 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6262
04420943
DN
6263 * s/freebsd.h:
6264 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6265
0a5d24ae
DN
6266 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6267 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6268
a4ada374
DN
6269 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6270 * xterm.c (syms_of_xterm):
6271 * xfaces.c (syms_of_xfaces):
6272 * xdisp.c (syms_of_xdisp):
6273 * lread.c (syms_of_lread):
6274 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6275 build_string.
91433552 6276
a4ada374
DN
6277 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6278
af98fc7f
SM
62792009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6280
8ab1650e 6281 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6282
e90292a9
JD
62832009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6284
6285 * keyboard.h: Declare timer_check.
6286
6287 * keyboard.c (timer_check_2): New function that does what the old
6288 timer_check did.
6289 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6290 returned, i.e. don't return -1 with timers pending.
6291
6292 * process.c: Remove extern declaration of timer_check.
6293
6294 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6295 even if timer_check returned -1.
6296
af98fc7f
SM
6297 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6298 xg_dialog_data.
e90292a9
JD
6299 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6300 the event loop.
6301 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6302 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6303 Destroy the dialog after xg_dialog_run.
6304
045b83c0
SM
63052009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6306
6307 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6308
1fb99a3a
JD
63092009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6310
6311 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6312
04e452cb
JB
63132009-11-09 Juanma Barranquero <lekktu@gmail.com>
6314
6315 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6316
ef7417fd
SM
63172009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6318
6319 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6320 w32menu.c, and nsmenu.m.
6321 Simplify the obsolete case where position is nil.
6322 (cleanup_popup_menu): New function, moved from nsmenu.m.
6323 (struct skp): Remove slot `notreal'.
6324 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6325 adjust callers.
6326 (single_menu_item): Adjust call to parse_menu_item.
6327 (syms_of_menu): Defsubr x-popup-menu.
6328 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6329 (keymap_panes): Don't export any more.
6330 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6331 (xmenu_show): Declare.
6332 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6333 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6334 * keyboard.h (parse_menu_item): Update declaration.
6335 * xmenu.c (Fx_popup_menu): Remove.
6336 (syms_of_xmenu): Don't defsubr x-popup-menu.
6337 * w32menu.c (Fx_popup_menu): Remove.
6338 (syms_of_w32menu): Don't defsubr x-popup-menu.
6339 * nsmenu.m (cleanup_popup_menu): Remove.
6340 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6341 moved to menu.c's Fx_popup_menu.
6342 (Fx_popup_menu): Remove.
6343 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6344 menu_items (it's done in menu.c already).
6345
424d6179
SM
63462009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6347
6348 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6349 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6350
c0df13a6 63512009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6352
6353 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6354 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6355 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6356 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6357
2de9f71c
SM
63582009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6359
6360 Let integers use up 2 tags to give them one extra bit and thus double
6361 their range.
6362 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6363 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6364 New macros.
6365 (enum Lisp_Type): Use them. Give explicit values.
6366 (Lisp_Type_Limit): Remove.
6367 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6368 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6369 Pay attention to USE_2_TAGS_FOR_INTS.
6370 (INTEGERP): Use LISP_INT_TAG_P.
6371 * fns.c (internal_equal): Simplify the default case.
6372 (sxhash): Use case_Lisp_Int.
6373 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6374 any more.
6375 (Ftype_of): Use case_Lisp_Int.
6376 (store_symval_forwarding): Take into account the fact that Ints can
6377 now have more than one tag.
6378 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6379 (buffer_slot_type_mismatch):
2de9f71c
SM
6380 * xfaces.c (face_attr_equal_p):
6381 * print.c (print_object):
6382 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6383 Use case_Lisp_Int.
6384
323637a2
EZ
63852009-11-06 Eli Zaretskii <eliz@gnu.org>
6386
7ac65b38
EZ
6387 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6388
323637a2
EZ
6389 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6390 warning.
6391
e511451f
JD
63922009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6393
6394 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6395
6396 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6397
6398 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6399 ButtonPressRelease and MotionNotify (bug#4870).
6400
5e2327cf
DN
64012009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6402
5adc433e
DN
6403 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6404
d67b4f80
DN
6405 * xterm.c (syms_of_xterm):
6406 * xselect.c (syms_of_xselect):
6407 * xmenu.c (syms_of_xmenu):
6408 * xfns.c (syms_of_xfns):
6409 * xfaces.c (syms_of_xfaces):
6410 * xdisp.c (syms_of_xdisp):
6411 * window.c (syms_of_window):
6412 * w32fns.c (syms_of_w32fns):
6413 * undo.c (syms_of_undo):
6414 * textprop.c (syms_of_textprop):
6415 * terminal.c (syms_of_terminal):
6416 * syntax.c (syms_of_syntax):
6417 * sound.c (syms_of_sound):
6418 * search.c (syms_of_search):
6419 * print.c (syms_of_print):
6420 * minibuf.c (syms_of_minibuf):
6421 * macros.c (syms_of_macros):
6422 * keymap.c (syms_of_keymap, initial_define_key)
6423 (initial_define_lispy_key):
6424 * keyboard.c (syms_of_keyboard):
6425 * insdel.c (syms_of_insdel):
6426 * image.c (syms_of_image):
6427 * fringe.c (syms_of_fringe):
6428 * frame.c (syms_of_frame):
6429 * fontset.c (syms_of_fontset):
6430 * fns.c (syms_of_fns):
6431 * fns.c (syms_of_fns):
6432 * fileio.c (syms_of_fileio):
6433 * fileio.c (syms_of_fileio):
6434 * eval.c (syms_of_eval):
6435 * doc.c (syms_of_doc):
6436 * dispnew.c (syms_of_display):
6437 * dired.c (syms_of_dired):
6438 * dbusbind.c (syms_of_dbusbind):
6439 * data.c (syms_of_data):
6440 * composite.c (syms_of_composite):
6441 * coding.c (syms_of_coding):
6442 * cmds.c (syms_of_cmds):
6443 * charset.c (define_charset_internal, syms_of_character):
6444 * ccl.c (syms_of_ccl):
6445 * category.c (syms_of_category, init_category_once):
6446 * casetab.c (syms_of_casetab):
6447 * casefiddle.c (syms_of_casefiddle):
6448 * callint.c (syms_of_callint):
6449 * bytecode.c (syms_of_bytecode):
6450 * buffer.c (keys_of_buffer, syms_of_buffer):
6451 * alloc.c (syms_of_alloc):
6452 * process.c (syms_of_process, init_process):
6453 * lread.c (syms_of_lread, init_obarray):
6454 * font.c (build_style_table):
6455 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6456 intern_c_string, calls to make_pure_string with
6457 make_pure_c_string. Use pure_cons instead of Fcons.
6458
5e2327cf
DN
6459 * process.c (socket_options): Make it const.
6460 (set_socket_option, init_process): Use a const pointer.
6461
6462 * lread.c (intern_c_string): New function.
6463 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6464 (defvar_int): Uset it. Make the name const char*.
6465
6466 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6467 (defvar_int): Update prototypes.
6468 (DEFUN, EXFUN): Support for prototypes is now required.
6469 (intern_c_string): New prototype.
6470 (struct Lisp_Subr): Make symbol_name constant.
6471
6472 * font.c (struct table_entry): Remove unused member. Make NAMES
6473 constant.
6474 (weight_table, slant_table, width_table): Make constant.
6475
6476 * emacs.c (struct standard_args): Make name and longname constant.
6477
6478 * character.h (DEFSYM): Use intern_c_string.
6479
a56eaaef
DN
64802009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6481
6482 * alloc.c (make_pure_c_string): New function.
6483
6484 * eval.c (Fautoload): Purecopy all arguments.
6485
f6a07420
KH
64862009-11-05 Kenichi Handa <handa@m17n.org>
6487
6488 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6489 the buffer in case of replace.
6490
5d28d4b1
DN
64912009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6492
6493 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6494
b349d111
SM
64952009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6496
d528b1ce
SM
6497 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6498 when applicable (bug#4851).
6499
b349d111
SM
6500 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6501 (P_): Support for prototypes is now required.
6502
c38eb027
CY
65032009-10-31 Chong Yidong <cyd@stupidchicken.com>
6504
6505 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6506 (Bug#4827).
6507
0405f8d9
EZ
65082009-10-30 Eli Zaretskii <eliz@gnu.org>
6509
d528b1ce 6510 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6511
ca0a881a
DN
65122009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6513
6514 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6515
d528b1ce
SM
6516 * lread.c (Fload): Purecopy the file name when building
6517 Vpreloaded_file_list.
ca0a881a 6518
47e0e0e4
JR
65192009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6520
6521 * w32fns.c (syms_of_w32fns): Change default value of
6522 w32-scroll-lock-modifier to nil. (Bug#2827)
6523
057bce6f
JB
65242009-10-26 Juanma Barranquero <lekktu@gmail.com>
6525
782a943e 6526 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6527
242bc74c
AS
65282009-10-26 Andreas Schwab <schwab@redhat.com>
6529
6530 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6531
522d013a
JB
65322009-10-26 Juanma Barranquero <lekktu@gmail.com>
6533
6534 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6535 For delta < 0, skip check that only makes sense when the mini-window
6536 is going to be enlarged. (Bug#4534)
6537
18060980
CY
65382009-10-25 Chong Yidong <cyd@stupidchicken.com>
6539
6540 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6541 string in menu maps (Bug#4471).
6542
fec8f0fe
CY
65432009-10-24 Chong Yidong <cyd@stupidchicken.com>
6544
6545 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6546 FRAME_NS_VIEW on terminal frames (Bug#4765).
6547
10d66ec0
AS
65482009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6549
1cae01f7
AS
6550 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6551 DBUS_TYPE_UINTnn separately to get proper sign extension.
6552
58a12889
AS
6553 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6554 can properly handle unsigned types.
d528b1ce 6555 (make_uid, make_gid): Remove.
58a12889 6556
987c9327
AS
6557 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6558 types again.
6559
522d013a 6560 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6561 (system_process_attributes): Likewise.
6562
905a9ed3
DN
65632009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6564
6565 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6566
6567 * eval.c (Fautoload): Purecopy the filename. Simplify.
6568
6569 * category.c (Fdefine_category): Purecopy docstring.
6570
a599b3e8
AS
65712009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6572
7b792fc9
AS
6573 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6574
a599b3e8
AS
6575 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6576
b35ac83e
CY
65772009-10-23 Chong Yidong <cyd@stupidchicken.com>
6578
6579 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6580 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6581 (Bug#4775).
6582
e8903e00
SM
65832009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6584
6585 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6586 (init_fileio_once):
6587 * lisp.h (init_fileio_once): Remove.
6588 * emacs.c (main): Don't call init_fileio_once.
6589
8f43cbf3
DN
65902009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6591
6592 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6593
26898943
AS
65942009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6595
6596 * doprnt.c (doprnt): Fix overflow check.
6597
5c646d5a
JD
65982009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6599
3132a7ea
JD
6600 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6601
5c646d5a
JD
6602 * xterm.h (x_wait_for_event): Declare it.
6603
6604 * xterm.c (pending_event_wait): New variable.
6605 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6606 see pending_event_wait.eventtype.
6607 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6608 (x_new_font): Call change_frame_size with new rows/columns before we
6609 try to resize the frame.
5c646d5a 6610 (x_wait_for_event): New function.
d528b1ce
SM
6611 (x_set_window_size_1): Don't change gravity unless change_gravity
6612 is set.
5c646d5a
JD
6613 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6614 don't change frame size, instead wait for the ConfigureNotify.
6615 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6616 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6617 (x_initialize): Initialize pending_event_wait.
6618
6619 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6620 size.
6621
6622 * widget.c (EmacsFrameSetValues): Add comment.
6623 (EmacsFrameSetCharSize): Just call x_set_window_size.
6624
6625 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6626 x_wait_for_event.
d528b1ce 6627 (flush_and_sync): Remove again.
5c646d5a
JD
6628 (xg_get_font_name): Suggest monospace if no previous font is known.
6629
e9c1637d
SM
66302009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6631
6632 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6633 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6634
5a72cccb
YM
66352009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6636
6637 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6638 processing pending events when event is filtered for input method.
ab04798f 6639 (Bug#3681)
5a72cccb 6640
2629aa37
JB
66412009-10-20 Juanma Barranquero <lekktu@gmail.com>
6642
6643 * fns.c: Add #endif accidentally removed in previous change.
6644
c3417a74
DN
66452009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6646
6647 * fns.c: Remove code for unsupported system: MAC_OS.
6648 * image.c: Likewise. Include setjmp.h.
6649
9685cef2
JD
66502009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6651
6652 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6653 pixel -1 (bug #4742).
6654
d7306fe6
DN
66552009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6656
019d2c4c
DN
6657 * process.c (create_pty): Remove conditionals for no longer
6658 supported systems: UNIPLUS and RTU.
6659
ee6bacd4
DN
6660 * xterm.c:
6661 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6662
d7306fe6
DN
6663 * alloc.c: Do not define struct catchtag.
6664 * eval.c: Move struct catchtag definition ...
6665 * lisp.h: ... here.
6666
6667 * image.c: Move png.h #include earlier to avoid warnings.
6668
6669 * xterm.c:
6670 * xsmfns.c:
6671 * xselect.c:
6672 * xrdb.c:
6673 * xmenu.c:
6674 * xftfont.c:
6675 * xfont.c:
6676 * xfns.c:
6677 * xfaces.c:
6678 * xdisp.c:
6679 * window.c:
6680 * widget.c:
6681 * w32xfns.c:
6682 * w32uniscribe.c:
6683 * w32term.c:
6684 * w32select.c:
6685 * w32reg.c:
6686 * w32proc.c:
6687 * w32menu.c:
6688 * w32inevt.c:
6689 * w32heap.c:
6690 * w32font.c:
6691 * w32fns.c:
6692 * w32console.c:
6693 * w32.c:
6694 * w16select.c:
6695 * vm-limit.c:
6696 * unexsol.c:
6697 * unexec.c:
6698 * unexcw.c:
6699 * unexaix.c:
6700 * undo.c:
6701 * tparam.c:
6702 * textprop.c:
6703 * terminfo.c:
6704 * terminal.c:
6705 * termcap.c:
6706 * term.c:
6707 * syntax.c:
6708 * sound.c:
6709 * sheap.c:
6710 * search.c:
6711 * scroll.c:
6712 * region-cache.c:
6713 * regex.c:
6714 * ralloc.c:
6715 * process.c:
6716 * print.c:
b024548b
DN
6717 * nsterm.m:
6718 * nsselect.m:
6719 * nsmenu.m:
6720 * nsimage.m:
6721 * nsfont.m:
6722 * nsfns.m:
d7306fe6
DN
6723 * msdos.c:
6724 * minibuf.c:
6725 * menu.c:
6726 * marker.c:
6727 * macros.c:
6728 * keymap.c:
6729 * keyboard.c:
6730 * intervals.c:
6731 * insdel.c:
6732 * indent.c:
6733 * gtkutil.c:
6734 * ftxfont.c:
6735 * ftfont.c:
6736 * fringe.c:
6737 * frame.c:
6738 * fontset.c:
6739 * font.c:
6740 * fns.c:
6741 * floatfns.c:
6742 * filelock.c:
6743 * fileio.c:
6744 * emacs.c:
6745 * editfns.c:
6746 * dosfns.c:
6747 * doprnt.c:
6748 * doc.c:
6749 * dispnew.c:
6750 * dired.c:
6751 * dbusbind.c:
6752 * data.c:
6753 * composite.c:
6754 * coding.c:
6755 * cmds.c:
6756 * cm.c:
6757 * chartab.c:
6758 * charset.c:
6759 * character.c:
6760 * ccl.c:
6761 * category.c:
6762 * casetab.c:
6763 * casefiddle.c:
6764 * callproc.c:
6765 * callint.c:
6766 * bytecode.c:
6767 * buffer.c:
6768 * atimer.c: Include setjmp.h. (Bug#4643)
6769
fd5f21e6
SM
67702009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6771
4c0354d7
SM
6772 Remove leftover table unibyte_to_multibyte_table.
6773 * character.c (unibyte_to_multibyte_table): Remove.
6774 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6775 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6776 * character.h (UNIBYTE_TO_CHAR): New macro.
6777 (MAKE_CHAR_MULTIBYTE): Use it.
6778 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6779 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6780 (message_dolog, set_message_1):
6781 * search.c (Freplace_match):
6782 * editfns.c (Fcompare_buffer_substrings):
6783 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6784 (concat):
6785 * insdel.c (copy_text, count_size_as_multibyte):
6786 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6787 * term.c (produce_glyphs):
6788 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6789 * regex.c (RE_CHAR_TO_MULTIBYTE):
6790 * cmds.c (internal_self_insert):
6791 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6792
fd5f21e6
SM
6793 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6794
4418646e
DN
67952009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6796
6797 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6798
35f5c1d2
JB
67992009-10-16 Juanma Barranquero <lekktu@gmail.com>
6800
6801 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6802
a0cd8f6b
AR
68032009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6804
6805 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6806 still needed under Tiger.
6807
6808 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6809
6810 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6811 __Apple__.
6812
6813 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6814
01a8d3fa
KH
68152009-10-15 Kenichi Handa <handa@m17n.org>
6816
6817 * print.c (print_object): Escape a symbol like "2E10" too.
6818
bf6c75c9 68192009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6820
6821 Cleanups and changes for 64-bit compile under Snow Leopard.
6822 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6823
6824 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6825
c5959062 6826 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6827 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6828 cast argument.
6829 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6830 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6831
6832 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6833
6834 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6835 where appropriate.
6836
6837 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6838 where appropriate.
6e4780c5
JB
6839 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6840 Use stringWithUTF8String.
bf6c75c9
AR
6841 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6842
6e4780c5
JB
6843 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6844 Add formal protocol mention to inheritance.
bf6c75c9
AR
6845 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6846
6e4780c5
JB
6847 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6848 Fix printf format.
bf6c75c9
AR
6849 (ns_query_color): Use CGFloat where appropriate.
6850 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6851 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6852 argument.
6853
3d87f118
AR
6854 * config.in (NS_HAVE_NSINTEGER): Drop.
6855
a95c8102
AR
6856 * dbusbind.c (dbus-method-return-internal)
6857 (dbus-method-error-internal): Use long format in printf, and cast
6858 argument.
6859
6860 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6861 in printf, and cast argument.
6862
6873acca 6863 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6864 cast argument.
6865
9ec6f100
GM
68662009-10-11 Glenn Morris <rgm@gnu.org>
6867
6868 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6869
5be883cd
JD
68702009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6871
6872 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6873 menu bar with a small width so it doesn't enlarge the frame.
6874
d7a39b51
JB
68752009-10-08 Juanma Barranquero <lekktu@gmail.com>
6876
6877 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6878
0c2b6f8e
GM
68792009-10-06 Glenn Morris <rgm@gnu.org>
6880
6881 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6882 SOME_MACHINE_LISP (this enters indirectly via DOC).
6883
e02131a2
EZ
68842009-10-05 Eli Zaretskii <eliz@gnu.org>
6885
6886 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6887
b4744254
EZ
68882009-10-04 Eli Zaretskii <eliz@gnu.org>
6889
6890 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6891 Doc fix.
6892
dbf64827
JB
68932009-10-03 Martin Rudalics <rudalics@gmx.at>
6894
6895 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6896
e9a0aef8
MA
68972009-10-02 Michael Albinus <michael.albinus@gmx.de>
6898
d528b1ce 6899 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6900 used anymore outside fileio.c.
6901
6902 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6903
64eb2b56
JB
69042009-10-01 Juanma Barranquero <lekktu@gmail.com>
6905
6906 * lisp.h (Qdelete_directory_internal):
6907 Declare, instead of Qdelete_directory.
6908
6909 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6910
9d28c33e
SM
69112009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6912
6913 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6914
9d8f3bd9
MA
69152009-10-01 Michael Albinus <michael.albinus@gmx.de>
6916
9d28c33e 6917 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6918 Fdelete_directory. It is not a command anymore. It has no file
6919 name handler.
6920
9694740b
SM
69212009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6922
6923 * xdisp.c (get_next_display_element): Use an enum in last change.
6924
748e162f
KH
69252009-09-28 Kenichi Handa <handa@m17n.org>
6926
9694740b 6927 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6928 unibyte_display_via_language_environment in handling
6929 Vnobreak_char_display.
6930
17efd58d
AR
69312009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6932
6933 * nsterm.h (ns_app_name): New extern variable.
6934
6935 * nsterm.m (ns_app_name): New variable.
6936 (ns_term_init): Set and use it.
6937 (ns_term_shutdown): Use it.
6938
6939 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6940 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6941
6942 * nsfns.m (ns_set_name_iconic, ns_set_name)
6943 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6944 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6945
9694740b
SM
6946 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6947 Remove double-casting in client_data comparison.
31c2d412 6948
3208cb35
YM
69492009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6950
6951 * keyboard.c (make_lispy_event): Remember last wheel direction.
6952 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6953
b7d552d6
GM
69542009-09-26 Glenn Morris <rgm@gnu.org>
6955
6956 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6957 internal.elc. Add term/pc-win.elc.
6958 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6959 term/x-win.elc.
6960 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6961 term/w32-win.elc.
6962 (NS_SUPPORT): New.
6963 (lisp): Add NS_SUPPORT.
6964 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6965
4ff670a8
DR
69662009-09-25 David Reitter <david.reitter@gmail.com>
6967
6968 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6969 on Mac OS X 10.6+ (bug#4513).
6970
feabfb6c
JB
69712009-09-24 Juanma Barranquero <lekktu@gmail.com>
6972
6973 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6974 some parts of Emacs code (like font selection) don't grok them.
6975 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6976
de59072a
AS
69772009-09-24 Andreas Schwab <schwab@redhat.com>
6978
6979 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6980
a489517b
JB
69812009-09-24 Juanma Barranquero <lekktu@gmail.com>
6982
6983 * dired.c (Fdirectory_files): Fix typo in docstring.
6984
0592970c
AR
69852009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6986
6987 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6988 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6989 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6990 under GNUstep.
6991 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6992
6993 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6994 glyph advancement.
6995
48e8a88b
AR
69962009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6997
6998 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6999 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7000
7001 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7002 deleted (bug #4492).
7003
e14f0a78
AR
7004 * nsfont.m (Vns_reg_to_script): New lisp variable.
7005 (syms_of_nsfont): Declare it.
7006 (ns_registry_to_script): New function.
7007 (ns_get_req_script): Call it.
7008 (ns_findfonts): Don't give up on non-unicode registry.
7009
7010 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7011
5b650faa
SM
70122009-09-20 Tom Tromey <tromey@redhat.com>
7013
7014 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7015 batch mode (bug#4228).
7016
a489517b 70172009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7018
7019 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7020 carefully. (Bug #4339)
0bae4e09 7021
fcfe06f3
CY
70222009-09-18 Chong Yidong <cyd@stupidchicken.com>
7023
d798ba87 7024 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7025
31642728
AR
70262009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7027
7028 * emacs.c (inhibit_x_resources): Update doc string for NS.
7029 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7030 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7031
7032 * nsterm.h (ns_no_defaults): Remove.
7033
7034 * nsterm.m (ns_no_defaults): Remove.
7035 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7036 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7037 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7038 don't update the NSWindow itself.
7039 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7040 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7041
7042 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7043 ns_use_qd_smoothing.
7044
7045 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7046 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7047 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7048 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7049
8686ac71
JB
70502009-09-17 Juanma Barranquero <lekktu@gmail.com>
7051
7052 * emacs.c (inhibit_x_resources): New variable.
7053 (main) [HAVE_NS]: Don't process --quick command line option.
7054 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7055
7056 * lisp.h (inhibit_x_resources): Declare it extern.
7057
7058 * w32reg.c (x_get_string_resource):
7059 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7060
e227ba05
EZ
70612009-09-17 Eli Zaretskii <eliz@gnu.org>
7062
362654a6
JB
7063 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7064 Add lisp/term/internal.elc.
e227ba05 7065
742d40e8
SM
70662009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7067
7068 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7069 (bug#4461).
7070
005bd5a2
DN
70712009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7072
7073 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7074
7075 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7076 (OBJECTS_MACHINE): Remove, unused.
7077
f9af9719
SM
70782009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7079
7080 * frame.c (x_get_resource_string): Remove unused.
7081
0307c7d2
JD
70822009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7083
7084 * xterm.c (x_new_font): Call change_frame_size before calling
7085 x_set_window_size, in case frame size won't change.
7086
7087 * frame.c (x_set_font): Remove dead code.
7088
428b13d6
SM
70892009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7090
7091 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7092
5766c380
SM
70932009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7094
7095 * lread.c (Fload): Don't output a message after loading an obsolete
7096 package any more (done in Lisp now).
7097
2fd0161b
CY
70982009-09-12 Chong Yidong <cyd@stupidchicken.com>
7099
7100 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7101
bc5e75b6
SM
71022009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7103
7104 * keymap.c (Fwhere_is_internal): Use nconc2.
7105
c31c985e
AM
71062009-09-11 Alan Mackenzie <acm@muc.de>
7107
7108 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7109 batch mode.
7110
78012bd2
AS
71112009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7112
7113 * xdisp.c (display_mode_element): Detect cycles.
7114
9d889332
SM
71152009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7116
7117 * keymap.c (where_is_internal): Don't erroneously return nil right after
7118 filling the cache.
7119 (where_is_internal_1): Fix up typo.
7120
7ab5d780
GM
71212009-09-11 Glenn Morris <rgm@gnu.org>
7122
7123 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7124 share a common doc-string.
7125
5238a749
SM
71262009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7127
66d77eda
SM
7128 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7129 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7130
5238a749
SM
7131 * keymap.c (QCadvertised_binding): New constant.
7132 (syms_of_keymap): Initialize it.
7133 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7134 if applicable.
7135
19f48442
SM
71362009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7137
50d4ba39
SM
7138 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7139 (parse_menu_item): Streamline since bindings are recomputed all the
7140 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7141 more and don't support lmenu's menu-alias any more either.
7142
a88a5372
SM
7143 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7144 (where_is_internal): Strip it down to only traverse the keymaps.
7145 Move the cache handling from Fwhere_is_internal to here.
7146 (Fwhere_is_internal): Move the handling of remapping and the choice of
7147 the best binding from where_is_internal to here.
7148 Unify the cached/noncached paths, so remapping is also handled
7149 correctly when the cache is used, and so the cache can be used to
7150 speed up remap-handling when applicable.
7151 Give preference to non-remapped bindings.
7152 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7153 non-remapped bindings.
7154 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7155 command remapping.
7156
19f48442
SM
7157 * xdisp.c (display_mode_element): Move list length limit from 50 to
7158 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7159
599498c3 71602009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7161
7162 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7163
f9b7b5ac
SM
71642009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7165
a53af587
JB
7166 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7167 (Bug#4334)
7168
f9b7b5ac
SM
7169 * keymap.c (where_is_internal): Filter out shadowed remappings.
7170 Assume that where_is_internal returns unshadowed bindings to simplify
7171 the code and get rid of the gotos. Use ASIZE.
7172
04f4b72d
JD
71732009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7174
4da146f2
JD
7175 * xterm.c (x_focus_changed): If we get a focusout and pointer
7176 is invisible, make it visible.
7177
04f4b72d
JD
7178 * xterm.h: Remove condition for declaration of
7179 x_*_window_to_frame.
7180
7cef7ce3
SM
71812009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7182
7183 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7184 initial terminal as well.
7185
a54fa5b7
JD
71862009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7187
7188 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7189 x_menubar_window_to_frame.
a54fa5b7 7190
50426a04 7191 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7192 (XTmouse_position): Do not return valid positions
7193 for clicks in the menubar and the toolbar for Gtk+.
7194
7195 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7196 if the widget for the event has the same top level as a frame,
7197 return the frame.
7198 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7199 internal windows, bug #4122.
7200 (x_non_menubar_window_to_frame): Remove.
7201
5a021dd0
GM
72022009-09-02 Glenn Morris <rgm@gnu.org>
7203
7204 * buffer.c (default-major-mode): Move most of the doc from here...
7205 (major-mode): ... to here.
7206
548fe2f3
NR
72072009-08-30 Nick Roberts <nickrob@snap.net.nz>
7208
7209 * process.c (wait_reading_process_output): Keep the descriptor
7210 when pty is used by a non-child process, e.g., in I/O buffer of
7211 GDB this allows inferior to be restarted.
7212
e0840eef
EZ
72132009-08-29 Eli Zaretskii <eliz@gnu.org>
7214
7215 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7216 both branches into one.
7217
82e98df4
SM
72182009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7219
7220 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7221 (main): Use enable-multibyte-characters rather than
7222 default-enable-multibyte-characters. Output a warning message when
7223 running a unibyte session.
7224
890617cb
YM
72252009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7226
7227 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7228 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7229 (copy_data_segment): Also copy __program_vars section.
7230 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7231 (dump_it) [LC_DYLD_INFO]: Use it.
7232
7233 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7234
e7adeadc
EZ
72352009-08-28 Eli Zaretskii <eliz@gnu.org>
7236
7237 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7238 $(SRC)/buildobj.h.
7239 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7240 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7241 $(SRC)/buildobj.h.
7242 (clean): Add buildobj.h.
7243
3ed8bbdc
TZ
72442009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7245
7246 * print.c (print_object): Set escapeflag to 1 when printing
7247 hashtable keys and values.
7248
155a6764
SM
72492009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7250
7251 * lread.c (read_integer): Use doubles (and potentially return a float
7252 number) as we do in string-to-number.
7253 (read1): Use strtol to read integers, signal errors on strtol's
7254 overflow and use floats if strtol's output is too large for
7255 Elisp integers.
7256
877610de
EZ
72572009-08-27 Eli Zaretskii <eliz@gnu.org>
7258
7259 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7260 (make-buildobj-SH): Fix last change.
7261 (SRC): Move to before where it's first used.
7262
ef73e7be
KH
72632009-08-27 Kenichi Handa <handa@m17n.org>
7264
550c8289
KH
7265 * process.c (send_process): Use encode_coding_object instead of
7266 encode_coding_string to perform eol-conversion even if the string
7267 is unibyte.
7268
60afa08d
KH
7269 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7270 character.
7271
ef73e7be 7272 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7273 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7274
7b3a82d7
DN
72752009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7276
5654bf63
DN
7277 * callproc.c (Fcall_process): Remove always true #if.
7278
7b3a82d7
DN
7279 * lisp.h: Replace #if 0 code for checking with text pointing to
7280 the --enable-checking configure flag.
7281
7282 * emacs.c (main): Mention the --enable-profiling configure flag
7283 instead of using CFLAGS.
7284
878bde49
KR
72852009-08-26 Ken Raeburn <raeburn@raeburn.org>
7286
7287 * Makefile.in (buildobj.h): New target.
7288 (doc.o): Depend on it.
7289 (temacs${EXEEXT}): Don't generate buildobj.lst.
7290 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7291 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7292 ($(BLD)/doc.$(O)): Depend on it.
7293 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7294 provided by Eli Zaretskii.)
7295 ($(TEMACS)): Don't generate buildobj.lst.
7296 * doc.c: Include buildobj.h.
7297 (buildobj): New static variable.
7298 (Fsnarf_documentation): Use it, instead of opening and reading
7299 buildobj.lst.
7300
1574224c
MA
73012009-08-25 Michael Albinus <michael.albinus@gmx.de>
7302
7303 * dbusbind.c (Fdbus_call_method)
7304 (Fdbus_call_method_asynchronously): Use English numeric format for
7305 timeout values in doc string.
7306
d9da2f45
KH
73072009-08-25 Kenichi Handa <handa@m17n.org>
7308
ef73e7be
KH
7309 * alloc.c (mark_char_table): New function.
7310 (mark_object): Use mark_char_table for a char-table.
7311
d9da2f45
KH
7312 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7313 (CHAR_TABLE_REF): Use it.
7314
c8edcc01
KR
73152009-08-23 Ken Raeburn <raeburn@raeburn.org>
7316
7317 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7318 before invoking the newly build emacs to check for load-path
7319 shadowing.
7320
7763401b
GM
73212009-08-22 Glenn Morris <rgm@gnu.org>
7322
7323 * Makefile.in (bootstrap_exe): New variable.
7324 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7325 Use ${bootstrap_exe}.
7326
729eadda
EZ
73272009-08-22 Eli Zaretskii <eliz@gnu.org>
7328
7329 * coding.h (encode_coding_string): Don't encode unibyte strings.
7330 (Bug#4047)
7331
eb4c6ace
MA
73322009-08-22 Michael Albinus <michael.albinus@gmx.de>
7333
7334 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7335
7336 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7337 intended as hotfix only.
7338 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7339
36e34d1b
AR
73402009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7341
7342 * nsterm.m (ns_get_color): Update documentation properly for last
7343 change, and clean up loose ends in the code left by it. Fix
7344 longstanding bug with 16-bit hex parsing, and add support for
7345 yet another X11 format (rgb:r/g/b) for compatibility.
7346 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7347 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7348
f983eb8a
SM
73492009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7350
7351 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7352
3f56d3c6
MA
73532009-08-20 Michael Albinus <michael.albinus@gmx.de>
7354
7355 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7356 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7357 (xd_initialize, xd_pending_messages): Check, whether
7358 $DBUS_SESSION_BUS_ADDRESS is set.
7359
fb641d68
YM
73602009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7361
7362 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7363
7364 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7365
cf59a374
GM
73662009-08-20 Glenn Morris <rgm@gnu.org>
7367
7368 * emacs.c (system-type): Doc fix.
7369
1373f3be
SM
73702009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7371
7372 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7373 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7374
058ed861
MA
73752009-08-18 Michael Albinus <michael.albinus@gmx.de>
7376
1373f3be
SM
7377 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7378 New functions.
058ed861
MA
7379 (xd_initialize): Revert change from 2009-08-16.
7380
563a866e 73812009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7382
7383 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7384 font-group vector, return nil.
5fc05db0 7385
e42bdf01
CY
73862009-08-17 Chong Yidong <cyd@stupidchicken.com>
7387
7388 * process.c (status_notify): Don't perform redisplay.
7389 (Fdelete_process, list_processes_1, process_send_signal):
7390 Expliticly perform redisplay.
7391 (wait_reading_process_output): Always check process status, but
7392 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7393
4230ab74
KR
73942009-08-17 Ken Raeburn <raeburn@raeburn.org>
7395
1373f3be 7396 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7397 (XFLOAT_INIT): New macro for storing a float value.
7398 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7399 * fns.c (sxhash): Copy out the value of a float in order to
7400 examine its bytes.
7401 * dbusbind.c (xd_append_arg): Likewise.
7402
4230ab74
KR
7403 * emacs.c (main): Don't call syms_of_data twice.
7404
a0645cdd
MA
74052009-08-16 Michael Albinus <michael.albinus@gmx.de>
7406
7407 * dbusbind.c (xd_initialize): Add connection file descriptor to
7408 input_wait_mask, in order to let select() detect, whether a new
7409 message has been arrived.
ca4f31ea 7410 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7411
485db0ba
MA
74122009-08-15 Michael Albinus <michael.albinus@gmx.de>
7413
1373f3be
SM
7414 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7415 New functions.
485db0ba
MA
7416
7417 * lisp.h (xd_pending_messages): Declare.
7418
7419 * keyboard.c (readable_events): Call xd_pending_messages.
7420
b5b98ff4
CY
74212009-08-15 Chong Yidong <cyd@stupidchicken.com>
7422
1373f3be 7423 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7424
f8354c6e
CY
7425 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7426
b5b98ff4
CY
7427 * buffer.c (set_buffer_internal_1)
7428 (swap_out_buffer_local_variables): Check for unbound local
7429 variables (Bug#4138).
7430
8b9fc636
EZ
74312009-08-14 Eli Zaretskii <eliz@gnu.org>
7432
7433 * process.c (create_pty): Fix last change.
7434
ce959360
CY
74352009-08-13 Chong Yidong <cyd@stupidchicken.com>
7436
7437 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7438 (xbm_load_image): Caller changed.
64b807c9 7439 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7440
c7baf7e9
NR
74412009-08-13 Nick Roberts <nickrob@snap.net.nz>
7442
7443 * process.c (create_pty): New function.
7444 (Fstart_process): Use it to allow Emacs to just associate a pty
7445 with the buffer. See associated change in gdb-mi.el.
7446 (list_processes_1): Deal with no program name.
7447 (start_process_unwind): Use pid == -2 to mean no process.
7448
1ac9108a
SM
74492009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7450
7451 * cmds.c (nonundocount): New global variable.
7452 (keys_of_cmds): Initialize it.
7453 (Fself_insert_command): Use it to combine upto 20 sequential chars
7454 into a single undo entry, just like the Qself_insert_command code in
7455 keyboard.c does.
7456 Call frame_make_pointer_invisible, also like the Qself_insert_command
7457 code in keyboard.c does.
7458 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7459 than its own local replacement for it.
7460
e267324c
KR
74612009-08-10 Ken Raeburn <raeburn@raeburn.org>
7462
1ac9108a 7463 * fns.c (concat): Don't re-set string length to its current value.
77437343 7464
1ac9108a
SM
7465 * coding.h (decode_coding_string, encode_coding_string):
7466 Use SBYTES macro.
f0bed503 7467
1ac9108a 7468 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7469 (doprnt): Merge with doprnt1, discarding lispstrings code.
7470 * lisp.h (doprnt_lisp): Don't declare.
7471
416e006d
JL
74722009-08-07 Juri Linkov <juri@jurta.org>
7473
7474 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7475
6f7d5780
DN
74762009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7477
7478 * print.c (syms_of_print): Undo previous change.
7479
f19a0f5b
TZ
74802009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7481
7482 * lread.c (read1, syms_of_lread): Read hashtables back from the
7483 readable format.
7484
7485 * print.c (print_preprocess, print_object): Print hashtables fully
7486 and readably.
7487 (syms_of_print): Provide 'hashtable-print-readable.
7488
b9173dc2
AR
74892009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7490
7491 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7492 no family set.
7493 (nsfont_open): Handle case when entity has no family.
7494
1586503c
AR
74952009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7496
7497 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7498 element, not a list, for match case.
7499
087048cd
KH
75002009-07-28 Kenichi Handa <handa@m17n.org>
7501
7502 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7503 rigidly.
7504
7505 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7506 font_parse_xlfd. Check font properties more rigidly.
7507
780c2506
DN
75082009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7509
31fd7c5c
JB
7510 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7511 bsd-common.h.
780c2506 7512
a8c0cc18
KH
75132009-07-27 Kenichi Handa <handa@m17n.org>
7514
7515 * xfaces.c (face_with_height): Call font_clear_prop.
7516
4fbe2306
CY
75172009-07-26 Chong Yidong <cyd@stupidchicken.com>
7518
111d9af3
CY
7519 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7520
7521 * xterm.c (x_term_init): Use Qx.
7522
4fbe2306
CY
7523 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7524
1ac9108a 7525 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7526 (ns_get_color): Revert 2009-07-16 change.
7527
beb0b7f9
EZ
75282009-07-25 Eli Zaretskii <eliz@gnu.org>
7529
7530 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7531 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7532
2baf5e76
KR
75332009-07-25 Ken Raeburn <raeburn@raeburn.org>
7534
1ac9108a
SM
7535 * coding.h (decode_coding_string, encode_coding_string):
7536 Use SCHARS macro.
8890e5f5 7537
2baf5e76 7538 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7539 (load_depth): Delete.
2baf5e76
KR
7540 (Qload_in_progress): New variable.
7541 (load_unwind): Don't reference load_depth or load_in_progress.
7542 (Fload): Likewise; specbind Qload_in_progress instead.
7543 (init_lread): Don't initialize load_depth.
7544 (syms_of_lread): Initialize and protect Qload_in_progress.
7545
1395c6f5
AR
75462009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7547
7548 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7549
4e2f36cf
AR
75502009-07-23 Yavor Doganov <yavor@gnu.org>
7551
7552 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7553
5dd9a6f7
AR
75542009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7555
7556 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7557 Bugs 3792, 3720, 2402.
7558 (ns_lookup_indexed_color): Check for bad index.
7559 (ns_index_color): Init unused slot to 0.
7560 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7561 Bug 3714, possibly 3082.
5dd9a6f7 7562
c902b920
JR
75632009-07-22 Jason Rumney <jasonr@gnu.org>
7564
1ac9108a
SM
7565 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7566 Position IME window at cursor (Bug#2570).
c902b920
JR
7567 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7568 (globals_of_w32fns): Dynamically load functions required above.
7569
7570 * w32term.c (w32_draw_window_cursor): Send message to reposition
7571 any IME window.
7572
090101cf
CY
75732009-07-21 Chong Yidong <cyd@stupidchicken.com>
7574
7575 * fileio.c: Revert 2009-07-16 changes.
7576 (Vauto_save_include_big_deletions): New variable.
7577 (Fdo_auto_save): Disable auto-save only if
7578 auto-save-include-big-deletions is nil.
7579
e6583e3d
CY
75802009-07-21 Chong Yidong <cyd@stupidchicken.com>
7581
7582 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7583 the overflowed pixels into account (Bug#3879).
7584
ece435a5
KR
75852009-07-21 Ken Raeburn <raeburn@raeburn.org>
7586
7587 * lread.c (load_depth): New variable.
7588 (Fload, load_unwind, init_lread): Set it to the load recursion
7589 depth; set load_in_progress as a simple boolean based on the
7590 current load_depth. (Bug#3892)
7591
40b2d973
AR
75922009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7593
7594 * nsfont.m (ns_has_attribute): Remove.
7595 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7596
10be7e0d
JL
75972009-07-18 Juri Linkov <juri@jurta.org>
7598
7599 * process.c (Fset_process_query_on_exit_flag): Mention killing
7600 a buffer in docstring.
7601
fa055055
KH
76022009-07-17 Kenichi Handa <handa@m17n.org>
7603
7604 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7605
042f7b69
YM
76062009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7607
7608 * nsfns.m (Fns_set_alpha): Remove function.
7609 (syms_of_nsfns): Don't defsubr it.
7610
7611 * nsterm.m (ns_get_color): Remove incompatible color formats.
7612 (ns_color_to_lisp): Generate #rrggbb color format string.
7613
4be941e3
RS
76142009-07-16 Richard Stallman <rms@gnu.org>
7615
7616 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7617 (Fset_buffer_auto_saved): Handle save_length = -2.
7618
4e6b227d
CY
76192009-07-16 Chong Yidong <cyd@stupidchicken.com>
7620
7621 * xterm.c (Qx_gtk_map_stock): New var.
7622
7623 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7624 of calling intern each time.
7625
a1856973
YM
76262009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7627
7628 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7629 does tiling.
7630
7631 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7632
497e54d8
KH
76332009-07-14 Kenichi Handa <handa@m17n.org>
7634
72d36834
KH
7635 * font.c (font_vconcat_entity_vectors): New function.
7636 (struct font_sort_data): New member font_driver_preference.
7637 (font_compare): Check font_driver_preference.
7638 (font_sort_entities): The format of the first argument changed.
7639 (font_delete_unmatched): Likewise.
7640 (font_list_entities): The return type changed.
7641 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7642 (font_find_for_lface): Adjuste for the above changes.
7643 Don't suppress the checking of C even if the repertory supports it.
7644 (Flist_fonts): Adjust for the above changes.
72d36834 7645
1ac9108a
SM
7646 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7647 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7648 Reject a font who has adstyle property that is different from a
7649 langname derived from registry property.
1ac9108a 7650 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7651
b6046155
EZ
76522009-07-13 Eli Zaretskii <eliz@gnu.org>
7653
7654 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7655 local copy of dirfilename.
7656
fb6b6049
KH
76572009-07-13 Kenichi Handa <handa@m17n.org>
7658
e2402a5e
KH
7659 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7660 against max_char.
7661
fb6b6049
KH
7662 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7663 calling XSYMBOL (sym).
7664
65156807
EZ
76652009-07-11 Eli Zaretskii <eliz@gnu.org>
7666
1ac9108a
SM
7667 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7668 New function.
7669 (directory_files_internal) [WINDOWSNT]:
7670 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7671 the filesystem of the directory is fast or slow.
7672
7673 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7674 file name.
7675 (is_slow_fs): New function.
7676 (stat): Use it to determine whether to issue more system calls to
7677 get accurate file attributes, when w32-get-true-file-attributes is
7678 `local'.
7679
e0ab5fcf
JD
76802009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7681
7682 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7683 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7684 parameter font-parameter as default to the font dialog.
7685
784ceded
KH
76862009-07-10 Kenichi Handa <handa@m17n.org>
7687
7688 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7689
fb8edc0b
EZ
76902009-07-09 Eli Zaretskii <eliz@gnu.org>
7691
1ac9108a 7692 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7693
fb8edc0b
EZ
7694 * w32.c (stat): Treat UNC file names as residing on remote
7695 drives. (Bug#3542)
7696
635c75b1
KH
76972009-07-09 Kenichi Handa <handa@m17n.org>
7698
7699 * fontset.c (fontset_find_font): Fix previous change.
7700
c1d5ce94
MA
77012009-07-08 Michael Albinus <michael.albinus@gmx.de>
7702
7703 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7704 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7705 error flag.
7706
edb61b39
KH
77072009-07-08 Kenichi Handa <handa@m17n.org>
7708
374bf7e4
KH
7709 * fontset.c (fontset_find_font): Fix the logic of handling
7710 charset_matched.
7711 (font_for_char): Delete unused var.
7712 (generate_ascii_font_name): Delete it.
7713
edb61b39
KH
7714 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7715
7716 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7717 (encode_coding_sjis): Fix the code range check.
7718
0f3f018c
CY
77192009-07-07 Chong Yidong <cyd@stupidchicken.com>
7720
7721 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7722 (Fexpand_file_name): Copy string data properly (Bug#3772).
7723
fcaf6f3a
JD
77242009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7725
7726 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7727 first MapNotify.
7728
6809ca75
KH
77292009-07-07 Kenichi Handa <handa@m17n.org>
7730
7731 * character.h (unibyte_has_multibyte_table): Delete extern.
7732 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7733
7734 * charset.c (Fset_charset_priority): Update charset_unibyte.
7735 (syms_of_charset): Initialize charset_unibyte.
7736
7737 * character.c (unibyte_has_multibyte_table): Delete it.
7738 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7739 charset_unibyte.
7740 (multibyte_char_to_unibyte_safe): Likewise.
7741 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7742
1ac9108a 7743 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7744 (x_produce_glyphs): Likewise.
7745
7746 * .gdbinit (xcharset): Fix the treating $arg0.
7747
ad9e2d54
EZ
77482009-07-04 Eli Zaretskii <eliz@gnu.org>
7749
7750 Emulation of `getloadavg' on MS-Windows.
50426a04 7751 * w32.c: Include float.h.
ad9e2d54
EZ
7752 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7753 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7754 (get_native_system_info, get_system_times): New functions.
7755 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7756 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7757 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7758 g_b_init_get_system_times, and num_of_processors.
7759
0a3472c7
JR
77602009-07-03 Jason Rumney <jasonr@gnu.org>
7761
7762 * w32term.c (w32_initialize): Use standard types.
7763
80904120
EZ
77642009-07-03 Eli Zaretskii <eliz@gnu.org>
7765
7766 * dired.c (Ffile_attributes): Decode user and group names by the
7767 locale's encoding. (Bug#3443)
7768
6978862d
DN
77692009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7770
f8d23104
DN
7771 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7772 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7773
7774 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7775
7776 * term.c (init_tty): Remove spurious #ifdef.
7777
6978862d
DN
7778 * m/mips.h: Mention this file is also used for netbsd.
7779 * m/pmax.h: Remove file.
7780
e044e4fc
JD
77812009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7782
7783 * xterm.h (struct x_display_info): Add invisible_cursor.
7784 (struct x_output): Add current_cursor.
7785
7786 * xterm.c (XTtoggle_invisible_pointer): New function.
7787 (x_define_frame_cursor): Don't define cursor if invisible or the
7788 same as before. Set current_cursor.
7789 (x_create_terminal): Set toggle_invisible_pointer_hook.
7790
7791 * xfns.c (make_invisible_cursor): New function.
7792 (x_set_mouse_color): Call make_invisible_cursor.
7793 Set current_cursor.
7794 (x_window): Set current_cursor.
7795
7796 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7797
7798 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7799 inserting a character.
7800 (read_avail_input): Call frame_make_pointer_visible.
7801
7802 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7803 (frame_make_pointer_invisible, frame_make_pointer_visible):
7804 New functions.
e044e4fc
JD
7805 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7806
7807 * frame.h: Declare frame_make_pointer_invisible and
7808 frame_make_pointer_visible.
7809 (struct frame): Add pointer_invisible.
7810
574c8efa
JD
78112009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7812
7b507248
JD
7813 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7814 frame isn't visible.
7815 (xg_frame_resized): If width/height is -1, get size of window
7816 from X server.
7817
7818 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7819 for MapNotify.
7820
835bdaa7 7821 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7822 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7823 (flush_and_sync): Reintroduce.
574c8efa 7824
3f1c6666 78252009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7826
31fd7c5c 7827 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7828
7829 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7830 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7831
7832 * frame.h: Declare Qsticky.
7833
cad9ef74
JD
7834 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7835
7836 * nsfns.m (ns_frame_parm_handlers): Ditto.
7837
7838 * frame.c: Declare Qsticky.
7839 (frame_parms): Add sticky.
7840
7841 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7842
7843 * xterm.h: Declare x_set_sticky.
7844
7845 * xterm.c (x_set_sticky): New function.
7846
69b16610
JD
7847 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7848 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7849 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7850
7851 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7852
7853 * frame.c: Qmaximized is new.
7854 (x_set_frame_parameters): Do not handle fullscreen specially.
7855 Only set width and height if explicitly set.
7856 (x_set_fullscreen): Handle Qmaximized.
7857 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7858 (syms_of_frame): Initialize Qmaximized.
7859
1ac9108a
SM
7860 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7861 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7862
7863 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7864 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7865 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7866 set gravity to NorthWestGravity when USE_GTK.
7867 (set_wm_state): New function.
31fd7c5c 7868 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7869 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7870 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7871 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7872 to x_real_positions and x_fullscreen_adjust.
7873
7874 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7875 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7876 flush_and_sync.
7877 (xg_height_changed): New function.
7878 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7879 and gtk_window_set_policy. Set frame gravity after parsing the
7880 geometry string.
3f1c6666
JD
7881 (xg_update_frame_menubar, free_frame_menubar)
7882 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7883 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7884 Remove calls to xg_frame_set_char_size.
7885
fd503d99
KH
78862009-07-01 Kenichi Handa <handa@m17n.org>
7887
7888 * keyboard.c (decode_keyboard_code): New function.
7889 (tty_read_avail_input): Decode the input bytes if necessary.
7890
1ac9108a
SM
7891 * coding.c (setup_coding_system):
7892 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7893 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7894 use Qno_conversion.
7895
24ed93fb
YM
78962009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7897
7898 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7899
99061dfc
CY
79002009-06-30 Chong Yidong <cyd@stupidchicken.com>
7901
1ac9108a 7902 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7903
ff90fbde
JR
79042009-06-30 Jason Rumney <jasonr@gnu.org>
7905
7906 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7907 is already loaded.
7908 Set user model ID if supported (bug#1849).
7909
5f445726
JM
79102009-06-29 Jim Meyering <meyering@redhat.com>
7911
7912 Remove useless if-before-xfree test.
7913 * nsfont.m (nsfont_close): Remove useless test.
7914 * term.c (delete_tty): Likewise.
7915 * w32.c (system_process_attributes): Likewise.
7916 * w32font.c (w32font_close): Likewise.
7917 * xfaces.c (x_free_gc): Likewise.
7918 * xselect.c (buffer): Likewise.
7919
b9607587
AS
79202009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7921
7922 * process.c (send_process): Keep decoded string in a local
7923 variable and protect it from GC. (Bug#3521)
7924
89ba96f4
EZ
79252009-06-28 Eli Zaretskii <eliz@gnu.org>
7926
7927 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7928 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7929
098a1589
CY
79302009-06-28 Chong Yidong <cyd@stupidchicken.com>
7931
485422be
CY
7932 * xdisp.c (start_display, handle_face_prop)
7933 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7934 (redisplay_window, try_window_id, produce_image_glyph):
7935 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7936
098a1589
CY
7937 * xterm.c (x_update_window_begin, x_new_focus_frame)
7938 (x_scroll_bar_handle_click, handle_one_xevent)
7939 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7940 (x_make_frame_visible, x_make_frame_invisible)
7941 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7942 code chunks that are now obsolete.
7943
78c38319
MA
79442009-06-28 Michael Albinus <michael.albinus@gmx.de>
7945
7946 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7947 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7948 for hours, when optimzation is enabled.
7949 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7950 (xd_read_message): Make them static.
7951
4189ed40
CY
79522009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7953
7954 * term.c (turn_on_face): Allow simultaneously bold and dim
7955 terminal faces (Bug#3530).
7956
cd9b5e16
CY
79572009-06-27 Chong Yidong <cyd@stupidchicken.com>
7958
4e23bedb
CY
7959 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7960
cd9b5e16
CY
7961 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7962 truncation glyphs (Bug#3686).
7963
07cc3c35
GM
79642009-06-27 Glenn Morris <rgm@gnu.org>
7965
7966 * m/pmax.h: Restore file, with only netbsd portions.
7967
31fd7c5c 79682009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7969
cd9b5e16 7970 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7971
42d4a64f
KH
79722009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7973
7974 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7975 the arg FORCE_SYMBOL.
7976
930fe55b 79772009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7978
7979 * fontset.c (fontset_find_font): When a usable rfont_def is found
7980 in a fallback font-group, make it the first element of the group.
7981
57ebc3fd
CY
79822009-06-24 Chong Yidong <cyd@stupidchicken.com>
7983
7984 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7985
f084f942
KH
79862009-06-24 Kenichi Handa <handa@m17n.org>
7987
7988 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7989 set for C.
7990 (fontset_font): Record the availability of a font for C both in
7991 the realized fontsets of the current one and the default one.
7992
2f686c87
DN
79932009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7994
7995 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7996 conditional, it is always defined on AIX.
7997
666e158e
MB
79982009-06-23 Miles Bader <miles@gnu.org>
7999
8000 * window.c (Vrecenter_redisplay): New variable.
8001 (syms_of_window): Initialize it.
8002 (Qtty): New extern declaration.
8003 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8004
c6da7cd2
JM
80052009-06-23 Jim Meyering <meyering@redhat.com>
8006
1ac9108a
SM
8007 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8008 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8009 pointer dereferences are guaranteed to be valid.
c6da7cd2 8010
678dca3d
KH
80112009-06-23 Kenichi Handa <handa@m17n.org>
8012
74d75424
KH
8013 * emacs.c (main): Call init_font ().
8014
8015 * font.h (Vfont_log): Extern it.
8016 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8017
8018 * font.c (font_sort_entities, font_list_entities)
8019 (font_matching_entity, font_open_entity)
8020 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8021 (Vfont_log): Delete static.
8022 (font_log_env_checked): Delete this variable.
8023 (font_add_log): Don't check font_log_env_checked.
8024 (font_deferred_log): Check Vfont_log.
8025 (init_font): New function.
8026
678dca3d
KH
8027 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8028
8029 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8030
8031 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8032
8033 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8034
8035 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8036 (face_for_char): Don't call font_deferred_log here.
8037 (font_for_char): Likewise.
8038
8a668709
CY
80392009-06-22 Chong Yidong <cyd@stupidchicken.com>
8040
9a01ee33
CY
8041 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8042 rather than its background_width for drawing the overline and
8043 underline (Bug#489).
8044
8045 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8046 rather than its background_width for drawing the overline and
8047 underline (Bug#489).
ec7c9926
CY
8048 (xg_default_icon_file): New variable.
8049 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8050 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8051
8a668709
CY
8052 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8053 (load_overlay_strings): Remove externs.
8054 (fast_find_position): Function deleted.
8055 (mouse_face_from_buffer_pos): New function, based on
8056 fast_find_position. Correctly handle before-strings,
8057 display-strings, and after-strings (Bug#1220).
8058 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8059
4d4c02d8
CY
80602009-06-21 Chong Yidong <cyd@stupidchicken.com>
8061
1ac9108a 8062 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8063 (move_it_in_display_line_to, move_it_in_display_line_to)
8064 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8065
70243478
CY
80662009-06-21 Chong Yidong <cyd@stupidchicken.com>
8067
8068 * Branch for 23.1.
8069
13087e59
JR
80702009-06-21 Jason Rumney <jasonr@gnu.org>
8071
8072 * w32term.c (keyboard_codepage): New static variable.
8073 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8074 (w32_read_socket) [WM_CHAR]: Use it to decode character
8075 input (bug#3237).
8076 (w32_initialize): Initialize it.
8077 (codepage_for_locale): New function.
8078
4735b74e
KR
80792009-06-20 Ken Raeburn <raeburn@raeburn.org>
8080
8081 * process.c (status_message): Pass Faset index argument as a lisp
8082 object, so as to work with USE_LISP_UNION_TYPE.
8083
0e727afa
YM
80842009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8085
8086 * coding.c (Ffind_coding_systems_region_internal):
8087 Cache checked characters.
8088
cf299835
KH
80892009-06-18 Kenichi Handa <handa@m17n.org>
8090
1ac9108a 8091 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8092
90f20d94
AS
80932009-06-18 Andreas Schwab <aschwab@redhat.com>
8094
8095 * xdisp.c (redisplay_internal): Check that the frame is still
8096 live after redisplay of its windows.
8097 (redisplay_windows): Check that the window is still live.
8098
7f1faf1c
KH
80992009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8100
8101 * coding.c (detect_coding_utf_16): Fix previous change.
8102
cc13543e
KH
81032009-06-16 Kenichi Handa <handa@m17n.org>
8104
8105 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8106 UTF-16 by checking the dispersion of Eth and Oth bytes.
8107
977b85f4
AS
81082009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8109
8110 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8111
66bd43d1
KH
81122009-06-15 Kenichi Handa <handa@m17n.org>
8113
8114 * process.c (status_message): Fix previous change. Be sure to
8115 decode a localized string.
8116
cb5ca9c5
YM
81172009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8118
8119 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8120 add comment explaining why.
8121
ec7709ba 81222009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8123
ec7709ba 8124 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8125
4b7f335c
AR
81262009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8127
8128 * nsfont.m (ns_attribute_value): Remove.
8129 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8130 (ns_has_attribute): Shrink the normal range.
8131 (ns_findfonts): Don't worry about requested spec in determining
8132 need for synthItal.
e41820ee 8133 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8134
73b26103
SZ
81352009-06-14 Seiji Zenitani <zenitani@mac.com>
8136
8137 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8138
5753e4da
KH
81392009-06-11 Kenichi Handa <handa@m17n.org>
8140
8141 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8142 overhang for the static composition case.
8143
3561b671
KH
81442009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8145
5753e4da
KH
8146 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8147 overhang for the automatic composition case.
8148
3561b671
KH
8149 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8150 composition case.
8151
852bbd41
CY
81522009-06-10 Chong Yidong <cyd@stupidchicken.com>
8153
8154 * xdisp.c (get_next_display_element): When handling wrap-prefix
8155 and line-prefix, treat \n as a control character (bug#3502).
8156
9903d1e6
KH
81572009-06-10 Kenichi Handa <handa@m17n.org>
8158
8159 * font.c (font_parse_family_registry): Fix for one-char foundry.
8160 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8161
0bcbaaaa
CY
81622009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8163
8164 * process.c (status_message): Fix handling of multibyte signal
8165 string (Bug#3499).
8166
40aa3f13
JM
81672009-06-09 Jim Meyering <meyering@redhat.com>
8168
1f80c7e2
CY
8169 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8170 color name is missing.
40aa3f13 8171
72d51285
KH
81722009-06-09 Kenichi Handa <handa@m17n.org>
8173
8174 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8175 FROM-CODE and TO-CODE are codepoints of CHARSET.
8176
c1d04d84
AR
81772009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8178
8179 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8180
81812009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8182
8183 Changes to support :script/:lang/:otf in NS font driver.
8184 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8185 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8186 indicate not part of font driver interface, and change callers.
8187 (ns_get_family): Remove pointless null check.
8188 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8189 ns_spec_to_descriptor, ns_descriptor_to_entity.
8190 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8191 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8192 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8193 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8194 (ns_get_req_script, ns_accumulate_script_ranges)
8195 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8196 New functions.
8197 (nsfont_list, nsfont_match): Use ns_findfonts.
8198 (nsfont_open): Use font descriptor instead of traits.
8199 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8200 (dump_glyphstring): Rename to ns_dump_glyphstring.
8201
c7eb9816
AR
8202 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8203
c1d04d84
AR
8204 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8205
8206 * fontset.c (fontset_from_font): Remove NS-specific code.
8207
ec7709ba 82082009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8209
8210 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8211 nonactive windows.
8212
31fd7c5c 82132009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8214
1ac9108a 8215 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8216
68852c13 82172009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8218
8219 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8220
6756cd1d
CY
82212009-06-07 Chong Yidong <cyd@stupidchicken.com>
8222
8223 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8224 account for the overflowing of newlines into the last glyph on the
8225 display line (Bug#3482).
8226
28bf482a
DR
82272009-06-05 David Reitter <david.reitter@gmail.com>
8228
ec7709ba
JB
8229 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8230 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8231 Fns_selection_exists_p, Fns_selection_owner_p.
8232
fdb55376
JR
82332009-06-03 Jason Rumney <jasonr@gnu.org>
8234
8235 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8236 available. (Bug#3379)
8237
05129fbe
KH
82382009-05-29 Kenichi Handa <handa@m17n.org>
8239
1ac9108a
SM
8240 * coding.c (get_translation_table):
8241 Check Venable_character_translation.
05129fbe 8242
ec7709ba 82432009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8244
ec7709ba
JB
8245 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8246 (x_make_frame_visible): Move frame to front rather than calling
15891144 8247 ns_raise_frame().
ec7709ba 8248 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8249 isn't key window.
ec7709ba 8250 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8251 drawRect may be called by NSView even if the frame is hidden.
8252
ec7709ba
JB
8253 * nsfns.m (Fx_create_frame): Follow other ports in
8254 determining visibility; default to t. Ensure async_visible is set.
15891144 8255
21f73755
EZ
82562009-05-23 Eli Zaretskii <eliz@gnu.org>
8257
8258 * dired.c (Ffile_attributes): Doc fix.
8259
34001e41
CY
82602009-05-22 Chong Yidong <cyd@stupidchicken.com>
8261
8262 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8263
46306a17
SM
82642009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8265
8266 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8267 and xfont_scratch_props.
8268 (syms_of_xfont): Do it here instead.
8269 (xfont_find_ccl_program): Delete, unused.
8270 (xfont_open): Delete unused var `i'.
8271
ef6e0694
KH
82722009-05-21 Kenichi Handa <handa@m17n.org>
8273
8274 * fontset.c (Qlatin): Don't make it static.
8275
46306a17
SM
8276 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8277 New functions.
ef6e0694
KH
8278 (xfont_scripts_cache, xfont_scratch_props): New variables.
8279 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8280 (xfont_list_pattern): Argument changed. Callers changed.
8281 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8282 (xfont_list): Don't reject a font spec with :script property.
8283 (xfont_has_char): Fix setting of encoding.
8284 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8285 xfont_scratch_props.
8286
82872009-05-19 Kenichi Handa <handa@m17n.org>
8288
46306a17 8289 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8290 Callers changed.
8291
82922009-05-18 Kenichi Handa <handa@m17n.org>
8293
8294 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8295
ac71ced7
SM
82962009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8297
8298 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8299 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8300
1c6d1051
YM
83012009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8302
8303 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8304 (x_delete_terminal): Dissociate resource database from display and
8305 then call XrmDestroyDatabase before closing display.
8306
9b9b779c
AR
83072009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8308
8309 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8310 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8311 whether selected frame is viable before raising it (based on patch
8312 by David Reitter), and improve commentary.
8313 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8314
cccd42d5
KH
83152009-05-15 Kenichi Handa <handa@m17n.org>
8316
8317 * font.c (Ffont_spec): Check arguments.
8318
337fbd17
CY
83192009-05-14 Chong Yidong <cyd@stupidchicken.com>
8320
8321 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8322 weight when testing attributes (Bug#3282).
8323
47a6002f
JD
83242009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8325
8326 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8327 what we expect to get in the next ConfigureNotify event.
8328
9cb363db
YM
8329 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8330 before Xft one (Bug#1696).
8331
b9126609
CY
83322009-05-07 David Reitter <david.reitter@gmail.com>
8333
8334 * nsfns.m (Fx_display_planes): Compute bitplanes using
8335 NSBitsPerPixelFromDepth (Bug#3207).
8336
27a69fd9
CY
83372009-05-10 Chong Yidong <cyd@stupidchicken.com>
8338
8339 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8340
00f37552
TTN
83412009-05-10 Ulrich Mueller <ulm@gentoo.org>
8342
8343 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8344
2d82a920
DR
83452009-05-07 David Reitter <david.reitter@gmail.com>
8346
ec7709ba
JB
8347 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8348 Respect mouse face background.
2d82a920 8349
46b0d52d
DR
83502009-05-07 David Reitter <david.reitter@gmail.com>
8351
ec7709ba
JB
8352 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8353 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8354 in ns_update_begin and ns_update_end.
8355
ce1b23bb
SM
83562009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8357
5996e1b7
SM
8358 * nsfns.m (ns_get_screen): Rewrite.
8359 Don't presume selected-frame is of type `ns'.
8360
ba98e3a0
SM
8361 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8362 all drivers.
8363
ce1b23bb
SM
8364 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8365
bcda200f
YM
83662009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8367
8368 * keyboard.h (add_user_signal): Fix typo in extern.
8369
8370 * lisp.h (add_user_signal): Remove extern.
8371
8372 * unexelf.c (unexec): Consider a section to precede the .bss section
8373 if its addresses overlap that of .bss.
8374 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8375 instead of dumping process.
8376
864660a2
SM
83772009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8378
8379 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8380
50da4e56
SM
83812009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8382
8383 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8384
51520a1a
DN
83852009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8386
8387 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8388 any statements.
8389
409ea3a1
AS
83902009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8391
59c4c60f
AS
8392 * process.c (read_process_output): Make sure the current buffer is
8393 always restored.
8394
409ea3a1
AS
8395 * coding.c (record_conversion_result): Don't modify
8396 Vlast_code_conversion_error for successful result.
8397 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8398
56f00ed2
KH
83992009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8400
8401 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8402 (load_charset_map): Remove unnecessary code.
56f00ed2 8403
4491c9d2
DR
84042009-04-30 David Reitter <david.reitter@gmail.com>
8405
35f5b128 8406 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8407 through f24.
8408
6970f632
CY
84092009-04-30 Chong Yidong <cyd@stupidchicken.com>
8410
8411 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8412
8413 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8414 face_at_buffer_position.
8415 (face_before_or_after_it_pos, get_next_display_element)
8416 (note_mouse_highlight): Update face_at_buffer_position call.
8417
8418 * term.c (term_mouse_highlight):
8419 * msdos.c (IT_note_mouse_highlight):
8420 * fontset.c (Finternal_char_font):
35f5b128 8421 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8422
8423 * dispextern.h (face_at_buffer_position): Update prototype.
8424
0c616f63
KH
84252009-04-30 Kenichi Handa <handa@m17n.org>
8426
35f5b128 8427 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8428
ad3aaf33
AS
84292009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8430
8431 * callproc.c (Fcall_process): Fix GC protection. Make sure
8432 current buffer is always restored.
8433
c3c963a0
YM
84342009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8435
8436 * atimer.c (init_atimer): Also clear stopped_atimers.
8437
8438 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8439
7e3386cb
YM
8440 * process.c (create_process): Clean up merger residues of
8441 2008-07-17 change.
8442
91f68422
CY
84432009-04-29 Ulrich Mueller <ulm@gentoo.org>
8444
8445 * lread.c (Vread_circle): New variable.
8446 (read1): Disable recursive read if Vread_circle is nil.
8447
24b34550
KH
84482009-04-29 Kenichi Handa <handa@m17n.org>
8449
8450 * fontset.h (set_default_ascii_font): Delete extern.
8451
8452 * fontset.c (set_default_ascii_font): Delete this unused function.
8453
8454 * frame.c (x_set_font): When ARG is a font-object, check if the
8455 font-object matches with the ASCII font-spec of the frame's
9c358bda 8456 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8457
77bf07e1
AS
84582009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8459
8460 * fns.c (Flocale_info): Protect vector from GC during decoding.
8461
8462 * process.c (Fstart_process): Protect argv strings from GC during
8463 encoding.
8464
2c55aacf
AS
84652009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8466
8467 * sysdep.c: Include <ctype.h>.
8468
b892d3c9
DR
84692009-04-27 David Reitter <david.reitter@gmail.com>
8470
35f5b128 8471 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8472 Remove commented-out code.
8473
9d0644c4
JB
84742009-04-26 Johan Bockgård <bojohan@gnu.org>
8475
8476 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8477
b7053016
JR
84782009-04-25 Jason Rumney <jasonr@gnu.org>
8479
8480 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8481
4e8231f3
YM
84822009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8483
8484 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8485 Swap bytes in short integer if fringe bitmap width > 8.
8486
493dcf2c
KH
84872009-04-23 Kenichi Handa <handa@m17n.org>
8488
8489 * xfaces.c (Fx_list_fonts): If a font size is specified in
8490 PATTERN, set it in returned scalable fonts.
8491
401e9e57
CY
84922009-04-22 Chong Yidong <cyd@stupidchicken.com>
8493
708e05dc
CY
8494 * keyboard.c (Fset_input_meta_mode): Doc fix.
8495
8496 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8497
1ac9108a 8498 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8499
8500 * coding.c (Fterminal_coding_system): Doc fix.
8501
8502 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8503 (Fx_display_pixel_height, Fx_display_planes)
8504 (Fx_display_color_cells, Fx_server_max_request_size)
8505 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8506 (Fx_display_mm_height, Fx_display_mm_width)
8507 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8508 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8509 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8510 (check_x_display_info): Handle terminal objects instead of
8511 terminal ids.
8512
401e9e57
CY
8513 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8514 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8515 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8516 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8517
df80c7f0
KH
85182009-04-21 Kenichi Handa <handa@m17n.org>
8519
5a8f12af 8520 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8521 (font_score): Check AVGWIDTH too.
908567ef 8522
df80c7f0
KH
8523 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8524 worst case.
1ac9108a
SM
8525 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8526 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8527
705af33f
JR
85282009-04-19 Jason Rumney <jasonr@gnu.org>
8529
8530 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8531 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8532
8533 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8534 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8535 get_phys_cursor_geometry.
8536
b71ac3dd 8537 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8538 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8539 using get_phys_cursor_geometry.
8540
8541 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8542 correctly calculated.
8543
dc2933eb
JD
85442009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8545
1ac9108a
SM
8546 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8547 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8548 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8549 is deprecated.
8550
973e7849
AS
85512009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8552
8553 * font.c (font_put_frame_data): Use xfree instead of free.
8554
314d66f4
JB
85552009-04-17 Juanma Barranquero <lekktu@gmail.com>
8556
8557 * w32font.c (Qja, Qko): Remove declarations.
8558 (syms_of_w32font): Don't DEFSYM them.
8559
cf702558
CY
85602009-04-17 Chong Yidong <cyd@stupidchicken.com>
8561
8562 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8563
8564 * font.h (Qja, Qko): Extern them.
8565
8566 * ftfont.c (Qja, Qko): Remove declarations.
8567
8568 * xfont.c (Qja, Qko): Remove declarations.
8569
b50504f5
KH
85702009-04-17 Kenichi Handa <handa@m17n.org>
8571
bde25748
KH
8572 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8573 string from a vector to handle Latin-1 characters correctly.
8574
b50504f5
KH
8575 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8576 entity even if the cache hits.
8577
f4646fff
AS
85782009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8579
8580 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8581 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8582
e7deaab0
AS
8583 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8584 * lisp.h: Adjust prototypes.
8585
0a0e7d49
CY
85862009-04-16 Chong Yidong <cyd@stupidchicken.com>
8587
8588 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8589 change (Bug#3003).
8590
3c908a57
KH
85912009-04-16 Kenichi Handa <handa@m17n.org>
8592
1ac9108a 8593 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8594
8595 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8596 adstyle.
8597
8598 * ftfont.c (Qja, Qko): Don't make them static.
8599 (enum ftfont_cache_for): New enum.
8600 (fc_charset_table): Undo the previous change.
8601 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8602 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8603 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8604 non-scarable font, try to get AVERAGE_WIDTH.
8605 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8606 Change ft_face_cache from a list of a hash-table. Don't check
8607 `ja' and `ko' adstyle here.
8608 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8609 FTFONT_CACHE_FOR_CHARET.
8610 (ftfont_get_charset): Undo the previous change.
1ac9108a 8611 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8612 (ftfont_close): Likewise.
8613 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8614
8615 * font.c (font_sort_entites): Change the meaning of the arg
8616 BEST-ONLY. Don't optimize for VEC of lenght 1.
8617 (font_select_entity): Just return the value of font_sort_entites.
8618
8619 * xfaces.c (merge_face_vectors): Reflect font properties in
8620 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8621 font_clear_prop if a face attribute doesn't change.
8622
3c908a57
KH
8623 * charset.h (charset_ksc5601): Extern it.
8624
8625 * charset.c (charset_ksc5601): New variable.
8626 (Fdefine_charset_internal): Set charset_ksc5601.
8627 (init_charset_once): Initialize charset_ksc5601 to -1.
8628
d65859c3
DN
86292009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8630
8631 * fileio.c (history_delete_duplicates): Remove unused declaration.
8632
8633 * callint.c (history_delete_duplicates): New declaration.
8634 (Fcall_interactively): Remove command history duplicates when
8635 history_delete_duplicates is true.
8636
3ba010e5
EZ
86372009-04-14 Eli Zaretskii <eliz@gnu.org>
8638
8639 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8640
06f19b91
KH
86412009-04-14 Kenichi Handa <handa@m17n.org>
8642
8643 * font.c (Ffont_info): Fix docstring. Fix the second element of
8644 the returned value (bug#2949).
8645
2cce8bfc
CY
86462009-04-14 Chong Yidong <cyd@stupidchicken.com>
8647
8648 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8649
d156542d
KH
86502009-04-14 Kenichi Handa <handa@m17n.org>
8651
8652 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8653 encoding charset is ascii_compatible.
8654
8655 * charset.c (Fdefine_charset_internal): Make charset
8656 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8657 code_offset is 0, and covers all ASCII characters.
8658
86fa089e
SM
86592009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8660
8661 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8662 (ns_string_to_pasteboard_internal):
8663 * nsmenu.m (process_dialog):
8664 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8665 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8666 * lisp.h (Fx_load_color_file): Declare.
8667
a8a3728b
KH
86682009-04-13 Kenichi Handa <handa@m17n.org>
8669
1ac9108a 8670 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8671 (font_select_entity): Suppress the code to optimize for the same
8672 kind of fonts.
8673 (font_load_for_lface): Get a font that supports at least ASCII
8674 characters.
8675
8676 * ftfont.c (Qja, Qko): New variables.
8677 (fc_charset_table): Delete uniquifier data for iso8859-1.
8678 (ftfont_get_latin1_charset): New function.
8679 (get_adstyle_property): New function.
8680 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8681 bitmap fonts.
8682 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8683 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8684 `ko' or `ja'.
8685 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8686 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8687 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8688 property.
8689 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8690 (syms_of_ftfont): DEFSYM Qja and Qko.
8691
483670b5
KH
86922009-04-09 Kenichi Handa <handa@m17n.org>
8693
12b55765
KH
8694 * charset.c (map_charset_chars): For a charset of `superset'
8695 method, fix calculation of code range.
8696
483670b5
KH
8697 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8698 from the list of extra properties.
8699 (font_clear_prop): Be sure to delete `:name' font property.
8700
57d3b93b
KH
87012009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8702
b4b2c2ca
YM
8703 * dispnew.c (redraw_overlapping_rows): Fix detection of
8704 overlapping for topmost and bottommost rows.
8705
1ac9108a 8706 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8707
472c3609
JR
87082009-04-06 Jason Rumney <jasonr@gnu.org>
8709
8710 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8711
ab193662
KH
87122009-04-06 Kenichi Handa <handa@m17n.org>
8713
8714 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8715
8716 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8717
0c26f026
KH
87182009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8719
8720 * ftfont.c (ftfont_open): Fix checking of the return value of
8721 FT_Load_Char. Fix setting font->underline_thickness.
8722
e173bbce
CY
87232009-04-04 Chong Yidong <cyd@stupidchicken.com>
8724
8725 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8726 (Fterminal_parameters, Fterminal_parameter)
8727 (Fset_terminal_parameter): In doc string, refer to terminal
8728 objects rather than terminal ids.
8729
693a2698
EZ
87302009-04-04 Eli Zaretskii <eliz@gnu.org>
8731
8732 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8733 ret_lim_data. (Bug#2867)
8734
d5221487
CY
87352009-04-03 Chong Yidong <cyd@stupidchicken.com>
8736
8737 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8738 so they don't get wider than the window, matching 2006-01-23
8739 change to the partner function in xdisp.c (Bug#2800).
8740
223509a3
KH
87412009-04-03 Kenichi Handa <handa@m17n.org>
8742
8743 * print.c (print_object): Make each lowest sub_char_table start a
8744 new line (Bug#2866).
8745
74fcd0b1
KH
87462009-04-02 Kenichi Handa <handa@m17n.org>
8747
8748 * fontset.c (fontset_font): Record no-font when a fontset
8749 explicitly tells not to try another font-specs.
8750
c542407d
SM
87512009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8752
8753 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8754
e3869731
KH
87552009-03-30 Kenichi Handa <handa@m17n.org>
8756
d8d2f142
KH
8757 * fontset.c (fontset_from_font): Specify only registry in a
8758 font-spec for all characters supported by that registry.
8759
e3869731
KH
8760 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8761 even if HAVE_M17N_FLT is not defined.
8762
5da5f805
CY
87632009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8764
8765 * ftfont.c: Conditionalize prototyping and use of
8766 ftfont_variation_glyphs.
8767
ab226c50
SM
87682009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8769
9628fed7
SM
8770 * frame.c (delete_frame): Work around compiler bug.
8771
8772 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8773 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8774 Some more EMACS_INT.
8775 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8776
8777 * xdisp.c (dump_glyph): Fix typo.
8778
ae19ba7c
SM
8779 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8780 (adjust_markers_gap_motion, adjust_markers_for_delete)
8781 (adjust_markers_for_insert, adjust_point)
8782 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8783 (make_gap, copy_text, count_size_as_multibyte, insert)
8784 (insert_and_inherit, insert_before_markers)
8785 (insert_before_markers_and_inherit, insert_1)
8786 (count_combining_before, count_combining_after, insert_1_both)
8787 (insert_from_string, insert_from_string_before_markers)
8788 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8789 (insert_from_buffer_1, adjust_after_replace)
8790 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8791 (replace_range_2, del_range, del_range_1, del_range_byte)
8792 (del_range_both, del_range_2, modify_region)
8793 (prepare_to_modify_buffer, signal_before_change)
8794 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8795 for buffer positions and sizes.
8796 * lisp.h: Adjust prototypes accordingly.
8797
8798 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8799 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8800 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8801
ab226c50
SM
8802 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8803
46dfb8fb
JD
88042009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8805
8806 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8807 lines and columns so we keep the same pixel height and width.
8808
8809 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8810 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8811 (x_handle_net_wm_state): New function to update frame parameter
8812 fullscreen.
8813 (x_term_init): Initialize atoms for _NET_WM_STATE.
8814
8815 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8816
d347e494
SM
88172009-03-27 Kevin Ryde <user42@zip.com.au>
8818
8819 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8820 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8821 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8822 (Fgpm_mouse_stop): Pass that new parameter.
8823 * termhooks.h (close_gpm): Adjust prototype.
8824
84db11d6
SM
88252009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8826
c95a5008
SM
8827 * lisp.h (Fx_focus_frame): Declare.
8828
84db11d6
SM
8829 * callint.c (Fcall_interactively): For '^' just delegate the work to
8830 handle-shift-selection.
8831 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8832
0a1958d6
CY
88332009-03-24 Chong Yidong <cyd@stupidchicken.com>
8834
0bfdff23
CY
8835 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8836
0a1958d6
CY
8837 * data.c (Qinteractive_form): New variable.
8838 (Finteractive_form): Use it.
8839
8840 * eval.c (Fcommandp): Use Qinteractive_form.
8841
58aec0d6
JR
88422009-03-24 Jason Rumney <jasonr@gnu.org>
8843
8844 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8845 Calculate total size precisely. Decode environment variables
8846 before substituting. (Bug#38)
8847
553dd618
KH
88482009-03-24 Kenichi Handa <handa@m17n.org>
8849
8850 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8851 encoding (Bug#2722).
553dd618 8852
c39ea606
JD
88532009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8854
8855 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8856 that gdpy is set.
8857
bc9b2b5e
AM
88582009-03-22 Alan Mackenzie <acm@muc.de>
8859
8860 * callint.c (Finteractive): Clarify the doc string - even
8861 promptless elements need \n separators.
8862
9f995a76
JR
88632009-03-22 Jason Rumney <jasonr@gnu.org>
8864
8865 * w32term.c (syms_of_w32term): Doc fix for
8866 x-use-underline-position-properties.
8867
22749e9a
EZ
88682009-03-21 Eli Zaretskii <eliz@gnu.org>
8869
8870 * w32.c (getpwuid): Change argument type to unsigned.
8871 (struct w32_id): Change type of `rid' member to unsigned.
8872 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8873 argument ID to unsigned. All callers changed.
8874 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8875
e00553bf
EZ
88762009-03-20 Eli Zaretskii <eliz@gnu.org>
8877
8878 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8879 negative, produce a float value.
8880
8881 * dired.c (make_uid, make_gid): New functions.
8882 (Ffile_attributes): Use them to avoid negative UID and GID.
8883
f761d6b6
JB
88842009-03-20 Juanma Barranquero <lekktu@gmail.com>
8885
8886 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8887 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8888 Fix typos in docstrings.
8889
d507f8d7
KH
88902009-03-19 Kenichi Handa <handa@m17n.org>
8891
8892 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8893 changed, use font_load_for_lface to get a new font object.
8894 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8895
8896 * frame.c (x_set_font): Handle the case that ARG is a cons.
8897
c68845e0
GM
88982009-03-19 Glenn Morris <rgm@gnu.org>
8899
8900 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8901
bfa49dd1
CY
89022009-03-19 Chong Yidong <cyd@stupidchicken.com>
8903
8904 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8905
8458d4c1
KH
89062009-03-19 Kenichi Handa <handa@m17n.org>
8907
8908 * charset.c (load_charset_map_from_file): When a mapfile can't be
8909 loaded, signal an error.
8910
78e7d1fe
EZ
89112009-03-18 Eli Zaretskii <eliz@gnu.org>
8912
8913 * dired.c (Ffile_attributes): Make sure UID and GID are always
8914 positive, even if the value is too large for a positive EMACS_INT.
8915 Doc fix.
8916
8917 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8918
5da9fdfa
YM
89192009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8920
8921 * xmenu.c (xdialog_show): Move Fredisplay call ...
8922 (Fx_popup_dialog): ... here.
8923
7519c40d
SM
89242009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8925
8926 * dired.c (file_name_completion): Disable the first optimization just
8927 installed, since it is not implemented correctly.
8928
2cd298e2
SM
89292009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8930
8931 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8932 only if the entry can affect bestmatch.
2cd298e2
SM
8933 Stop the search early, as Ftry_completion already does.
8934
48d37adf
CY
89352009-03-17 Chong Yidong <cyd@stupidchicken.com>
8936
e10c9c93 8937 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8938
9286b16a
CY
89392009-03-15 Chong Yidong <cyd@stupidchicken.com>
8940
8941 * keyboard.c (parse_menu_item): Don't display remappings as menu
8942 equivalent bindings (Bug#788).
8943
f7b146dc
JR
89442009-03-15 Jason Rumney <jasonr@gnu.org>
8945
8946 * w32term.h (WM_EMACS_PAINT): New message.
8947 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8948 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8949 before passing to lisp thread. (Bug#950)
8950
f761d6b6 89512009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8952
d93f9575
CY
8953 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8954 variable as it was never reset.
8955 (ns_term_init): Remove initialization of Lisp-settable defaults
8956 and ns_expand_space.
8957 (-setPanelFromDefaultValues): Remove ns_expand_space.
8958 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8959 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8960 i.e. no additional spacing, similar to Carbon port.
8961
d93f9575
CY
8962 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8963 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8964
305018ec
JD
89652009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8966
8967 * sound.c (alsa_configure): Remove call to deprecated
8968 snd_pcm_sw_params_set_xfer_align.
8969
f761d6b6 89702009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8971
8972 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8973 after clicking in a detached tool bar.
8974 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8975
46e722a9
SM
89762009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8977
348db3dd
SM
8978 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8979 int/Lisp_Object mixup).
46e722a9 8980
a3d16f39
KH
89812009-03-13 Kenichi Handa <handa@m17n.org>
8982
8983 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8984 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8985 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8986 (set_fontset_font): Change ARG to a vector. Handle range_list in
8987 ARG correctly.
8988 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8989 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8990 the above change.
8991 (fontset_from_font): Fix previous change.
fe24f56a 8992 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8993 entry. If FONTSET is the default fontset, don't set the extra
8994 slot of the returning char-table.
8995
b066e6b6
JB
89962009-03-12 Juanma Barranquero <lekktu@gmail.com>
8997
8998 * nsfns.m (Fx_close_connection): Doc fix.
8999 (Fns_do_applescript): Reflow docstring.
9000 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9001 (Fx_display_pixel_width, Fx_display_pixel_height)
9002 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9003 Fix typos in docstrings.
9004 (Fns_set_alpha): Fix typos in error messages.
9005
d472514e 90062009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9007
d472514e 9008 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9009 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9010 were used for such events.
9011
d472514e
JB
9012 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9013 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9014
d472514e 9015 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9016 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9017
fb930676
KH
90182009-03-11 Kenichi Handa <handa@m17n.org>
9019
ff85581a
KH
9020 * font.h (font_open_by_spec): Extern it.
9021
c50b7e98
KH
9022 * font.c (font_open_by_spec): New function.
9023 (font_open_by_name): Use font_open_by_spec.
9024
fb930676
KH
9025 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9026 fontset of the frame.
9027
9028 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9029 modify the default font of frames that use this fontset.
9030 (num_auto_fontsets): New variable.
9031 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9032 name. Be sure to set FONTSET_ASCII to the correct font name.
9033 (update_auto_fontset_alist): New function.
9034
df4e8455
JB
90352009-03-11 Juanma Barranquero <lekktu@gmail.com>
9036
9037 * makefile.w32-in: Update dependencies.
9038
0a375797
AR
90392009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9040
9041 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9042
61313fa3
SM
90432009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9044
9045 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9046
b55103fb
CY
90472009-03-10 Chong Yidong <cyd@stupidchicken.com>
9048
9049 * lread.c (Feval_buffer): Doc fix.
9050
dde2559c
KH
90512009-03-09 Kenichi Handa <handa@m17n.org>
9052
9053 * charset.c (Qfile_name_handler_alist): Extern it.
9054 (load_charset_map_from_file): Temporarily bind
9055 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9056
df4e8455 90572009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9058
47f588bb
GM
9059 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9060 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9061
4ddf94bd
AR
90622009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9063
4c9bdfc2
AR
9064 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9065 (x_set_window_size): Change back to calculated method of setting
9066 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9067 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9068 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9069
fe41ae9e
AR
9070 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9071
4c9bdfc2
AR
9072 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9073 accelerator in parens under GNUstep.
9074
825d0875
KH
90752009-03-06 Kenichi Handa <handa@m17n.org>
9076
9077 These changes are to detect incorrect composition sequence without
f3b3be74 9078 looking ahead the source. (Bug#2370)
825d0875
KH
9079
9080 * coding.h: Include "composite.h".
9081 (enum compisition_state): New enum.
9082 (struct compisition_status): New struct.
9083 (struct iso_2022_spec): New member cmp_status.
9084 (struct emacs_mule_spec): New struct.
9085 (struct coding_system): New members ctext_extended_segment_len and
9086 embedded_utf_8. Change the union member
9087 spec.emacs_mule_full_support to spec.emacs_mule.
9088
9089 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9090 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9091 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9092 (ADD_COMPOSITION_DATA): New arg nbytes.
9093 (emacs_mule_char): New arg cmp_status.
9094 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9095 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9096 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9097 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9098 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9099 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9100 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9101 (EMACS_MULE_COMPOSITION_END): New macro.
9102 (emacs_mule_finish_composition): New function.
9103 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9104 (decode_coding_emacs_mule): Avoid long looking ahead while
9105 handling composition.
9106 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9107 (ENCODE_COMPOSITION_RULE): New macro.
9108 (finish_composition): New function.
9109 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9110 (DECODE_COMPOSITION_START): New implementation.
9111 (DECODE_COMPOSITION_END): Likewise.
9112 (STORE_COMPOSITION_RULE): New macro.
9113 (decode_coding_iso_2022): Avoid long looking ahead while handling
9114 composition, CTEXT extended segment, and embedded UTF-8.
9115 (setup_coding_system): For a coding of type iso-2022, reset
9116 CODING_ISO_EXTSEGMENT_LEN (coding) and
9117 CODING_ISO_EMBEDDED_UTF_8 (coding).
9118 (get_translation): Delete arguments last_block, from_nchars,
9119 to_nchars. Callers changed.
9120 (produce_chars): Don't modify charbuf. Adjusted for the change of
9121 get_translation.
98a326f7 9122 (produce_composition): Adjust for the new annotation sequence.
825d0875 9123 (handle_composition_annotation): Likewise.
98a326f7 9124 (consume_chars): Adjust for the change of get_translation.
825d0875 9125
ccbc4452
AR
91262009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9127
4ddf94bd 9128 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9129
988a7ddb
KH
91302009-03-05 Kenichi Handa <handa@m17n.org>
9131
9132 * font.c (font_select_entity): New function.
9133 (font_find_for_lface): Use font_select_entity to select a font.
9134
9135 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9136 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9137 font with C restriction.
9138
98a326f7 91392009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9140
be1bce46 9141 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9142
10ea2b82
JR
91432009-03-04 Jason Rumney <jasonr@gnu.org>
9144
2c93b248 9145 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9146 characters that have already been read. (Bug#2569)
2c93b248 9147
10ea2b82
JR
9148 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9149 Log an error message if check_image_size failed.
9150 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9151 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9152
71a0c011
EZ
91532009-03-02 Eli Zaretskii <eliz@gnu.org>
9154
9155 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9156 when decoding process output.
9157
2f63bba8
RS
91582009-03-01 Richard M Stallman <rms@gnu.org>
9159
9160 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9161
9162 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9163
0a9564cb
EZ
91642009-02-28 Eli Zaretskii <eliz@gnu.org>
9165
9166 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9167 (decode_coding_emacs_mule, decode_coding_iso_2022)
9168 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9169 (decode_coding_raw_text, decode_coding_charset)
9170 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9171 Honor inhibit-eol-conversion. (Bug #2186)
9172
449148b3
JR
91732009-02-28 Jason Rumney <jasonr@gnu.org>
9174
9175 * coding.c (detect_coding_charset): If not checking latin extra,
9176 fail on characters between 0x80 and 0xA0. (Bug#2354)
9177
a4aee864
EZ
91782009-02-28 Eli Zaretskii <eliz@gnu.org>
9179
9180 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9181 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9182
d88bee5a
GM
91832009-02-27 Glenn Morris <rgm@gnu.org>
9184
9185 * callint.c (Finteractive): Doc fix.
9186
a808f22d
KH
91872009-02-27 Kenichi Handa <handa@m17n.org>
9188
9189 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9190
caf8d60c
CY
91912009-02-27 Chong Yidong <cyd@stupidchicken.com>
9192
9193 * font.c (font_style_to_value): Set value for unknown symbols to
9194 100 instead of 255.
b61137ea
CY
9195 (weight_table, slant_table, width_table): Treat "unspecified" as
9196 the default value.
caf8d60c 9197
1a0de25c
JB
91982009-02-26 Juanma Barranquero <lekktu@gmail.com>
9199
9200 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9201
8fc45744
JB
92022009-02-25 Juanma Barranquero <lekktu@gmail.com>
9203
107bd7d1
JB
9204 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9205 error as soon as a recursive load is detected.
8fc45744 9206
f097e223
AR
92072009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9208
9209 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9210 before caching.
9211
8810a12f
KH
92122009-02-24 Kenichi Handa <handa@m17n.org>
9213
9214 * fontset.c (fontset_find_font): Fix the condition for checking
9215 unavailable font.
9216
2c7d1565
GM
92172009-02-24 Glenn Morris <rgm@gnu.org>
9218
9219 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9220 whitespace that confuses documentation.
9221
a20878b6
MB
92222009-02-23 Miles Bader <miles@gnu.org>
9223
9224 * process.c (Flist_system_processes, Fprocess_attributes)
9225 (syms_of_process): Rename `system-process-attributes' to
9226 `process-attributes'.
9227
b3b58c01
AS
92282009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9229
1b3b981b
AS
9230 * coding.h (struct coding_system): Make safe_charsets a pointer to
9231 unsigned char.
9232 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9233 being 255.
9234 (SAFE_CHARSET_P): Likewise.
9235 (setup_iso_safe_charsets): Properly setup safe_charsets.
9236 (Fdefine_coding_system_internal): Likewise.
9237 (setup_coding_system): Likewise. Remove unneeded casts.
9238 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9239 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9240 unneeded casts.
9241
b3b58c01
AS
9242 * insdel.c (del_range_2): Don't modify gap contents when called
9243 from decode_coding_object. (Bug#1809)
9244
0b6f228c
CY
92452009-02-21 Chong Yidong <cyd@stupidchicken.com>
9246
9247 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9248 Qfont_object.
9249 (Ftype_of): Recognize font objects.
9250
9251 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9252
9253 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9254 moved to data.c.
9255
52f8870b
AR
92562009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9257
9258 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9259 async_iconified. Based on a patch by Christian Lynbech
9260 <christian.lynbech@tieto.com>.
9261 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9262
7087d5e9
GM
92632009-02-20 Glenn Morris <rgm@gnu.org>
9264
9265 * syntax.c (Fskip_chars_forward): Fix doc typo.
9266
41d2ceef
CY
92672009-02-20 Chong Yidong <cyd@stupidchicken.com>
9268
9269 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9270
1a3b7ca6
CY
92712009-02-19 Chong Yidong <cyd@stupidchicken.com>
9272
9273 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9274
73cce38d
KH
92752009-02-19 Kenichi Handa <handa@m17n.org>
9276
9277 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9278 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9279
a51092ee
DN
92802009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9281
9282 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9283
c423ecca
KH
92842009-02-18 Kenichi Handa <handa@m17n.org>
9285
9286 * font.c (font_check_otf_features): Fix handling of `nil' element.
9287 (Ffont_spec): Describe :lang and :otf in the docstring.
9288
4c1958f4
AS
92892009-02-16 Andreas Schwab <schwab@suse.de>
9290
9291 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9292 string.
9293
5704f39a
KH
92942009-02-16 Kenichi Handa <handa@m17n.org>
9295
9296 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9297 (Bug#1723)
5704f39a 9298
8f0085aa
CY
92992009-02-14 Chong Yidong <cyd@stupidchicken.com>
9300
a057d86a 9301 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9302
9303 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9304 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9305
aff01dd9
EZ
93062009-02-14 Eli Zaretskii <eliz@gnu.org>
9307
9308 * msdos.c (MAX_SCREEN_BUF): New macro.
9309 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9310 Encode the entire run of glyphs sharing the same face, instead of
9311 doing that one glyph at a time (fixes a bug with displaying
9312 double-size characters).
9313
ba301db3
AR
93142009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9315
9316 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9317
9318 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9319 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9320 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9321
9322 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9323 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9324
51d861de
SM
93252009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9326
ac146f82 9327 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9328 invisible areas.
9329
7fed8996
JR
93302009-02-12 Jason Rumney <jasonr@gnu.org>
9331
631ea4fb
JR
9332 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9333 (add_font_entity_to_list): Call check_face_name even when family
9334 is unspecified.
9335
cb4a3e42
JR
9336 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9337 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9338 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9339
7fed8996 9340 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9341 raster fonts. (Bug#2219)
7fed8996 9342
895416e3
KH
93432009-02-12 Kenichi Handa <handa@m17n.org>
9344
9345 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9346 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9347 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9348 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9349 (find_automatic_composition): While looking forward and backward,
9350 check static composition. Fix where to stop looking forward.
9351 (composition_adjust_point): Fix checking of static composition.
9352 (Fcomposition_get_gstring): Pay attention to
1dacf998 9353 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9354
9355 * lisp.h (fast_looking_at): Extern it.
9356
9357 * search.c (fast_looking_at): New function.
9358
51d861de 9359 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9360 <struct glyph>.u.cmp.to.
9361 (append_composite_glyph): Likewise.
9362
51d861de 9363 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9364 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9365 composition.
51d861de 9366 (append_composite_glyph): Adjust for the change of
895416e3
KH
9367 <strcut glyph>.u.cmp.to.
9368
8510724d
JB
93692009-02-11 Juanma Barranquero <lekktu@gmail.com>
9370
9371 * casetab.c (init_casetab_once):
9372 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9373 * font.c (font_update_lface):
9374 * fontset.c (Fnew_fontset):
9375 * ftfont.c (ftfont_drive_otf):
9376 * xfont.c (xfont_open):
9377 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9378
294fa707
SM
93792009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9380
9381 * fileio.c (Fwrite_region): !NILP -> CONSP.
9382
b5bfebec
AS
93832009-02-10 Andreas Schwab <schwab@suse.de>
9384
9385 * process.c (send_process): Properly relocate pointer into data
adab88bd 9386 when using encoded data. (Bug#2272)
b5bfebec 9387
cb84a2be
KH
93882009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9389
9390 * coding.c (detect_coding_charset): Fix previous change.
9391
89e09428
JR
93922009-02-08 Jason Rumney <jasonr@gnu.org>
9393
9394 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9395 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9396
4470a277
AS
93972009-02-07 Andreas Schwab <schwab@suse.de>
9398
9399 * unexelf.c (unexec): Fix error message.
9400
3175b12a
AR
94012009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9402
9403 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9404 when modal window is active. (Bug #2152)
3175b12a
AR
9405 (applicationShouldTerminate:): Remove now-unneeded while loop
9406 around NSRunAlertPanel.
9407
9408 * nsmenu.m (popupSession): New file-global variable.
9409 (pop_down_menu): End the popupSession before closing dialog.
9410 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9411 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9412 don't query NSApp for events (just sleep instead).
9413
8434d0b8
EZ
94142009-02-07 Eli Zaretskii <eliz@gnu.org>
9415
51d861de
SM
9416 * coding.c (syms_of_coding) <translation-table-for-input>:
9417 Modify doc string to discourage use for character code unification.
8434d0b8 9418
aa82edfd
CY
94192009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9420
9421 * atimer.c (run_timers): Update pending_atimers.
9422
2d283c7c
CY
94232009-02-06 Chong Yidong <cyd@stupidchicken.com>
9424
eb306cab
CY
9425 * image.c (svg_load_image): Fix last change.
9426
2d283c7c
CY
9427 * xfns.c (Fx_create_frame): Signal an error if no font is
9428 found (Bug#2147).
9429
4d8e170e
JB
94302009-02-05 Juanma Barranquero <lekktu@gmail.com>
9431
9432 * character.c (syms_of_character) <script-representative-chars>:
9433 Fix typo in docstring.
9434
c96169a0
AR
94352009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9436
9437 * nsmenu.m (pop_down_menu): New function.
9438 (ns_popup_dialog): Call it on unwind.
9439 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9440 call timer_check() (Bug#2154).
9441 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9442 handling_signal is set.
9443 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9444
31fd7c5c 9445 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9446
9447 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9448
9449 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9450
51d861de
SM
9451 * keyboard.c (poll_for_input_1, handle_async_input):
9452 Set handling_signal under HAVE_NS.
c96169a0 9453
aacd8ba1
GM
94542009-02-04 Glenn Morris <rgm@gnu.org>
9455
9456 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9457
4cb75c4b
KH
94582009-02-04 Kenichi Handa <handa@m17n.org>
9459
9460 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9461
9462 * charset.c (Fchar_charset): New optional arg restriction.
9463
9464 * coding.h (coding_system_charset_list): Extern it.
9465
9466 * coding.c (coding_system_charset_list): New function.
9467
9468 * composite.c: Include coding.h and termhooks.h.
9469 (composition_gstring_p): Fix for the terminal case.
9470 (composition_gstring_width): Likewise.
9471 (fill_gstring_body): Likewise.
9472 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9473 the frame.
9474 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9475 is within a composition.
867d4bb3 9476 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9477
9478 * term.c (encode_terminal_code): Fix handling of composition.
9479 (produce_composite_glyph): For static composition, get pixel_width
9480 from struct composition.
9481
826ba17e
AS
94822009-02-02 Andreas Schwab <schwab@suse.de>
9483
9484 * unexelf.c (unexec): Handle unaligned bss offset.
9485
8ad093db
AR
94862009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9487
9488 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9489 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9490
8ad093db
AR
9491 * keyboard.c (handle_interrupt): Don't call
9492 quit_throw_to_read_char() under NS.
d0a76a6e 9493
8ad093db
AR
9494 * blockinput.h: Remove NS-specific code.
9495
4d18a7a2
DN
94962009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9497
db878925
DN
9498 * dispnew.c (window_change_signal): Don't try to get the size of a
9499 suspended tty frame.
9500 * term.c (Fresume_tty): Resize if the size has changed while the
9501 tty was suspended.
9502
4d18a7a2
DN
9503 * alloc.c (mark_stack): Properly conditionalize previous change.
9504
8984df7c
JB
95052009-01-30 Juanma Barranquero <lekktu@gmail.com>
9506
9507 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9508 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9509 Remove; this code is not used on Windows.
9510
75f4f1ac
EZ
95112009-01-30 Eli Zaretskii <eliz@gnu.org>
9512
9513 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9514 EOLs that also has stray ^M characters.
9515
07a1e794
JB
95162009-01-30 Juanma Barranquero <lekktu@gmail.com>
9517
9518 * atimer.c (run_timers, alarm_signal_handler):
9519 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9520 * w32inevt.c (w32_console_read_socket):
9521 * w32term.c (w32_read_socket):
9522 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9523
a8b11cc9
CY
95242009-01-30 Chong Yidong <cyd@stupidchicken.com>
9525
9526 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9527 Initialize it as a relative filename pattern.
9528 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9529 (Fcall_process_region): Simplify temp file creation using
9530 temporary-file-directory.
9531
c279587b
EZ
95322009-01-29 Eli Zaretskii <eliz@gnu.org>
9533
9534 * msdos.c: Rename pending_signals to msdos_pending_signals.
9535 (sig_suspender, sigprocmask): Adjust.
9536
a8fe3242
CY
95372009-01-29 Chong Yidong <cyd@stupidchicken.com>
9538
9539 * keyboard.c (pending_signals): New var.
9540 (poll_for_input, input_available_signal, init_keyboard): Set it.
9541 (process_pending_signals): New function.
9542
9543 * lisp.h (QUIT): Check pending_signals instead of
9544 interrupt_input_pending. Use process_pending_signals.
9545
51d861de 9546 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9547
51d861de 9548 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9549
9550 * sysdep.c (emacs_write): Use process_pending_signals.
9551
9552 * xterm.c (XTread_socket): Update pending_signals.
9553
9554 * w32term.c (w32_read_socket): Update pending_signals.
9555
9556 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9557
6570a1c4
KH
95582009-01-29 Kenichi Handa <handa@m17n.org>
9559
9560 * xftfont.c (xftfont_has_char): New function.
9561 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9562
d72a4afa
AR
95632009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9564
9565 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9566 under GNUstep.
9567 (ns_query_color): New declaration.
9568
9569 * nsterm.m (ns_confirm_quit): New variable.
9570 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9571 (EmacsApp-applicationShouldTerminate:): Use it.
9572 (EmacsPrefsController): Let user set it.
9573 (ns_query_color): New function.
9574 (ns_defined_color): Use it.
9575 (ns_initialize): Drop.
9576 (ns_term_init): Add two lines from ns_initialize(), and set
9577 input_interrupt_mode to nil.
9578
9579 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9580 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9581
9fe78804
KH
95822009-01-28 Kenichi Handa <handa@m17n.org>
9583
9584 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9585 (fontset_get_font_group): Remember that no font-group is specified
9586 for C.
9fe78804 9587
fa57de36
CY
95882009-01-27 Chong Yidong <cyd@stupidchicken.com>
9589
930600e9
CY
9590 * fns.c (concat): Check for string overflow (bug#1787).
9591
fa57de36
CY
9592 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9593 Quadruple undo limits (bug#1501).
9594
7179ce7b
KH
95952009-01-27 Kenichi Handa <handa@m17n.org>
9596
9597 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9598 directly use GT_Get_Char_index.
9599
9600 * xftfont.c (struct xftfont_info): New member `index'.
9601
9602 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9603 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9604
5be8fcc0
CY
96052009-01-26 Kenichi Handa <handa@m17n.org>
9606
9607 * fontset.c (fontset_find_font): Fix handling of non-cons return
9608 value of fontset_get_font_group.
9609 (fontset_font): Revert last change.
9610
19ae3e61
JR
96112009-01-26 Jason Rumney <jasonr@gnu.org>
9612
9613 * w32font.c (w32font_list_internal): Return quickly if registry is
9614 unknown. Simplify final return.
9615 (add_font_entity_to_list): Break complex logic down into more
9616 manageable chunks. Move unknown registry check to
9617 w32font_list_internal.
9618
8612b71a
AR
96192009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9620
9621 Changes to remove Feval calls from GUI under NS.
9622
d8038940
JB
9623 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9624 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9625 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9626
9627 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9628 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9629 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9630 instead of NON_ASCII_KEYSTROKE_EVENT.
9631 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9632 (EmacsApp-applicationShouldTerminate:): Query user.
9633 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9634 instead of Feval.
9635
9636 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9637
9638 * keyboard.c (kbd_buffer_get_event): Check for it.
9639 (keys_of_keyboard): Define lispy keys for
9640 ns-put/unput-working-text.
9641
9642 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9643 versions.
9644 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9645
6288ae55
CY
96462009-01-25 Chong Yidong <cyd@stupidchicken.com>
9647
9648 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9649 setting current_buffer directly. (Bug#2044)
6288ae55 9650
289e7f8f
CY
96512009-01-24 Chong Yidong <cyd@stupidchicken.com>
9652
5ce87308 9653 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9654 any work. (Bug#1952, bug#1990).
5ce87308 9655
64cc3cf6 9656 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9657
b3243e6f
AR
96582009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9659
9660 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9661 (ns_no_defaults): New declaration.
9662 (main): Use it.
e0d2e69a 9663
d900b2af 9664 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9665
d900b2af 9666 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9667
d900b2af
AR
9668 * nsterm.m (ns_no_defaults): New variable.
9669 (ns_initialize): Don't read defaults when ns_no_defaults.
9670 (EmacsView-readSelectionFromPasteboard:)
9671 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9672 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9673 (ns_dumpglyphs_stretch): New function.
9674 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9675 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9676
e0d2e69a
AR
9677 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9678
3ac71f5d
CY
96792009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9680
9681 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9682 call for Sparc64.
9683
3fe53a83
AR
96842009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9685
9686 * nsfns.m:
9687 * nsgui.h:
9688 * nsmenu.m:
9689 * nsselect.m:
9690 * nsterm.h:
9691 * nsterm.m: Remove '23' comments that indicated code added during
9692 update from emacs-20 -> emacs-23.
9693
10f87c6f 96942009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9695
9696 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9697 ns_alternate_modifier. (Bug#1217)
a3b53a85 9698
c7cef62d
AR
9699 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9700 Display all shortcuts, including those w/o super modifier.
9701
575fb8bd
AR
9702 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9703
918b848b
CY
97042009-01-22 Chong Yidong <cyd@stupidchicken.com>
9705
9706 * fileio.c (Vwrite_region_post_annotation_function)
9707 (Vwrite_region_annotation_buffers): New vars.
9708 (build_annotations_unwind): Just reset
9709 Vwrite_region_annotation_buffers.
9710 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9711 Call write-region-post-annotation-function.
9712 (build_annotations): Add to Vwrite_region_annotation_buffers if
9713 buffer changes.
9714
a39e2539
AR
97152009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9716
9717 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9718 Tiger.
51d861de
SM
9719 * nsfns.m (ns_do_applescript):
9720 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9721
35ed44db
AR
97222009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9723
9724 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9725
cbe0b5bf
AR
97262009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9727
9728 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9729
6049d3a0
AR
9730 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9731
9732 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9733 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9734 handle Ctrl-tab. (Bug#1841)
9735 (ns_get_color): Use unsigned long long for scanned hex string value.
9736 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9737 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9738 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9739 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9740 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9741 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9742 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9743
d3810c21 9744 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9745 DPI. (Bug#1316)
d3810c21
AR
9746 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9747 values in onTiger section.
4c7077c3 9748
e301e634
CY
97492009-01-19 Chong Yidong <cyd@stupidchicken.com>
9750
7f82490b
CY
9751 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9752 Check return value of font_spec_from_name.
64cc3cf6 9753 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9754
9755 * font.c (font_spec_from_name): Return Qnil if font name could not
9756 be parsed.
9757 (font_parse_name): Treat a `?' character as part of an XLFD.
9758
e301e634
CY
9759 * fns.c (Fsubstring): Doc fix.
9760
1c0db158
KH
97612009-01-19 Kenichi Handa <handa@m17n.org>
9762
51d861de 9763 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9764 (ftfont_list): Likewise.
9765
acf20901
JB
97662009-01-18 Juanma Barranquero <lekktu@gmail.com>
9767
fff4e459
JB
9768 * dbusbind.c (Fdbus_register_signal):
9769 * process.c (conv_sockaddr_to_lisp):
9770 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9771
acf20901
JB
9772 * callproc.c (Fgetenv_internal): Doc fix.
9773
e7abcdfb
CY
97742009-01-16 Chong Yidong <cyd@stupidchicken.com>
9775
9776 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9777 it is not even used.
9778
b60861e6
GM
97792009-01-16 Glenn Morris <rgm@gnu.org>
9780
9781 * font.c (Ffont_variation_glyphs): Silence compiler.
9782
8db52afe
JB
97832009-01-15 Juanma Barranquero <lekktu@gmail.com>
9784
9785 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9786 Reported by David Robinow <drobinow@gmail.com>.
9787
4cddb209
KH
97882009-01-15 Kenichi Handa <handa@m17n.org>
9789
51d861de 9790 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9791
f247f67b
JR
97922009-01-14 Jason Rumney <jasonr@gnu.org>
9793
9794 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9795 never a fontset. (Bug#1562)
f247f67b 9796
f56a4450
KH
97972009-01-14 Kenichi Handa <handa@m17n.org>
9798
9799 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9800 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9801
4e99855e
CY
98022009-01-13 Chong Yidong <cyd@stupidchicken.com>
9803
9804 * font.c (font_clear_prop): If clearing the family, clear the font
9805 width index too.
9806
fff4e459 9807 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9808
24f01470
JB
98092009-01-12 Juanma Barranquero <lekktu@gmail.com>
9810
9811 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9812 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9813 functions, use sizeof.
9814
a41240a3
MR
98152009-01-12 Martin Rudalics <rudalics@gmx.at>
9816
9817 * keyboard.c (read_char): Fix case where last_nonmenu_event
9818 returned a bad value with submenus. (Bug#447)
9819
944636b8
CY
98202009-01-12 Chong Yidong <cyd@stupidchicken.com>
9821
9822 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9823 family, clear the font width index too.
9824
0dad7c6f
JR
98252009-01-11 Jason Rumney <jasonr@gnu.org>
9826
9827 * keyboard.c (cmd_error_internal): Exit when errors occur before
9828 frame creation and not in daemon mode. (Bug#1836)
9829
7c2363af
CY
98302009-01-10 Chong Yidong <cyd@stupidchicken.com>
9831
9832 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9833 of a display vector, backtrack.
9834 (try_window_reusing_current_matrix): Check glyph type before
9835 referencing charpos member.
9836
97b1b294
EZ
98372009-01-10 Eli Zaretskii <eliz@gnu.org>
9838
9839 Fix Bug #876:
9840
9841 * coding.c (inhibit_null_byte_detection): New variable.
9842 (detect_coding, detect_coding_system): Don't pay attention to null
9843 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9844 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9845 <inhibit-iso-escape-detection>: Doc fix.
9846
4624b6e3
JR
98472009-01-09 Jason Rumney <jasonr@gnu.org>
9848
9849 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9850 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9851 Only report Unicode Plane 2 fonts as unicode-sip.
9852
323b840c
CY
98532009-01-09 Chong Yidong <cyd@stupidchicken.com>
9854
51d861de
SM
9855 * xfaces.c (Fx_font_family_list): Delete function.
9856 Move compatibility version to faces.el.
323b840c 9857
51d861de 9858 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9859
eba7400d
MR
98602009-01-09 Martin Rudalics <rudalics@gmx.at>
9861
9862 * frame.c (x_set_frame_parameters): Remember requested value for
9863 fullscreen before it's reset by the parameter handler.
9864
4b09796d
GM
98652009-01-09 Glenn Morris <rgm@gnu.org>
9866
9867 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9868 (last_command_event): ... and update all users.
4b09796d
GM
9869 (last_input_char): For clarity, rename to...
9870 (last_input_event): ... and update all users.
9871 (last-command-char, last-input-char): Move to subr.el as aliases.
9872 * cmds.c, commands.h: Update for last_command_char rename.
9873
14ccea62
CY
98742009-01-08 Chong Yidong <cyd@stupidchicken.com>
9875
51d861de 9876 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9877
5f004711
JR
98782009-01-08 Jason Rumney <jasonr@gnu.org>
9879
9880 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9881 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9882 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9883 Don't declare.
fff4e459 9884 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9885 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9886
b71f6f73
KH
98872009-01-07 Kenichi Handa <handa@m17n.org>
9888
50b06221 9889 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9890 remember the coding system used for decoding in
50b06221
KH
9891 coding_system (Bug#1039).
9892
b71f6f73 9893 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9894 breaking the loop. (Bug#870)
b71f6f73
KH
9895 (decode_coding_utf_16, decode_coding_emacs_mule)
9896 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9897 (decode_coding_charset): Likewise.
9898
56f668f7
MR
98992009-01-05 Martin Rudalics <rudalics@gmx.at>
9900
9901 * frame.c (x_set_frame_parameters): Make sure height (width) get
9902 applied when fullwidth (fullheight) is set. (Bug#1522)
9903
5da9424d
JB
99042009-01-04 Juanma Barranquero <lekktu@gmail.com>
9905
9906 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9907 (utc_base): Declare as ULONGLONG, not long double.
9908 (convert_time_raw): Delete.
9909 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9910 (initialize_utc_base): New function.
9911 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9912 (convert_from_time_t): Use initialize_utc_base; compute result with
9913 64-bit arithmetic.
9914 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9915
c4605e09
EZ
99162009-01-03 Eli Zaretskii <eliz@gnu.org>
9917
9acef61c 9918 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9919 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9920 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9921 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9922 [!subprocesses]: Define.
9923 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9924 (Flist_system_processes, Fsystem_process_attributes)
9925 [!subprocesses]: Call list_system_processes and
9926 system_process_attributes instead of returning Qnil.
9927
9acef61c
JB
9928 * dosfns.c (system_process_attributes, list_system_processes):
9929 New functions.
c4605e09
EZ
9930
9931 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9932
9933 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9934 Don't use the default (no-op) implementation.
9935
8b7d0a16
JR
99362009-01-03 Jason Rumney <jasonr@gnu.org>
9937
a6d46bc1
JR
9938 * keyboard.c (parse_modifiers_uncached): Wheel events are
9939 clicks (bug#687).
9940
8b7d0a16
JR
9941 * w32term.c (x_query_colors, x_query_color): New functions.
9942
9943 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9944 (svg_load_image): Cast returned pointers from dynamically loaded
9945 functions. Eliminate W32 specific code.
9946
bfe11752
DN
99472009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9948
89e2438a
DN
9949 * nsfns.m (x_set_foreground_color, x_set_background_color)
9950 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9951 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9952 x_ prefix instead of ns_. Update references.
9953 (syms_of_nsfns): Add a FIXME comment.
9954
9955 * nsterm.m (x_set_cursor_type): New prototype.
9956 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9957
bfe11752
DN
9958 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9959 for Solaris instead of incorrectly providing Qutime and Qcutime.
9960
031da700
EZ
99612009-01-02 Eli Zaretskii <eliz@gnu.org>
9962
9963 * w32.c (process_times): Compute sum of utime and stime.
9964 (system_process_attributes): Add Qtime to the alist.
9965
9966 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9967 and add them to the alist.
9968
9969 * process.c (top level) <Qtime, Qctime>: New variables.
9970 (syms_of_process): staticpro them.
9971 (Fsystem_process_attributes): Add their documentation to the doc
9972 string.
9973
9974 * process.h: Declare Qtime and Qctime.
9975
df23bf08
JR
99762009-01-02 Jason Rumney <jasonr@gnu.org>
9977
9acef61c 9978 * image.c (Qgobject): New symbol.
df23bf08
JR
9979 (syms_of_image): Initialize it.
9980 (init_svg_functions): Load some functions from gobject library.
9981
5bbdf7aa
DN
99822009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9983
9984 * frame.c (make_terminal_frame): Remove redundant code and useless
9985 block.
9986
63136da6
AS
99872009-01-01 Andreas Schwab <schwab@suse.de>
9988
9989 * process.c (conv_sockaddr_to_lisp): Add workaround for
9990 getsockname bug on BSD.
9991
9ef69046
CY
99922009-01-01 Chong Yidong <cyd@stupidchicken.com>
9993
d6fafbe0
CY
9994 * xfns.c (x_create_tip_frame): Set border width of the X window.
9995
51d861de 9996 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9997
f9c34147
JR
99982009-01-01 Jason Rumney <jasonr@gnu.org>
9999
9acef61c 10000 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10001 Don't block input, as per earlier xterm.c changes.
10002
f5497e45
AR
100032008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10004
10005 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10006 (ns_appkit_version_int): New function.
10007 (x-server-version): Use ns_appkit_version_int and follow 21+
10008 convention of returning 3 integers.
10009
c19cab20
KH
100102008-12-30 Kenichi Handa <handa@m17n.org>
10011
10012 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10013 (CHAR_SURROGATE_PAIR_P): New macro.
10014
10015 * font.h (struct font_driver): New member get_variation_glyphs.
10016
9acef61c 10017 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10018 (Ffont_variation_glyphs): New function.
10019 (syms_of_font): Defsubr it.
10020
10021 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10022 ftfont_variation_glyphs.
10023 (setup_otf_gstring): New function.
10024 (ftfont_drive_otf): Use it.
10025 (ftfont_shape_by_flt): Handle variation selector.
10026 (ftfont_variation_glyphs): New function.
10027
28cd591f
MR
100282008-12-30 Martin Rudalics <rudalics@gmx.at>
10029
10030 * frame.c (Vemacs_iconified): Remove.
10031
7f714baf
JR
100322008-12-30 Jason Rumney <jasonr@gnu.org>
10033
10034 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10035 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10036
9d2d22ab
CY
100372008-12-30 Chong Yidong <cyd@stupidchicken.com>
10038
10039 * indent.c (Fvertical_motion): Don't advance iterator if we have
10040 reseated to the desired position.
10041
10042 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10043 checking for pos match.
10044
545312c2
KH
100452008-12-30 Kenichi Handa <handa@m17n.org>
10046
1ede3eb6
KH
10047 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10048 just get the low 8-bit of the code.
10049
545312c2
KH
10050 * font.c (font_intern_prop): Validate str as multibyte.
10051
bd7bbf29
DN
100522008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10053
31e0750e
DN
10054 * dispextern.h (struct face): Move lface and hash from the middle
10055 of bitfields.
10056
bd7bbf29
DN
10057 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10058
b5672e7c
DN
100592008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10060
10061 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10062 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10063 instead of intervals.h.
10064
d704470f
AS
100652008-12-26 Andreas Schwab <schwab@suse.de>
10066
10067 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10068 cons.
10069
54b33868
MR
100702008-12-26 Martin Rudalics <rudalics@gmx.at>
10071
10072 * textprop.c (Qminibuffer_prompt): New variable.
10073 (syms_of_textprop): Initialize it.
10074 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10075 in minibuffer-prompt face. (Bug#1662)
10076
40b615d6
JR
100772008-12-25 Jason Rumney <jasonr@gnu.org>
10078
10079 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10080
baae5c2d
JR
100812008-12-24 Jason Rumney <jasonr@gnu.org>
10082
10083 * ralloc.c (r_alloc_reset_variable): New function.
10084
10085 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10086 record of what points where. (Bug#716)
baae5c2d 10087
a9051c88
DN
100882008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10089
10090 * minibuf.c (read_minibuf): Follow the non-interactive case when
10091 running as a daemon, before detaching.
10092
8b146312
AS
100932008-12-22 Andreas Schwab <schwab@suse.de>
10094
10095 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10096 * gtkutil.c (free_widget_value): Use xfree instead of free.
10097
56f2de10
MR
100982008-12-22 Martin Rudalics <rudalics@gmx.at>
10099
10100 * frame.c (delete_frame): New function derived from
10101 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10102 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10103 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10104 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10105 * frame.h: Extern delete_frame.
10106 * window.c (window_loop):
10107 * terminal.c (delete_terminal):
10108 * xterm.c (x_connection_closed):
10109 * xfns.c (Fx_hide_tip):
9acef61c 10110 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10111
1fc200d6
JR
101122008-12-21 Jason Rumney <jasonr@gnu.org>
10113
10114 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10115 when character maps to .notdef character.
10116
5e252df2
SM
101172008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10118
10119 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10120
99b72cc4
JR
101212008-12-20 Jason Rumney <jasonr@gnu.org>
10122
10123 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10124 a graphical frame on Windows. (Bug#1325)
99b72cc4 10125
acc49a52
JD
101262008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10127
10128 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10129
6ea15123
CY
101302008-12-20 Chong Yidong <cyd@stupidchicken.com>
10131
10132 * minibuf.c (Fread_buffer): Doc fix.
10133
b2dab6c8
JR
101342008-12-20 Jason Rumney <jasonr@gnu.org>
10135
54ea0c87 10136 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10137 server name in UNC paths. (Bug#719)
54ea0c87 10138
b2dab6c8 10139 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10140 charbuf. (Bug#1035)
b2dab6c8 10141
6d1921be
DN
101422008-12-19 Daniel Engeler <engeler@gmail.com>
10143
10144 * sysdep.c (serial_configure): Fix typo.
10145
53934c98
DN
101462008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10147
10148 * sysdep.c: Include alloca.h.
f4f634e8
DN
10149 (system_process_attributes): Add implementation for Solaris.
10150
10151 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10152
06e111a6
DN
101532008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10154
10155 Reorganize implementation of Flist_system_processes and
10156 Fsystem_process_attributes. No functional changes.
10157 * process.c: Don't #include pwd.h, grp.h and limits.h.
10158 (Flist_system_processes): Just call list_system_processes.
10159 (Fsystem_process_attributes): Just call system_process_attributes.
10160 (procfs_list_system_processes, time_from_jiffies)
10161 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10162 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10163
10164 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10165 (list_system_processes): Rename from
10166 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10167 Provide a do nothing implementation.
10168 (system_process_attributes): Rename from
10169 procfs_list_system_processes.
10170 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10171 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10172
10173 * w32.c (list_system_processes): Rename from
10174 w32_list_system_processes.
10175 (system_process_attributes): Rename from
10176 w32_system_process_attributes.
10177
10178 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10179
10180 * process.h (w32_list_system_processes)
10181 (w32_system_process_attributes): Remove.
362654a6
JB
10182 (list_system_processes, system_process_attributes):
10183 New prototypes.
06e111a6 10184
6a705b23
KH
101852008-12-19 Kenichi Handa <handa@m17n.org>
10186
10187 * xfont.c (xfont_decode_coding_xlfd): New function.
10188 (xfont_encode_coding_xlfd): New function.
10189 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10190 (xfont_list): Decode and encode XLFD by iso-8859-1.
10191 (xfont_match): Likewise.
10192 (xfont_list_family): Likewise.
10193 (xfont_open): Likewise.
10194
d66c0241 10195 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10196 names are utf-8.
10197
d66c0241 10198 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10199 names are utf-8.
10200
5a130941
JD
102012008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10202
10203 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10204 changed.
bfd20325
JD
10205 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10206 clicked on a detached tool bar button.
5a130941 10207
fd95644b
DN
102082008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10209
10210 * emacs.c (main): Print and error and exit when no data is read
10211 from the pipe.
10212
e6eee6ae
JR
102132008-12-17 Jason Rumney <jasonr@gnu.org>
10214
10215 * w32font.c (w32font_has_char): Always return -1.
10216
a35dd56b
KH
102172008-12-16 Kenichi Handa <handa@m17n.org>
10218
10219 * font.c (font_open_entity): Fix previous change.
10220
0e3635c2
DN
102212008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10222
10223 * process.c: Include <limits.h>.
10224
d4835507 102252008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10226
10227 * font.c (font_update_drivers): Fix mistake in reconstructing the
10228 driver list.
10229
102302008-12-16 Chong Yidong <cyd@stupidchicken.com>
10231
10232 * font.c (font_clear_cache): Fix format of font cache data.
10233
e2cbc401
CY
102342008-12-15 Chong Yidong <cyd@stupidchicken.com>
10235
10236 * xftfont.c (xftfont_open): Free Xft font pattern if
10237 XftFontOpenPattern fails.
10238
10239 * xterm.c (x_free_frame_resources): Remove extraneous call to
10240 free_frame_faces.
10241
b131d535
CY
102422008-12-13 Chong Yidong <cyd@stupidchicken.com>
10243
10244 * xterm.c (x_delete_display): Move xim_close_dpy call to
10245 x_delete_terminal.
10246 (x_delete_terminal): Call xim_close_dpy.
10247
e6df5336
JR
102482008-12-13 Jason Rumney <jasonr@gnu.org>
10249
10250 * w32font.c (intern_font_name): New function.
10251 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10252 (w32font_open_internal, Fx_select_font): Decode font name.
10253 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10254
10255 * w32font.h (intern_font_name): Declare new function.
10256
10257 * w32uniscribe.c (add_opentype_font_name_to_list):
10258 Use intern_font_name.
10259
20d68145
CY
102602008-12-13 Chong Yidong <cyd@stupidchicken.com>
10261
9f2554de
CY
10262 * frame.c (Fdelete_frame): Call free_font_driver_list.
10263
3d9bec9a
CY
10264 * font.c (free_font_driver_list): Implement missing function.
10265
20d68145
CY
10266 * w32term.c (w32_term_init): Don't initialize the image cache
10267 here; it will be done in init_frame_faces.
10268
10269 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10270 (struct x_display_info): Remove unused member null_pixel. New
10271 member xim_callback_data.
10272
10273 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10274 (xim_initialize): Save pointer to callback function data.
10275 (xim_close_dpy): Free callback function data. Call XCloseIM,
10276 reverting 2008-11-04 change by David Smith.
10277 (x_term_init): Don't initialize the image cache here; it will be
10278 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10279 (x_delete_display): Free x_dnd_atoms member.
10280
96f9306b
KH
102812008-12-13 Kenichi Handa <handa@m17n.org>
10282
6dec9044
JB
10283 * font.c (font_rescale_ratio): Moved from xfaces.c.
10284 Argument type changed. Handle a font-spec too.
96f9306b 10285 (font_score): Check Vface_font_rescale_alist.
6dec9044 10286 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10287
10288 * xfaces.c (font_rescale_ratio): Moved to font.c.
10289
8d5b4964
CY
102902008-12-13 Chong Yidong <cyd@stupidchicken.com>
10291
10292 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10293
e6df5336
JR
102942008-12-12 Jason Rumney <jasonr@gnu.org>
10295
10296 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10297 Vwindow_system_version to the real w32 major version.
10298
97c6058a
DN
102992008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10300
10301 * term.c (init_tty): Move setting the terminal name before the
10302 potential user: maybe_fatal.
10303
ec4e88d7
CY
103042008-12-11 Chong Yidong <cyd@stupidchicken.com>
10305
d4835507
JB
10306 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10307 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10308
b4233ec9
JR
103092008-12-11 Jason Rumney <jasonr@gnu.org>
10310
8ec71e23 10311 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10312 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10313
b4233ec9 10314 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10315 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10316
011a0143
JB
103172008-12-11 Juanma Barranquero <lekktu@gmail.com>
10318
10319 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10320
3c309f34
JB
103212008-12-11 Juanma Barranquero <lekktu@gmail.com>
10322
10323 * process.c (Fsystem_process_attributes, syms_of_process):
10324 Fix typo in name of Ssystem_process_attributes.
10325 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10326
fedc6ab5
JB
103272008-12-11 Juanma Barranquero <lekktu@gmail.com>
10328
10329 * syntax.c (Fmodify_syntax_entry): Doc fix.
10330
ba3de0e8
JB
103312008-12-10 Juanma Barranquero <lekktu@gmail.com>
10332
10333 * font.c (Ffont_spec): Move usage to end of docstring.
10334
174f1c74
JR
103352008-12-10 Jason Rumney <jasonr@gnu.org>
10336
10337 * w32font.c (Qcham): New symbol.
10338 (font_supported_scripts): Add cham, and comments for other new
10339 scripts in bitfield from OpenType spec.
9d32f818
JR
10340 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10341 contain characters beyond the bmp.
174f1c74 10342
7b649478
KH
103432008-12-10 Kenichi Handa <handa@m17n.org>
10344
10345 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10346 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10347 Qunicode_sip.
10348
2133e2d1
JB
103492008-12-10 Juanma Barranquero <lekktu@gmail.com>
10350
10351 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10352 (Fcoding_system_put): Use QCdefault_char.
10353 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10354
9af886ee
CY
103552008-12-09 Chong Yidong <cyd@stupidchicken.com>
10356
74d819eb
CY
10357 * xftfont.c (syms_of_xftfont): Fix typo.
10358
4ccfa1c0 10359 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10360
7c19d3ae
DN
103612008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10362
10363 * emacs.c (main): Close daemon_pipe on exec.
10364
567826bb
CY
103652008-12-08 Chong Yidong <cyd@stupidchicken.com>
10366
10367 * termchar.h (struct tty): New members termcap_term_buffer and
10368 termcap_strings_buffer.
10369
10370 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10371 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10372 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10373 All callers changed.
10374 (init_tty): Store termcap data and string buffers in new struct
10375 tty members termcap_term_buffer and termcap_strings_buffer.
10376 (delete_tty): Free them.
4ccfa1c0 10377 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10378
aa96c42b
SZ
103792008-12-07 Seiji Zenitani <zenitani@mac.com>
10380
10381 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10382 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10383
b7e1d896
CY
103842008-12-06 Chong Yidong <cyd@stupidchicken.com>
10385
10386 * coding.c (make_conversion_work_buffer): Disable buffer
10387 modification hooks in the work buffer.
10388
b5ec91a5
EZ
103892008-12-05 Eli Zaretskii <eliz@gnu.org>
10390
10391 * process.c (procfs_system_process_attributes): If `nread' has a
10392 negative value, assign zero to it.
10393
a5d2a52b
CY
103942008-12-05 Chong Yidong <cyd@stupidchicken.com>
10395
68c5540b 10396 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10397
7bf1bb21
KH
103982008-12-05 Kenichi Handa <handa@m17n.org>
10399
10400 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10401 second character is a combining character.
10402
2fdc7d00
EZ
104032008-12-05 Eli Zaretskii <eliz@gnu.org>
10404
10405 * process.c (procfs_system_process_attributes): Don't use cmd,
10406 cmdsize, and q without initializing them first.
10407
bf6bfba8
JR
104082008-12-04 Jason Rumney <jasonr@gnu.org>
10409
10410 * w32font.c (w32font_draw): Initialize orig_clip before getting
10411 it, and delete it when finished.
10412
a3b1a468
DN
104132008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10414
10415 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10416 case when running as a daemon before detaching.
10417
8b8be8eb
JB
104182008-12-03 Juanma Barranquero <lekktu@gmail.com>
10419
805f2638 10420 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10421
b1bde622
KH
104222008-12-03 Kenichi Handa <handa@m17n.org>
10423
e500c47d
KH
10424 * font.c (font_at): Set `multibyte' at first.
10425
ca516334
KH
10426 * coding.c (decode_coding_charset): Check type of an element of
10427 vector VALIDS.
7bf1bb21 10428 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10429
4ccfa1c0 10430 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10431 (font_for_char): Likewise.
10432
1e5ecd37
CY
104332008-12-03 Chong Yidong <cyd@stupidchicken.com>
10434
d5b01609 10435 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10436 (font_update_lface): Handle fonts with corrupted size specs,
10437 i.e. non-int and non-float.
d5b01609 10438
11e3a6e4 10439 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10440 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10441 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10442
ab06788b
CY
10443 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10444
1e5ecd37 10445 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10446 underline_minimum_offset for underline position.
1e5ecd37 10447
63c125ab
DN
104482008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10449
10450 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10451
10452 * character.c (c_string_width): Specify the type for LEN.
10453
3a8406e1
KH
104542008-12-03 Kenichi Handa <handa@m17n.org>
10455
4ccfa1c0 10456 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10457 (decode_coding_utf_8): Likewise.
4ccfa1c0 10458 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10459 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10460
651df7d9
CY
104612008-12-02 Chong Yidong <cyd@stupidchicken.com>
10462
10463 * keyboard.c (make_lispy_position): Only use PT if the selected
10464 window is current.
10465
1f625c6c
AS
104662008-12-02 Andreas Schwab <schwab@suse.de>
10467
f7741ce9
AS
10468 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10469
1f625c6c
AS
10470 * doprnt.c (doprnt1): Fix size of charbuf.
10471
92bc2678
CY
104722008-12-02 Chong Yidong <cyd@stupidchicken.com>
10473
10474 * keyboard.c (timer_check): Revert last change.
10475
93b9e8cc
JB
104762008-12-02 Juanma Barranquero <lekktu@gmail.com>
10477
10478 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10479
fd7a37d5
JB
104802008-12-01 Juanma Barranquero <lekktu@gmail.com>
10481
10482 * makefile.w32-in: Update dependencies.
10483 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10484
c115043b
AS
104852008-12-01 Andreas Schwab <schwab@suse.de>
10486
10487 * font.c (register_font_driver): Use xmalloc.
10488 (font_put_frame_data): Likewise.
10489
f5668d2a
CY
104902008-12-01 Chong Yidong <cyd@stupidchicken.com>
10491
860d96be
CY
10492 * xfaces.c (realize_x_face): Make abort condition clearer.
10493
f5668d2a
CY
10494 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10495
379c17e7
CY
104962008-11-30 Chong Yidong <cyd@stupidchicken.com>
10497
10498 * keyboard.c (timer_check): After a timer runs, ensure that the
10499 selected window's buffer is current.
10500
35f36d65
JB
105012008-11-30 Juanma Barranquero <lekktu@gmail.com>
10502
f952c61c
JB
10503 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10504 It was accidentally restored by the Unicode merge.
10505
35f36d65
JB
10506 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10507
b23077df
JB
105082008-11-29 Juanma Barranquero <lekktu@gmail.com>
10509
10510 * w32proc.c: Include "coding.h".
10511 (Fw32_short_file_name): Encode filename passed to Windows API.
10512 (Fw32_long_file_name): Encode filename passed to Windows API and
10513 decode back the result. (Bug#1433)
10514
b8ebe9dd
KH
105152008-11-29 Kenichi Handa <handa@m17n.org>
10516
8cc53f96
KH
10517 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10518 not before accessing it.
10519
b8ebe9dd
KH
10520 * charset.c (Fdefine_charset_internal): After calculating
10521 min_char, max_char, and fastmap, copy the charset structure again.
10522 (encode_char): Fix the previous change.
10523
59bc82c0
SZ
105242008-11-28 Seiji Zenitani <zenitani@mac.com>
10525
10526 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10527
10528 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10529
10530 * nsterm.m (x_set_frame_alpha): New function.
10531
32247e3d
EZ
105322008-11-27 Eli Zaretskii <eliz@gnu.org>
10533
10534 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10535
b003e5ff
JB
105362008-11-27 Juanma Barranquero <lekktu@gmail.com>
10537
10538 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10539 pointer to check_face_name.
10540
708550f5
KH
105412008-11-27 Kenichi Handa <handa@m17n.org>
10542
10543 * category.h (SET_CATEGORY_SET): Call set_category_set.
10544 (set_category_set): Extern it.
10545
10546 * category.c (hash_get_category_set): New function.
10547 (Fmodify_category_entry): Adjusted for the change of
10548 char_table_ref_and_range. Call hash_get_category_set to get a
10549 category set to store in the table.
10550
10551 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10552 Funify_charset.
10553
2ae37cf0 10554 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10555 (DECODE_CHAR): Check if the decoder vector is ready.
10556 (ENCODE_CHAR): Check if the encoder char-table is ready.
10557 (maybe_unify_char): Extern it.
10558
10559 * charset.c (Vchar_unified_charset_table): Delete it.
10560 (inhibit_load_charset_map): New variable.
10561 (temp_charset_work): New variable.
10562 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10563 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10564 New macros.
10565 (load_charset_map): Meaning of control_flag changed. If
10566 inhibit_load_charset_map is nonzero, setup a table in
10567 temp_charset_work.
10568 (load_charset): New argument control_flag.
10569 (map_charset_for_dump): New function.
10570 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10571 map_charset_for_dump.
10572 (Fdefine_charset_internal): If the charset method is MAP, load
10573 mapping tables by calling load_charset.
10574 (Funify_charset): Don't load a mapping table but directly set
10575 Vchar_unify_table.
10576 (maybe_unify_char): New function.
10577 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10578 Handle the case of inhibit_load_charset_map being nonzero.
10579 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10580 Handle the case of inhibit_load_charset_map being nonzero.
10581 (Fclear_charset_maps): Just free temp_charset_work.
10582 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10583 variable.
10584
10585 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10586 change of char_table_ref_and_range.
10587 (char_table_ref_and_range): Change the meaning of argument FROM
10588 and TO. Now the caller must provide initial values for *FROM
10589 and *TO.
10590
10591 * fontset.c (fontset_add): Adjusted for the change of
10592 char_table_ref_and_range.
10593 (fontset_get_font_group): Likewise.
10594 (Ffontset_info): Likewise.
10595
10596 * keymap.c (describe_vector): Adjusted for the change of
10597 char_table_ref_and_range. For char-table, put boundary between
10598 non-ASCII and 8-bit characters.
10599
10600 * print.c (print_object): For bool-vector, delete unnecessary
10601 check of ASCII_BYTE_P.
10602
9196133b
JR
106032008-11-26 Jason Rumney <jasonr@gnu.org>
10604
10605 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10606 leading in font height. (Bug#879)
9196133b 10607
9f688acf
GM
106082008-11-26 Glenn Morris <rgm@gnu.org>
10609
10610 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10611 redefinition with ifdef. (Bug#1383)
10612
90d19aff
AR
106132008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10614
10615 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10616
4ccfa1c0 106172008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10618
10619 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10620 New EmacsView methods.
10621 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10622 Fixes bug #1048,1357,1414.
10623
106242008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10625
10626 Fix bug #1362.
10627 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10628 is not an indexed color.
10629 * nsterm.m (free_indexed_color): Add argument checking.
10630 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10631
e7d5ecb3
CY
106322008-11-24 Chong Yidong <cyd@stupidchicken.com>
10633
10634 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10635 Document confirm-after-completion value for
10636 minibuffer-completion-confirm.
10637
c285743c
JR
106382008-11-24 Jason Rumney <jasonr@gnu.org>
10639
10640 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10641 warning.
10642
b0857706
JR
106432008-11-23 Jason Rumney <jasonr@gnu.org>
10644
10645 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10646 restored before returning.
10647
10648 * w32font.c (check_face_name): New function.
10649 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10650 fonts. (Bug#642)
b0857706 10651
ee50ff07
MR
106522008-11-22 Martin Rudalics <rudalics@gmx.at>
10653
10654 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10655 confirm-nonexistent-file-or-buffer in doc-string.
10656
b8ff72fa
SM
106572008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10658
10659 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10660 Fix copy/paste typo. Add checks.
10661
cee53ed4
KH
106622008-11-21 Kenichi Handa <handa@m17n.org>
10663
10664 * coding.c (detect_coding_iso_2022): Reject invalid composition
10665 sequence.
10666 (DECODE_COMPOSITION_START): If the current source is the last
10667 block, and the current composition doesn't end, regard this
10668 sequence as invalid.
10669 (decode_coding_iso_2022): Handle invalid composition sequence.
10670
f6ef1e65
MR
106712008-11-20 Martin Rudalics <rudalics@gmx.at>
10672
10673 * window.c (coordinates_in_window): Don't return
10674 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10675 line when the window is not the rightmost one. (Bug#1372)
10676
e08b1705
MR
106772008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10678
10679 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10680
ad98e89f
EZ
106812008-11-15 Eli Zaretskii <eliz@gnu.org>
10682
10683 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10684 and bright_bg if noninteractive is non-zero.
10685
fb098a4b
CY
106862008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10687
10688 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10689 x_draw_glyph_string_background.
10690
10691 * w32term.c (x_draw_glyph_string): Likewise.
10692
ce952b6e
CY
106932008-11-15 Chong Yidong <cyd@stupidchicken.com>
10694
10695 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10696 the next glyph string once past the overhang width.
10697
10698 * nsterm.m (ns_draw_glyph_string): Likewise.
10699
10700 * w32term.c (x_draw_glyph_string): Likewise.
10701
26ea7079
CY
107022008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10703
10704 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10705 double file close.
10706
1c33c906
MR
107072008-11-14 Martin Rudalics <rudalics@gmx.at>
10708
10709 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10710 dedicated status of window before attempting to display another
10711 buffer in it.
10712
8fc29035
JB
107132008-11-14 Juanma Barranquero <lekktu@gmail.com>
10714
10715 * msdos.c (Fmsdos_long_file_names):
10716 (syms_of_msdos) <dos-unsupported-char-glyph>:
10717 * dosfns.c (Fint86): Fix typos in docstrings.
10718
55fb4286
EZ
107192008-11-14 Eli Zaretskii <eliz@gnu.org>
10720
10721 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10722
3fda0315
KY
107232008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10724
10725 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10726
7e849c17
CY
107272008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10728
10729 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10730
10731 * frame.h: Negative alpha means "don't touch".
10732
10733 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10734
10735 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10736
b9fd67bd
DN
107372008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10738
10739 * hftctl.c:
10740 * chpdef.h:
10741 * acldef.h: Remove files used only for systems no longer supported.
10742
10743 * Makefile.in: Fix .o alphabetical ordering.
10744 (hftctl.o): Remove dependency, file removed.
10745 (keymap.o, print.o): Depend on charset.h.
10746
d5998e03
KH
107472008-11-10 Kenichi Handa <handa@m17n.org>
10748
2ae37cf0 10749 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10750
be70e183
CY
107512008-11-08 Chong Yidong <cyd@stupidchicken.com>
10752
10753 * dired.c (file_name_completion): If completion_ignore_case is
10754 enabled, ignore case when checking completion-regexp-list.
10755
7cf94eac
EZ
107562008-11-08 Eli Zaretskii <eliz@gnu.org>
10757
10758 * vm-limit.c (get_lim_data): Fix last change.
10759
ee107a89
KH
107602008-11-08 Kenichi Handa <handa@m17n.org>
10761
10762 * character.c (Fget_byte): New function.
10763 (syms_of_character): Defsubr Fget_byte.
10764
5fd15622
CY
107652008-11-07 Chong Yidong <cyd@stupidchicken.com>
10766
10767 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10768 cursor position is valid after scrolling.
10769
13d62fad
JB
107702008-11-06 Juanma Barranquero <lekktu@gmail.com>
10771
10772 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10773
a1dd2936
GM
107742008-11-06 Glenn Morris <rgm@gnu.org>
10775
10776 * xterm.c (handle_one_xevent): Don't let popup menus cause
10777 mouse-autoselect-window related window switching. (Bug#1261)
10778
860cd236
CY
107792008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10780
10781 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10782
653a3150
AS
107832008-11-04 Andreas Schwab <schwab@suse.de>
10784
10785 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10786
870f5cac
CY
107872008-11-03 Chong Yidong <cyd@stupidchicken.com>
10788
10789 * xfns.c (Fx_wm_set_size_hint): New function.
10790
1e02f3cb
MR
107912008-11-03 Martin Rudalics <rudalics@gmx.at>
10792
10793 * textprop.c (Fprevious_single_char_property_change): Return 0
10794 when there's no change in a string. (Bug#1301)
10795
e630dfc6
MR
107962008-11-02 Martin Rudalics <rudalics@gmx.at>
10797
10798 * frame.c (do_switch_frame): New argument NORECORD passed to
10799 Fselect_window.
10800 (Fselect_frame): New argument NORECORD passed to
10801 do_switch_frame.
10802 (Fset_frame_selected_window): New argument NORECORD passed to
10803 Fselect_frame.
10804 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10805 in call of do_switch_frame.
10806 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10807 Handle NORECORD argument in call of Fselect_frame.
10808 * lisp.h (do_switch_frame, Fselect_frame)
10809 (Fset_frame_selected_window): Adjust declarations.
10810 * window.c (select_frame_norecord): New function.
10811 (run_window_configuration_change_hook): Use it and call
10812 Fselect_frame with NORECORD set.
10813 (Fselect_window): Pass NORECORD to Fselect_frame.
10814 (Fset_window_configuration): Handle NORECORD argument in call of
10815 do_switch_frame.
10816 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10817 Fset_frame_selected_window.
10818 * keyboard.c (command_loop_1): Handle NORECORD in call of
10819 Fselect_frame (currently ifdefd).
10820
9020b223
GM
108212008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10822
10823 * emacs.c (USAGE2): Untabify.
10824
793ffee8
SM
108252008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10826
10827 * composite.c (fill_gstring_header): Fix copy/paste typo.
10828
ab6d1131
MR
108292008-10-31 Martin Rudalics <rudalics@gmx.at>
10830
10831 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10832 (Fother_window): Rename argument and rewrite doc-string.
10833 (select_window_norecord): Fix return value. (Bug#1276)
10834
601a9cf1
JB
108352008-10-30 Juanma Barranquero <lekktu@gmail.com>
10836
10837 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10838 new frames overriding foreground for tooltips. Based on similar patch
10839 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10840
813b0652
CY
108412008-10-29 Chong Yidong <cyd@stupidchicken.com>
10842
10843 * emacs.c (Fdaemon_initialized): Initialize nfd.
10844
4414f58f
MR
108452008-10-29 Martin Rudalics <rudalics@gmx.at>
10846
10847 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10848 (Fwindow_text_height): Clarify doc-strings.
10849 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10850 doc-string of window-scroll-functions.
10851
ecdcaa09
RS
108522008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10853
10854 * category.c (syms_of_category): Fix typo in docstring.
10855
23fe745a
JB
108562008-10-28 Juanma Barranquero <lekktu@gmail.com>
10857
10858 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10859 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10860 Fix typos in docstrings.
10861
ff808935
DN
108622008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10863
10864 * emacs.c (daemon_pipe): Make non-static.
10865 (IS_DAEMON): Move definition ...
10866 * lisp.h (IS_DAEMON): ... here.
10867 (daemon_pipe): Declare.
10868 (is_daemon): Remove.
10869 * dispnew.c (init_display): Use IS_DAEMON.
10870
fc012771
SM
108712008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10872
10873 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10874 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10875
10876 * emacs.c (is_daemon): Remove.
10877 (main): Don't set is_daemon.
10878 (IS_DAEMON): New macro.
10879 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10880 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10881 parent exits.
10882 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10883
d8bdbe6f
CY
108842008-10-27 Chong Yidong <cyd@stupidchicken.com>
10885
d1a072bf
CY
10886 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10887 over-sized glyph, draw it with the default glyph width.
10888
e2e325aa
CY
10889 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10890 glyph, draw it with the default glyph width.
10891
10892 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10893 glyph, draw it with the default glyph width.
10894
d8bdbe6f
CY
10895 * xdisp.c (try_scrolling): When computing the distance from the
10896 scroll margin to PT, try moving some distance past the window
10897 bottom before giving up.
10898
7bfac547
MR
108992008-10-27 Martin Rudalics <rudalics@gmx.at>
10900
10901 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10902 (Fset_window_buffer): Explain in doc-string that a window can be
10903 "strongly" dedicated to its buffer.
10904
4ff029f6
DN
109052008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10906
10907 * emacs.c (daemon_name): New variable.
10908 (main): Deal with --daemon=SERVER_NAME.
10909 (Fdaemonp): Return a name if one was passed to --daemon.
10910
5790ef40
DN
109112008-10-26 Romain Francoise <romain@orebokech.com>
10912
f9bd0df9 10913 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10914 (main): Create a pipe before forking, make the parent exit only after
10915 the child has closed its end of the pipe. Move closing the
10916 descriptors ...
10917 (Fdaemon_initialized): ... here. New function.
10918
f5385255
SM
109192008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10920
4d632321
SM
10921 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10922 the previous unoptimized table.
10923
f5385255
SM
10924 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10925 the distinction between non-nil and non-t value of `dedicated'.
10926
6c56a0f3
CY
109272008-10-25 Chong Yidong <cyd@stupidchicken.com>
10928
10929 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10930 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10931
fec89261
MR
109322008-10-25 Martin Rudalics <rudalics@gmx.at>
10933
10934 * window.c (Fget_buffer_window, Fdelete_windows_on)
10935 (Freplace_buffer_in_windows): Make buffer argument optional and
10936 rename to buffer_or_name.
10937
34fcddd0
CY
109382008-10-24 Chong Yidong <cyd@stupidchicken.com>
10939
f5385255
SM
10940 * xdisp.c (handle_single_display_spec, handle_display_prop):
10941 Undo 2005-05-16 change.
34fcddd0
CY
10942 (handle_stop): Pop iterator if it's loaded with an empty string.
10943 (get_overlay_strings_1): Don't save iterator if it's loaded with
10944 an empty string (bug#1201).
10945
064766f2
KH
109462008-10-24 Kenichi Handa <handa@m17n.org>
10947
10948 * ftfont.c (ftfont_otf_features): Fix previous change.
10949 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10950 calling ftfont_otf_features.
10951
f9bd0df9 109522008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10953
10954 * font.c (font_match_p): Fix for the case that a vector of
10955 characters is in script-representative-chars.
10956
1dae9197
MA
109572008-10-24 Michael Albinus <michael.albinus@gmx.de>
10958
10959 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10960 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10961 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10962 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10963 macro. (Bug#1186)
1dae9197 10964
f9bd0df9 109652008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10966
10967 * s/sol2-10.h: New file.
10968
878a4584
JB
109692008-10-23 Juanma Barranquero <lekktu@gmail.com>
10970
10971 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10972 poor beast has survived 9+ years and the jump from xterm.c!).
10973
cd265ca6
MR
109742008-10-23 Martin Rudalics <rudalics@gmx.at>
10975
10976 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10977 Reword doc-string.
f5385255 10978 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10979
472a4dc9
JB
109802008-10-23 Juanma Barranquero <lekktu@gmail.com>
10981
10982 * character.c (syms_of_character) <script-representative-chars>:
10983 <unicode-category-table>: Doc fixes.
10984
159bd5a2
NF
109852008-10-23 Noah Friedman <friedman@splode.com>
10986
10987 * coding.c (make_conversion_work_buffer): Check that
10988 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10989 Fget_buffer_create.
10990
49f9c344
KH
109912008-10-23 Kenichi Handa <handa@m17n.org>
10992
10993 * font.c (font_add_log): Check the values of extra properties.
10994
12bb3111
MR
109952008-10-22 Martin Rudalics <rudalics@gmx.at>
10996
10997 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10998 Reword doc-string.
10999 (Fset_window_parameter): Use NILP.
11000 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11001 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11002
bbeb4e99
JB
110032008-10-22 Juanma Barranquero <lekktu@gmail.com>
11004
11005 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11006
110072008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11008
11009 * nsfns.m (ns_appkit_version): New function.
11010 (x-server-version): Use it.
11011 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11012 (x-server-vendor): Don't check_ns().
11013
11014 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11015
a9b555d3
JB
110162008-10-22 Juanma Barranquero <lekktu@gmail.com>
11017
11018 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11019 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11020
4626499f
KH
110212008-10-22 Kenichi Handa <handa@m17n.org>
11022
e3681952
KH
11023 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11024 scripts.
11025
4626499f
KH
11026 * category.c (word_boundary_p): Check scripts instead of charset.
11027 Handle nil value in word-separating-categories and
11028 word-combining-categories.
11029 (syms_of_category): Fix docstrings of word-separating-categories
11030 and word-combining-categories.
11031
1560f91a
EZ
110322008-10-21 Eli Zaretskii <eliz@gnu.org>
11033
11034 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11035 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11036
f4668441
MR
110372008-10-21 Martin Rudalics <rudalics@gmx.at>
11038
11039 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11040 Rename arg "buffer" to "buffer_or_name".
11041 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11042 it optional.
11043 (no_switch_window): Remove since the return value is not used.
a9b555d3 11044 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11045 Consider window as dedicated when Fwindow_dedicated_p returns a
11046 non-nil value.
11047 * lisp.h: Remove prototype for no_switch_window.
11048
fd75ddb2
JD
110492008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11050
11051 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11052 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11053
07295713
KH
110542008-10-21 Kenichi Handa <handa@m17n.org>
11055
11056 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11057 check Vlatin_extra_code_table.
11058
712adc82
EZ
110592008-10-20 Eli Zaretskii <eliz@gnu.org>
11060
11061 * fileio.c (Fset_file_modes): Doc fix.
11062
f549eb0b
MA
110632008-10-19 Michael Albinus <michael.albinus@gmx.de>
11064
11065 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11066 in arrays.
11067
aac0c6e3
MR
110682008-10-19 Martin Rudalics <rudalics@gmx.at>
11069
11070 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11071 Mention kill-buffer in doc-string.
11072 (Fset_window_buffer): Reinsert tem check removed in last commit.
11073 (Fenlarge_window, Fshrink_window): Have argument names and
11074 doc-string follow Elisp manual more closely.
11075
110762008-10-18 Eli Zaretskii <eliz@gnu.org>
11077
11078 * fileio.c (Fset_file_modes): Doc fix.
11079
110802008-10-18 Martin Rudalics <rudalics@gmx.at>
11081
11082 * window.c (Fwindow_width, Fset_window_start)
11083 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11084 (Fdelete_windows_on, Freplace_buffer_in_windows):
11085 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11086 (Fwindow_dedicated_p): Make window argument optional.
11087 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11088 (Fset_window_buffer): Respect any non-nil dedicated value for
11089 window. Rename "buffer" argument to "buffer_or_name".
11090
110912008-10-18 Ulrich Mueller <ulm@gentoo.org>
11092
11093 * m/sh3.h: New file, machine description for SuperH.
11094
110952008-10-17 Martin Rudalics <rudalics@gmx.at>
11096
11097 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11098
110992008-10-17 Kenichi Handa <handa@m17n.org>
11100
11101 * ftfont.c (ftfont_otf_features): Fix indexing
11102 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11103
111042008-10-16 Magnus Henoch <mange@freemail.hu>
11105
11106 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11107 (Fdbus_call_method_asynchronously): Ditto.
11108 This change makes C-h f display the argument list.
11109
111102008-10-16 Chong Yidong <cyd@stupidchicken.com>
11111
11112 * fileio.c (Fexpand_file_name): Doc fix.
11113
11114 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11115 of :foreground and :background equivalent to unspecified (20.x
11116 compatibility).
11117
111182008-10-15 Eli Zaretskii <eliz@gnu.org>
11119
11120 * buffer.c (syms_of_buffer): Doc fix.
11121
111222008-10-14 Kenichi Handa <handa@m17n.org>
11123
11124 * font.c (font_clear_prop): When clearing font width, clear the
11125 average width field too.
11126
111272008-10-12 Andreas Schwab <schwab@suse.de>
11128
11129 * ftfont.c (ftfont_shape_by_flt): Make static.
11130 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11131
11132 * font.c: Don't include <m17n-flt.h>.
11133
111342008-10-10 Eli Zaretskii <eliz@gnu.org>
11135
11136 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11137
111382008-10-09 Eli Zaretskii <eliz@gnu.org>
11139
11140 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11141 away code.
11142
111432008-10-09 Chong Yidong <cyd@stupidchicken.com>
11144
11145 * dispnew.c (update_text_area): Avoid looping due to large glyph
11146 overhangs (bug#1070).
11147
111482008-10-09 Kenichi Handa <handa@m17n.org>
11149
11150 * fontset.c (face_for_char): If face->fontset is negative, just
11151 return ascii_face.
11152
f5385255
SM
11153 * font.c (font_delete_unmatched): Fix previous change.
11154 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11155
111562008-10-09 Martin Rudalics <rudalics@gmx.at>
11157
11158 * frame.c (Fraise_frame): On text-only terminals select frame in
11159 order to make it visible. (Bug#1061)
11160
111612008-10-08 Chong Yidong <cyd@stupidchicken.com>
11162
11163 * fontset.c (fontset_find_font): Check frame validity.
11164
111652008-10-07 Chong Yidong <cyd@stupidchicken.com>
11166
a9b555d3 11167 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11168 (xg_display_close): Allow Emacs to close all displays (bug#985).
11169
111702008-10-06 Andreas Schwab <schwab@suse.de>
11171
f5385255 11172 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11173
111742008-10-06 Chong Yidong <cyd@stupidchicken.com>
11175
f5385255 11176 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11177
a9b555d3 11178 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11179
11180 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11181 during initialization.
11182
111832008-10-04 Eli Zaretskii <eliz@gnu.org>
11184
11185 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11186 whole thing on MSDOS frames as well as on a TTY.
11187
11188 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11189 well as for TTY.
11190 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11191 well as on a TTY.
11192
11193 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11194 as well as for TTY.
11195
11196 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11197
11198 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11199 MSDOS frames as well.
11200
112012008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11202
11203 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11204 correct arguments.
b71ac3dd 11205 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11206
112072008-10-03 Glenn Morris <rgm@gnu.org>
11208
11209 * emacs.c (USAGE1): Add --daemon.
11210
112112008-10-02 Eli Zaretskii <eliz@gnu.org>
11212
11213 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11214 100, so it's in percents as advertised.
11215
112162008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11217
11218 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11219 (ns_output.current_cursor, ns_output.desired_cursor)
11220 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11221 (FRAME_NEW_CURSOR_COLOR): Remove.
11222
11223 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11224 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11225 enumeration (HOLLOW_BOX_CURSOR, etc.).
11226
11227 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11228 (draw_window_cursor): Simplify code.
f5385255
SM
11229 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11230 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11231 updates manually.
a9b555d3
JB
11232 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11233 Use core Emacs cursor types.
aac0c6e3 11234
b8ff72fa 11235 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11236
112372008-10-02 Martin Rudalics <rudalics@gmx.at>
11238
11239 * process.c (Faccept_process_output): Fix doc-string.
11240
112412008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11242
11243 * gmalloc.c (__sbrk): Also define for uClibc.
11244
11245 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11246 for uClibc.
11247
112482008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11249
11250 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11251 styles.
11252 (nsfont_open): Reenable the cache.
11253
112542008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11255
11256 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11257 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11258
112592008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11260
11261 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11262 a suspended terminal.
11263
112642008-09-30 Michael Albinus <michael.albinus@gmx.de>
11265
11266 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11267
112682008-09-30 Eli Zaretskii <eliz@gnu.org>
11269
11270 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11271
112722008-09-30 Chong Yidong <cyd@stupidchicken.com>
11273
11274 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11275 in a continued line coincides with a line beginning.
11276
112772008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11278
11279 * nsfont.m (nsfont_trait_distance): Fix bug.
11280 (nsfont_list): Return a list rather than a vector (syncs with Handa
11281 changes of 2008-05-14).
11282 (nsfont_open): Improve logging.
11283
112842008-09-29 Andreas Schwab <schwab@suse.de>
11285
11286 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11287
112882008-09-28 Martin Rudalics <rudalics@gmx.at>
11289
11290 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11291 name as char-resolve-modifiers.
11292 Reported by: Markus Triska <markus.triska@gmx.at>
11293
112942008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11295
11296 * dispnew.c (init_display): Return earlier when running as a daemon.
11297
112982008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11299
11300 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11301
113022008-09-27 Eli Zaretskii <eliz@gnu.org>
11303
11304 * composite.c (Fcomposition_get_gstring)
11305 (Fcompose_region_internal, Fcompose_string_internal)
11306 (Ffind_composition_internal): Doc fix.
11307 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11308 (syms_of_composite) <auto-composition-function>: Doc fix.
11309 (syms_of_composite) <composition-function-table>: Doc fix.
11310
113112008-09-25 Chong Yidong <cyd@stupidchicken.com>
11312
11313 * search.c (wordify): New argument for lax word-ends.
11314 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11315
113162008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11317
11318 * lisp.h (is_daemon): Declare.
11319 * dispnew.c (init_display): Do not try to initialize the terminal
11320 when running as a daemon.
11321
113222008-09-22 Chong Yidong <cyd@stupidchicken.com>
11323
11324 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11325 x_display_pixel_height.
11326
113272008-09-22 Martin Rudalics <rudalics@gmx.at>
11328
11329 * undo.c (record_point): Don't call Fundo_boundary for first
11330 change. (Bug#731)
11331
113322008-09-22 Juanma Barranquero <lekktu@gmail.com>
11333
11334 * emacs.c (Fdaemonp): Doc fix.
11335
113362008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11337
11338 * emacs.c (main): Place #ifdef in the proper place.
11339
113402008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11341
11342 * emacs.c (standard_args): Add --daemon.
11343 (main): Disconnect from the terminal when --daemon is passed.
11344 (is_daemon): New variable.
11345 (Fdaemonp): New function.
11346 (syms_of_emacs): Defsubr it.
11347
113482008-09-20 Chong Yidong <cyd@stupidchicken.com>
11349
11350 * xdisp.c (get_next_display_element): Handle string display
11351 correctly when checking for the end of a box run.
11352
113532008-09-20 Glenn Morris <rgm@gnu.org>
11354
11355 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11356 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11357 (Frename_file): Avoid copying to trash if a rename involves
11358 a delete. (Bug#964).
11359
113602008-09-20 Eli Zaretskii <eliz@gnu.org>
11361
11362 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11363 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11364 frames as well as termcap frames.
11365 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11366 get_named_tty.
11367
113682008-09-19 Eli Zaretskii <eliz@gnu.org>
11369
11370 * process.c (procfs_system_process_attributes): Fix cmdline in
11371 case /proc/PID/cmdline is empty.
11372
11373 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11374 x_display_pixel_height.
11375
113762008-09-19 Juanma Barranquero <lekktu@gmail.com>
11377
11378 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11379
11380 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11381 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11382
113832008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11384
11385 * dispextern.h (struct it): Move line_wrap away from the middle of
11386 bitfields. Move voffset in struct iterator_stack_entry after the
11387 bitfields. Move tab_width near after another short.
11388
113892008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11390
11391 * frame.h (struct frame): Move alpha from the middle of bitfields.
11392
11393 * window.h (struct window): Move frozen_window_start_p after the
11394 rest of the bitfields to reduce padding.
11395
113962008-09-18 Chong Yidong <cyd@stupidchicken.com>
11397
11398 * xterm.h (x_display_info): Remove `height' and `width' members.
11399
11400 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11401
11402 * w32term.h (w32_display_info): Remove `height', `width',
11403 `height_in', and `width_in' members.
11404
b8ff72fa
SM
11405 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11406 New functions.
aac0c6e3
MR
11407 (x_calc_absolute_position): Use them.
11408 (x_term_init): Omit removed `height' and `width' members.
11409
b8ff72fa
SM
11410 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11411 New functions.
aac0c6e3
MR
11412 (w32_read_socket, x_calc_absolute_position): Use them.
11413 (w32_initialize_display_info, w32_term_init): Omit removed members
11414 of w32_display_info.
11415
b8ff72fa
SM
11416 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11417 New functions.
11418 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11419
b8ff72fa
SM
11420 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11421 New functions.
aac0c6e3
MR
11422 (x_calc_absolute_position): Use them.
11423 (x_term_init): Omit removed `height' and `width' members.
11424
11425 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11426 (compute_tip_xy):
11427 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11428 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11429 x_display_pixel_width.
11430
114312008-09-18 Kenichi Handa <handa@m17n.org>
11432
11433 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11434 (composition_compute_stop_pos): Fix handling of static composition.
11435 (Fcomposition_get_gstring): Check FROM and TO at first.
11436
114372008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11438
46e722a9 11439 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11440 mixup (YAILOM).
11441
114422008-09-17 Chong Yidong <cyd@stupidchicken.com>
11443
11444 * indent.c (Fvertical_motion): Use position reported by iterator
11445 instead of PT for determining screen motion (bug#943).
11446
114472008-09-17 Romain Francoise <romain@orebokech.com>
11448
11449 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11450
114512008-09-17 Kenichi Handa <handa@m17n.org>
11452
11453 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11454
11455 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11456 if necessary.
11457
114582008-09-16 Kenichi Handa <handa@m17n.org>
11459
11460 * coding.c (make_conversion_work_buffer): Avoid calling
11461 Fget_buffer_create if it is not necessary.
11462
114632008-09-15 Martin Rudalics <rudalics@gmx.at>
11464
11465 * window.c (Fselect_window): Don't update window_select_count and
11466 use_time when norecord is not nil.
11467
114682008-09-14 Kenichi Handa <handa@m17n.org>
11469
11470 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11471 specpdl_ptr.
11472
114732008-09-12 Kenichi Handa <handa@m17n.org>
11474
11475 * indent.c (scan_for_column): Don't handle automatic composition
11476 if the current buffer is not associated with a window.
11477
11478 * composite.c (composition_reseat_it): If the current buffer is
11479 not associated with a window, ignore the automatic composition.
11480 (find_automatic_composition): Likewise.
11481
114822008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11483
11484 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11485 (Fgpm_mouse_stop): Use it.
11486 * termhooks.h (close_gpm): Declare.
11487 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11488 connection if Gpm_GetEvent fails.
11489
11490 * window.c (set_window_buffer): Always preserve current-buffer.
11491
114922008-09-12 Glenn Morris <rgm@gnu.org>
11493
11494 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11495
114962008-09-11 Glenn Morris <rgm@gnu.org>
11497
11498 * charset.c (charset-map-path): Doc fix.
11499
115002008-09-10 Kenichi Handa <handa@m17n.org>
11501
11502 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11503
11504 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11505 compose a grapheme cluster with the preceding base glyph.
11506
11507 * composite.c (composition_compute_stop_pos): Fix previous change.
11508 Reset cmp_it->id to -1 at first.
11509
115102008-09-10 Glenn Morris <rgm@gnu.org>
11511
11512 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11513
115142008-09-09 Chong Yidong <cyd@stupidchicken.com>
11515
11516 * keyboard.c (read_key_sequence): Reapply translation maps when
11517 switching keyboards.
11518
115192008-09-09 Kenichi Handa <handa@m17n.org>
11520
11521 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11522 characters.
11523
11524 * composite.c (FORWARD_CHAR): Fix calculation
11525 of (POSITION).pos_byte.
11526 (composition_compute_stop_pos): Limit the search of composition to
11527 at most 500 characters ahead. If we reach the limit or find a
11528 newline, set cmp_it->ch to -2 and return 0.
11529 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11530
115312008-09-08 Kenichi Handa <handa@m17n.org>
11532
11533 * indent.c (Fvertical_motion): Be sure to set
11534 it_overshoot_expected if it.cmp_it.id is non-negative.
11535
115362008-09-07 Andreas Schwab <schwab@suse.de>
11537
11538 * callproc.c (Fcall_process): Don't hold references to string data
11539 across garbage collection. Move initialisation of new_argv down
11540 to avoid compiler bug.
11541
115422008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11543
11544 * process.c (Fsystem_process_attributes): Doc fix.
11545
115462008-09-07 Chong Yidong <cyd@stupidchicken.com>
11547
11548 * callproc.c (Fcall_process): Canonicalize current directory name.
11549
11550 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11551 iterator advances to the next line if the current line ends in a
11552 continued tab.
11553
115542008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11555
11556 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11557 member to point to cmp_from.
11558
11559 * xdisp.c: Doc fix for references to gidx data member.
11560
115612008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11562
11563 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11564
115652008-09-07 Kenichi Handa <handa@m17n.org>
11566
11567 * composite.c (FORWARD_CHAR): Check STOP after
11568 incrementing (POSITION).pos.
11569
115702008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11571
11572 * process.c (Fsystem_process_attributes): Doc fix.
11573
115742008-09-06 Chong Yidong <cyd@stupidchicken.com>
11575
11576 * keyboard.c (Ftop_level): Doc fix.
11577
115782008-09-06 Eli Zaretskii <eliz@gnu.org>
11579
11580 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11581 minibuffer, don't let lower part of menu invade the echo area.
11582
11583 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11584 "char *q" to access menu text and advance through it. Revert the
11585 change that displayed ">" instead of ASCII character 0x10.
11586
115872008-09-05 Eli Zaretskii <eliz@gnu.org>
11588
11589 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11590 toggle boxes and radio buttons on MS-DOS as well.
11591
115922008-09-05 Kenichi Handa <handa@m17n.org>
11593
11594 * composite.c (autocmp_chars): Check lookback count.
11595 (composition_compute_stop_pos): Set cmp_it->lookback.
11596 (composition_reseat_it): Check lookback count.
11597 (struct position_record): New struct.
11598 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11599 (find_automatic_composition): New function.
11600 (composition_adjust_point): Use find_automatic_composition.
11601
11602 * dispextern.h (struct composition_it): New member lookback.
11603
116042008-09-02 Chong Yidong <cyd@stupidchicken.com>
11605
11606 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11607 if moving by a single line.
11608
116092008-09-02 Andreas Schwab <schwab@suse.de>
11610
11611 * xterm.c (x_delete_display): Fix merge error.
11612
11613 * fileio.c (Fexpand_file_name): Remove unused variables.
11614
116152008-09-02 Eli Zaretskii <eliz@gnu.org>
11616
11617 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11618 storage on all platforms, not just on DOS_NT.
11619
116202008-09-02 Jason Rumney <jasonr@gnu.org>
11621
b8ff72fa
SM
11622 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11623 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11624
116252008-09-01 Chong Yidong <cyd@stupidchicken.com>
11626
11627 * xfaces.c (Finternal_set_alternative_font_family_alist)
11628 (Finternal_set_alternative_font_registry_alist): Properly copy
11629 entire alist structure.
11630
116312008-09-01 Kenichi Handa <handa@m17n.org>
11632
d66c0241 11633 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11634 representative chars of the script is a vector.
d66c0241
JB
11635 (ftfont_list): Handle the case where the representative chars of
11636 the script is a vector.
aac0c6e3
MR
11637
11638 * character.c (syms_of_character): Docstring of
11639 script-representative-chars fixed.
11640
116412008-08-31 Eli Zaretskii <eliz@gnu.org>
11642
11643 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11644 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11645 the menu. Allocate larger buffer for `text', to account for
11646 possible ^C characters.
11647
116482008-08-31 Martin Rudalics <rudalics@gmx.at>
11649
11650 * xdisp.c (prepare_menu_bars): Don't call
11651 Vwindow_size_change_functions with arg Qt.
11652
116532008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11654
11655 * font.h (font_range):
11656 * fileio.c (report_file_error):
46e722a9
SM
11657 * composite.c (composition_update_it): Yet another int/Lisp_Object
11658 mixup (YAILOM).
aac0c6e3
MR
11659
116602008-08-30 Glenn Morris <rgm@gnu.org>
11661
11662 * data.c (Fmake_variable_frame_local): Doc fix.
11663
11664 * frame.c (Fmodify_frame_parameters): Doc fix.
11665
116662008-08-30 Eli Zaretskii <eliz@gnu.org>
11667
11668 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11669 needed by GetTokenInformation.
11670 (w32_system_process_attributes): Check return values of all system
11671 APIs.
11672
11673 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11674 only when the state changes.
11675 (IT_update_begin, IT_update_end): Add termscript trace.
11676
11677 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11678 clipboard is unavailable. Set dst to NULL if it doesn't point to
11679 malloc'ed data.
11680 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11681 passing random values to xfree.
11682
11683 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11684 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11685
116862008-08-29 Jason Rumney <jasonr@gnu.org>
11687
11688 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11689
116902008-08-29 Eli Zaretskii <eliz@gnu.org>
11691
11692 * composite.c (fill_gstring_body): Avoid compiler warnings.
11693
11694 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11695 LGLYPH_SET_CODE to avoid compiler warnings.
11696
2ae37cf0 11697 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11698
11699 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11700
11701 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11702 LGLYPH_SET_CODE.
11703
117042008-08-29 Kenichi Handa <handa@m17n.org>
11705
11706 * fileio.c (report_file_error): Don't downcase the first character
11707 of errstring if it is still unibyte.
11708
117092008-08-29 Kenichi Handa <handa@m17n.org>
11710
11711 These changes are to re-implement the automatic composition so
11712 that it doesn't use text properties.
11713
11714 * Makefile.in (ftfont.o): Depend on composite.h.
11715 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11716
11717 * character.h (Vunicode_category_table): Extern it.
11718
11719 * character.c (Vunicode_category_table): New variable.
11720 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11721
11722 * chartab.c (optimize_sub_char_table): Perform more greedy
11723 optimization.
11724
b8ff72fa
SM
11725 * composite.h (enum composition_method):
11726 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11727 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11728 (Vcomposition_function_table): Extern it.
11729 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11730 (composition_gstring_put_cache, composition_gstring_from_id)
11731 (composition_gstring_p, composition_gstring_width)
11732 (composition_compute_stop_pos, composition_reseat_it)
11733 (composition_update_it, composition_adjust_point): Extern them.
11734 (Fcomposition_get_gstring): EXFUN it.
11735
d66c0241 11736 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11737 (Vcomposition_function_table)
11738 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11739 (gstring_hash_table, gstring_work, gstring_work_headers):
11740 New variables.
aac0c6e3
MR
11741 (gstring_lookup_cache, composition_gstring_put_cache)
11742 (composition_gstring_from_id, composition_gstring_p)
11743 (composition_gstring_width, fill_gstring_header)
11744 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11745 (composition_reseat_it, composition_update_it)
b8ff72fa 11746 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11747 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11748 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11749 Defsubr composition_get_gstring.
aac0c6e3
MR
11750
11751 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11752 cmp_id.
11753 (struct glyph_string): Delete the member gidx. New members
11754 cmp_id, cmp_from, and cmp_to.
11755 (enum it_method): Delete GET_FROM_COMPOSITION.
11756 (struct composition_it): New struct.
11757 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11758 Delete c, len, cmp_id, cmp_len in u.comp.
11759
11760 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11761 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11762 (enum lglyph_indices): Likewise.
b8ff72fa 11763 (font_range): Adjust extern.
aac0c6e3
MR
11764 (font_fill_lglyph_metrics): Extern it.
11765
11766 * font.c (QCf): New variable.
11767 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11768 (font_prepare_composition): Delete this function.
11769 (font_range): Type and arguments changed.
11770 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11771 (font_fill_lglyph_metrics): New function.
b8ff72fa 11772 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11773 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11774 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11775 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11776
11777 * fontset.h (font_for_char): Extern it.
11778
11779 * fontset.c (font_for_char): New function.
11780
11781 * ftfont.c: Include composite.h.
11782 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11783 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11784
11785 * indent.c: Include composite.h and dispextern.h.
11786 (check_composition): Delete this function.
11787 (scan_for_column): Handle composition by
11788 composition_compute_stop_pos, composition_reseat_it, and
11789 composition_update_it.
11790 (compute_motion): Likewise.
11791 (Fvertical_motion): Fix checking of composition.
11792
11793 * keyboard.c (adjust_point_for_property): Check composition by
11794 composition_adjust_point.
11795
b8ff72fa 11796 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11797 struct glyph_string.
11798
b8ff72fa
SM
11799 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11800 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11801 struct glyph.
11802 (produce_composite_glyph): Likewise.
11803
b8ff72fa
SM
11804 * w32term.c (x_draw_composite_glyph_string_foreground):
11805 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11806 (x_draw_glyph_string): Likewise.
11807
11808 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11809 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11810
11811 * xdisp.c: Include font.h.
11812 (it_props): Delete the entry for Qauto_composed.
11813 (init_iterator): Initialize it->cmp_it.id to -1.
11814 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11815 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11816 (handle_auto_composed_prop): Delete it.
11817 (handle_composition_prop): Handle only static composition.
11818 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11819 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11820 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11821 (pop_it): Likewise.
11822 (get_next_element): Delete next_element_from_composition.
11823 (CHAR_COMPOSED_P): New macro.
11824 (get_next_display_element): For automatic composition, get a face
11825 from the font in the glyph-string.
11826 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11827 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11828 (next_element_from_string): Check if the character at the current
11829 position is composed by CHAR_COMPOSED_P.
11830 (next_element_from_buffer): Likewise.
d66c0241
JB
11831 (next_element_from_composition): Adjust for the change of struct it.
11832 Update it->cmp_it.
b8ff72fa
SM
11833 (dump_glyph): Adjust for the change of struct glyph.
11834 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11835 it and struct glyph. Don't handle automatic composition here.
11836 (fill_gstring_glyph_string): New function.
11837 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11838 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11839 (BUILD_GSTRING_GLYPH_STRING): New macro.
11840 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11841 automatic composition.
b8ff72fa 11842 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11843 struct glyph.
b8ff72fa 11844 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11845
b8ff72fa 11846 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11847 the change of struct glyph_string.
11848 (x_draw_glyph_string): Likewise.
11849
118502008-08-29 Glenn Morris <rgm@gnu.org>
11851
11852 * buffer.c (word-wrap): Doc fix.
11853 * xdisp.c (truncate-partial-width-windows): Doc fix.
11854 Increase default to 50.
11855
118562008-08-29 Chong Yidong <cyd@stupidchicken.com>
11857
11858 * xdisp.c (update_tool_bar_unwind): New function.
11859 (update_tool_bar): Temporarily set selected frame before building
11860 tool-bar items.
11861
118622008-08-28 Michael Albinus <michael.albinus@gmx.de>
11863
11864 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11865 snprintf, respectively.
11866 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11867
118682008-08-28 Chong Yidong <cyd@stupidchicken.com>
11869
11870 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11871 LDFLAGS to GNUstep CC invocation.
11872
118732008-08-27 Chong Yidong <cyd@stupidchicken.com>
11874
11875 * indent.c (Fvertical_motion): Revert last change. Handle the
11876 general case where we are moving forward, and PT spans multiple
11877 screen lines.
11878
11879 * eval.c (find_handler_clause): Temporarily increase
11880 max-lisp-eval-depth while printing the backtrace buffer, to
11881 guarantee that help-mode code can run.
11882
118832008-08-27 Eli Zaretskii <eliz@gnu.org>
11884
11885 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11886 colors under -rv.
11887 (IT_set_frame_parameters): Don't swap foreground and background
11888 colors if `(reverse . t)' is present in the frame properties.
11889 (internal_terminal_init): Call init_frame_faces only for the
11890 initial frame.
11891
118922008-08-27 Andreas Schwab <schwab@suse.de>
11893
11894 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11895
118962008-08-27 Andreas Schwab <schwab@suse.de>
11897
11898 * search.c (search_buffer): Set char_base to zero only at the end.
11899
119002008-08-27 Kenichi Handa <handa@m17n.org>
11901
b8ff72fa 11902 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11903
119042008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11905
11906 * xterm.c (x_term_init): Temporarily hide the partially
11907 initialized terminal while calling vendor-specific-keysyms.
11908
119092008-08-26 Eli Zaretskii <eliz@gnu.org>
11910
11911 * msdos.c (internal_terminal_init): Most initializations done only
11912 once, especially initial_screen_colors[] and termscript open.
11913
119142008-08-26 Chong Yidong <cyd@stupidchicken.com>
11915
11916 * eval.c (Fcondition_case): Doc fix.
11917
11918 * widgetprv.h (EmacsFramePart): Change font member to the new font
11919 struct.
11920
11921 * widget.c: Include character.h and font.h for XSETFONT.
11922 (setup_frame_gcs): Compute X font id from font struct, just once.
11923
119242008-08-26 Eli Zaretskii <eliz@gnu.org>
11925
11926 * term.c (get_named_tty): Fix last change.
11927
119282008-08-26 Chong Yidong <cyd@stupidchicken.com>
11929
11930 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11931 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11932
119332008-08-25 Eli Zaretskii <eliz@gnu.org>
11934
11935 * frame.c (do_switch_frame): Mark previously displayed frame as
11936 obscured for FRAME_MSDOS_P frames as well.
11937
119382008-08-24 Eli Zaretskii <eliz@gnu.org>
11939
11940 * frame.c (make_terminal_frame): Initialize f->terminal,
11941 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11942 Set the top frame to newly created frame.
11943 (Fmake_terminal_frame): Reuse the_only_display_info.
11944
11945 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11946 estimating available memory.
11947
b97439ce 119482008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11949
11950 * nsterm.m (ns_draw_window_cursor): Don't call
11951 NSDisableScreenUpdates and NSEnableScreenUpdates on
11952 non-NS_IMPL_COCOA systems.
11953
119542008-08-23 Andreas Schwab <schwab@suse.de>
11955
11956 * process.c (procfs_system_process_attributes): Fix use of
11957 uninitialized variables.
11958
119592008-08-23 Eli Zaretskii <eliz@gnu.org>
11960
11961 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11962
11963 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11964 calling tty-set-up-initial-frame-faces.
11965
b8ff72fa
SM
11966 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11967 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11968
11969 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11970 addition to output_termcap.
11971
11972 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11973
11974 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11975 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11976 highlight.
11977
11978 * process.c [!subprocesses]: Define QCname.
11979 (syms_of_process): Intern and staticpro it.
11980
11981 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11982 Adjust for changes in encoding/decoding routines.
11983 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11984 encode_coding and decode_coding.
11985
b8ff72fa 11986 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11987
11988 * dosfns.c: Include frame.h before termhooks.h.
11989 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11990 variable termscript.
11991
11992 * s/msdos.h (USER_FULL_NAME): Define.
11993 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11994
11995 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11996 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11997 pw->pw_gecos.
11998
11999 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12000 SELECTED_FRAME as additional (1st) argument.
12001 (tty_read_avail_input): Handle output_msdos_raw in
12002 addition to output_termcap.
12003
12004 * msdos.c: Include frame.h before termhooks.h.
12005 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12006 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12007 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12008 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12009 (IT_set_terminal_modes, IT_reset_terminal_modes)
12010 (IT_set_frame_parameters): Use tty->termscript instead of a global
12011 variable termscript.
12012 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12013 global variable terminal_coding. Don't refer to
12014 Vnonascii_translation_table.
12015 (internal_terminal_init): Set Vwindow_system in current_kboard.
12016 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12017 Announce date and time of session start, if termscript is open.
12018 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12019 term.c:init_tty). Open termscript only of not already open.
12020 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12021 here instead of dos_ttraw. Don't initialize display if this is an
12022 initial tty. Don't set FRAME_FONT.
12023 (Vwindow_system_version): Bump to 23.
12024 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12025 is available, set up mouse_position_hook.
12026 (dos_ttraw, IT_set_terminal_modes): If called with initial
12027 terminal, do nothing.
12028 (IT_set_frame_parameters): Handle the Qtty_type frame
12029 parameter by calling internal_terminal_init.
12030 (dos_set_window_size, show_mouse_face)
12031 (clear_mouse_face, IT_note_mode_line_highlight)
12032 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12033 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12034 (initialize_msdos_display): New function.
12035 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12036 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12037 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12038 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12039 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12040 (request_sigio, unrequest_sigio): Don't define, now defined on
12041 sysdep.c.
12042 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12043
12044 * term.c [MSDOS]: Include msdos.h.
12045 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12046 conditional to DOS_NT. Allow only one call to this function in a
12047 session. Don't allocate a new struct tty_display_info; instead,
12048 reuse the_only_display_info. Call get_tty_size to get screen
12049 dimensions. Call init_baud_rate to set bad_rate.
12050 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12051 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12052 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12053 (get_tty_terminal, get_named_tty, Ftty_type)
12054 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12055 output_termcap.
b8ff72fa
SM
12056 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12057 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12058 only when subprocesses are supported.
aac0c6e3
MR
12059
12060 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12061 f->output_data.x.
12062 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12063 terminal devices.
12064
5582fbc7 12065 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12066 x_output.
12067 (FRAME_FONT): Use output_data.tty.
12068 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12069 (struct x_display_info): Rename from display_info. Update all users in
12070 msdos.c.
aac0c6e3 12071 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12072 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12073 (dos_ttraw): Update prototype.
12074
12075 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12076 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12077
120782008-08-23 Jason Rumney <jasonr@gnu.org>
12079
12080 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12081 (fn_TIFFSetDirectory): New library function used.
12082 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12083 (tiff_load): Use :index to select among multiple images. Set count
12084 property when multiple images exist.
12085 (gif_format): Use :index, not :image.
12086
120872008-08-23 Chong Yidong <cyd@stupidchicken.com>
12088
12089 * xdisp.c (try_scrolling): Check INT_MAX instead of
12090 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12091 to obtain INT_MAX.
12092
120932008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12094
12095 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12096
120972008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12098
12099 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12100 GNUstep library location.
12101
121022008-08-21 Chong Yidong <cyd@stupidchicken.com>
12103
12104 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12105 before using it.
12106
12107 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12108
121092008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12110
12111 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12112 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12113 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12114 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12115 (EmacsApp-cursor_blink_handler): Remove declaration.
12116 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12117 match 01 Feb 2008 changes in xterm.c.
12118 (ns_read_socket): Add cast to avoid warning.
12119 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12120 GNUstep.
12121
121222008-08-20 Chong Yidong <cyd@stupidchicken.com>
12123
12124 * xselect.c (x_get_foreign_selection): Return nil if desired
12125 selection could not be obtained, instead of signalling an error.
12126
121272008-08-20 David Reitter <david.reitter@gmail.com>
12128
12129 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12130 * nsterm.m: Remove ns-specific code for cursor blinking.
12131 (ns_draw_window_cursor): Clear cursor properly rather than
12132 redrawing the area. Respect width of bar cursors.
12133 These changes enable the use of generic blink-cursor-mode and
12134 generic cursor types in NS and support smooth cursor movements (do
12135 not blink off after command).
12136 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12137 Nextstep, too.
12138
121392008-08-19 Kenichi Handa <handa@m17n.org>
12140
12141 * font.c (Vfont_log_deferred): New variable.
12142 (font_add_log): Check Vfont_log_deferred.
12143 (font_deferred_log): New function.
12144
12145 * font.h (font_deferred_log): Extern it.
12146
12147 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12148 for sorting.
12149 (face_for_char): Use deferred log.
12150
121512008-08-18 Kenichi Handa <handa@m17n.org>
12152
12153 * fontset.c (face_for_char): Add font log.
12154
12155 * font.c (font_add_log): Add the font properties :script, :lang,
12156 and :otf in the log.
12157
121582008-08-17 Chong Yidong <cyd@stupidchicken.com>
12159
12160 * xdisp.c: Remove dead code.
12161 (handle_invisible_prop, next_overlay_string): Defer call to
12162 setup_for_ellipsis.
12163 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12164
121652008-08-15 Chong Yidong <cyd@stupidchicken.com>
12166
12167 * xfaces.c (lookup_derived_face): Properly handle possible zero
12168 return value of get_lface_attributes.
12169 (merge_faces): Don't tell lookup_derived_face to signal an error
12170 if face is not found.
12171
12172 * dired.c (Fdirectory_files): Doc fix.
12173
12174 * process.c (make_process): Initialize kill_without_query struct
12175 member.
12176
121772008-08-15 Eli Zaretskii <eliz@gnu.org>
12178
12179 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12180 Alternative calculation of totphys for Visual Studio 6.
12181
12182 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12183
12184 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12185 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12186 All users changed.
12187 (stat): Only root directory passed to GetDriveType. Allow RAM
12188 disk as well as local fixed disk when w32-get-true-file-attributes
12189 is set to `local'.
12190 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12191 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12192 (w32_cached_id, w32_add_to_cache): New functions.
12193 (get_name_and_id): Look account names in the cache before calling
12194 lookup_account_sid.
12195 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12196 New initialization flags.
12197 (globals_of_w32): Initialize them to zero.
12198 (w32_system_process_attributes): Use w32_cached_id and
12199 w32_add_to_cache.
12200
122012008-08-14 Lawrence Mitchell <wence@gmx.li>
12202
12203 * lread.c (Fread_char, Fread_char_exclusive): If no character
12204 event is read before timeout is reached, return nil, rather than
12205 converting to a number.
12206
122072008-08-14 Chong Yidong <cyd@stupidchicken.com>
12208
12209 * fns.c (use_dialog_box): Doc fix.
12210
12211 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12212 on OS X.
12213
122142008-08-13 Chong Yidong <cyd@stupidchicken.com>
12215
12216 * frame.c (Qns_parse_geometry): New var.
12217 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12218
122192008-08-11 Chong Yidong <cyd@stupidchicken.com>
12220
12221 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12222 space character in calculating tabs.
12223
122242008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12225
12226 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12227
122282008-08-10 Glenn Morris <rgm@gnu.org>
12229
12230 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12231 silence gcc "limited range of data type" warnings in some
12232 make_fixnum_or_float calls.
12233
122342008-08-09 Eli Zaretskii <eliz@gnu.org>
12235
12236 * w32.c (w32_system_process_attributes): If the process does not
12237 exist, return nil.
12238
12239 * w32.c: Include thelp32.h, psapi.h and coding.h.
12240 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12241 declarations.
12242 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12243 (Process32Next_Proc): New typedefs.
12244 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12245 (g_b_init_process32_next, g_b_init_open_thread_token)
12246 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12247 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12248 (g_b_init_get_process_working_set_size)
12249 (g_b_init_global_memory_status_ex): New static variables.
12250 (globals_of_w32): Initialize them.
12251 (create_toolhelp32_snapshot, process32_first, process32_next)
12252 (open_thread_token, impersonate_self, revert_to_self)
12253 (get_process_memory_info, get_process_working_set_size)
12254 (global_memory_status, global_memory_status_ex): New wrapper
12255 functions.
12256 (w32_list_system_processes, w32_system_process_attributes)
12257 (enable_privilege, restore_privilege, ltime, process_times):
12258 New functions.
12259 (convert_time_raw): New function.
12260 (convert_time): Remove conversion of FILETIME into time in 100
12261 nsec units, call convert_time_raw instead.
12262
12263 * process.h (w32_list_system_processes, w32_system_process_attributes):
12264 Add prototypes.
12265 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12266 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12267 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12268 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12269
12270 * process.c (Fsystem_process_attributes): Doc fix.
12271
122722008-08-08 Chong Yidong <cyd@stupidchicken.com>
12273
12274 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12275 a continued multi-char glyph; if so, advance to the actual glyph.
12276
122772008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12278
12279 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12280
12281 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12282 (.m.o): Use it.
12283 * config.in: Regenerate.
12284
122852008-08-07 Chong Yidong <cyd@stupidchicken.com>
12286
12287 * xdisp.c (redisplay_window): Revert last change.
12288 (try_window): Check bottom scroll margin too.
12289
122902008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12291
12292 * config.in: Regenerate.
12293
12294 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12295 -list-load-path-shadows'.
12296 (nsgui.h): Reduce number of things depending on it.
12297
122982008-08-06 Chong Yidong <cyd@stupidchicken.com>
12299
12300 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12301 instead of window-end which does the wrong thing at eob.
12302 (try_cursor_movement): Minor optimization.
12303 (redisplay_window): If scroll margin is defined, don't assume
12304 window doesn't need scrolling.
12305
123062008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12307
12308 * config.in: Regenerate.
12309
12310 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12311 (mostlyclean): Don't delete *.d under NS.
12312
12313 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12314
123152008-08-06 Kenichi Handa <handa@m17n.org>
12316
12317 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12318
123192008-08-06 Andreas Schwab <schwab@suse.de>
12320
12321 * config.in: Regenerate.
12322
123232008-08-05 Chong Yidong <cyd@stupidchicken.com>
12324
12325 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12326 forcing a window start.
12327
12328 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12329 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12330
123312008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12332
12333 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12334 argument.
12335
123362008-08-05 Juanma Barranquero <lekktu@gmail.com>
12337
12338 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12339 <scroll-down-aggressively, before-change-functions>:
12340 <after-change-functions>: Reflow docstrings.
12341
123422008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12343 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12344
12345 Dock menu customization, based on a patch by Ken Raeburn, plus some
12346 other fixes.
12347 * nsmenu.m (dockMenu): New variable.
12348 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12349
12350 * nsterm.h (dockMenu): Declare.
12351
12352 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12353 (ns_term_init): Initialize dockMenu.
12354 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12355 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12356 left.
12357
12358 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12359
123602008-08-04 Chong Yidong <cyd@stupidchicken.com>
12361
12362 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12363
12364 * config.in: Regenerate.
12365
123662008-08-04 Seiji Zenitani <zenitani@mac.com>
12367
12368 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12369
123702008-08-04 Chong Yidong <cyd@stupidchicken.com>
12371
12372 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12373
123742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12375
12376 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12377
12378 * keyboard.h: Comment an #endif.
12379
12380 * lisp.h (have_menus_p): Adjust comment.
12381
12382 * menu.c (find_and_return_menu_selection): Fix comparison with
12383 client_data.
12384
12385 * nsmenu.m (popup_activated_flag): New variable.
12386 (popup_activated): New function.
12387 (menu-or-popup-active-p): New exported lisp definition.
12388 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12389 when popup done.
12390 (ns_popup_dialog): Set popup_activated_flag.
12391
12392 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12393 version for GNUstep (handled by conditional typedef in nsterm.m).
12394 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12395 in rgb.txt).
12396
12397 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12398
12399 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12400
12401 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12402
12403 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12404 shortcircuit if popup_activated like GTK and X toolkit.
12405
12406 * m/inter386.h: Change DARWIN to DARWIN_OS.
12407
12408 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12409 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12410 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12411 comment on NO_SOCK_SIGIO.
12412
124132008-08-03 Chong Yidong <cyd@stupidchicken.com>
12414
12415 * nsterm.m (windowDidResize): Remove stopModal call.
12416
124172008-08-03 Andreas Schwab <schwab@suse.de>
12418
12419 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12420 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12421
124222008-08-02 Chong Yidong <cyd@stupidchicken.com>
12423
12424 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12425 Don't use uninitialized pointer variable when using getrlimit.
12426
124272008-08-02 Jason Rumney <jasonr@gnu.org>
12428
12429 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12430
124312008-08-02 Eli Zaretskii <eliz@gnu.org>
12432
12433 * alloc.c (NSTATICS): Bump to 0x640.
12434
12435 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12436
12437 * lisp.h: Add prototype for directory_files_internal.
12438
12439 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12440 New functions.
12441 (syms_of_process): Defsubr them. Add initializations for various
12442 Q* symbols used in procfs_system_process_attributes.
12443 (procfs_list_system_processes, procfs_system_process_attributes)
12444 [HAVE_PROCFS]: New functions.
12445 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12446 (procfs_get_total_memory): New functions.
12447
124482008-08-01 Juanma Barranquero <lekktu@gmail.com>
12449
12450 * xfaces.c (Fx_load_color_file): Fix previous change;
12451 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12452
124532008-08-01 Michael Albinus <michael.albinus@gmx.de>
12454
12455 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12456
124572008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12458
12459 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12460
124612008-08-01 Chong Yidong <cyd@stupidchicken.com>
12462
12463 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12464
12465 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12466 define NSApplicationDelegateReplySuccess.
12467 (EmacsView -converstationIdentifier): Use long instead of
12468 NSInteger for GNUstep, since it doesn't have NSInteger.
12469
12470 * xmenu.c: Revert last change.
12471
12472 * keyboard.h: Fix last change.
12473
124742008-08-01 Juanma Barranquero <lekktu@gmail.com>
12475
12476 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12477 on Windows.
12478
124792008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12480
12481 Warning clearing and clean-up in NS port.
12482 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12483 Add prototypes.
12484 * nsgui.h (FACE_DEFAULT): Remove, unused.
12485 (XGCValues): Change colors to unsigned long.
12486 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12487 nsterm.m.
12488 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12489 (ns_list_fonts): Remove, unused.
12490 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12491 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12492 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12493 (nsfont_draw): Compare face colors to 0, not nil.
12494 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12495 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12496 (-addSubmenuWithTitle:): Use NSMenuItem class.
12497 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12498 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12499 (ns_clip_to_row): Make gc arg a BOOL.
12500 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12501 ns_clip_to_row() call.
12502 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12503 used). Cast FRAME_FONT assignments.
12504 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12505 (ns_string_to_lispmod): Change arg to const char.
12506 (ns_term_init): Use NSMenuItem class.
12507 (EmacsApp -openFile:): Move to different section of file.
12508 (EmacsApp -application:openFiles:): Don't return a value, call
12509 -replyToOpenOrPrint:.
12510 (EmacsView -keyDown:): Fix up cast.
12511 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12512 (EmacsView -menuDown:): Cast tag in call to
12513 find_and_call_menu_selection().
12514 (ns_list_fonts): Remove, unused.
12515 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12516 (ns_fontname_to_xlfd): Make static.
12517 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12518 Remove prototypes (now in keyboard.h).
12519 (next_menubar_widget_id): Remove, unused.
12520 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12521 Remove prototypes (now in keyboard.h).
12522 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12523
125242008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12525
12526 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12527 (floatfns.o): Depend on syssignal.h.
12528 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12529
12530 * systty.h: Fix previous change that removed BSD_TERMIOS.
12531 Add comments to #ifdefs.
12532
125332008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12534
12535 * w32fns.c (w32-load-color-file): Remove.
12536 (x-open-connection): Use renamed Fx_load_color_file.
12537 * xfaces.c (x-load-color-file): Add.
12538 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12539 Emacs.clr.
12540 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12541
125422008-07-31 Michael Albinus <michael.albinus@gmx.de>
12543
12544 * dbusbind.c (Fdbus_call_method_asynchronously)
12545 (Fdbus_method_error_internal): New defuns.
12546 (xd_read_message): Handle also reply messages.
12547 (Vdbus_registered_functions_table): Extend docstring.
12548
125492008-07-31 Juanma Barranquero <lekktu@gmail.com>
12550
12551 * keyboard.c (gobble_input): Fix previous change.
12552
125532008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12554
12555 * bitmaps/README:
12556 * xfns.c:
12557 * termcap.c:
12558 * term.c:
12559 * syswait.h:
12560 * systty.h:
12561 * systime.h:
12562 * syssignal.h:
12563 * sysdep.c:
12564 * process.h:
12565 * process.c:
12566 * print.c:
12567 * ndir.h:
12568 * lread.c:
12569 * keyboard.c:
12570 * getpagesize.h:
12571 * floatfns.c:
12572 * fileio.c:
12573 * emacs.c:
12574 * doc.c:
12575 * dispnew.c:
12576 * dired.c:
12577 * data.c:
12578 * callproc.c:
12579 * buffer.c:
12580 * README:
12581 * Makefile.in:
12582 * s/template.h:
12583 * s/msdos.h:
12584 * m/vax.h: Remove VMS support.
12585 * s/vms.h:
12586 * vlimit.h:
12587 * uaf.h:
12588 * temacs.opt:
12589 * param.h:
12590 * ioctl.h: Remove file.
12591
125922008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12593
12594 * s/ms-w32.h (MULTI_KBOARD): Remove.
12595 * xterm.c:
12596 * xselect.c:
12597 * xfns.c:
12598 * window.c:
12599 * w32term.c:
12600 * w32fns.c:
12601 * terminal.c:
12602 * termhooks.h:
12603 * term.c:
12604 * sysdep.c:
12605 * keyboard.h:
12606 * keyboard.c:
12607 * frame.h:
12608 * frame.c:
12609 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12610 * config.in: Regenerate.
12611
126122008-07-30 Jason Rumney <jasonr@gnu.org>
12613
12614 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12615
12616 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12617 (w32font_open_internal): Get unicode version of textmetrics.
12618 Don't enable or disable glyph indices here.
12619 (w32font_open): Disable use of glyph indices.
12620
12621 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12622
126232008-07-30 Chong Yidong <cyd@stupidchicken.com>
12624
12625 * minibuf.c (Vread_buffer_function): Doc fix.
12626
126272008-07-30 John Paul Wallington <jpw@pobox.com>
12628
12629 * minibuf.c (read_buffer_completion_ignore_case): New var.
12630 (Fread_buffer): Use it.
12631
126322008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12633
12634 * systty.h (sensemode): Remove empty #if. Remove reference to
12635 BSD_TERMIOS, unused.
12636
12637 * sysdep.c: Remove reference to DGUX.
12638 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12639
12640 * config.in: Regenerate.
12641
126422008-07-30 Jason Rumney <jasonr@gnu.org>
12643
12644 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12645
126462008-07-29 Jason Rumney <jasonr@gnu.org>
12647
12648 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12649 is populated.
12650 (uniscribe_encode_char): Always use uniscribe.
12651 Avoid using context if cache is populated.
12652
126532008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12654
12655 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12656 open menu.
12657
12658 * gtkutil.c (menu_nav_ended): Remove.
12659 (create_menus): Remove signal connect for menu_nav_ended.
12660
126612008-07-28 Chong Yidong <cyd@stupidchicken.com>
12662
12663 * xdisp.c (redisplay_window): Check return value of
12664 compute_window_start_on_continuation_line before forcing a window
12665 start.
12666
126672008-07-28 Jason Rumney <jasonr@gnu.org>
12668
12669 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12670
12671 * w32term.c (w32_enable_unicode_output, cleartype_active):
12672 Remove obsolete display options.
12673 (x_draw_glyph_string_background): Don't use old cleartype_active
12674 workaround.
12675 (w32_initialize): Remove cleartype_active initialization.
12676 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12677
126782008-07-28 Andreas Schwab <schwab@suse.de>
12679
12680 * lisp.h (init_weak_hash_tables, syms_of_font)
12681 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12682 (remove_hash_entry): Don't declare.
12683 * eval.c (maybe_call_debugger): Make static and move before use.
12684 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12685 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12686 * xterm.h (x_set_frame_alpha): Declare.
12687
126882008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12689
12690 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12691 (create_menus): Connect selection-done to menu_nav_ended.
12692
126932008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12694
12695 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12696 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12697 parameter with read of 'alpha' one.
12698 (Qns_frame_parameter): Remove.
5582fbc7 12699 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12700 (next-selection-coding-system, Vselection_coding_system)
12701 (Vnext_selection_coding_system): Drop.
12702
127032008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12704
12705 * nsfns.m (do-applescript, do_applescript): Rename to
12706 ns-do-applescript, ns_do_applescript, and move within file.
12707
127082008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12709
12710 Remove support for Mac Carbon.
12711 * mactoolbox.c:
12712 * macterm.h:
12713 * macterm.c:
12714 * macselect.c:
12715 * macmenu.c:
12716 * macgui.h:
12717 * macfns.c:
12718 * mac.c: Remove file.
12719 * s/darwin.h:
12720 * m/intel386.h:
12721 * xfaces.c:
12722 * xdisp.c:
12723 * window.c:
12724 * tparam.c:
12725 * termhooks.h:
12726 * termcap.c:
12727 * term.c:
12728 * syssignal.h:
12729 * sysselect.h:
12730 * sysdep.c:
12731 * process.c:
12732 * lread.c:
12733 * lisp.h:
12734 * keyboard.c:
12735 * image.c:
12736 * fringe.c:
12737 * frame.h:
12738 * frame.c:
12739 * fontset.c:
12740 * font.h:
12741 * font.c:
12742 * fns.c:
12743 * fileio.c:
12744 * emacs.c:
12745 * dispnew.c:
12746 * dispextern.h:
12747 * config.in:
12748 * atimer.c:
2ae37cf0 12749 * Makefile.in: Remove code for Carbon.
aac0c6e3 12750
f0131492 127512008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12752
12753 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12754
127552008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12756
12757 * macterm.h (kCGBitmapByteOrder32Host): New define for
12758 non-universal SDKs.
12759
12760 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12761 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12762
12763 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12764 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12765
127662008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12767
12768 * w32inevt.c: Include dispextern.h.
12769
127702008-07-26 Andreas Schwab <schwab@suse.de>
12771
12772 * print.c (print_object): Fix off-by-one in last change.
12773
127742008-07-25 Juanma Barranquero <lekktu@gmail.com>
12775
12776 * term.c (syms_of_term): Don't initialize default_orig_pair,
12777 default_set_foreground and default_set_background on Windows.
12778
127792008-07-25 Jason Rumney <jasonr@gnu.org>
12780
12781 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12782 ScriptItemize. Clean up return value checking. Remove unused
12783 variables.
12784 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12785 shaping engine.
12786
12787 * w32font.c (w32font_has_char): Handle the case where we can't
12788 determine the script for a character.
12789
127902008-07-25 Chong Yidong <cyd@stupidchicken.com>
12791
12792 * term.c (syms_of_term): Initialize default_orig_pair,
12793 default_set_foreground, and default_set_background.
12794
12795 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12796 clash (bug#86).
12797 (getloadavg): Callers changed.
12798
12799 * image.c (svg_load_image): Fix last change.
12800 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12801 image size is valid. Use g_object_unref instead of deprecated
12802 rsvg_handle_free to free rsvg handle.
12803 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12804
128052008-07-25 Jason Rumney <jasonr@gnu.org>
12806
12807 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12808 surrogates before looking up glyph index.
12809 (w32font_text_extents): Encode as surrogates if falling back to
12810 functions that need UTF-16 wide chars.
12811
12812 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12813 BMP as surrogates before looking up glyph index.
12814
128152008-07-25 Chong Yidong <cyd@stupidchicken.com>
12816
12817 * image.c (svg_load_image): Check for failure in return value of
12818 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12819
128202008-07-25 Jason Rumney <jasonr@gnu.org>
12821
12822 * w32font.c (Fx_select_font): Reverse sense of second arg.
12823
128242008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12825
12826 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12827 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12828
12829 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12830 (PURESIZE): Use it.
12831
128322008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12833
12834 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12835 * m/alpha.h (TEXT_END):
12836 * m/ibmrs6000.h (TEXT_END):
12837 * m/macppc.h (TEXT_END):
12838 * s/darwin.h (TEXT_END):
12839 * s/msdos.h (TEXT_END): Remove, unused.
12840 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12841 * s/cygwin.h: Remove comment.
12842
12843 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12844 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12845 * m/intel386.h (DOT_GLOBAL_START):
12846 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12847 (USG): Remove, file not used on USG platforms.
12848
12849 * Makefile.in (HAVE_X11): Remove empty #else.
12850
128512008-07-24 Andreas Schwab <schwab@suse.de>
12852
12853 * fileio.c (Finsert_file_contents): Properly adjust undo list
12854 after format conversion.
12855
128562008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12857
12858 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12859 (menu_nav_ended): Remove.
12860 (create_menus): Remove signal connect for menu_nav_ended.
12861 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12862 create_menus.
12863 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12864
128652008-07-23 Jason Rumney <jasonr@gnu.org>
12866
12867 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12868 with opened font.
12869 (w32font_open): Set font type to gdi.
12870
12871 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12872
128732008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12874
12875 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12876 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12877 defines it.
12878 * unexec.c (ADDR_CORRECT): Define unconditionally.
12879
12880 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12881
12882 * unexec.c: Remove code depending on !COFF and USG, the file is
12883 not used for such systems.
12884
12885 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12886 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12887 (LD_SWITCH_SYSTEM_1): Remove, update users.
12888
12889 * s/darwin.h (DATA_END):
12890 * m/intel386.h (DATA_END):
12891 * m/ibmrs6000.h (DATA_END):
12892 * m/alpha.h (DATA_END): Remove, unused.
12893
12894 * config.in: Regenerate.
12895 * s/ms-w32.h (subprocesses): Define unconditionally.
12896 * s/template.h (subprocesses): Update comment.
12897 * s/vms.h (subprocesses):
12898 * s/usg5-4.h (subprocesses):
12899 * s/hpux10-20.h (subprocesses):
12900 * s/gnu-linux.h (subprocesses):
12901 * s/cygwin.h (subprocesses):
12902 * s/bsd-common.h (subprocesses):
12903 * s/aix4-2.h (subprocesses):
12904 * s/darwin.h (subprocesses): Do not define, defined by default now.
12905
12906 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12907 Remove all references.
12908 (temacs): Add GNUstep specific ld flags.
12909
12910 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12911 similarly to what X does.
12912
129132008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12914
12915 * nsfns.m (x-list-fonts): Remove.
12916 (syms_of_nsfns): Drop the x-list-fonts declaration.
12917 * nsterm.m: Get rid of remaining "//" comments.
12918
129192008-07-22 Chong Yidong <cyd@stupidchicken.com>
12920
12921 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12922
12923 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12924 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12925 (Fns_own_selection_internal, Fx_disown_selection_internal)
12926 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12927
12928 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12929 ... */' style of docstrings. Doc fixes.
12930
129312008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12932
12933 * terminfo.c (UP, BC, PC): Undo previous change.
12934
12935 * nsfns.m: Rename ns prefixed functions/variables to the
12936 corresponding x versions. Update references.
12937
129382008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12939
12940 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12941
129422008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12943
12944 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12945 Remove forwarding functions.
12946 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12947 non-static.
12948 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12949 non-static.
12950 (ns_frame_parm_handlers): Use the new names.
12951 (syms_of_nsfns): Move to the end of file.
12952
12953 * nsterm.m (syms_of_nsterm): Move to the end of file.
12954
12955 * dispnew.c (init_display): Remove code for X10.
12956
129572008-07-22 Jason Rumney <jasonr@gnu.org>
12958
12959 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12960 bare drive.
12961
129622008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12963
12964 * nsterm.m (syms_of_nsterm): Remove debugging println.
12965
129662008-07-22 David Reitter <david.reitter@gmail.com>
12967
12968 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12969 Carbon implementation of the same functionality: execute arbitrary
12970 AppleScript code.
12971
129722008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12973
12974 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12975 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12976 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12977 (Fx_display_mm_height, Fx_display_mm_width)
12978 (Fx_display_backing_store, Fx_display_visual_class)
12979 (Fx_display_save_under, Fx_open_connection)
12980 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12981 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12982 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12983 (Fx_display_pixel_width, Fx_display_pixel_height)
12984 (Fx_display_usable_bounds, Fx_display_planes)
12985 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12986 ... */' style of docstrings.
12987
129882008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12989
12990 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12991 on this platform.
12992 (mips):
12993 * m/iris4d.h (mips): Do not define.
12994 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12995
12996 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12997
12998 * image.c:
12999 * nsfns.m:
13000 * nsselect.m:
13001 * nsterm.h:
13002 * nsterm.m: Rename ns prefixed functions/variables to the
13003 corresponding x versions. Update references.
13004
13005 * m/ibms390x.h (NO_REMAP): Do not undefine.
13006
13007 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13008
130092008-07-21 Chong Yidong <cyd@stupidchicken.com>
13010
13011 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13012 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13013 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13014 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13015 (Fns_display_mm_height, Fns_display_mm_width)
13016 (Fns_display_backing_store, Fns_display_visual_class)
13017 (Fns_display_save_under, Fns_open_connection)
13018 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13019 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13020 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13021 (Fns_display_pixel_width, Fns_display_pixel_height)
13022 (Fns_display_usable_bounds, Fx_display_planes)
13023 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13024
130252008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13026
13027 * print.c (print_object): Check print_depth before searching for
13028 circularities.
13029
130302008-07-21 Michael Albinus <michael.albinus@gmx.de>
13031
13032 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13033 only sprintf.
13034
130352008-07-21 Kenichi Handa <handa@m17n.org>
13036
13037 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13038
130392008-07-20 Andreas Schwab <schwab@suse.de>
13040
13041 * syntax.c (find_start_pos, find_start_value)
13042 (find_start_value_byte, find_start_begv, find_defun_start)
13043 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13044
130452008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13046
13047 * s/sol2-3.h: Insert contents of s/sol2.h.
13048 (LD_SWITCH_SYSTEM): Remove redundant definition.
13049 * s/sol2.h: Remove, unused.
13050
130512008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13052
13053 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13054
130552008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13056
13057 * Makefile.in (ns_appdir): Fix typo in find command.
13058
130592008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13060
13061 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13062
13063 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13064 added not supported anymore.
13065
13066 * s/usg5-4-2.h (LIBS_SYSTEM):
13067 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13068
13069 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13070 * s/lynxos.h (GETPGRP_NO_ARG):
13071 * s/hpux10-20.h (NO_SIOCTL_H):
13072 * s/gnu.h (GETPGRP_NO_ARG):
13073 * s/gnu-linux.h (NO_SIOCTL_H):
13074 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13075 * s/cygwin.h (GETPGRP_NO_ARG):
13076 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13077 (C_DEBUG_SWITCH): Remove duplicate definition.
13078
13079 * m/ibms390.h: Remove boilerplate comments.
13080
13081 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13082
13083 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13084 (wait_reading_process_output): Remove code for SunOS, platform not
13085 supported anymore. Use SOLARIS2 instead of sun.
13086
130872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13088
13089 * font.c (font_open_by_name): Under NS, default lface height to zero.
13090 (font_open_for_lface): Under NS, set size based on frame fontsize.
13091 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13092 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13093
130942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13095
13096 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13097 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13098 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13099 YES/NO.
13100 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13101 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13102 * Makefile.in (clean): Clear out build destination dir.
13103
131042008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13105
13106 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13107 xterm, xselect.
13108 * lisp.h: Remove declaration of hash_remove.
13109 * nsgui.h: Remove redefinitions of hash_remove.
13110 * fns.c (hash_remove): Rename to hash_remove_from_table.
13111
131122008-07-19 Seiji Zenitani <zenitani@mac.com>
13113
13114 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13115 strdup() the family UTF8String before modifying it.
13116
131172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13118
13119 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13120 NS_FACE_BACKGROUND with 0 instead of nil.
13121 * nsfont.m (nsfont_draw): Same.
13122
131232008-07-19 Chong Yidong <cyd@stupidchicken.com>
13124
13125 * nsfns.m (ns_set_background_color): Fix crash.
13126
131272008-07-18 Chong Yidong <cyd@stupidchicken.com>
13128
13129 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13130
131312008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13132
13133 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13134
131352008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13136
13137 * gtkutil.c: Include <config.h> instead of "config.h".
13138
13139 * lisp.h (Foverlay_buffer): Add EXFUN.
13140
13141 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13142 child process to complete child_setup. Undo 2005-09-21 change.
13143
13144 * s/darwin.h: Mention setsid after vfork.
13145
131462008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13147
13148 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13149 Depend on macgui.h.
13150
13151 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13152 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13153
13154 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13155 and f19.
13156 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13157
13158 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13159 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13160 Remove enumerators.
13161
13162 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13163 Check if FACE_FROM_ID returns NULL.
13164
131652008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13166
13167 * w32inevt.c (change_frame_size): Remove extern declaration.
13168 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13169 change_frame_size.
13170
131712008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13172
13173 * getloadavg.c: Revert last change (2008-07-15).
13174
131752008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13176
13177 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13178 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13179 from configure.
13180
131812008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13182
13183 * s/sol2.h:
13184 * s/sol2-4.h: Reorganize conditionals.
13185
13186 * ecrt0.c: Remove code depending on m68000, not used anymore.
13187
13188 * fns.c (hash_remove): Make static.
13189 * lisp.h (hash_remove): Don't prototype.
13190
13191 * m/ibmrs6000.h:
13192 * m/ibms390x.h:
13193 * m/macppc.h: Remove boilerplate comments.
13194
13195 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13196 Solaris, which does not need them.
13197
13198 * m/vax.h: Remove comments about unsupported systems.
13199
13200 * s/darwin.h: Reorganize ifdefs.
13201
132022008-07-17 Andreas Schwab <schwab@suse.de>
13203
13204 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13205
132062008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13207
13208 Use SDATA. Follow coding convention of placing operators at
13209 beginning of next line rather than end of previous line, and placing
13210 spaces around infix operators.
13211
13212 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13213 in case it was defined already.
13214 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13215 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13216 ns_default.
13217 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13218 Lisp_Objects.
13219 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13220 (ns_defined_color, ns_color_to_lisp): Declare.
13221 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13222 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13223 it's accepted even with USE_LISP_UNION_TYPE.
13224 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13225 (update_frame_tool_bar): Remove apparently obsolete tests for
13226 non-integerness of f->tool_bar_lines.
13227 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13228 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13229 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13230 (nsfont_open): Don't confuse NULL for Qnil.
13231 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13232 * menu.h (find_and_call_menu_selection):
13233 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13234 (find_and_return_menu_selection): Always return something.
13235 * frame.h: Include dispextern.h for Display_Info.
13236 (display_x_get_resource): Declare.
13237
132382008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13239
13240 * syntax.c: Remove stdio.h include accidentally introduced in
13241 Emacs.app commit.
13242 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13243 NS_IMPL_COCOA.
13244 * keyboard.c (handle_async_input, input_available_signal): Remove
13245 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13246
132472008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13248
13249 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13250 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13251 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13252 Use SDATA.
13253
13254 * keymap.c: Remove all NS-specific code.
13255 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13256 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13257 where_is_preferred_modifier, return a different value depending on how
13258 preferred is the binding.
13259 (where_is_internal): Adjust accordingly.
13260 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13261 Adjust to new preferred_sequence_p.
13262 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13263 * keyboard.c (parse_solitary_modifier): Not static any more.
13264 * keyboard.h (parse_solitary_modifier): Declare.
13265
132662008-07-16 Andreas Schwab <schwab@suse.de>
13267
13268 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13269 of easymenu.
13270
132712008-07-16 Chong Yidong <cyd@stupidchicken.com>
13272
13273 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13274 that we don't move off the line.
13275
132762008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13277
13278 * keyboard.c (Qsuper): Remove.
13279 (parse_menu_item): Don't call where_is_internal specially for NS.
13280
132812008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13282
13283 * s/gnu-linux.h: Remove boilerplate comments.
13284
13285 * m/alpha.h (__ELF__): Consolidate conditions.
13286
13287 * m/m68k.h (linux): Use GNU_LINUX instead.
13288 Remove boilerplate comments.
13289
13290 * m/intel386.h: Undo refactoring from previous change.
13291 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13292 too, remove dead code.
13293 (linux): Use GNU_LINUX instead.
13294
132952008-07-16 Jason Rumney <jasonr@gnu.org>
13296
13297 * w32gui.h: Repeat 26 June changes lost by last change.
13298
132992008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13300
13301 * systty.h: Remove code for Aix on 386, unsupported platform.
13302
13303 * s/ms-w32.h: Remove boilerplate comments.
13304 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13305
13306 * s/gnu-linux.h (TERM): Remove support.
13307 (HAVE_SYSVIPC): Remove, unused.
13308 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13309 for this system.
13310
13311 * process.c: Remove support for IRIS, unused.
13312 Remove support for TERM, not relevant anymore.
13313
13314 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13315 used with the definition.
13316
13317 * s/aix4-2.h (static): Do not undef.
13318
13319 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13320 only used on Aix.
13321 (HAVE_SYSVIPC): Remove, unused.
13322
13323 * m/hp800.h (CANNOT_DUMP): Do not undef.
13324
13325 * m/alpha.h: Fix comment.
13326
13327 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13328 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13329 used by this configuration.
13330 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13331 * unexec.c: Remove code depending on HPUX and
13332 USG_SHARED_LIBRARIES, not used with this file. Remove code
13333 depending on IRIS, unused. Remove if 0-ed code.
13334
13335 * s/template.h: Remove comments about static.
13336
13337 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13338 Remove if 0-ed code.
13339 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13340 were the same as the default.
13341 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13342 Remove boilerplate comments.
13343 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13344 (HAVE_SYSVIPC): Remove, unused.
13345 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13346
13347 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13348 Remove boilerplate comments.
13349 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13350 Remove boilerplate comments.
13351 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13352 Remove boilerplate comments.
13353 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13354
13355 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13356 USG systems which do not use DATA_SEG_BITS.
13357 Refactor code. Remove boilerplate comments.
13358
13359 * m/ibms390.h:
13360 * m/m68k.h:
13361 * s/bsd-common.h:
13362 * s/cygwin.h:
13363 * s/darwin.h:
13364 * s/freebsd.h:
13365 * s/gnu.h:
13366 * s/msdos.h: Remove boilerplate comments.
13367
13368 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13369 do not use this file.
aac0c6e3
MR
13370 (IRIS_4D): Remove, unused.
13371
13372 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13373 do not use this file.
aac0c6e3
MR
13374 (SIGN_EXTEND_CHAR):
13375 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13376 * unexmips.c: Remove file, unused.
13377
13378 * editfns.c (Fuser_full_name): Replace the only use of
13379 USER_FULL_NAME with its value.
13380 * config.in: Regenerate.
13381
133822008-07-16 David Reitter <david.reitter@gmail.com>
13383
13384 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13385 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13386
133872008-07-16 Glenn Morris <rgm@gnu.org>
13388
13389 * emacs.c (system-type): Doc fix.
13390
133912008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13392
13393 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13394 If the cache doesn't work, let's fix it, rather than work around it.
13395
133962008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13397
13398 * Makefile.in: Correct additions for nsfont.o in last commit.
13399 * nsfont.m: New file (forgot last commit).
13400
134012008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13402
13403 * callproc.c (set_initial_environment): Initialize
13404 Vprocess_environment under CANNOT_DUMP (fixes crash when
13405 batch-compiling for bootstrap).
13406
134072008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13408 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13409
c4cc8b9a
JB
13410 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13411 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13412
134132008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13414
13415 Changes and additions for NeXTstep windowing system (Cocoa and
13416 GNUstep) support.
13417
13418 * Makefile.in:
13419 * config.in: Support defines and build commands for NS port.
13420 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13421 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13422 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13423 windowing.
13424 (struct face): Add synth_ital field.
13425 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13426 (init_display): Initialize Vinitial_window_system to "ns" when so
13427 compiled.
13428 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13429 (display_arg): Use under NS.
13430 (main): Under NS, allocate autorelease pool and handle command line
13431 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13432 (standard_args): Add NS-specific args.
13433 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13434 * font.c (DEFAULT_ENCODING): New variable.
13435 (font_find_for_lface): Use it.
13436 (syms_of_font): Load syms_of_nsfont under NS.
13437 * font.h: Declare nsfont_driver when compiled under NS.
13438 * fontset.c: When compiling under NS, include nsterm.h.
13439 (fontset_from_font): Autoconstruct fontset under NS.
13440 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13441 symbol, document and use it.
13442 (do_switch_frame): When for_deletion under Cocoa, add
13443 Fraise_frame(Qnil).
13444 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13445 (x_get_arg): Allow "yes" and "no" as boolean values.
13446 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13447 Qright under Cocoa.
13448 (focus-follows-mouse): Default to 0 under NS.
13449 * frame.h (enum output_method): Add output_ns.
13450 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13451 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13452 (FRAME_WINDOW_P): NS-specific definition.
13453 * fringe.c (max_used_fringe_bitmap): Make public.
13454 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13455 (getloadavg): Use NeXT code under descendant OS's.
13456 * image.c (includes and header section, x_create_bitmap_from_data)
13457 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13458 (image_background_transparent, x_clear_image_1)
13459 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13460 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13461 (x_to_xcolors, x_from_xcolors, x_disable_image)
13462 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13463 other GUIs, including XPM support using code originally written for
13464 Carbon GUI.
13465 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13466 using NS API.
13467 (image_ascent): Use font metrics macros instead of direct struct field
13468 access.
13469 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13470 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13471 Also, handle NS as GTK for menu bar purposes.
13472 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13473 toolkit where they differ.
13474 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13475 use cachelist, still needed under NS.
13476 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13477 (struct widget_value): Define it here for menu.c.
13478 * keymap.c (includes): Include modifier internals.
13479 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13480 NS.
13481 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13482 support for preferring sequences using certain modifiers, specified by
13483 the FIRSTONLY argument.
13484 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13485 under NS GNUstep implementation.
13486 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13487 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13488 * menu.c: Include nsterm.h under NS.
13489 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13490 (free_menubar_widget_tree_value, update_submenu_strings)
13491 (find_and_call_menu_selection): Treat NS as X and NT.
13492 (find_and_return_menu_selection): New function, used for popup menus.
13493 * nsgui.h:
13494 * nsterm.h:
13495 * nsfns.m:
13496 * nsimage.m:
13497 * nsmenu.m:
13498 * nsselect.m:
13499 * nsterm.m: New files.
13500 * process.c (wait_reading_process_output): Under NS, call ns_select()
13501 instead of plain select().
13502 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13503 beginning of buffer.
13504 * sysselect.h (init_process): Rename when compiling under Cocoa to
13505 avoid name conflict.
13506 * termhooks.h (display_info): Add ns_display_info to union.
13507 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13508 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13509 COCOA environment.
13510 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13511 unexec() signature. (Note, this will dump, but the resulting file
13512 crashes; unexosx is used instead; keeping around for reference and
13513 possible aid in getting dump working under GNUstep.)
13514 * w32gui.h (button_type, widget_value): Remove definitions (now in
13515 keyboard.h).
13516 * window.c: Include nsterm.h when compiling under NS.
13517 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13518 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13519 other GUI windowing systems.
13520 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13521 GTK.
13522 (x_consider_frame_title): Under NS, set icon type and frame
13523 modified-state indicator; use ns_set_name_as_filename() when using
13524 formatted title.
13525 (update_window_cursor): Make public when compiling under NS.
13526 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13527 (hourglass_atimer, Vhourglass_delay
13528 * xfaces.c (header section, init_frame_faces, clear_font_table)
13529 (defined_color, unload_color, x_face_list_fonts)
13530 (prepare_face_for_display): Add NS support parallel to other GUIs.
13531 Emulate GCs like other non-X GUIs.
13532 (split_font_name): Don't lowercase font name under NS.
13533 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13534 under NS.
13535 * s/darwin.h: Add support for compilation under NS.
13536
135372008-07-15 Jason Rumney <jasonr@gnu.org>
13538
13539 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13540 (w32_show_hourglass): Rename from show_hourglass.
13541 (w32_hide_hourglass): Rename from hide_hourglass.
13542 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13543 (Vhourglass_delay): Declare extern.
13544 (hourglass_started): Remove.
13545
13546 * xdisp.c (Vhourglass_delay): Remove static.
13547 (hourglass_started, start_hourglass, cancel_hourglass):
13548 Don't include these versions on WINDOWSNT.
13549
135502008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13551
13552 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13553 variables (formerly in xfns.c).
13554 (show_hourglass, hide_hourglass): New prototypes (same).
13555 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13556 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13557 in xfns.c).
13558 (syms_of_xdisp): Declare/initialize display-hourglass,
13559 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13560 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13561 formerly in xfns.c.
13562 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13563 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13564 (start_hourglass, cancel_hourglass): Remove.
13565 (show_hourglass, hide_hourglass): Remove prototypes and static
13566 modifiers.
13567 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13568 hourglass_atimer, hourglass_shown_p declaration/initialization.
13569 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13570 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13571 (start_hourglass, cancel_hourglass): Remove.
13572 (show_hourglass, hide_hourglass): Remove prototypes and static
13573 modifiers.
13574 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13575 hourglass_atimer, hourglass_shown_p declaration/initialization.
13576 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13577 (DEFAULT_HOURGLASS_DELAY): Remove.
13578 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13579 hourglass_shown_p declaration/initialization.
13580
135812008-07-14 Jason Rumney <jasonr@gnu.org>
13582
13583 * w32fns.c (w32_get_arg): Remove wrapper function.
13584 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13585 directly.
13586 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13587
135882008-07-14 Kenichi Handa <handa@m17n.org>
13589
13590 * xfont.c (xfont_open): Add workaround for X's bug.
13591
135922008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13593
13594 * fontset.c: Include <stdio.h> unconditionally.
13595
135962008-07-13 Michael Albinus <michael.albinus@gmx.de>
13597
13598 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13599 for filtering.
13600
136012008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13602
13603 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13604
13605 * m/macppc.h:
13606 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13607
c4cc8b9a 13608 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13609 (SPECIAL_EMACS_INT):
13610 * m/ia64.h (SPECIAL_EMACS_INT):
13611 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13612 * s/gnu.h (NLIST_STRUCT):
13613 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13614 * s/gnu-linux.h (LINUX):
13615 * s/msdos.h (HAVE_FACES):
13616 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13617
13618 * systty.h:
13619 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13620 anymore.
13621
136222008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13623
13624 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13625 always defined as int.
13626
13627 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13628 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13629 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13630 * s/freebsd.h (HAVE_WAIT_HEADER):
13631 * s/bsd-common.h (HAVE_UNION_WAIT):
13632 * s/aix4-2.h (HAVE_WAIT_HEADER):
13633 * m/mips.h (HAVE_UNION_WAIT):
13634 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13635 (COFF, static): Do not define, they are undefined later in the file.
13636
13637 * process.c (update_status): Don't use a union.
13638 (status_convert):
13639 (sigchld_handler): Use int instead of WAITTYPE.
13640
136412008-07-12 Chong Yidong <cyd@stupidchicken.com>
13642
13643 * indent.c (Fvertical_motion): Restore hscroll before moving to
13644 goal column.
13645
136462008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13647
13648 * lisp.h: Remove left over code.
13649
136502008-07-11 Andreas Schwab <schwab@suse.de>
13651
13652 * lisp.h: Fix logic in last change.
13653
13654 * menu.h: New file.
13655 * menu.c: Include it.
13656 * xmenu.c: Likewise.
13657 * Makefile.in: Update dependencies.
13658
136592008-07-11 Kenichi Handa <handa@m17n.org>
13660
13661 * fontset.c (fontset_from_font): Cancel the previous change.
13662
136632008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13664
13665 * lisp.h:
13666 * w32heap.c:
13667 * emacs.c:
13668 * alloc.c: Replace all references of NO_UNION_TYPE with
13669 USE_LISP_UNION_TYPE.
13670
13671 * m/xtensa.h (NO_UNION_TYPE):
13672 * m/vax.h (NO_UNION_TYPE):
13673 * m/template.h (NO_UNION_TYPE):
13674 * m/sparc.h (NO_UNION_TYPE):
13675 * m/mips.h (NO_UNION_TYPE):
13676 * m/macppc.h (NO_UNION_TYPE):
13677 * m/m68k.h (NO_UNION_TYPE):
13678 * m/iris4d.h (NO_UNION_TYPE):
13679 * m/intel386.h (NO_UNION_TYPE):
13680 * m/ibms390x.h (NO_UNION_TYPE):
13681 * m/ibms390.h (NO_UNION_TYPE):
13682 * m/ibmrs6000.h (NO_UNION_TYPE):
13683 * m/ia64.h (NO_UNION_TYPE):
13684 * m/hp800.h (NO_UNION_TYPE):
13685 * m/arm.h (NO_UNION_TYPE):
13686 * m/amdx86-64.h (NO_UNION_TYPE):
13687 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13688 defining it the same.
13689
136902008-07-10 Chong Yidong <cyd@stupidchicken.com>
13691
13692 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13693
136942008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13695
13696 * fileio.c:
50426a04 13697 * sysdep.c:
aac0c6e3
MR
13698 * systty.h:
13699 * m/ibmrs6000.h:
13700 * m/iris4d.h:
13701 * s/aix4-2.h:
13702 * s/freebsd.h:
13703 * s/gnu-linux.h:
13704 * s/hpux10-20.h:
13705 * s/hpux11.h:
13706 * s/netbsd.h:
13707 * s/sol2-3.h:
13708 * s/sol2-4.h:
13709 * s/sol2.h:
13710 * s/usg5-4.h:
13711 * s/vms.h: Remove references to unused variables.
13712
137132008-07-10 Andreas Schwab <schwab@suse.de>
13714
13715 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13716 pattern before matching the generic family.
13717
137182008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13719
13720 * unexec.c:
13721 * s/vms.h:
13722 * s/usg5-4-2.h:
13723 * s/sol2-5.h:
13724 * s/freebsd.h:
13725 * s/darwin.h: Remove dead code.
13726
13727 * m/template.h:
13728 * m/sparc.h:
13729 * m/mips.h:
13730 * m/m68k.h:
13731 * m/iris4d.h:
13732 * m/intel386.h:
13733 * m/ibms390x.h:
13734 * m/ibms390.h:
13735 * m/ia64.h:
13736 * m/hp800.h:
13737 * m/arm.h:
13738 * m/amdx86-64.h: Remove dead code and references to unused
13739 and compiler defined symbols.
13740
13741 * unexmips.c:
13742 * unexelf.c: Remove references to desupported systems.
13743
13744 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13745
13746 * m/powermac.h: Remove boilerplate comments.
13747 (NO_REMAP): Remove unused definition.
13748
13749 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13750 define them.
13751
137522008-07-10 Kenichi Handa <handa@m17n.org>
13753
13754 * xfont.c (xfont_open): Log the reason of failure.
13755
137562008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13757
13758 * fontset.c (fontset_get_font_group):
13759 * font.c (font_check_otf): Specify argument types.
13760
137612008-07-09 Kenichi Handa <handa@m17n.org>
13762
13763 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13764 non-ASCII char is found.
13765
13766 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13767 (reorder_font_vector): Change the arg preferred_family to font.
13768 Prefer the spec matching with font.
13769 (fontset_get_font_group): New function.
13770 (fontset_find_font): Change the format of an element of a realized
13771 fontset. Use fontset_get_font_group.
13772 (fontset_font): Try the current fontset, the default fontset, the
13773 fallbacks of the current fontset, and the fallbacks of the default
13774 fontset in this order.
13775 (face_for_char): Delete the shortcut to use the current font.
13776 (fontset_from_font): Don't set fonts for Latin in the fontset.
13777
13778 * font.h (font_make_object, font_match_p): Adjust prototypes.
13779
13780 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13781
13782 * font.c (font_make_object): New arg entity and pixelsize.
13783 (font_check_otf_features, font_check_otf): New functions.
13784 (font_match_p): Check :lang, :script, and :otf properties.
13785
13786 * xfont.c (xfont_open): Adjust it for the change of
13787 font_make_object.
13788 (xfont_text_extents): Fix initial setting of metrics.
13789
13790 * ftfont.c (struct ftfont_info): New member index, delete member
13791 fc_charset_idx. Make the member order compatible with struct
13792 xftfont_info.
13793 (fc_charset_table): Change charset names to registry names.
13794 (ftfont_pattern_entity): Delete the args registry and
13795 fc_charset_idx. Change the value of :font-entity property
13796 to (FONTNAME . INDEX). Always set :registry property to
13797 `iso10646-1'.
13798 (struct ftfont_cache_data): New struct.
13799 (ftfont_lookup_cache): New arg for_face.
13800 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13801 (ftfont_driver): Set the member otf_capability.
13802 (ftfont_get_charset): Adjust it for the change of
13803 fc_charset_table.
13804 (OTF_TAG_SYM): New macro.
13805 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13806 for the change of fc_charset_table.
13807 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13808 ftfont_pattern_entity. Add FC_INDEX to objset.
13809 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13810 and ftfont_pattern_entity.
13811 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13812 font_make_object, struct ftfont_info.
13813 (ftfont_has_char): Use ftfont_get_fc_charset.
13814 (ftfont_otf_features, ftfont_otf_capability): New functions.
13815 (ftfont_shape): Use ftfont_get_otf.
13816 (ftfont_text_extents): Fix initial setting of metrics.
13817
13818 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13819 member order compatible with struct ftfont_info.
13820 (xftfont_open): Add FC_CHARSET to the pattern. Set
13821 xftfont_info->ft_size. Don't unlock the face. Check BDF
13822 properties if appropriate.
13823 (xftfont_close): Unlock the face.
13824 (xftfont_anchor_point, xftfont_shape): Deleted.
13825 (syms_of_xftfont): Don't set members anchor_point and shape of
13826 xftfont_driver.
13827
13828 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13829 font_make_object.
13830
13831 * w32font.c (w32font_open): Adjust it for the change of
13832 font_make_object.
13833 (w32font_open_internal): Don't set properties of font_object here.
13834
138352008-07-08 Chong Yidong <cyd@stupidchicken.com>
13836
13837 * macfns.c (x_create_tip_frame):
13838 * w32fns.c (x_create_tip_frame):
13839 * xfns.c (x_create_tip_frame): Pass parameter argument to
13840 face-set-after-frame-default.
13841
13842 * xfaces.c (Finternal_merge_in_global_face): Save merged
13843 attributes for the default face back into the face vector.
13844
138452008-07-08 Andreas Schwab <schwab@suse.de>
13846
13847 * fontset.h: Declare fontset_from_font. Don't declare
13848 new_fontset_from_font and fontset_from_font_name.
13849 * xterm.c: Include "fontset.h".
13850 * Makefile.in (xterm.o): Update dependencies.
13851
138522008-07-08 Glenn Morris <rgm@gnu.org>
13853
13854 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13855 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13856
138572008-07-07 Chong Yidong <cyd@stupidchicken.com>
13858
13859 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13860 (x_set_frame_parameters): Don't bind it.
13861
138622008-07-07 Juanma Barranquero <lekktu@gmail.com>
13863
13864 * w32fns.c (map_w32_filename): Declare extern.
13865
138662008-07-07 Jason Rumney <jasonr@gnu.org>
13867
13868 * w32term.c (WS_EX_LAYERED): Define if not already.
13869
138702008-07-06 Chong Yidong <cyd@stupidchicken.com>
13871
13872 * xfaces.c (set_font_frame_param): Don't try to set the font
13873 parameter if it is still unspecified in the lface.
13874
138752008-07-05 Chong Yidong <cyd@stupidchicken.com>
13876
13877 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13878 face if it didn't already exist.
13879
13880 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13881
138822008-07-05 Andreas Schwab <schwab@suse.de>
13883
13884 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13885
138862008-07-05 Chong Yidong <cyd@stupidchicken.com>
13887
13888 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13889 word-wrapping.
13890 (IT_DISPLAYING_WHITESPACE): New macro.
13891 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13892 when word-wrapping. Simplify word-wrapping logic. Use correct
13893 pixel positions when saving copies of the iterator.
13894 (display_line): Use proper wrap point if the last character on a
13895 line was preceded by whitespace.
13896
138972008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13898
13899 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13900
139012008-07-04 Kenichi Handa <handa@m17n.org>
13902
13903 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13904
13905 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13906
139072008-07-02 Jason Rumney <jasonr@gnu.org>
13908
13909 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13910 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13911
13912 * xdisp.c (next_element_from_display_vector): Move assignment out
13913 of if statement.
13914
139152008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13916
13917 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13918
13919 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13920 (syms_of_fileio): Initialize and export them.
13921 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13922
13923 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13924 (Fsystem_move_file_to_trash): New function.
13925 (syms_of_w32fns): Export it to lisp.
13926
139272008-07-01 Jason Rumney <jasonr@gnu.org>
13928
13929 * w32font.c (w32font_text_extents): Don't count overhang as part
13930 of width.
13931
139322008-06-30 Miles Bader <miles@gnu.org>
13933
13934 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13935 Add `avoid_cursor_p' field.
13936
13937 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13938 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13939 (append_glyph, append_composite_glyph, produce_image_glyph)
13940 (append_stretch_glyph): Initialize avoid_cursor_p.
13941 (get_it_property): Rename from `get_line_height_property'.
13942 (x_produce_glyphs): Use get_it_property.
13943 (handle_line_prefix, push_display_prop): New functions.
13944 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13945 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13946 New variables.
13947 (syms_of_xdisp): Initialize them.
13948
139492008-06-30 Kenichi Handa <handa@m17n.org>
13950
13951 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13952 XftDefaultSubstitute (they are called in XftFontMatch).
13953 (xftfont_open): Fix args to ftfont_font_format.
13954
13955 * ftfont.c (fc_charset_table): New member lang.
13956 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13957 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13958 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13959 (ftfont_open): Fix args to ftfont_font_format.
13960 (ftfont_font_format): New arg filename.
13961
139622008-06-30 Chong Yidong <cyd@stupidchicken.com>
13963
13964 * xfaces.c (Finternal_merge_in_global_face): If default face was
13965 modified, realize it again. Update the font face attribute.
13966
139672008-06-29 Jason Rumney <jasonr@gnu.org>
13968
13969 * w32term.c (x_set_frame_alpha): Fix logic.
13970
139712008-06-29 Kenichi Handa <handa@m17n.org>
13972
13973 * fontset.c (Finternal_char_font): Return font-object instead of
13974 font-name.
13975
13976 * composite.c (get_composition_id): Fix the width calculation for TAB.
13977
139782008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13979
13980 * indent.c (Fvertical_motion): Properly handle float column arg.
13981
139822008-06-28 Jason Rumney <jasonr@gnu.org>
13983
13984 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13985 (pfnSetLayeredWindowAttributes): New function pointer.
13986 (w32_initialize): Initialize it when supported.
13987 (x_set_frame_alpha): New function.
13988
13989 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13990 (w32_frame_parm_handlers): Set alpha handler.
13991
13992 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13993
139942008-06-27 Jason Rumney <jasonr@gnu.org>
13995
13996 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13997 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13998 (w32_to_x_charset, x_to_w32_charset)
13999 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14000 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14001 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14002 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14003 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14004 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14005 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14006 (Qw32_charset_unicode): Remove.
14007 (syms_of_w32fns): Update for above changes.
14008
14009 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14010 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14011 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14012 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14013 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14014 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14015 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14016 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14017 (syms_of_w32font): Update for above changes.
14018
140192008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14020
14021 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14022 removed #if.
14023 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14024
140252008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14026 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14027
14028 * makefile.w32-in (LOCAL_FLAGS):
14029 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14030
14031 * sysdep.c (_spawnlp, _getpid):
14032 Declare with explicit _cdecl instead of _CRTAPI1.
14033
14034 * editfns.c (Fget_internal_run_time):
14035 Check for WINDOWSNT with #ifdef, not #if.
14036
140372008-06-26 Jason Rumney <jasonr@gnu.org>
14038
14039 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14040
14041 * w32term.c (x_draw_glyph_string_foreground)
14042 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14043 Use FONT_HANDLE macro.
14044 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14045
14046 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14047 (uniscribe_encode_char): Use FONT_HANDLE macro.
14048
14049 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14050 (w32font_text_extents): Use precast w32_font.
14051 (w32font_close): Free cached metrics.
14052 (w32font_open_internal): Allocate space for name on stack.
14053
140542008-06-26 Chong Yidong <cyd@stupidchicken.com>
14055
14056 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14057
140582008-06-26 Jason Rumney <jasonr@gnu.org>
14059
14060 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14061 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14062
140632008-06-26 Juanma Barranquero <lekktu@gmail.com>
14064
14065 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14066
140672008-06-26 Jason Rumney <jasonr@gnu.org>
14068
14069 * w32bdf.c, w32bdf.h: Remove obsolete files.
14070
14071 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14072
14073 * w32gui.h: Don't include w32bdf.h.
14074 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14075 Remove obsolete font support.
14076
14077 * w32font.h (struct w32font_info): Remove compat_w32_font.
14078 Add hfont member.
14079 (FONT_COMPAT): Remove obsolete macro.
14080
14081 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14082 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14083 (w32font_open_internal): Remove compat code. Set new hfont member.
14084 (Fx_select_font): Use new hfont member.
14085
14086 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14087 (uniscribe_encode_char): Use new hfont member.
14088
14089 * w32term.c (x_draw_glyph_string_foreground)
14090 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14091 (x_draw_glyph_string): Use metrics in w32font_info.
14092
140932008-06-26 Kenichi Handa <handa@m17n.org>
14094
14095 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14096
140972008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14098
14099 * unexnext.c:
14100 * m/ews4800.h:
14101 * m/hp9000s300.h:
14102 * m/ibm370aix.h:
14103 * m/mips-siemens.h:
14104 * m/ncr386.h:
14105 * m/next.h:
14106 * m/pmax.h:
14107 * m/powerpcle.h:
14108 * m/tandem-s2.h:
14109 * s/386bsd.h:
14110 * s/bsd386.h:
14111 * s/bsd4-1.h:
14112 * s/bsd4-2.h:
14113 * s/bsdos2-1.h:
14114 * s/bsdos2.h:
14115 * s/bsdos3.h:
14116 * s/bsdos4.h:
14117 * s/nextstep.h:
14118 * s/ultrix4-3.h:
14119 * s/usg5-0.h:
14120 * s/usg5-2-2.h:
14121 * s/usg5-2.h:
14122 * s/usg5-4-3.h:
14123 * s/ux4800.h:
14124 * s/uxpds.h:
14125 * s/uxpv.h: Remove support for obsolete systems.
14126 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14127 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14128 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14129 Remove, insert contents in s/aix4-2.h.
14130 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14131 * s/bsd4-3.h: Rename to ...
14132 * s/bsd-common.h: ... this.
14133 * data.c:
14134 * doc.c:
14135 * ecrt0.c:
14136 * emacs.c:
14137 * fileio.c:
14138 * floatfns.c:
14139 * keyboard.c:
14140 * mem-limits.h:
14141 * print.c:
14142 * process.c:
14143 * sysdep.c:
14144 * syssignal.h:
14145 * systty.h:
14146 * syswait.h:
14147 * term.c:
14148 * unexec.c:
14149 * unexelf.c:
14150 * unexhp9k800.c:
14151 * m/hp800.h:
14152 * m/ibmrs6000.h:
14153 * m/mips.h:
14154 * m/vax.h:
14155 * s/darwin.h:
14156 * s/freebsd.h:
14157 * s/gnu.h:
14158 * s/ms-w32.h:
14159 * s/msdos.h:
14160 * s/netbsd.h:
14161 * s/template.h: Remove references to obsolete variables.
14162
14163 * Makefile.in: Add dependencies for all unexec files.
14164 (admindir): Remove unused variable.
14165 (UNEXEC_SRC): Remove references.
14166
141672008-06-25 Chong Yidong <cyd@stupidchicken.com>
14168
14169 * xfns.c (x_default_font_parameter): If Xft is available, first
14170 try Monospace-12 for the default font.
14171
141722008-06-25 Jason Rumney <jasonr@gnu.org>
14173
14174 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14175
141762008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14177
14178 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14179
14180 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14181
141822008-06-25 Juanma Barranquero <lekktu@gmail.com>
14183
14184 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14185 <scroll-conservatively>: Fix typo in docstring.
14186
14187 * xselect.c (Fx_send_client_event): Doc fix.
14188
141892008-06-25 Kenichi Handa <handa@m17n.org>
14190
14191 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14192
14193 * font.c (font_parse_fcname): Remove unused variables.
14194 (font_sort_entites): Delete the arg SPEC. Caller changed.
14195 Fix for the case of ! best_only.
14196 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14197
14198 * lisp.h (Fstring_to_unibyte): EXFUN it.
14199
14200 * character.h (str_to_unibyte): Extern it.
14201
14202 * character.c (str_to_unibyte): New function.
14203
14204 * fns.c (Fstring_to_unibyte): New function.
14205 (syms_of_fns): Defsubr it.
14206
142072008-06-24 Kenichi Handa <handa@m17n.org>
14208
14209 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14210 DPI too.
14211 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14212
142132008-06-24 Andreas Schwab <schwab@suse.de>
14214
14215 * Makefile.in (${lispsource}loaddefs.el): Rename from
14216 ../lisp/loaddefs.el.
14217 (bootstrap-clean): Do what distclean does but don't remove
14218 Makefile.
14219 (distclean): Depend on bootstrap-clean and remove Makefile.
14220
142212008-06-24 Chong Yidong <cyd@stupidchicken.com>
14222
14223 * buffer.h (struct buffer): New member word_wrap.
14224
14225 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14226 word-wrap.
14227 (init_buffer_once): Initialize them.
14228
14229 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14230 line_wrap enum possessing three possible values.
14231
14232 * termopts.h: Replace truncate_partial_width_windows with
14233 Vtruncate_partial_width_windows.
14234
14235 * dispnew.c (direct_output_for_insert): Avoid direct output when
14236 inserting a space with word wrap on.
14237
14238 * indent.c (compute_motion): Obey integer values of
14239 truncate-partial-width-windows.
14240
14241 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14242 replacing truncate_partial_width_windows.
14243 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14244 truncate only if the window width is below that integer.
14245 (start_display, resize_mini_window, produce_stretch_glyph)
14246 (display_string, move_it_in_display_line_to): Use line_wrap.
14247 (back_to_previous_visible_line_start, reseat_1): Reset
14248 string_from_display_prop_p.
14249 (display_line): Extend default face to end of line when wrapping.
14250
142512008-06-24 Kim F. Storm <storm@cua.dk>
14252
14253 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14254 to wrap continued lines at word boundaries.
14255
142562008-06-24 Jason Rumney <jasonr@gnu.org>
14257
14258 * font.c (Ffont_face_attributes): Multiply pixel size before point
14259 conversion to avoid multiplying rounding error.
14260
142612008-06-23 Jason Rumney <jasonr@gnu.org>
14262
14263 * w32term.c (x_draw_glyph_string_background)
14264 (x_draw_glyph_string): Remove old bdf font code.
14265
14266 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14267
142682008-06-22 Kenichi Handa <handa@m17n.org>
14269
14270 * font.c (font_find_for_lface): Try the adstyle specified in
14271 the property of LFACE_FONT of LFACE (if any).
14272
142732008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14274 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14275
14276 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14277
142782008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14279
14280 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14281 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14282 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14283 (witness-emacs): Remove.
14284 (lisp, shortlisp): Move loaddefs.el earlier.
14285 (mostlyclean): Forget about witness-emacs.
14286
142872008-06-22 Glenn Morris <rgm@gnu.org>
14288
14289 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14290 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14291
142922008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14293
14294 * Makefile.in (PRECOMP): Remove.
14295 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14296 (witness-emacs): Run `compile-first'.
14297 (.el.elc): Use the new compile-onefile target.
14298
142992008-06-21 Kenichi Handa <handa@m17n.org>
14300
14301 * xftfont.c (xftfont_open): Handle QCembolden only when
14302 FC_EMBOLDEN is defined.
14303
143042008-06-21 Andreas Schwab <schwab@suse.de>
14305
14306 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14307 (.el.elc): Likewise.
14308
143092008-06-21 Miles Bader <miles@gnu.org>
14310
14311 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14312 build dir, not the lisp source dir.
14313
143142008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14315
14316 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14317 (bootstrapclean): Remove.
14318 (.el.elc): New rule.
14319 (PRECOMP): New var.
14320 (../lisp/subdirs.el): Remove.
14321 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14322 (witness-emacs): New target.
14323 (mostlyclean): Remove witness-emacs as well.
14324 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14325 Add witness-emacs dependency.
14326
143272008-06-20 Chong Yidong <cyd@stupidchicken.com>
14328
14329 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14330 defined by the font.
14331
143322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14333
14334 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14335 (bootstrap-clean): New target that keeps TAGS around.
14336 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14337 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14338
143392008-06-20 Jason Rumney <jasonr@gnu.org>
14340
14341 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14342 Remove obsolete font code.
14343
14344 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14345 to determine language support.
14346
143472008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14348
14349 * sysdep.c (cfsetspeed): New fun extracted from the code.
14350 (cfmakeraw): Move before first use.
14351
143522008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14353
14354 * sysdep.c (cfmakeraw): Provide fallback implementation.
14355 (serial_configure): Provide fallback implementation of cfsetspeed.
14356
143572008-06-20 Kenichi Handa <handa@m17n.org>
14358
14359 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14360 the pattern.
14361
14362 * fontset.c (fontset_from_font): Copy font_spec before changing
14363 the elements.
14364
14365 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14366
143672008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14368
14369 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14370 for explicit `font' parameters.
14371
14372 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14373
143742008-06-19 Kenichi Handa <handa@m17n.org>
14375
14376 * frame.c: Include <ctype.h>.
14377 (x_set_font_backend): Allow spacing characters in the X resource
14378 for FontBackend.
14379
143802008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14381
14382 * w32fns.c, xfns.c (Qfont_param): New var.
14383 (syms_of_w32fns): Initialize it.
14384 (x_default_font_parameter): Record explicit `font' into
14385 `font-parameter'.
14386
143872008-06-18 Kenichi Handa <handa@m17n.org>
14388
14389 * font.c (font_parse_xlfd): Fix previous change.
14390 (font_parse_fcname): Don't use :fc-unknown-spec.
14391 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14392 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14393 (font_add_log): Prepend the driver name to the resulting fonts.
14394
14395 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14396 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14397 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14398
14399 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14400 (QCembolden): New variables.
14401 (syms_of_xftfont): DEFSYM them.
14402 (xftfont_open): Call XftFontMatch. Don't trust the result of
14403 XftTextExtents8 if the pixel_size is less than 5.
14404
144052008-06-18 Andreas Schwab <schwab@suse.de>
14406
14407 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14408 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14409
144102008-06-18 Jason Rumney <jasonr@gnu.org>
14411
14412 * w32font.c (w32font_list, w32font_match): Add logging.
14413
14414 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14415
144162008-06-17 Chong Yidong <cyd@stupidchicken.com>
14417
14418 * font.c (font_parse_fcname): Store divider characters for
14419 unknown-spec list. For known key symbols, intern using correct
14420 symbol name.
14421
144222008-06-17 Kenichi Handa <handa@m17n.org>
14423
14424 * xfaces.c (realize_default_face): If the frame is not on window
14425 system, set the fontset of face to nil.
14426
144272008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14428
14429 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14430
144312008-06-16 Juanma Barranquero <lekktu@gmail.com>
14432
14433 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14434 (build_font_name_from_vector): Delete externs.
14435
14436 * xfaces.c (struct font_name): Don't declare.
14437
144382008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14439
14440 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14441
144422008-06-16 Chong Yidong <cyd@stupidchicken.com>
14443
14444 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14445
144462008-06-16 Juanma Barranquero <lekktu@gmail.com>
14447
14448 * font.c (Ffont_spec): Fix usage in docstring.
14449 (Ffont_face_attributes): Doc fix.
14450
144512008-06-16 Andreas Schwab <schwab@suse.de>
14452
14453 * font.c (Ffont_face_attributes): Fix definition.
14454
144552008-06-16 Jason Rumney <jasonr@gnu.org>
14456
14457 * font.h (font_style_symbolic_from_value): Remove.
14458
14459 * font.c (font_style_symbolic_from_value): Remove.
14460 (font_style_symbolic): Revert to pre 2008-06-13 version.
14461
14462 * w32font.c (w32_to_fc_weight): New function.
14463 (w32font_full_name, logfont_to_fcname): Use it.
14464
144652008-06-16 Kenichi Handa <handa@m17n.org>
14466
14467 * font.c (font_check_object): Delete it.
14468 (font_clear_cache): Check if a font-object is alive.
14469 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14470 font-object to nil.
14471 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14472 (font_at): Don't call font_check_object.
14473 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14474
144752008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14476
14477 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14478
144792008-06-16 Chong Yidong <cyd@stupidchicken.com>
14480
14481 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14482
144832008-06-15 Chong Yidong <cyd@stupidchicken.com>
14484
14485 * font.c (font_parse_fcname): Only one decimal point.
14486 (font_unparse_fcname): Handle data in family and foundry indices
14487 as symbols, not strings.
14488 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14489
14490 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14491
14492 * font.h (font_unparse_gtkname): Add prototype.
14493
144942008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14495
14496 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14497
144982008-06-15 Andreas Schwab <schwab@suse.de>
14499
14500 * font.c (font_update_drivers): Fix crash when no drivers match.
14501
145022008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14503
14504 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14505 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14506
145072008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14508
14509 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14510
145112008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14512
14513 * process.c (Fserial_process_configure, Fprocess_send_eof):
14514 Use EQ to compare Lisp_Objects.
14515
145162008-06-13 Jason Rumney <jasonr@gnu.org>
14517
14518 * w32fns.c (Fw32_select_font): Remove old font API function.
14519
14520 * w32font.c (logfont_to_fcname): New function.
14521 (Fx_select_font): New font dialog function compatible with
14522 GTK/fontconfig version.
14523
14524 * font.c (font_style_symbolic_from_value): New function.
14525 (font_style_symbolic): Use it.
14526
14527 * font.h (font_style_symbolic_from_value): Declare new function.
14528
145292008-06-13 Juanma Barranquero <lekktu@gmail.com>
14530
14531 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14532 <font-width-table>: Fix typos in docstrings.
14533
145342008-06-13 Daniel Engeler <engeler@gmail.com>
14535
14536 These changes add serial port access.
14537 * process.c: Add HAVE_SERIAL.
14538 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14539 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14540 (list_processes_1, select_wrapper, Fstop_process)
14541 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14542 (status_notify): Modify to handle serial processes.
14543 [HAVE_SERIAL] (Fserial_process_configure)
14544 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14545 New functions.
14546 * process.h (struct Lisp_Process): Add `type'.
14547 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14548 New functions.
14549 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14550 serial ports.
b71ac3dd 14551 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14552 * w32.h: Add FILE_SERIAL.
14553 (struct _child_process): Add ovl_read, ovl_write.
14554
145552008-06-13 Kenichi Handa <handa@m17n.org>
14556
14557 * dispextern.h (enum lface_attribute_index): New member
14558 LFACE_FOUNDRY_INDEX.
14559
14560 * font.c (font_score): Delete arg alternate_families. Check only
14561 weight, slant, width, and size. Ignore the difference of alias
14562 style symbols.
14563 (font_sort_entites): Adjust for the above change. Reflect the
14564 order of font-driver to scores.
14565 (font_list_entities): Don't check alternate_familes here.
14566 (font_clear_prop): Handle foundry.
14567 (font_update_lface): Don't parse "foundry-family" form here.
14568 Handle FONT_FOUNDRY_INDEX.
14569 (font_find_for_lface): Likewise. Handle alternate families here.
14570 If registry is nil, try iso8859-1 and ascii-0.
14571 (font_open_for_lface): Pay attention to size in ENTITY.
14572 (font_open_by_name): Simplify by calling font_load_for_lface.
14573 (free_font_driver_list): Delete it.
14574 (font_update_drivers): Preserve the order of backends.
14575 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14576 of font_score and font_sort_entites.
14577 (font_update_sort_order): Likewise.
14578
14579 * xfaces.c (LFACE_FOUNDRY): New macro.
14580 (check_lface_attrs): Check foundry.
14581 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14582 (merge_face_vectors): Check foundry.
14583 (merge_face_ref): Likewise.
14584 (Finternal_set_lisp_face_attribute): Likewise.
14585 (x_update_menu_appearance): Likewise.
14586 (Finternal_get_lisp_face_attribute): Likewise.
14587 (lface_hash): Likewise.
14588 (lface_same_font_attributes_p): Likewise.
14589 (x_supports_face_attributes_p): Likewise.
14590 (tty_supports_face_attributes_p): Likewise.
14591 (Finternal_set_alternative_font_family_alist): Intern strings.
14592 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14593 (realize_default_face): Set LFACE_FOUNDRY (lface).
14594
14595 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14596 font-driver at first.
14597
14598 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14599
146002008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14601
14602 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14603
146042008-06-12 Jim Meyering <meyering@redhat.com>
14605
14606 Make unexec_free handle NULL the same way free does.
14607 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14608
146092008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14610
14611 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14612 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14613 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14614 (WEAK_ALIAS): Simplify.
14615 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14616 when searching a unibyte buffer.
14617
146182008-06-12 Chong Yidong <cyd@stupidchicken.com>
14619
14620 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14621
146222008-06-12 Juanma Barranquero <lekktu@gmail.com>
14623
14624 * w32font.c: Include ctype.h.
14625
146262008-06-11 Jason Rumney <jasonr@gnu.org>
14627
14628 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14629 misreported as space.
14630 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14631 as aliases for registry iso10646-1.
14632
146332008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14634
14635 * buffer.c (clone_per_buffer_values): Skip `name'.
14636
146372008-06-11 Chong Yidong <cyd@stupidchicken.com>
14638
14639 * font.c (font_parse_fcname): Fix last change; accept decimal
14640 points in font size.
14641
146422008-06-10 Jason Rumney <jasonr@gnu.org>
14643
14644 * w32uniscribe.c (add_opentype_font_name_to_list):
14645 Skip non unicode fonts.
14646
146472008-06-10 Chong Yidong <cyd@stupidchicken.com>
14648
14649 * xfns.c (Fx_font_dialog): New function.
14650
14651 * gtkutil.c (xg_dialog_response_cb): Rename from
14652 xg_file_response_callback.
14653 (pop_down_dialog): Rename from pop_down_file_dialog.
14654 (xg_get_file_name): Callers changed.
14655 (xg_get_font_name): New function.
14656
14657 * gtkutil.h (xg_get_font_name): Insert prototype.
14658
146592008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14660
14661 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14662 x_underline_minimum_display_offset.
14663 (syms_of_xdisp): Declare it here rather than in xterm.c.
14664 * dispextern.h (underline_minimum_offset): Declare it.
14665 * w32term.c (x_draw_glyph_string): Use it.
14666 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14667 (syms_of_xterm): Don't declare it any more.
14668 (x_draw_glyph_string): Adjust to the new name.
14669
8719abec 146702008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14671
14672 * xterm.c (x_underline_minimum_display_offset): New var.
14673 (x_draw_glyph_string): Use it.
14674 (syms_of_xterm): Declare it.
14675
146762008-06-10 Chong Yidong <cyd@stupidchicken.com>
14677
14678 * font.c (font_parse_fcname): Accept GTK-style font names too.
14679
146802008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14681
14682 * dired.c (file_name_completion): Don't return t if the match is exact
14683 but with different capitalization.
14684 * minibuf.c (Ftry_completion): Simplify.
14685
14686 * window.c (Vwindow_point_insertion_type): New var.
14687 (set_window_buffer): Use it.
14688 (syms_of_window): Init and export it to Lisp.
14689
146902008-06-10 Kenichi Handa <handa@m17n.org>
14691
14692 * font.h (font_intern_prop): Prototype adjusted.
14693
14694 * font.c (font_intern_prop): New arg force_symbol.
14695 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14696 Adjust for the change of font_intern_prop.
14697
14698 * ftfont.c (ftfont_pattern_entity):
14699 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14700 (w32_registry):
14701 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14702 the change of font_intern_prop.
14703
147042008-06-09 Juanma Barranquero <lekktu@gmail.com>
14705
14706 * w32menu.c (digest_single_submenu): Declare extern.
14707
147082008-06-09 Jason Rumney <jasonr@gnu.org>
14709
14710 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14711
14712 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14713 (parse_single_submenu): Remove.
14714 (digest_single_submenu): Remove.
14715 (syms_of_w32menu): Don't initialise variables that have moved
14716 to menu.c.
14717 (set_frame_menubar): Sync with version in xmenu.c.
14718 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14719
14720 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14721 Make static again.
14722
147232008-06-09 Jason Rumney <jasonr@gnu.org>
14724
14725 Changes to w32 files related to the move of common menu code
14726 to menu.c on 2008-06-08 by Chong Yidong.
14727
14728 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14729 defs to w32gui.h.
14730 (single_keymap_panes, push_menu_item, push_menu_pane):
14731 Make globally visible.
14732
14733 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14734 (local_free, malloc_widget_value, free_widget_value)
14735 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14736 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14737 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14738 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14739 (menu_items, menu_items_allocated, menu_items_used)
14740 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14741 (init_menu_items, finish_menu_items, discard_menu_items)
14742 (grow_menu_items, push_submenu_start, push_submenu_end)
14743 (push_left_right_boundary, push_menu_pane, push_menu_item)
14744 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14745 (free_menubar_widget_tree_value, parse_single_submenu)
14746 (update_submenu_strings): Remove functions.
14747 (xmalloc_widget_value): Remove and declare extern.
14748
14749 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14750 (OBJ1): Build it.
14751
14752 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14753 (local_heap, local_alloc, local_free, malloc_widget_value)
14754 (free_widget_value): Define here.
14755
147562008-06-09 Kenichi Handa <handa@m17n.org>
14757
14758 * font.h (Qascii_0): Extern it.
14759
14760 * font.c (Qascii_0): New variable.
14761 (syms_of_font): DEFSYM it.
14762 (font_open_by_name): If the registry "iso8859-1" fails, try also
14763 "ascii-0".
14764
14765 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14766
147672008-06-08 Kenichi Handa <handa@m17n.org>
14768
14769 * .gdbinit (xfont): New command.
14770
147712008-06-08 Andreas Schwab <schwab@suse.de>
14772
14773 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14774 * Makefile.in (menu.o): Update dependencies.
14775
14776 * Makefile.in (obj): Always add menu.o.
14777 * emacs.c (main): Always call syms_of_menu.
14778 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14779
147802008-06-08 Chong Yidong <cyd@stupidchicken.com>
14781
14782 * Makefile.in: Compile menu.c.
14783
14784 * lisp.h: Declare syms_of_menu.
14785
14786 * emacs.c (main): Call syms_of_menu.
14787
14788 * keyboard.h: Relocate platform-independent menu definitions from
14789 xmenu.c.
14790
14791 * menu.c: New file. Relocate platform-independent menu
14792 definitions from xmenu.c. Suggested by Adrian Robert.
14793
14794 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14795 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14796 (menu_items_used, menu_items_n_panes)
14797 (menu_items_submenu_depth): Move to keyboard.h.
14798 (init_menu_items, finish_menu_items, unuse_menu_items)
14799 (discard_menu_items, restore_menu_items, save_menu_items)
14800 (grow_menu_items, push_submenu_start, push_submenu_end)
14801 (push_left_right_boundary, push_menu_pane, push_menu_item)
14802 (keymap_panes, single_keymap_panes, single_menu_item)
14803 (list_of_panes, list_of_items, find_and_call_menu_selection)
14804 (xmalloc_widget_value, free_menubar_widget_value_tree)
14805 (parse_single_submenu, digest_single_submenu)
14806 (update_submenu_strings): Move to menu.c.
14807
148082008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14809
14810 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14811
148122008-06-06 Miles Bader <miles@gnu.org>
14813
14814 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14815 face, not frame default.
14816
148172008-06-05 Martin Rudalics <rudalics@gmx.at>
14818
14819 * window.c (pop_up_windows, pop_up_frames)
14820 (display_buffer_reuse_frames, Vpop_up_frame_function)
14821 (Vdisplay_buffer_function, Veven_window_heights)
14822 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14823 (Vspecial_display_function, Vsame_window_buffer_names)
14824 (Vsame_window_regexps, split_height_threshold)
14825 (Vsplit_window_preferred_function): Move those vars to window.el.
14826 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14827 (Fdisplay_buffer): Move those functions to window.el.
14828 (syms_of_window): Remove corresponding declarations.
14829 (display_buffer): New function.
14830 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14831 * dispnew.c (Flast_nonminibuf_frame): New function.
14832 * buffer.c (Fpop_to_buffer): Move to window.el.
14833
148342008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14835
14836 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14837
148382008-06-05 Kenichi Handa <handa@m17n.org>
14839
14840 * coding.c (detect_coding): Fix previous change.
14841 (detect_coding_system): Likewise.
14842
148432008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14844
14845 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14846
14847 * keymap.c (Vminibuffer_local_filename_must_match_map):
14848 Rename from Vminibuffer_local_must_match_filename_map.
14849 (syms_of_keymap):
14850 * minibuf.c (Fcompleting_read): Adjust accordingly.
14851 * commands.h: Rename declaration as well.
14852
148532008-06-05 Kenichi Handa <handa@m17n.org>
14854
14855 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14856 family name.
14857 (Ffont_put): Likewise.
14858
14859 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14860 current font-spec.
14861
14862 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14863 is unspecified.
14864
14865 * xfaces.c (realize_x_face): If the font-related face attributes
14866 are the same as those of default face, realize a new fontset from
14867 default->fontset.
14868 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14869
148702008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14871
14872 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14873 (move_it_in_display_line): New wrapper.
14874
14875 * window.c (window_scroll_pixel_based_preserve_x)
14876 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14877 (window_scroll_pixel_based, window_scroll_line_based):
14878 Use them to preserve column positions.
14879 (syms_of_window): Initialize them.
14880
14881 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14882 (HPOS . VPOS) pair.
14883
14884 * dispextern.h (move_it_in_display_line): Declare.
14885
148862008-06-05 Juanma Barranquero <lekktu@gmail.com>
14887
14888 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14889 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14890 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14891
148922008-06-04 Juanma Barranquero <lekktu@gmail.com>
14893
14894 * window.c (Fset_window_parameter): Doc fix.
14895 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14896
148972008-06-04 Joakim Verona <joakim@verona.se>
14898
14899 * window.h (struct window): Add new member window_parameters.
14900
14901 * window.c (Fwindow_parameters, Fwindow_parameter)
14902 (Fset_window_parameter): New defuns.
14903 (syms_of_window): Defsubr the new defuns.
14904 (make_window): Initialize window_parameters to nil.
14905
149062008-06-04 John Paul Wallington <jpw@pobox.com>
14907
14908 * eval.c (Fdefmacro): Doc fix.
14909
149102008-06-04 Kenichi Handa <handa@m17n.org>
14911
14912 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14913 Be sure to call setup_coding_system when we find a proper coding system.
14914 (detect_coding_system): Fix handling of coding->head_ascii.
14915
149162008-06-03 Andreas Schwab <schwab@suse.de>
14917
14918 * font.c (font_prop_validate_spacing): Fix last change.
14919
149202008-06-03 Kenichi Handa <handa@m17n.org>
14921
14922 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14923 (font_parse_fcname): Fix handling of unknown key.
14924
14925 * xfont.c (xfont_list): Try an alias.
14926
14927 * charset.c (char_charset): Return NULL if the arg charset_list is
14928 specified and C doesn't belong to any of them.
14929
149302008-06-02 Chip Coldwell <coldwell@redhat.com>
14931
14932 * font.c (font_pixel_size): Don't take cdr of an integer.
14933
149342008-06-02 Jim Meyering <meyering@redhat.com>
14935
14936 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14937 * alloc.c (xfree): Return right away for a NULL arg.
14938 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14939 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14940 * mac.c (create_apple_event_from_event_ref): Likewise.
14941 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14942 Likewise.
14943 * doprnt.c (doprnt1): Likewise.
14944 * frame.c (frame): Likewise.
14945 * keyboard.c (wipe_kboard): Likewise.
14946 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14947 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14948 * term.c (tty_default_color_capabilities, maybe_fatal)
14949 (delete_tty): Likewise.
14950 * w16select.c (string): Likewise.
14951 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14952 * w32bdf.c (w32_free_bdf_font): Likewise.
14953 * w32fns.c (w32_unload_font): Likewise.
14954 * w32font.c (w32font_close): Likewise.
14955 * window.c (size_window): Likewise.
14956 * xselect.c (receive_incremental_selection): Likewise.
14957 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14958 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14959 * w32.c (stat): Likewise.
14960
14961 Remove useless if-before-free tests.
14962 * editfns.c (Fset_time_zone_rule): Likewise.
14963 * lread.c (nosuffix): Likewise.
14964 * ralloc.c (get_bloc): Likewise.
14965 * regex.c (reg_free): Likewise.
14966 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14967 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14968 * xsmfns.c (smc_save_yourself_CB): Likewise.
14969
149702008-06-02 Kenichi Handa <handa@m17n.org>
14971
14972 * font.c (font_find_for_lface): Handle float font size.
14973 (font_open_for_lface): Likewise.
14974
14975 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14976 comparing the properties.
14977
149782008-06-01 Jason Rumney <jasonr@gnu.org>
14979
14980 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14981 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14982 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14983 Don't add empty script list.
14984 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14985
149862008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14987
14988 * Makefile.in (dot, dotdot): Remove, update users.
14989 ".." has been used elsewhere in the file for a long time.
14990 (LIBXT_STATIC): Remove conditional based on unused variable.
14991
149922008-06-01 Miles Bader <miles@gnu.org>
14993
14994 * xfaces.c (Vface_remapping_alist): New variable.
14995 (syms_of_xfaces): Initialize it.
14996 (enum named_merge_point_kind): New type.
14997 (struct named_merge_point): Add `named_merge_point_kind' field.
14998 (push_named_merge_point): Make cycle detection respect different
14999 named-merge-point kinds.
15000 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15001 Remove face-name alias resolution.
15002 (lface_from_face_name): New definition using
15003 `lface_from_face_name_no_resolve'.
15004 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15005 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15006 (get_lface_attributes): New definition that layers face-remapping on
15007 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15008 (lookup_basic_face): New function.
15009 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15010 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15011 `get_lface_attributes'.
15012 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15013 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15014 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15015
15016 * xdisp.c (init_iterator): Pass base_face_id through
15017 `lookup_basic_face' when we actually use it as a face-id.
15018 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15019 DEFAULT_FACE_ID.
15020
15021 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15022 lookup the initial face-id.
15023
15024 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15025
150262008-06-01 Juanma Barranquero <lekktu@gmail.com>
15027
15028 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15029 (Fremove_text_properties): Fix typos in docstrings.
15030
150312008-05-31 Kenichi Handa <handa@m17n.org>
15032
15033 * font.c (font_list_entities): Fix the car part of data to be
15034 stored in the cache.
15035
15036 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15037
150382008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15039
15040 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15041 Add a `test' argument so another predicate than `equal' can be used.
15042 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15043 (map_char_table): Remove unused vars `c' and `i'.
15044 * lisp.h (Foptimize_char_table): Adjust declaration.
15045 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15046
150472008-05-30 Kenichi Handa <handa@m17n.org>
15048
15049 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15050 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15051 defined.
15052
150532008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15054
15055 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15056 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15057 frame-local settings for the same variable.
15058
150592008-05-30 Kenichi Handa <handa@m17n.org>
15060
15061 * fontset.c (Ffont_info): Move to font.c.
15062 (syms_of_fontset): Delete defsubr of Sfont_info.
15063
15064 * font.c (font_style_to_value, font_score): Delete casting of the
15065 args to xstcasecmp.
15066 (register_font_driver): Increment num_font_drivers only when
15067 registering the driver globally.
15068 (Ffont_info): Move from fontset.c. Handle a font object too.
15069 (syms_of_font): Defsubr Sfont_info.
15070
150712008-05-29 Kenichi Handa <handa@m17n.org>
15072
15073 * coding.h (enum define_coding_utf8_arg_index): New enum.
15074 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15075 coding_attr_utf_bom.
15076 (enum utf_bom_type): Rename from utf_16_bom_type.
15077 (struct utf_16_spec): Adjust for the above change.
15078 (struct coding_system): Add utf_8_bom in `spec' union.
15079
15080 * coding.c (CODING_UTF_8_BOM): New macro.
15081 (enum coding_category): Delete coding_category_utf_8, add
15082 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15083 coding_category_utf_8_sig.
15084 (CATEGORY_MASK_UTF_8): Delete it.
15085 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15086 (CATEGORY_MASK_UTF_8_SIG): New macros.
15087 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15088 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15089 CATEGORY_MASK_UTF_8_SIG.
15090 (CATEGORY_MASK_UTF_8): New macro.
15091 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15092 (detect_coding_utf_8): Check BOM.
15093 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15094 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15095 (encode_coding_utf_16): Likewise.
15096 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15097 (detect_coding, detect_coding_system): Handle utf-8-auto.
15098 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15099 (syms_of_coding): Fix setting up of Vcoding_category_table.
15100
151012008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15102
15103 * process.c (Faccept_process_output): If `millisec' is non-nil,
15104 `seconds' default to 0.
15105 (wait_reading_process_output): Also return non-nil if we read output
15106 from a non-running process.
15107
151082008-05-29 Jason Rumney <jasonr@gnu.org>
15109
15110 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15111 `raster' specified.
15112 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15113 in the uniscribe backend, but disallow any font that has no
15114 unicode subrange support.
15115
151162008-05-29 Juanma Barranquero <lekktu@gmail.com>
15117
15118 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15119 Fix typos in docstrings.
15120
151212008-05-29 Kenichi Handa <handa@m17n.org>
15122
15123 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15124 (Fx_family_fonts): Set frame correctly.
15125
151262008-05-28 Jason Rumney <jasonr@gnu.org>
15127
15128 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15129
151302008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15131
15132 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15133 calling build_annotations.
15134
151352008-05-28 Juanma Barranquero <lekktu@gmail.com>
15136
15137 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15138 (Fencode_coding_string):
15139 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15140 <latin-extra-code-table>: Fix typos in docstrings.
15141 (syms_of_coding) <coding-system-alist>: Doc fix.
15142 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15143
151442008-05-28 Kenichi Handa <handa@m17n.org>
15145
15146 * fontset.c (Ffont_info): Don't call font_close_object.
15147
15148 * font.c (font_parse_family_registry): Use Ffont_put to validate
15149 foundry and family.
15150 (font_delete_unmatched): Don't check spacing.
15151 (font_list_entities): Add spacing to the spec to list fonts.
15152
15153 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15154 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15155
15156 * coding.c (encode_coding_raw_text): Fix previous change.
15157 (encode_coding_object): When the dst_object is a buffer and is
15158 different from src_object, move gap to PT.
15159
151602008-05-27 Chong Yidong <cyd@stupidchicken.com>
15161
15162 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15163
151642008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15165
15166 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15167 all branches. Compute it differently.
15168
15169 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15170
151712008-05-27 Juanma Barranquero <lekktu@gmail.com>
15172
15173 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15174 into "else if () ... else ...".
15175
151762008-05-27 Jason Rumney <jasonr@gnu.org>
15177
15178 * w32font.c (w32font_open_internal): Determine if glyph indices
15179 are likely to work here.
15180
151812008-05-27 Chong Yidong <cyd@stupidchicken.com>
15182
15183 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15184 draw overlap glyphs with appropriate highlighting.
15185
151862008-05-27 Kenichi Handa <handa@m17n.org>
15187
15188 * xfont.c (xfont_open): Fix calculation of font->average_width.
15189
151902008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15191
15192 * casefiddle.c (casify_object): Try to guess better whether the
15193 argument is a byte or a char.
15194
151952008-05-26 Andreas Schwab <schwab@suse.de>
15196
15197 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15198 Always send multiples of format size.
15199
15200 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15201
152022008-05-26 Jason Rumney <jasonr@gnu.org>
15203
15204 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15205 (compute_metrics): Don't set failure if we just cleared the cache.
15206 (w32_weight_table): Remove unused variable.
15207 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15208 backwards compatibility.
15209
152102008-05-25 Kenichi Handa <handa@m17n.org>
15211
15212 * w32term.c (x_draw_glyph_string):
15213 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15214
15215 * xfaces.c: Delete unused function prototypes.
15216 (xstrlwr, font_frame): Delete them.
15217 (clear_face_cache): Delete unused variable.
15218
15219 * xftfont.c (xftfont_open): Delete unused variable.
15220 If underline_thickness is not 1, adjust underline_position.
15221
15222 * ftxfont.c (ftxfont_open): Delete unused variable.
15223
15224 * fontset.c (face_for_char): Optimize for the case of no charset
15225 property.
15226
15227 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15228 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15229 (otf_open, font_otf_capability, generate_otf_features)
15230 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15231 Comment out by surrounding "#if 0" and "#endif" for the moment.
15232 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15233 (syms_of_font): Codes for accessing above commented out.
15234
152352008-05-24 Eli Zaretskii <eliz@gnu.org>
15236
15237 * w32proc.c: Include dispextern.h.
15238
15239 * w32.c: Include dispextern.h.
15240
152412008-05-23 Juanma Barranquero <lekktu@gmail.com>
15242
15243 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15244 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15245 Fix typos in docstrings.
15246
152472008-05-23 Jason Rumney <jasonr@gnu.org>
15248
15249 * xsmfns.c: Remove includes that are already included by config.h.
15250
152512008-05-23 Kenichi Handa <handa@m17n.org>
15252
15253 * charset.c (Qemacs, charset_emacs): New variables.
15254 (char_charset): Fix for non-Unicode characters.
15255 (syms_of_charset): Define charset_emacs.
15256
15257 * w32term.c (x_draw_glyph_string): Be sure to update
15258 s->underline_thickness and s->underline_position. Be sure to draw
15259 underline within the current line area.
15260
15261 * xterm.c (x_draw_glyph_string): Be sure to update
15262 s->underline_thickness and s->underline_position. Be sure to draw
15263 underline within the current line area.
15264
15265 * fontset.c: Delete unused variables and add casting for char *
15266 throughout the file.
15267 (fontset_font): Try the fallback fonts of the current fontset
15268 before consulting the default fontset.
15269
15270 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15271
15272 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15273
152742008-05-22 Jason Rumney <jasonr@gnu.org>
15275
15276 * font.c: Don't include strings.h.
15277
15278 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15279
15280 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15281 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15282 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15283 to call xstrcasecmp.
15284
15285 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15286
15287 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15288
15289 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15290
15291 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15292
152932008-05-22 Kenichi Handa <handa@m17n.org>
15294
15295 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15296
15297 * font.c (font_prop_validate_style): Adjust for the format
15298 change of font_style_table.
15299
15300 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15301 two args.
15302
15303 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15304 two args.
15305
153062008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15307
15308 * minibuf.c (keys_of_minibuf): Delete.
15309 * lisp.h (keys_of_minibuf): Delete.
15310 * emacs.c (main): Don't call keys_of_minibuf.
15311
153122008-05-22 Kenichi Handa <handa@m17n.org>
15313
15314 * ftfont.c (ftfont_resolve_generic_family): Rename from
15315 ftfont_list_generic_family. Return a single family for each
15316 generic family.
15317 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15318 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15319 Call font_add_log.
15320 (ftfont_match): Call font_add_log.
15321
15322 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15323 (FONT_DEBUG): Define it.
15324 (font_add_log): Extern it.
15325 (font_assert): Rename from xassert.
15326
15327 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15328 (xfont_list_family): Call font_add_log.
15329 (xfont_match): Likewise.
15330 (memq_no_quit): Delete.
15331
15332 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15333 call of Ffont_xlfd_name.
15334
15335 * xfaces.c (struct table_entry, slant_table, weight_table)
15336 (swidth_table): Move to font.c.
15337
15338 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15339 xassert are changed to font_assert. Delete many unused variables.
15340 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15341 New variables.
15342 (struct table_entry): Move from xfaces.c and modified.
15343 (weight_table, slant_table, width_table): Move from xfaces.c and
15344 contents adjusted for the change of struct table_entry.
15345 (font_style_to_value, font_style_symbolic): Adjust for the
15346 format change of font_style_table.
15347 (font_parse_family_registry): Don't overwrite existing foundry and
15348 family of font_spec.
15349 (font_score): Fix calculation of diff for sizes.
15350 (font_sort_entites): Call font_add_log.
15351 (font_delete_unmatched): Return a newly created list.
15352 (font_list_entities): Fix previous change. Call font_add_log.
15353 (font_matching_entity, font_open_entity, font_close_entity):
15354 Call font_add_log.
15355 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15356 (Finternal_set_font_style_table): Delete.
15357 (BUILD_STYLE_TABLE): New macro.
15358 (build_style_table): New function.
15359 (Vfont_log, font_log_env_checked): New variables.
15360 (font_add_log): New function.
15361 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15362 Declare Lisp variables "font-weight-table", "font-slant-table",
15363 "font-width-table", and "font-log". Initialize font_style_table.
15364
153652008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15366
15367 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15368
153692008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15370 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15371
15372 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15373 (Vframe_alpha_lower_limit): New variable.
15374 (x_set_alpha): New function.
15375
15376 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15377
15378 * xfns.c (x-create-frame, Qalpha):
15379 Initialize the frame parameter `alpha'.
15380 * xterm.c (OPAQUE, OPACITY): New.
15381 (x_set_frame_alpha): New function.
15382 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15383
15384 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15385 * w32fns.c (w32_frame_parm_handlers): Likewise.
15386
153872008-05-20 Jason Rumney <jasonr@gnu.org>
15388
15389 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15390 truetype fonts to opentype list.
15391
153922008-05-20 Juanma Barranquero <lekktu@gmail.com>
15393
15394 * fontset.c (Ffontset_info): Doc fix.
15395 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15396 <ignore-relative-composition>: Fix typos in docstrings.
15397
15398 * font.c (syms-of-font) <font-encoding-alist>:
15399 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15400 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15401 (Ffont_otf_alternates): Doc fixes.
15402
154032008-05-20 Kenichi Handa <handa@m17n.org>
15404
15405 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15406 font.h through out the file.
15407 (FONT_DRIVERS): Rename from FONTOBJ.
15408 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15409 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15410
15411 * emacs.c (main): Call syms_of_font unconditionally.
15412
15413 * font.h (find_font_encoding): Extern it.
15414
15415 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15416 fontset.c.
194d44e7 15417 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15418 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15419 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15420 only when HAVE_WINDOW_SYSTEM is defined.
15421 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15422 when HAVE_WINDOW_SYSTEM is defined.
15423
15424 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15425 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15426
15427 * xfaces.c: Include font.h unconditionally.
15428 (merge_face_ref, merge_face_vectors)
15429 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15430
154312008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15432
15433 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15434 indirect_variable.
15435 * eval.c (lisp_indirect_variable): New fun.
15436 (Fuser_variable_p): Use it.
15437
154382008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15439
15440 * lisp.h (indirect_variable):
15441 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15442 Use Lisp_Symbol pointers rather than Lisp_Object.
15443 Adjust callers.
15444 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15445 To this end, change calling-convention.
15446
15447 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15448 if some non-hidden buffers are selected by string&pred.
15449
154502008-05-19 Chong Yidong <cyd@stupidchicken.com>
15451
15452 * process.c (wait_reading_process_output): Always check status
15453 when in batch mode.
15454
154552008-05-19 Kenichi Handa <handa@m17n.org>
15456
15457 * font.c (font_list_entities): Fix handling of cache.
15458 (font_matching_entity): Likewise.
15459
15460 * ftfont.c (cs_iso8859_1): Delete.
15461 (ft_face_cache): New variable.
15462 (struct ftfont_info): New member fc_charset_idx.
15463 (ftfont_build_basic_charsets): Delete.
15464 (fc_charset_table): New variable.
15465 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15466 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15467 Callers changed.
15468 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15469 (ftfont_spec_pattern): New argument fc_charset_idx.
15470 Check registry more rigidly. Change callers.
15471 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15472 change of :font-entity property of the font.
15473
15474 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15475 property of the font.
15476
154772008-05-18 Juanma Barranquero <lekktu@gmail.com>
15478
15479 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15480 (Funencodable_char_position, Fcheck_coding_systems_region)
15481 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15482 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15483 (Ffind_operation_coding_system, Fset_coding_system_priority)
15484 (Fcoding_system_eol_type): Doc fixes.
15485
154862008-05-17 Glenn Morris <rgm@gnu.org>
15487
15488 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15489
154902008-05-16 Eli Zaretskii <eliz@gnu.org>
15491
15492 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15493 and st_gid.
15494
15495 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15496 HAVE_WINDOW_SYSTEM is not defined.
15497
15498 * xfaces.c (merge_face_ref, merge_face_vectors)
15499 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15500 HAVE_WINDOW_SYSTEM is defined.
15501 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15502
155032008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15504
15505 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15506
155072008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15508
15509 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15510
155112008-05-15 Kenichi Handa <handa@m17n.org>
15512
15513 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15514 preference.
15515
155162008-05-15 Glenn Morris <rgm@gnu.org>
15517
15518 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15519
155202008-05-15 Chong Yidong <cyd@stupidchicken.com>
15521
15522 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15523 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15524
15525 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15526
155272008-05-15 Kenichi Handa <handa@m17n.org>
15528
15529 * ftfont.c (ftfont_list): Downcase family name to check generic
15530 families.
15531
15532 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15533 font-spec for QCfont value.
15534
15535 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15536 buffer. Check the return value of it.
15537
155382008-05-14 Jason Rumney <jasonr@gnu.org>
15539
15540 * w32term.c (w32_get_glyph_overhangs): Remove.
15541 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15542
155432008-05-14 Kenichi Handa <handa@m17n.org>
15544
15545 * font.c (font_prop_validate): Make nil a valid value.
15546 (font_clear_cache): Check if the cached vector of entities is nil
15547 or not.
15548
155492008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15550
15551 * emacs.c (main_thread): Conditionalize on
15552 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15553 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15554
15555 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15556 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15557 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15558
155592008-05-14 Kenichi Handa <handa@m17n.org>
15560
15561 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15562 has no corresponding coding system.
15563
155642008-05-14 Jason Rumney <jasonr@gnu.org>
15565
15566 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15567
15568 * w32font.h (w32font_open_internal): Update declaration.
15569
15570 * w32font.c (w32font_open_internal): Change last argument from
15571 w32font_info struct to font object. Fill in font object from
15572 font_entity. Get Outline metrics if possible. Use them to
15573 calculate underline position and thickness. Use xlfd name as name
15574 property. Don't set codepage.
15575 (w32font_open): Pass font_object to w32font_open_internal. Don't
15576 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15577 (w32font_draw): Use s->font.
15578 (clear_cached_metrics): Don't clear non-existent blocks.
15579
15580 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15581 font was not found.
15582 (x_draw_glyph_string): Use underline position and thickness from font.
15583
15584 * w32uniscribe.c (uniscribe_open): Pass font_object to
15585 w32font_open_internal.
15586
155872008-05-14 Kenichi Handa <handa@m17n.org>
15588
15589 These changes are to delete all legacy font-handling codes, and
15590 make Emacs use only font-backends.
15591
15592 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15593 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15594
15595 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15596
15597 * charset.h (Vcharset_non_preferred_head)
15598 (Vcurrent_iso639_language): Extern them.
15599
15600 * charset.c (Vcharset_non_preferred_head): New variable.
15601 (Vcurrent_iso639_language): New variable.
15602 (syms_of_charset): Declare it as a Lisp variable.
15603 (char_charset): Don't check non preferred charsets. As a last
15604 resort, return charset_unicode.
15605 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15606
15607 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15608 conditionals. Don't check enable_font_backend. Delete all codes
15609 used only when USE_FONT_BACKEND is not defined.
15610
15611 * dispextern.h (struct glyph_string): Change type of `font' to
15612 `struct font *'.
15613 (struct glyph_string): New member underline_position and
15614 underline_thickness.
15615 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15616 (struct face): Change type of `font' to `struct font *'. Remove
15617 members `font_name', `font_info_id'.
15618 (per_char_metric, encode_char): Delete externs.
15619 (calc_pixel_width_or_height): Adjust the prototype.
15620
15621 * emacs.c (enable_font_backend): Delete extern.
15622 (main): Don't set enable_font_backend. Don't check the command
15623 line argument "-disable-font-backend".
15624
15625 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15626 (enum font_property_index): New members FONT_DPI_INDEX,
15627 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15628 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15629 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15630 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15631 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15632 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15633 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15634 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15635 (struct font_spec, struct font_entity): New structs.
15636 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15637 (struct font): Many members from old "struct font_info" moved to
15638 here. Members font and entity deleted.
15639 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15640 the new font-related objects.
15641 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15642 (CHECK_FONT_GET_OBJECT): Likewise.
15643 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15644 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15645 (struct font_driver): New members case_sensitive anc check. Type
15646 of the member list and open changed.
15647 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15648 (font_symbolic_width, font_find_object, font_get_spec)
15649 (font_set_lface_from_name): Delete extern.
15650 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15651
15652 * font.c: Include <strings.h>.
15653 (enable_font_backend): Delete it.
15654 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15655 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15656 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15657 (null_string): Delete it.
15658 (null_vector): Make it static.
15659 (font_family_alist): Delete it.
15660 (Qnormal): Extern it.
15661 (QCextra, QClanguage): Delete it.
15662 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15663 (font_make_spec, font_make_entity, font_make_object)
15664 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15665 the string. Callers changed.
15666 (font_pixel_size): Adjusted for the format change of font-related
15667 objects.
15668 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15669 (font_style_to_value, font_style_symbolic): New function.
15670 (build_font_family_alist): Delete it.
15671 (font_registry_charsets): Use Fassoc_string instead of
15672 assq_no_quit.
15673 (font_prop_validate_symbol): Don't return null_string.
15674 (font_prop_validate_style): Adjusted for the change of
15675 style-related values in a font vector.
15676 (font_property_table): Delete entries for QClanguage and
15677 QCantialias, add entries for QCavgwidth.
15678 (get_font_prop_index): Delete the 2nd argument FROM.
15679 (font_prop_validate): Arguments changed.
15680 (font_put_extra): Adjusted for the change of font-related objects.
15681 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15682 (font_parse_fcname, font_unparse_fcname)
15683 (font_prepare_composition): Likewise.
15684 (font_parse_family_registry): Renamed from font_merge_old_spec.
15685 (otf_open): Delete the 1st arg entity.
15686 (font_otf_capability): Adjusted for the above change.
15687 (font_score): New arg alternate_families. Adjusted for the change
15688 of font-related objects.
15689 (font_sort_entites): New arg best_only.
15690 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15691 Delete them.
15692 (font_match_p): Check alternate families.
15693 (font_find_object): Delete it.
15694 (font_check_object): New function.
15695 (font_clear_cache): Adjusted for the change of font-related objects.
15696 (font_delete_unmatched): New arg.
15697 (font_list_entities): Call font_driver->list with a spec that
15698 doesn't specify style-related properties.
15699 (font_matching_entity): Arguments changed. Caller changed.
15700 (font_open_entity): Adjusted for the change of font-related objects.
15701 (font_close_object, font_has_char, font_encode_char)
15702 (font_get_name, font_get_spec): Likewise.
15703 (font_spec_from_name, font_clear_prop, font_update_lface):
15704 New functions.
15705 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15706 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15707 (font_at): Adjusted for the change of font-related objects.
15708 (font_range): New function.
15709 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15710 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15711 (Fcopy_font_spec, Fmerge_font_spec): New function.
15712 (Ffont_family_list): Renamed from list-families.
15713 (Finternal_set_font_style_table): Arguments changed.
15714 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15715 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15716 change of font-related objects.
15717 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15718
15719 * fontset.h (struct font_info): Delete it. Most members go to
15720 struct font.
15721 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15722 (enum FONT_SPEC_INDEX): Delete it.
15723 (font_info, list_fonts_func, load_font_func, query_font_func)
15724 (set_frame_fontset_func, find_ccl_program_func)
15725 (get_font_repertory_func, new_fontset_from_font_name): Delete
15726 externs.
15727 (fontset_from_font_name): Extern it.
15728 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15729 (FONT_INFO_FROM_FACE): Deleted.
15730 (face_for_font): Adjust prototype.
15731
15732 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15733 conditionals. Don't check enable_font_backend. Delete all codes
15734 used only when USE_FONT_BACKEND is not defined.
15735 (get_font_info_func, list_font_func, load_font_func)
15736 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15737 (get_font_repertory_func): Delete them.
15738 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15739 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15740 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15741 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15742 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15743 (fontset_compare_rfontdef): New function.
15744 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15745 rfont-defs by qsort. Adjusted for the change of font-group vector.
15746 (load_font_get_repertory): Deleted.
15747 (fontset_find_font): Use new macros to ref/set elements of
15748 font-def and rfont-def.
15749 (fontset_font): Fix the timing of remembering that no font for C.
15750 (free_face_fontset): Do nothing if the face has no fontset.
15751 (face_suitable_for_char_p): Use new macros to ref/set elements of
15752 rfont-def.
15753 (face_for_char): Likewise. Call face_for_char with font_object.
15754 (fs_load_font): Delete. Delete #pragma surrounding it.
15755 (fs_query_fontset): Use strcasecmp instead of strcmp.
15756 (generate_ascii_font_name): Adjusted for the format change of
15757 font-spec.
15758 (Fset_fontset_font): Likewise. Use new macros to set elements of
15759 font-def.
15760 (Fnew_fontset): Use font_unparse_xlfd to generate
15761 FONTSET_ASCII (fontset).
15762 (new_fontset_from_font_name): Deleted.
15763 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15764 a fontset is already created for the font. FIx updating of
15765 Vfontset_alias_alist.
15766 (fontset_ascii_font): Deleted.
15767 (Ffont_info): Adjusted for the format change of font-spec.
15768 (Finternal_char_font): Likewise.
15769 (Ffontset_info): Likewise.
15770 (syms_of_fontset): Don't check load_font_func.
15771
15772 * fns.c (internal_equal): Handle PREV_FONT.
15773
15774 * frame.h: Delete USE_FONT_BACKEND conditional.
15775
15776 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15777 conditionals. Don't check enable_font_backend. Delete all codes
15778 used only when USE_FONT_BACKEND is not defined.
15779 (x_set_font): Call x_new_font, not x_new_fontset2.
15780 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15781 already set for the frame.
15782
15783 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15784 a font-entity by font_make_entity. Use font_intern_prop instead
15785 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15786 font property. If a font is scalable, set avgwidth property to 0.
15787 Set font-entity property by font_put_extra.
15788 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15789 (ffont_driver): Adjusted for the change of struct font_driver.
15790 (ftfont_spec_pattern): New function.
15791 (ftfont_list): Return a list, not vector.
15792 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15793 (ftfont_list_family): Don't downcase names.
15794 (ftfont_free_entity): Deleted.
15795 (ftfont_open): Return a font-object. Adjusted for the change of
15796 struct font. Get underline_thickness and underline_position from
15797 font property. Don't update dpyinfo->smallest_font_height and
15798 dpyinfo->smallest_char_width.
15799 (ftfont_close): Don't free `struct font'.
15800 (ftfont_has_char): Adjusted for the format change of font-entity.
15801 (ftfont_encode_char, ftfont_text_extents): Likewise.
15802
15803 * ftxfont.c (ftxfont_list): Return a list, not vector.
15804 (ftxfont_open): Return a font-object. Adjusted for the change of
15805 struct font. Get underline_thickness and underline_position from
15806 font property. Don't update dpyinfo->smallest_font_height and
15807 dpyinfo->smallest_char_width.
15808 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15809 (ftxfont_draw): Adjusted for the change of struct font.
15810
15811 * image.c (image_ascent): Don't include "charset.h". Include
15812 "character.h" and "font.h".
15813
15814 * lisp.h (enum pvec_type): New member PREV_FONT.
15815 (Fassoc_string): EXFUN it.
15816
15817 * print.c: Include font.h.
15818 (print_object): Handle font-related objects.
15819
15820 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15821 conditionals. Don't check enable_font_backend. Delete all codes
15822 used only when USE_FONT_BACKEND is not defined.
15823 (handle_auto_composed_prop): Do nothing if it->f is not on a
15824 window system. Check how many following characters can be
15825 displayed by the same font.
15826 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15827 'struct font *'.
15828 (get_char_face_and_encoding): Assign the whole encoding task to
15829 the `encode-char' method of a font driver.
15830 (fill_composite_glyph_string): Adjusted for the change of `struct
15831 face' and `struct glyph_string'.
15832 (fill_glyph_string): Likewise.
15833 (get_per_char_metric): Arguments changed.
15834 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15835 and `struct glyph_string'.
15836 (produce_stretch_glyph, calc_line_height_property)
15837 (x_produce_glyphs): Likewise.
15838
15839 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15840 conditionals. Don't check enable_font_backend. Delete all codes
15841 used only when USE_FONT_BACKEND is not defined. Use
15842 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15843 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15844 (Qp): Extern them.
15845 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15846 Deleted.
15847 (struct font_name): Deleted.
15848 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15849 (compare_fonts_by_sort_order): New function.
15850 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15851 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15852 Deleted.
15853 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15854 compare_fonts_by_sort_order.
15855 (Fx_font_family_list): Call Ffont_family_list.
15856 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15857 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15858 (face_symbolic_slant, face_symbolic_swidth)
15859 (split_font_name_into_vector, build_font_name_from_vector)
15860 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15861 (font_rescale_ratio, split_font_name, build_font_name)
15862 (free_font_names, sort_fonts, x_face_list_fonts)
15863 (face_font_available_p, sorted_font_list, cmp_font_names)
15864 (font_list_1, concat_font_list, font_list, remove_duplicates):
15865 Deleted.
15866 (Fx_list_fonts): Use Ffont_list.
15867 (LFACE_AVGWIDTH): Deleted.
15868 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15869 by FONTP.
15870 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15871 (set_lface_from_font_name): Delete it.
15872 (set_lface_from_font): Renamed from
15873 set_lface_from_font_and_fontset. Caller changed. Don't set
15874 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15875 for face.
15876 (merge_face_vectors): Copy font-spec if necessary.
15877 Clear properties of the font-spec if necessary.
15878 (merge_face_ref): Clear properties of the font-spec if necessary.
15879 (Finternal_set_lisp_face_attribute): Likewise.
15880 (set_font_frame_param): Use font_load_for_lface to load a
15881 font-object, and call Fmodify_frame_parameters with it.
15882 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15883 font name by Ffont_xlfd_name.
15884 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15885 QCslant, and QCwidth.
15886 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15887 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15888 Compare fonts by EQ.
15889 (lookup_non_ascii_face): Deleted.
15890 (face_for_font): The 2nd argument changed.
15891 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15892 Check atomic font properties by case insensitive.
15893 (realize_non_ascii_face): Set face->overstrike correctly.
15894 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15895 (dump_realized_face): Get font name from
15896 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15897
15898 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15899 conditionals. Don't check enable_font_backend. Delete all codes
15900 used only when USE_FONT_BACKEND is not defined.
15901 (xic_create_xfontset): Original code deleted and renamed from
15902 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15903 (x_make_gc): Don't set GCFont in GCs.
15904 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15905 opened by "fixed".
15906 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15907 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15908 get_font_repertory_func.
15909
15910 * xfont.c: Include <stdlib.h> and "ccl.h".
15911 (struct xfont_info): New structure.
15912 (xfont_query_font): Deleted.
15913 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15914 moved from xterm.c.
15915 (xfont_driver): Adjusted for the change of struct font_driver.
15916 (compare_font_names): New function.
15917 (xfont_list_pattern): Sort font names case insensitively. Make
15918 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15919 (xfont_list): Return a list, not vector.
15920 (xfont_match): If the font doesn't have QCname property, generate
15921 a name from the other font properties.
15922 (xfont_open): Return a font-object. Adjusted for the change of
15923 struct font. Get underline_thickness and underline_position from
15924 font property. Don't update dpyinfo->smallest_font_height and
15925 dpyinfo->smallest_char_width.
15926 (xfont_close): Don't free struct font.
15927 (xfont_prepare_face): Adjusted for the change of struct font.
15928 (xfont_done_face): Deleted.
15929 (xfont_has_char): Adjusted for the change of struct font.
15930 (xfont_encode_char, xfont_draw): Likewise.
15931 (xfont_check): New function.
15932
15933 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15934 callback function.
15935 (xftfont_match): Adjusted for the format change of font-entity.
15936 (xftfont_open): Adjusted for the format change of font-entity and
15937 font-object. Adjusted for the change of struct font. Return a
15938 font-object. Don't update dpyinfo->smallest_font_height and
15939 dpyinfo->smallest_char_width.
15940 (xftfont_close): Block input while calling XftFontClose.
15941 (xftfont_prepare_face): Don't block input while calling
15942 xftfont_get_colors. Adjusted for the change of struct font.
15943 (xftfont_shape): Return value of error case fixed.
15944
15945 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15946
15947 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15948 conditionals.
15949 (FONT_WIDTH): Return (f)->max_width.
15950 (struct x_display_info): Delete member `font'.
15951 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15952 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15953 (struct x_output): Change type of `font' to `struct font *'.
15954
15955 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15956 conditionals. Don't check enable_font_backend. Delete all codes
15957 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15958 (x_per_char_metric, x_encode_char): Deleted.
15959 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15960 (x_compute_glyph_string_overhangs): Adjusted for the change of
15961 `struct face'.
15962 (x_draw_glyph_string_foreground)
15963 (x_draw_composite_glyph_string_foreground): Likewise.
15964 (x_draw_glyph_string): Likewise. Use font->underline_position and
15965 font->underline_thickness.
15966 (x_new_font): Renamed from x_new_fontset2.
15967 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15968 (x_check_font): Call `check' method of a font driver.
15969 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15970 (x_query_font, x_get_font_repertory): Deleted.
15971 (x_find_ccl_program): Renamed and moved to xfont.c.
15972 (x_redisplay_interface): Adjusted for the change of `struct
15973 redisplay_interface'.
15974
15975 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15976 conditionals. Don't check enable_font_backend. Delete all codes
15977 used only when USE_FONT_BACKEND is not defined. Surround non-used
15978 code by "#ifdef OLD_FONT" and "endif".
15979 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15980
15981 * w32font.h (struct w32font_info): New member.
15982 (FONT_COMPAT): New macro.
15983 (w32font_open_internal): Prototype adjusted.
15984
15985 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15986 OLD_FONT" and "endif".
15987
15988 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15989 conditionals. Don't check enable_font_backend. Delete all codes
15990 used only when USE_FONT_BACKEND is not defined.
15991 (w32font_open): Return a font-object. Make a font-object by
15992 font_make_object. Adjusted for the change of struct w32font_info.
15993 (w32font_close): Don't free struct font. Adjusted for the change
15994 of struct w32font_info.
15995 (w32font_encode_char, w32font_text_extents, w32font_draw):
15996 Adjusted for the change of struct w32font_info.
15997 (w32font_draw): Likewise.
15998 (w32font_list_internal): Return a list, not vector.
15999 (w32font_open_internal): Change the 4th arg to font-object.
16000 Adjusted for the change of struct w32font_info and font-object format.
16001 (add_font_name_to_list): Don't downcase names.
16002 (w32_enumfont_pattern_entity): Make a font-entity by
16003 font_make_entity. Adjusted for the format change of font-entity.
16004 Use FONT_SET_STYLE to set a style-related font property. If a
16005 font is scalable, set avgwidth property to 0. Set font-entity
16006 property by font_put_extra.
16007 (font_matches_spec): Adjusted for the format change of font-entity.
16008 (w32_weight_table, w32_decode_weight): New variables.
16009 (w32_encode_weight): New function.
16010 (fill_in_logfont): Adjusted for the format change of font-spec.
16011 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16012 weight value.
16013 (w32font_driver): Adjusted for the change of struct font_driver.
16014
16015 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16016 conditionals. Don't check enable_font_backend. Surround non-used
16017 code by "#ifdef OLD_FONT" and "endif".
16018 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16019 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16020
16021 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16022 conditionals. Don't check enable_font_backend. Delete all codes
16023 used only when USE_FONT_BACKEND is not defined. Surround non-used
16024 code by "#ifdef OLD_FONT" and "endif".
16025
16026 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16027 (uniscribe_open): Return value changed to font-object.
16028 Adjusted for the format change of font-object.
16029 (uniscribe_otf_capability): Adjusted for the change of struct font.
16030 (add_opentype_font_name_to_list): Don't downcase names.
16031 (uniscribe_font_driver): Adjusted for the change of struct
16032 font_driver.
16033
160342008-05-13 Chong Yidong <cyd@stupidchicken.com>
16035
16036 * dispnew.c (update_frame_1): Check if tty output is still valid
16037 before flushing it.
16038
160392008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16040
16041 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16042 to Gtk+ menus.
16043
160442008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16045
16046 * dired.c (file_name_completion): Tweak the code so as to always do it
16047 in a single pass. Tighten the scope of some variables.
16048
16049 * dired.c (Qdefault_directory): New var.
16050 (file_name_completion): Use it instead of Fexpand_file_name.
16051 (syms_of_dired): Initialize it.
16052
160532008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16054
16055 * fileio.c (double_dollars): Remove dead code.
16056
160572008-05-10 Eli Zaretskii <eliz@gnu.org>
16058
16059 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16060 Mention w32-get-true-file-attributes in doc string.
16061
16062 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16063
160642008-05-09 Glenn Morris <rgm@gnu.org>
16065
16066 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16067 2008-04-23.
16068
160692008-05-09 Eli Zaretskii <eliz@gnu.org>
16070
16071 Support for reporting owner and group of each file on MS-Windows:
16072 * dired.c (stat_uname, stat_gname): New functions, with special
16073 implementation for w32.
16074 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16075
16076 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16077 (dflt_group_name): New static variable.
16078 (dflt_group): Rename from the_group.
16079 (init_user_info): Init dflt_group fields. Get user's group name
16080 from LookupAccountSid.
16081 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16082 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16083 New initialization states.
16084 (globals_of_w32): Initialize them to zero. Initialize the default
16085 group name to "None".
16086 (GetFileSecurity_Name): New global var, the name of the function
16087 to call for GetFileSecurity.
16088 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16089 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16090 (get_file_security, get_security_descriptor_owner)
16091 (get_security_descriptor_group, is_valid_sid)
16092 (get_file_security_desc, get_rid, get_name_and_id)
16093 (get_file_owner_and_group): New functions.
16094 (stat): Use get_file_security_desc and get_file_owner_and_group to
16095 report the owner and primary group of each file. Don't ignore the
16096 high 32 bits of file's size, now that st_size is 64-bit wide.
16097 Fix test when to get true file attributes.
16098 (init_user_info): Use get_rid instead of equivalent inline code.
16099 (fstat): Don't ignore the high 32 bits of file's size.
16100
161012008-05-09 Chong Yidong <cyd@stupidchicken.com>
16102
16103 * image.c (png_load): Use correct bit-depth for setting background
16104 color.
16105
161062008-05-08 Eli Zaretskii <eliz@gnu.org>
16107
16108 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16109 epa-hook.elc.
16110
161112008-05-08 Juanma Barranquero <lekktu@gmail.com>
16112
16113 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16114
161152008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16116
16117 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16118 because the original parameters are in pure storage now.
16119 (mac_window): Remove unused params. Update callers.
16120
161212008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16122
16123 * lread.c (substitute_object_recurse): Use lower-level primitives.
16124 Don't signal errors when traversing sub-char-tables.
16125 Don't loop over all the possible characters when traversing char-tables.
16126
16127 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16128 just like we do in print.c.
16129
161302008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16131
16132 * minibuf.c (Ftry_completion): Remove code left over from when we used
16133 scmp instead of Fcompare_strings.
16134
161352008-05-04 Juanma Barranquero <lekktu@gmail.com>
16136
16137 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16138
161392008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16140
16141 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16142 Create bitmap context in native byte order.
16143
16144 * macterm.c (XDrawLine)
16145 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16146 context in native byte order.
16147
161482008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16149
16150 * config.in: Regenerate.
16151
16152 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16153 New definitions for Image I/O support.
16154 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16155 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16156 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16157 (mac_data_provider_release_data, image_load_image_io)
16158 [USE_MAC_IMAGE_IO]: New functions.
16159 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16160 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16161 (init_image_func_pointer) [MAC_OSX]: Remove function.
16162 (image_load_quartz2d) [MAC_OSX]: Check availability of
16163 CGImageCreateWithPNGDataProvider at compile time.
16164 Use lowercase `false' for boolean constant.
16165 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16166 Use image_load_image_io.
16167 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16168 Don't check MyCGImageCreateWithPNGDataProvider.
16169 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16170 Don't call init_image_func_pointer.
16171
16172 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16173
16174 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16175 Make variable non-static.
16176 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16177 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16178
16179 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16180 (RED_FROM_ULONG): Mask off higher bits.
16181 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16182
16183 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16184 Include AvailabilityMacros.h.
16185 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16186 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16187
161882008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16189
16190 * chartab.c (Fset_char_table_range): If range is t, really set all
16191 chars to that value.
16192
161932008-05-03 Eli Zaretskii <eliz@gnu.org>
16194
16195 * dired.c (Ffile_attributes): Don't allow the device number become
16196 negative.
16197
161982008-05-02 Daiki Ueno <ueno@unixuser.org>
16199
16200 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16201
162022008-05-02 Juri Linkov <juri@jurta.org>
16203
16204 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16205 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16206 DEFAULT argument as a list of default values in docstrings.
16207
162082008-05-01 Chong Yidong <cyd@stupidchicken.com>
16209
16210 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16211
162122008-05-01 Martin Rudalics <rudalics@gmx.at>
16213
16214 * dispnew.c (change_frame_size_1): Preserve small windows when
16215 shrinking frames by calling set_window_height|width with third
16216 arg 2.
16217
16218 * window.h (struct window): Replace field too_small_ok by field
16219 resize_proportionally.
16220
16221 * window.c (make_window): Initialize resize_proportionally.
16222 (enlarge_window): Temporarily set resize_proportionally to make
16223 sure that shrink_windows does scale the window proportionally.
16224 (shrink_windows): When window has resize_proportionally set try
16225 to shrink it proportionally by stealing from other windows.
16226 (struct saved_window, Fset_window_configuration)
16227 (compare_window_configurations): Handle resize_proportionally.
16228 (WINDOW_TOTAL_SIZE): New macro.
16229 (window_min_size, shrink_windows, size_window): Use it.
16230 (check_min_window_sizes): Remove. Invalid values of
16231 window-min-height|width are handled by window_min_size_2 now.
16232 (size_window, Fsplit_window, enlarge_window)
16233 (adjust_window_trailing_edge, grow_mini_window): Don't call
16234 check_min_window_sizes.
16235 (window_min_size_2, window_min_size_1, window_min_size):
16236 New argument safe_p for retrieving "safe" minimum sizes.
16237 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16238 (adjust_window_trailing_edge, grow_mini_window):
16239 Adjust arguments of window_min_size... functions.
16240 (shrink_windows): Argument min_size removed. New argument
16241 safe_p allows shrinking windows to their safe minimum sizes.
16242 Calculate minimum size and decide whether a window shall be
16243 deleted for each window individually.
16244 (size_window): When nodelete_p equals 2, tell shrink_windows to
16245 delete windows only if their new minimum size is no more safe.
16246 (shrink_window_lowest_first): Call window_min_size_1 to make
16247 sure to preserve modeline of bottom-most window when resizing
16248 the minibuffer.
16249 (Fset_window_configuration, Fcurrent_window_configuration)
16250 (compare_window_configurations): Do not handle
16251 window-min-height|width any more.
16252 (syms_of_window): Clarify window-min-height|width doc-strings.
16253
162542008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16255
16256 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16257 some more. Copy some of the code from Ftry_completions.
16258 Remove special case code that dates back to initial revision when the
16259 slash was only added when necessary and that can't trigger nowadays.
16260
162612008-04-27 Kenichi Handa <handa@m17n.org>
16262
16263 * font.c (font_prop_validate): Signal `error' instead of `font'.
16264
162652008-04-29 Jason Rumney <jasonr@gnu.org>
16266
16267 * w32fns.c (Fw32_battery_status): New defun.
16268 (syms_of_w32fns): Defsubr it.
16269
162702008-04-28 Andreas Schwab <schwab@suse.de>
16271
16272 * dired.c (file_name_completion): Fix another mixing of encoded
16273 and decoded names.
16274
162752008-04-28 Juanma Barranquero <lekktu@gmail.com>
16276
16277 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16278
162792008-04-27 Juanma Barranquero <lekktu@gmail.com>
16280
16281 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16282
162832008-04-27 Andreas Schwab <schwab@suse.de>
16284
16285 * dired.c (file_name_completion): Fix inappropriate mixing of
16286 encoded and decoded names.
16287
16288 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16289
16290 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16291
162922008-04-26 Eli Zaretskii <eliz@gnu.org>
16293
16294 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16295 2008-03-31, it's not needed anymore with `struct stat' definition
16296 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16297 for the same reasons.
16298
162992008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16300
16301 * m/sparc.h: Additional redefinitions for GNU/Linux.
16302
163032008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16304
16305 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16306 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16307 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16308 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16309 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16310 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16311 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16312 Likewise.
16313
16314 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16315 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16316 (mac_ax_number_of_characters): Add externs.
16317 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16318 [USE_MAC_TSM]: Likewise.
16319 (mac_handle_text_input_event) [MAC_OSX]:
16320 Handle kEventTextInputOffsetToPos for no active input area case.
16321 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16322 (mac_handle_document_access_event)
16323 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16324 (install_application_handler) [MAC_OSX]: Register handlers for
16325 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16326 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16327 Register mac_handle_document_access_event.
16328
16329 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16330 Make functions non-static.
16331
163322008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16333
16334 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16335 (read_file_name_completion_ignore_case, insert_default_directory)
16336 (Qdefault_directory): Move to minibuffer.el.
16337 (Fread_file_name): Call the new `read-file-name' instead.
16338
163392008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16340
16341 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16342 Make function non-static.
16343 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16344 Remove function.
16345 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16346 Move to mactoolbox.c.
16347 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16348
16349 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16350 (mac_rect_make): New macro.
16351
16352 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16353 instead of float.
16354 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16355 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16356 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16357 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16358 CGRectMake.
16359 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16360 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16361 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16362 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16363 instead of WindowRef in argument type.
16364 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16365 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16366 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16367 instead of DISPLAY. All uses changed.
16368 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16369 (x_calc_absolute_position): Simplify so as not to use
16370 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16371
16372 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16373 instead of WindowRef in argument type.
16374 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16375 [TARGET_API_MAC_CARBON]: Remove externs.
16376 (create_apple_event, mac_event_parameters_to_lisp)
16377 [TARGET_API_MAC_CARBON]: Add externs.
16378
16379 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16380 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16381 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16382 is clicked.
16383 (x_activate_menubar): Remove extern for saved_menu_event_location.
16384 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16385 Move from mac.c.
16386
163872008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16388
16389 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16390 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16391
163922008-04-23 Jason Rumney <jasonr@gnu.org>
16393
16394 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16395 attributes only for local files.
16396
16397 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16398 default to Qlocal.
16399
164002008-04-22 Juri Linkov <juri@jurta.org>
16401
16402 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16403 read-buffer-to-switch instead of using the letter "B".
16404
164052008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16406
16407 * fileio.c (Qdefault_directory): New variable.
16408 (Fread_file_name): Use it to pass `dir' to the completion functions.
16409
164102008-04-20 Chong Yidong <cyd@stupidchicken.com>
16411
16412 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16413
164142008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16415
16416 * keyboard.c (Vpre_help_message): Remove.
16417 (show_help_echo): Remove default C code.
16418
16419 * dired.c (directory_files_internal, file_name_completion):
16420 Only call ENCODE_FILE if the string is indeed decoded.
16421
164222008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16423
16424 * Makefile.in (TOOLKIT_DEFINES): Remove.
16425 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16426
164272008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16428
16429 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16430 (mactoolbox.o): New target.
16431
16432 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16433 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16434
16435 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16436 Use mac_set_frame_window_background instead of XSetWindowBackground.
16437 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16438 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16439 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16440 instead of SetWindowTitleWithCFString.
16441 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16442 Move function to mactoolbox.c.
16443 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16444 Use mac_set_window_modified instead of SetWindowModified.
16445 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16446 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16447 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16448 FrontNonFloatingWindow. Use mac_activate_window instead of
16449 ActivateWindow. Use mac_active_non_floating_window instead of
16450 ActiveNonFloatingWindow.
16451 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16452 Use mac_show_hourglass and mac_hide_hourglass.
16453 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16454 instead of GetGlobalMouse.
16455 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16456 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16457 Use mac_bring_window_to_front instead of BringToFront.
16458 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16459 mactoolbox.c.
16460 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16461 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16462 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16463 mactoolbox.c.
16464
16465 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16466 (XtPointer): Move typedef from macmenu.c.
16467 (enum button_type): Move enum from macmenu.c.
16468 (widget_value): Move typedef from macmenu.c.
16469 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16470 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16471 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16472 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16473 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16474 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16475 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16476 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16477 (Selection): Move typedef from macselect.c.
16478 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16479 macterm.c.
16480 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16481 (mac_is_window_collapsed, mac_bring_window_to_front)
16482 (mac_send_window_behind, mac_hide_window, mac_show_window)
16483 (mac_collapse_window, mac_front_non_floating_window)
16484 (mac_active_non_floating_window, mac_activate_window)
16485 (mac_move_window_structure, mac_move_window, mac_size_window)
16486 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16487
16488 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16489 (enum mac_menu_kind): Move enum to mactoolbox.c.
16490 (min_menu_id): Move variable to mactoolbox.c.
16491 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16492 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16493 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16494 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16495 [TARGET_API_MAC_CARBON]: Likewise.
16496 (XtPointer): Move typedef to macgui.h.
16497 (enum button_type): Move enum to macgui.h.
16498 (widget_value): Move typedef to macgui.h.
16499 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16500 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16501 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16502 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16503 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16504 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16505 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16506 (popup_activated_flag): Make variable non-static.
16507 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16508 (add_menu_item, fill_menu, dispose_menus):
16509 Move functions to mactoolbox.c.
16510 (restore_show_help_function, menu_target_item_handler)
16511 (install_menu_target_item_handler, mac_handle_dialog_event)
16512 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16513 [TARGET_API_MAC_CARBON]: Likewise.
16514 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16515 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16516 (find_and_call_menu_selection, name_is_separator): Make function
16517 non-static.
16518 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16519 to mactoolbox.c.
16520 (set_frame_menubar): Don't call install_menu_quit_handler.
16521 (menu_item_selection): New variable.
16522 (mac_menu_show): Use create_and_show_popup_menu.
16523 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16524 selection but set variable menu_item_selection. All uses changed.
16525 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16526 Call install_menu_quit_handler. Move to mactoolbox.c.
16527
16528 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16529 (Selection): Move typedef to macgui.h.
16530 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16531 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16532 Make variables non-static.
16533 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16534 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16535 Make functions non-static.
16536 (Vmac_service_selection) [MAC_OSX]: Likewise.
16537 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16538 (mac_valid_selection_target_p, mac_clear_selection)
16539 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16540 (mac_put_selection_value, mac_selection_has_target_p)
16541 (mac_get_selection_value, mac_get_selection_target_list)
16542 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16543 Move functions to mactoolbox.c.
16544 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16545 Likewise.
16546 (copy_scrap_flavor_data, mac_handle_service_event)
16547 (install_service_handler) [MAC_OSX]: Likewise.
16548 (syms_of_macselect) <Vmac_dnd_known_types>:
16549 Use mac_dnd_default_known_types.
16550
16551 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16552 Move to mactoolbox.c.
16553 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16554 (Fx_selection_owner_p): Add EXFUN.
16555 (install_window_handler, remove_window_handler, XSetWindowBackground):
16556 Remove externs.
16557 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16558 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16559 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16560 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16561 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16562 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16563 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16564 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16565 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16566 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16567 (mac_valid_selection_target_p, mac_clear_selection)
16568 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16569 (mac_put_selection_value, mac_selection_has_target_p)
16570 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16571 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16572 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16573 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16574 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16575 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16576 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16577 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16578 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16579
16580 * mactoolbox.c: New file.
16581
165822008-04-18 Jason Rumney <jasonr@gnu.org>
16583
16584 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16585
165862008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16587
16588 * character.c (Fmultibyte_char_to_unibyte):
16589 Return latin1 chars unchanged.
16590
16591 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16592 relocated if it points to `name'.
16593
165942008-04-17 Kenichi Handa <handa@m17n.org>
16595
16596 * data.c (Faset): Allow setting a multibyte character in an
16597 ASCII-only unibyte string.
16598
16599 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16600
166012008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16602
16603 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16604 done in config.h.
16605
166062008-04-16 Juanma Barranquero <lekktu@gmail.com>
16607
16608 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16609 (Fchar_direction): Add usage in the docstring.
16610
166112008-04-15 Chong Yidong <cyd@stupidchicken.com>
16612
16613 * keyboard.c (read_key_sequence): Remove always-true checks.
16614
166152008-04-14 Jason Rumney <jasonr@gnu.org>
16616
16617 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16618 compatibility struct, for better underline positioning.
16619
166202008-04-13 David Hansen <david.hansen@gmx.net>
16621
16622 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16623 string.
16624
166252008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16626
16627 * m/hp800.h (XUINT, XSET): Remove.
16628
166292008-04-12 Juanma Barranquero <lekktu@gmail.com>
16630
16631 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16632 previous change.
16633
166342008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16635
16636 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16637 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16638
166392008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16640
16641 * keymap.h (map_keymap_canonical): Declare.
16642 * xmenu.c (single_keymap_panes): Use it.
16643
166442008-04-11 Glenn Morris <rgm@gnu.org>
16645
16646 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16647 set the target's value to that of the alias.
16648
166492008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16650
16651 * term.c (set_tty_color_mode): Left over typo.
16652
166532008-04-10 Michael Albinus <michael.albinus@gmx.de>
16654
16655 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16656 only after check for file name handler functions. Signal, when
16657 native functionality is not supported.
16658 (syms_of_fileio): Declare it unconditionally.
16659
166602008-04-10 Jason Rumney <jasonr@gnu.org>
16661
16662 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16663 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16664
16665 * w32.c (logon_network_drive): Also logon to remote drives that
16666 are mapped to drive letters.
16667
166682008-04-10 Glenn Morris <rgm@gnu.org>
16669
16670 * xdisp.c (truncate-partial-width-windows): Doc fix.
16671
166722008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16673
16674 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16675 Move functions to minibuffer.el.
16676 (syms_of_fileio): Don't declare them.
16677
166782008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16679
16680 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16681 (syms_of_minibuf): Remove its initialization.
16682
16683 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16684
166852008-04-09 Juanma Barranquero <lekktu@gmail.com>
16686
16687 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16688
166892008-04-09 Jason Rumney <jasonr@gnu.org>
16690
16691 * makefile.w32-in (distclean): Delete makefile too.
16692 (maintainer-clean): New target.
16693
16694 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16695
16696 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16697 for new font backend and composite cases.
16698
166992008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16700
16701 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16702 Most of the code moved to run_timers.
16703 (do_pending_atimers): Call run_timers.
16704 (run_timers): New function.
16705
16706 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16707 run atimers.
16708
16709 * process.c (wait_reading_process_output): The same as above.
16710
167112008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16712
16713 * minibuf.c (last_exact_completion): Remove variable.
16714 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16715 (complete_and_exit_1, complete_and_exit_2)
16716 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16717 (Fdisplay_completion_list, display_completion_list_1)
16718 (Fminibuffer_completion_help, Fself_insert_and_exit)
16719 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16720 minibuffer.el.
16721 (syms_of_minibuf): Remove corresponding initializations.
16722
16723 * keyboard.c (Qdeactivate_mark): New var.
16724 (command_loop_1): Use it to call `deactivate-mark'.
16725 (syms_of_keyboard): Initialize it.
16726
16727 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16728 to another frame.
16729 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16730 Don't call set_tty_color_mode.
16731 (store_frame_param): Reset previous_frame rather than call
16732 set_tty_color_mode.
16733 * term.c (set_tty_color_mode): Rewrite.
16734 * dispextern.h (set_tty_color_mode): New type.
16735 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16736
167372008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16738
16739 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16740 for generic chars, which do not exist any more in emacs-unicode.
16741
167422008-04-08 Michael Albinus <michael.albinus@gmx.de>
16743
16744 * coding.c (detect_coding_emacs_mule)
16745 (Ffind_operation_coding_system): Fix typo.
16746
167472008-04-08 Jason Rumney <jasonr@gnu.org>
16748
16749 * w32uniscribe.c (SNAME): Extract only symbol name.
16750
16751 * w32font.h (struct w32_metric_cache): New struct.
16752 (w32font_info): Use it.
16753 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16754 (CACHE_BLOCKSIZE): New constants.
16755
16756 * w32font.c (Qja, Qko, Qzh): New symbols.
16757 (syms_of_w32font): Initialise them.
16758 (font_matches_spec): Use them to filter by language.
16759 (recompute_cached_metrics): Remove function.
16760 (compute_metrics, clear_cached_metrics): New functions.
16761 (w32font_encode_char): Use them to manage metric cache.
16762 (w32font_text_extents): Cache metrics for all glyphs on demand.
16763 Delay converting glyph indices to WORD until needed.
16764 (w32font_open_internal): Initialize metric cache to empty.
16765 (registry_to_w32_charset): Charset should always be a symbol.
16766 (fill_in_logfont, list_all_matching_fonts): Family should
16767 always be a symbol.
16768
167692008-04-06 Jason Rumney <jasonr@gnu.org>
16770
16771 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16772 Give up if glyph indices not supported. Use uniscribe obtained
16773 ABC widths for individual metrics. Map glyph clusters back to
16774 characters using fClusterStart flag. Return number of glyphs
16775 produced, not chars processed.
16776 (uniscribe_shape): Map char at FROM to current glyph.
16777
167782008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16779
16780 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16781 Use SetMenuItemHierarchicalMenu.
16782
167832008-04-05 Jason Rumney <jasonr@gnu.org>
16784
16785 * image.c (pbm_load): Allow color values up to 65535.
16786 Throw an error if max_color_idx is outside the supported range.
16787 Report an error when image size is invalid.
16788 Read two bytes at a time when raw images have max_color_idx above 255.
16789
aac0c6e3
MR
167902008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16791
16792 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16793 append "CCL: Quitted" when the CCL program is quitted.
16794 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16795
16796 * ccl.h (struct ccl_program): New member quit_silently.
16797
167982008-04-05 Chong Yidong <cyd@stupidchicken.com>
16799
16800 * search.c (compile_pattern_1): Treat non-nil and non-string of
16801 search-spaces-regexp as nil.
16802
16803 * minibuf.c (Fassoc_string): Tweak docstring.
16804
168052008-04-05 Eli Zaretskii <eliz@gnu.org>
16806
16807 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16808 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16809 2008-03-14 to force inode be positive.
16810
16811 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16812 _S_* ones, since we now use our own sys/stat.h.
16813 (stat, fstat): Don't mangle the inode number.
16814 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16815
168162008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16817
16818 * frame.h (struct frame): Give one more bit to `visible' since we use
16819 values larger than 1 to indicate obscured frames on ttys.
16820
16821 * keymap.c (Qkeymap_canonicalize): New var.
16822 (Fmap_keymap_internal): New fun.
16823 (describe_map): Use keymap-canonicalize.
16824
16825 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16826 (Fundo_boundary): Set them.
16827 (syms_of_undo): Initialize them.
16828 (record_point): Use them instead of last_point_position*.
16829 (last_undo_buffer): Change type.
16830
168312008-04-04 Jason Rumney <jasonr@gnu.org>
16832
16833 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16834 (recompute_cached_metrics): Don't set ascent and descent per char.
16835
16836 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16837 (uniscribe_check_otf): Add GC protection before consing.
16838 Rearrange loop for counting features.
16839
168402008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16841
16842 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16843 buffer with byte-size of source buffer.
16844
168452008-04-03 Chong Yidong <cyd@stupidchicken.com>
16846
16847 * callint.c (Fcall_interactively): Handle temporary region even
16848 when shift-select-mode is off.
16849
168502008-04-03 Jason Rumney <jasonr@gnu.org>
16851
16852 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16853
168542008-04-03 Kenichi Handa <handa@m17n.org>
16855
16856 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16857 (CATEGORY_MASK_UTF_16): Likewise.
16858 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16859 binary file.
16860 (detect_coding): Add null-byte detection for a binary file.
16861 (detect_coding_system): Likewise.
16862
168632008-04-03 Jason Rumney <jasonr@gnu.org>
16864
16865 * w32uniscribe.c: New file.
16866
16867 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16868
16869 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16870
16871 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16872 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16873 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16874 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16875 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16876 (Qphonetic): New symbols.
16877 (syms_of_w32font): Initialize them.
16878 (font_supported_scripts): Use them.
16879 (w32font_list_family): List all charsets.
16880 (w32font_text_extents, recompute_cached_metrics): Fix metric
16881 calculations.
16882 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16883 Give opentype fonts their own format.
16884 (font_matches_spec): New arguments backend and logfont.
16885 Handle :otf spec for uniscribe backend.
16886 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16887 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16888
16889 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16890 font backend.
16891 (globals_of_w32fns): Initialize uniscribe font backend.
16892
16893 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16894 dependencies.
16895 (w32uniscribe.$(O)): New file to build.
16896 (FONT_OBJ): Include w32uniscribe.$(O).
16897 (LIBS): Add uniscribe libraries.
16898
16899 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16900
169012008-04-02 Chong Yidong <cyd@stupidchicken.com>
16902
16903 * callint.c (Vshift_select_mode): New var.
16904 (Finteractive): Document new ^ spec.
16905 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16906 is present.
16907
16908 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16909 (command_loop_1): Avoid running the direct display versions of
16910 forward-char and backward-char if shift-selection may occur.
16911 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16912 shift-translation takes place.
16913
16914 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16915 avoid clobbering by define-minor-mode.
16916
16917 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16918 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16919
16920 * syntax.c (Fforward_word): Add ^ interactive spec.
16921
16922 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16923 (Fscroll_right): Add ^ interactive spec.
16924
169252008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16926
16927 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16928
16929 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16930
16931 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16932
169332008-03-31 Juri Linkov <juri@jurta.org>
16934
16935 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16936
169372008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16938
16939 * gtkutil.c (xg_set_geometry): Fix indentation.
16940 (xg_resize_outer_widget): Remove.
16941 (x_wm_size_hint_off): Fix indentation.
16942 (xg_frame_set_char_size): Call flush_and_sync after
16943 gtk_window_resize.
16944 (x_wm_set_size_hint): Pass NULL as geometry window to
16945 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16946 Add menu bar and tool bar height to base height.
16947 (xg_update_frame_menubar, free_frame_menubar)
16948 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16949 (update_frame_tool_bar, free_frame_tool_bar):
16950 Change xg_resize_outer_widget to xg_frame_set_char_size.
16951
169522008-03-30 Michael Albinus <michael.albinus@gmx.de>
16953
16954 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16955 (Fdbus_call_method): New parameter TIMEOUT.
16956 (dbus-send-signal): Optimize UNGCPRO call.
16957
169582008-03-29 Juri Linkov <juri@jurta.org>
16959
16960 * window.c (Fdisplay_buffer): Move call to
16961 Vsplit_window_preferred_function out of conditions that check
16962 if window is eligible for vertical splitting.
16963 When Vsplit_window_preferred_function is non-nil, call it and use
16964 its non-nil return value as window. Otherwise, continue doing
16965 vertical splitting using Fsplit_window with arg horflag=nil.
16966 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16967 default value from `split-window' to nil.
16968
169692008-03-29 Juri Linkov <juri@jurta.org>
16970
16971 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16972 for interactive code letters 'b' and 'B'.
16973
169742008-03-29 Eli Zaretskii <eliz@gnu.org>
16975
16976 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16977 multibyte string.
16978
169792008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16980
16981 * keyboard.c (pending_funcalls): New var.
16982 (timer_check): Run it.
16983 (syms_of_keyboard): Initialize it.
16984 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16985 (Vdelete_terminal_functions): New vars.
16986 (syms_of_terminal): Initialize them.
16987 (Fdelete_terminal): Run delete-terminal-functions.
16988 * xdisp.c (safe_eval): Rewrite.
16989 (safe_call2): New fun.
16990 * frame.c (Qdelete_frame_functions): New var.
16991 (syms_of_frame): Initialize it.
16992 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16993 * lisp.h (safe_call2, pending_funcalls): Declare.
16994
169952008-03-28 Andreas Schwab <schwab@suse.de>
16996
16997 * indent.c (Fmove_to_column): Move declaration before statements.
16998
169992008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17000
17001 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17002 (struct frame): Use bit fields for boolean vars.
17003
17004 * process.c (server_accept_connection): Simplify naming.
17005 (emacs_get_tty_pgrp): Use SDATA.
17006
17007 * coding.c (decode_coding_object): Fix last change.
17008
170092008-03-27 Jason Rumney <jasonr@gnu.org>
17010
17011 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17012
170132008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17014
17015 * charset.c (Fdefine_charset_internal): Change the way of
17016 registering charsets in Vcharset_order_list.
17017 (syms_of_charset): Make the charset `eight-bit' supplementary.
17018
170192008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17020
17021 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17022 operations, to avoid having the difference between pointers
17023 overflow.
17024
170252008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17026
17027 * indent.c (check_display_width): New fun.
17028 (scan_for_column): Use it.
17029
17030 * data.c (syms_of_data): Mark most-positive-fixnum and
17031 most-negative-fixnum as constants.
17032
17033 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17034
17035 * indent.c (scan_for_column): Extract from current_column_1.
17036 Merge with the same code from Fmove_to_column.
17037 (current_column_1, Fmove_to_column): Use it.
17038
170392008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17040
17041 * keymap.c (map_keymap_internal): New fun.
17042 (map_keymap): Use it.
17043 (Fmap_keymap_internal): New fun.
17044 (Fmap_keymap): Remove left-out test from before make_save_value.
17045
17046 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17047
17048 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17049 Use XCAR/XCDR.
17050
17051 * process.h (struct Lisp_Process): Remove filter_multibyte.
17052 * process.c (QCfilter_multibyte): Remove.
17053 (setup_process_coding_systems): Don't use filter_multibyte.
17054 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17055 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17056 (Fset_process_filter_multibyte): Change the coding-system to
17057 approximate the previous behavior.
17058 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17059 coding-system.
17060
17061 * coding.c (decode_coding_object): When not decoding into a buffer,
17062 obey the coding system's preference of (uni|multi)byte.
17063
170642008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17065
17066 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17067 every char is changed and has a different byte-length.
17068 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17069 Fix int -> EMACS_INT.
17070
170712008-03-23 David Hansen <david.hansen@gmx.net>
17072
17073 * dbusbind.c (xd_read_message): Remove extra copying of message
17074 strings. Check for NULL `interface' or `member'.
17075
170762008-03-22 Eli Zaretskii <eliz@gnu.org>
17077
17078 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17079 cFileName a file name that includes `?' characters, use the 8+3
17080 alias in cAlternateFileName instead.
17081
170822008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17083
17084 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17085
170862008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17087
17088 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17089 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17090 work on current_buffer only instead (that was already the case
17091 for some of the code anyway).
17092 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17093 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17094 (SET_PT, SET_PT_BOTH): Adjust.
17095 * intervals.h (set_point, temp_set_point, set_point_both)
17096 (temp_set_point_both): Remove redundant declarations.
17097
170982008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17099
17100 * fileio.c (Finsert_file_contents):
17101 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17102 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17103 when buffer != current_buffer anyway.
17104
171052008-03-20 Andreas Schwab <schwab@suse.de>
17106
17107 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17108 as default.
17109
171102008-03-19 Jason Rumney <jasonr@gnu.org>
17111
17112 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17113 (syms_of_w32fns): Initialize them.
17114 (HOURGLASS_ID): New constant.
17115 (x_window_to_frame): Don't check hourglass_window.
17116 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17117 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17118 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17119 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17120 Only change the cursor if hourglass is not active.
17121 (Fx_create_frame): Initialize frame's current_cursor.
17122 (hourglass_atimer): Remove.
17123 (hourglass_started): New function.
17124 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17125 (show_hourglass): Adapt to w32, changing argument to frame.
17126
17127 * w32term.h (struct w32_output): Remove hourglass_window.
17128 Add current_cursor.
17129
17130 * eval.c (call_debugger, Fsignal):
17131 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17132 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17133 (Fexecute_extended_command, cancel_hourglass_unwind):
17134 * minibuf.c (read_minibuf):
17135 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17136
171372008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17138
17139 * window.c (run_funs): New fun.
17140 (run_window_configuration_change_hook): Use it to run the buffer-local
17141 and the global part of the hook.
17142
17143 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17144 (unwind_format_mode_line): Restore selected window.
17145 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17146
171472008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17148
17149 * editfns.c (Fchar_equal): Check they are valid characters.
17150
17151 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17152
171532008-03-17 Andreas Schwab <schwab@suse.de>
17154
17155 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17156 against a charset.
17157
17158 * lisp.h (Fbuffer_list): Declare.
17159
171602008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17161
aac0c6e3
MR
17162 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17163 handlebox_widget is != 0.
17164
171652008-03-16 Juri Linkov <juri@jurta.org>
17166
17167 * callint.c (Fcall_interactively): For interactive code letters
17168 'b' and 'B' put the buffer list into the list of default "future"
17169 values of the minibuffer.
17170
171712008-03-16 Andreas Schwab <schwab@suse.de>
17172
17173 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17174 modifiers.
17175
17176 * regex.c (re_match_2_internal): Correct matching of a charset
17177 against latin-1 characters.
17178
171792008-03-16 Kenichi Handa <handa@m17n.org>
17180
17181 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17182 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17183 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17184 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17185 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17186 CHAR_STRING_ADVANCE.
17187 (produce_chars): Fix for the case that the source and the
17188 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17189 instead of CHAR_STRING_ADVANCE.
17190 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17191 STRING_CHAR_ADVANCE.
17192
171932008-03-15 Andreas Schwab <schwab@suse.de>
17194
17195 * regex.c (re_match_2_internal): Correct matching of eight bit
17196 characters in unibyte strings.
17197
171982008-03-15 Martin Rudalics <rudalics@gmx.at>
17199
17200 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17201 at end of range when it coincides with the end of the buffer.
17202
172032008-03-14 Eli Zaretskii <eliz@gnu.org>
17204
17205 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17206
17207 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17208
172092008-03-14 Jason Rumney <jasonr@gnu.org>
17210
17211 * editfns.c (initial_tz): New variable.
17212 (syms_of_editfns): Initialize it.
17213 (Fset_time_zone_rule): Set it when first called.
17214 Use it when TZSTRING is nil.
17215
17216 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17217 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17218 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17219 (globals_of_w32fns): Initialize them.
17220 (compute_tip_xy): Use them to position tooltips.
17221
172222008-03-14 Glenn Morris <rgm@gnu.org>
17223
17224 * emacs.c (main): Revert previous change.
17225 (standard_args): Revert -internal-script back to -scriptload,
17226 and remove the long-option form.
17227
172282008-03-13 Glenn Morris <rgm@gnu.org>
17229
17230 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17231 Remove option -enable-font-backend.
17232
172332008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17234
17235 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17236
172372008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17238
17239 * xterm.c (x_connection_closed): For GTK: If this is the last
17240 terminal just exit without closing the display.
17241
172422008-03-11 Jason Rumney <jasonr@gnu.org>
17243
17244 * w32font.c (w32font_full_name): Use floor to round.
17245
f0131492 172462008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17247
17248 * sound.c (alsa_configure): Declare vol at beginning of block.
17249
17250 * fontset.c (Ffontset_info): Remove extra semicolon.
17251
172522008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17253
17254 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17255 size of resulting string.
17256
172572008-03-10 Jason Rumney <jasonr@gnu.org>
17258
17259 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17260
172612008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17262
17263 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17264 Don't pretend as if characters with display property haven't been
17265 consumed for string-replacing-string case.
17266
172672008-03-08 Kim F. Storm <storm@cua.dk>
17268
17269 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17270 (get_next_display_element, next_element_from_string)
17271 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17272
172732008-03-08 Andreas Schwab <schwab@suse.de>
17274
17275 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17276
172772008-03-06 Jason Rumney <jasonr@gnu.org>
17278
17279 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17280 when charset not specified. Only translate ANSI to unicode when
17281 font_type is truetype.
17282 (w32font_coverage_ok): New function.
17283 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17284
172852008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17286
17287 * lread.c (Fread_char): Resolve modifiers.
17288 (Fread_char_exclusive): Likewise.
17289
17290 * character.c (char_resolve_modifier_mask): New function.
17291 (char_string): Use char_resolve_modifier_mask.
17292 (Fchar_resolve_modifiers): New function.
17293 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17294 function.
17295
172962008-03-04 Jason Rumney <jasonr@gnu.org>
17297
17298 * makefile.w32-in: Always include w32font.c in the build.
17299 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17300
173012008-03-04 Andreas Schwab <schwab@suse.de>
17302
17303 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17304 (versionclean): Likewise.
17305
173062008-03-04 Juanma Barranquero <lekktu@gmail.com>
17307
17308 * .cvsignore: Add oo.
17309
173102008-03-03 Andreas Schwab <schwab@suse.de>
17311
17312 * coding.c (decode_coding_object): Inhibit gap shrinking while
17313 decoding in place.
17314
173152008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17316
17317 * w32term.c: Remove unused include "gnu.h".
17318 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17319
17320 * gnu.h: Rename to ...
17321 * emacs-icon.h: ... this.
17322 * xterm.c: Use emacs-icon.h instead of gnu.h.
17323 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17324
173252008-03-03 Juanma Barranquero <lekktu@gmail.com>
17326
17327 * w32font.c: Include math.h.
17328
173292008-03-03 Jason Rumney <jasonr@gnu.org>
17330
17331 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17332 Compute options separately.
17333 (w32font_open_internal): Set glyph_idx before caching metrics.
17334
17335 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17336 Define if system headers don't.
17337 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17338 (w32font_encode_char): Don't declare here.
17339
17340 * w32font.c (Quniscribe, QCformat): New symbols.
17341 (syms_of_w32font): Define them.
17342 (w32font_has_char): Indicate uncertainty.
17343 (w32font_encode_char): Encode as glyph point. Make static.
17344 (recompute_cached_metrics): New function.
17345 (w32font_open_internal): Use it. Set font to use glyph points
17346 initially. Set format based on type of font.
17347 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17348 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17349 on it. Set format based on information available here.
17350 (add_font_entity_to_list): Identify backend based on opentype_only.
17351
173522008-03-02 Andreas Schwab <schwab@suse.de>
17353
17354 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17355
17356 * coding.c (decode_coding_big5, produce_chars):
17357 Fix typos in last change.
17358
173592008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17360
17361 * gnu.h: New icon.
17362
173632008-03-02 Kenichi Handa <handa@m17n.org>
17364
17365 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17366 `dos', don't decode '\r' if that is the last in the source.
17367 (decode_coding_utf_16, decode_coding_emacs_mule)
17368 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17369 (decode_coding_raw_text, decode_coding_charset): Likewise.
17370 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17371
173722008-03-01 Jason Rumney <jasonr@gnu.org>
17373
17374 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17375
173762008-03-01 Kim F. Storm <storm@cua.dk>
17377
17378 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17379
173802008-03-01 Jason Rumney <jasonr@gnu.org>
17381
17382 * w32font.c (w32font_full_name): New function.
17383 (w32font_open_internal): Use it.
17384
173852008-03-01 Kim F. Storm <storm@cua.dk>
17386
17387 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17388
173892008-03-01 Jason Rumney <jasonr@gnu.org>
17390
17391 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17392
173932008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17394
17395 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17396 xg_frame_resized when the event is for the edit widget.
17397
17398 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17399
17400 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17401 set_char_size.
17402 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17403 operations on widgets here. Just set frame size if needed.
17404 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17405 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17406 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17407 the whole frame.
17408 (xg_create_tool_bar): Move attachment of the tool bar to
17409 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17410 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17411
174122008-03-01 Jason Rumney <jasonr@gnu.org>
17413
17414 * w32fns.c (w32_msg_pump): Disable debug code.
17415
174162008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17417
17418 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17419
174202008-02-29 Chong Yidong <cyd@stupidchicken.com>
17421
17422 * xdisp.c (next_overlay_string): Don't set
17423 overlay_strings_at_end_processed_p if we're currently reading from
17424 a display string.
17425
174262008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17427
17428 * xdisp.c (get_overlay_strings_1): Fix typo.
17429
174302008-02-29 Chong Yidong <cyd@stupidchicken.com>
17431
17432 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17433
174342008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17435
17436 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17437
17438 * xdisp.c (display_mode_element): Cancel the previous change.
17439 (decode_mode_spec): Likewise.
17440 (handle_auto_composed_prop): Don't make composition if it->string
17441 is a string.
17442
174432008-02-27 Kim F. Storm <storm@cua.dk>
17444
17445 * lisp.h (GLYPH): Change type from int to struct with separate char
17446 and face_id members.
17447 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17448 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17449 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17450 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17451 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17452 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17453 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17454 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17455 handle new Lisp glyph code encoding, either an integer or a cons.
17456
17457 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17458 (GLYPH_ALIAS): Delete.
17459 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17460 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17461 (GLYPH_FROM_CHAR): Replace macro by ...
17462 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17463
17464 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17465 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17466 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17467 (GLYPH_INVALID_P): New macro.
17468 (spec_glyph_lookup_face): Update prototype.
17469
17470 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17471 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17472 new glyph code encoding.
17473 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17474 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17475
17476 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17477 Adapt to new glyph type and new glyph code encoding.
17478
17479 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17480
17481 * indent.c (current_column, current_column_1, Fmove_to_column)
17482 (compute_motion): Adapt to new glyph code encoding.
17483
17484 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17485
174862008-02-27 Chong Yidong <cyd@stupidchicken.com>
17487
17488 * process.c (wait_reading_process_output): Check for window
17489 changes caused by timers.
17490 Suggested by Johan Bockgård.
17491
174922008-02-27 Glenn Morris <rgm@gnu.org>
17493
17494 * emacs.c (USAGE1): Add `--disable-font-backend'.
17495
174962008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17497
17498 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17499 is made to the buffer.
17500
175012008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17502
17503 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17504 (face_at_string_position):
17505 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17506 (face_at_string_position):
17507 * xdisp.c (display_string, next_overlay_change):
17508 * buffer.h (overlays_at):
17509 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17510 Update callers.
17511
175122008-02-26 Chong Yidong <cyd@stupidchicken.com>
17513
17514 * editfns.c (Fformat): Doc fix.
17515
175162008-02-26 Juanma Barranquero <lekktu@gmail.com>
17517
17518 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17519 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17520 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17521
175222008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17523
17524 * buffer.c (Fbuffer_swap_text): New function.
17525 (syms_of_buffer): Defsubr it.
17526
175272008-02-25 Chong Yidong <cyd@stupidchicken.com>
17528
17529 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17530
175312008-02-25 Jason Rumney <jasonr@gnu.org>
17532
17533 * w32font.c (w32font_draw): Draw one character at a time when padding.
17534
175352008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17536
17537 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17538 Handle a nil arg. Use run_window_configuration_change_hook.
17539 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17540 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17541 Use run_window_configuration_change_hook.
17542
175432008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17544
17545 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17546 1-pixel width.
17547
175482008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17549
17550 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17551 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17552 if the glyph in the font is zero pixel with.
17553
17554 * dispextern.h (struct glyph_string): New member padding_p.
17555
17556 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17557
17558 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17559
17560 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17561
17562 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17563
17564 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17565
175662008-02-25 Jason Rumney <jasonr@gnu.org>
17567
17568 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17569
175702008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17571
17572 Allow fine-grained image-cache flushing.
17573 * dispextern.h (struct image): Add `dependencies' field.
17574 (clear_image_caches): Change arg to Lisp_Object.
17575 * image.c (make_image): Initialize `dependencies' field.
17576 (clear_image_cache): Change arg to allow fine-grained flushing.
17577 Perform the flush even if image-cache-eviction-delay is nil.
17578 (clear_image_caches): Change arg to Lisp_Object.
17579 (Fclear_image_cache): Expand meaning of the argument.
17580 (mark_image): Mark `dependencies' field.
17581 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17582 (lface_hash): Use XHASH rather than XFASTINT.
17583 (face_at_buffer_position): Fix int -> EMACS_INT position.
17584 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17585 (select_frame_for_redisplay): Remove code duplication.
17586 (redisplay_internal): Adapt arg to call to clear_image_caches.
17587
175882008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17589
17590 * s/vms4-0.h:
17591 * s/vms4-2.h:
17592 * s/vms4-4.h:
17593 * s/vms5-5.h: Remove, unused.
17594
17595 * s/irix5-2.h:
17596 * s/irix6-0.h:
17597 * s/riscos5.h:
17598 * s/mach-bsd4-3.h:
17599 * m/mips4.h: Remove files for obsolete systems.
17600
17601 * Makefile.in:
17602 * filelock.c:
17603 * unexmips.c:
17604 * m/hp9000s300.h:
17605 * m/iris4d.h:
17606 * s/aix3-1.h:
17607 * s/hpux.h:
17608 * s/msdos.h:
17609 * s/usg5-0.h:
17610 * s/usg5-2-2.h:
17611 * s/usg5-2.h:
17612 * s/usg5-3.h: Remove references to obsolete variables.
17613
17614 * s/irix5-0.h: Remove, move all the contents ...
17615 * s/irix6-5.h: ... here. Simplify.
17616 * config.in: Regenerate.
17617
176182008-02-24 Jason Rumney <jasonr@gnu.org>
17619
17620 * w32term.c (x_draw_glyph_string_background): Clear the background
17621 manually when cleartype is in use.
17622 (x_draw_glyph_string_foreground): Draw text transparently when
17623 cleartype is in use.
17624
17625 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17626 a font into it unless we have to.
17627
176282008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17629
17630 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17631 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17632
aac0c6e3
MR
176332008-02-18 Jason Rumney <jasonr@gnu.org>
17634
17635 * w32fns.c (Fw32_shell_execute): Encode parameters.
17636
176372008-02-09 Eli Zaretskii <eliz@gnu.org>
17638
17639 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17640
176412008-02-05 Juanma Barranquero <lekktu@gmail.com>
17642
17643 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17644
176452008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17646
17647 * xterm.c (x_set_offset): Don't change the gravity if
17648 CHANGE_GRAVITY is -1.
17649
176502008-02-23 Chong Yidong <cyd@stupidchicken.com>
17651
17652 * fileio.c (auto_save_error_occurred): New var.
17653 (auto_save_error): Set it.
17654 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17655 error occurred.
17656
176572008-02-23 Eli Zaretskii <eliz@gnu.org>
17658
17659 * w32.c (globals_of_w32): Add initializations for
17660 g_b_init_get_sid_sub_authority and
17661 g_b_init_get_sid_sub_authority_count.
17662
176632008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17664
17665 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17666 (font_parse_xlfd): Use them for sanity check.
17667 (Finternal_set_font_style_table): Make sure the table is bijective.
17668
17669 Consolidate the image_cache to the terminal struct.
17670 * termhooks.h (P_): Remove redundant def.
17671 (struct terminal): New field `image_cache'.
17672 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17673 of FRAME_X_IMAGE_CACHE.
17674 * xterm.h (struct x_display_info): Remove image_cache field.
17675 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17676 * w32term.h (struct w32_display_info): Remove image_cache field.
17677 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17678 * macterm.h (struct mac_display_info): Remove image_cache field.
17679 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17680 * xterm.c (x_term_init):
17681 * w32term.c (w32_term_init):
17682 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17683 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17684 Remove declarations.
17685 (clear_image_caches, mark_image_cache): New declarations.
17686 * xfaces.c (clear_face_cache):
17687 * xdisp.c (redisplay_internal): Use clear_image_caches.
17688 * image.c (clear_image_cache): Don't check that a frame is on
17689 a window-system before checking if it shares the same cache.
17690 (clear_image_caches): New function.
17691 (Fclear_image_cache): Use it.
17692 (mark_image): Move from allo.c.
17693 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17694 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17695 (mark_object): Don't call mark_image_cache for frames.
17696 (mark_terminals): Call mark_image_cache.
17697
17698 * lisp.h (Fdelete_terminal): Declare.
17699
17700 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17701 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17702 wrong_type_argument.
17703
177042008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17705
17706 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17707 malayalam.el, and tamil.el. Add sinhala.el.
17708
177092008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17710
17711 * xterm.c (x_connection_closed): Consolidate identical tests.
17712 (x_delete_terminal): Don't crash if called via x_connection_closed.
17713
177142008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17715
17716 * xdisp.c (decode_mode_spec): New arg string.
17717 (display_mode_element): Adjust for the above change.
17718
177192008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17720
17721 * callint.c (Fcall_interactively): Use AREF.
17722
177232008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17724
17725 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17726
177272008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17728
17729 * xfns.c (Fx_show_tip): Set string to " " if empty.
17730
177312008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17732
17733 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17734 with Qt.
17735
177362008-02-17 Kenichi Handa <handa@m17n.org>
17737
17738 * ftfont.c (ftfont_shape): Return Lispy number.
17739
17740 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17741 for GCs.
17742 (Finternal_set_font_selection_order): Call font_update_sort_order
17743 only when enable_font_backend is set.
17744 (realize_x_face): Set face->font_info to that of default face only
17745 when enable_font_backend is set.
17746
17747 * xdisp.c (handle_composition_prop): Set it->c to the fist
17748 character of the composed region.
17749 (fill_composite_glyph_string): Set base_face->font_info to
17750 s->font_info. Get a face for ascii from base_face->ascii_face.
17751 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17752 with a face already decided.
17753 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17754 non-negative.
17755 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17756 call font_prepare_composition unconditionally.
17757
17758 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17759
17760 * xterm.h (struct x_display_info): New member font.
17761
17762 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17763 (x_set_mouse_face_gc, x_new_font): Likewise.
17764 (x_term_init): Setup display_info->font.
17765 (x_delete_terminal): Free display_info->font.
17766
17767 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17768
17769 * ftxfont.c (ftxfont_default_fid): Delete it.
17770 (ftxfont_open): Set xfont->fid to 0.
17771 (ftxfont_end_for_frame): Clear data specific to the frame and the
17772 font-driver.
17773
17774 * xftfont.c (xftfont_default_fid): Delete it.
17775 (xftfont_open): Set xfont->fid to 0.
17776
17777 * fontset.c (FONTSET_OBJLIST): New macro.
17778 (fontset_find_font): Update font-object list of the fontset.
17779 (free_realized_fontset): New function.
17780 (free_face_fontset): Call free_realized_fontset.
17781 (Ffont_info): Call font_close_object only when enable_font_backend
17782 is set.
17783
17784 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17785 [HAVE_NTGUI]: Include w32term.h.
17786 [MAC_OS]: Include macterm.ch.
17787 (font_otf_ValueRecord): Use make_number.
17788 (font_finish_cache): Fix handling of reference count.
17789 (font_clear_cache): Update num_fonts.
17790 (font_open_entity): Update smallest_char_width and
17791 smallest_font_height of the frame.
17792 (font_close_object): Update num_fonts.
17793 (Fclear_font_cache): Fix finding the target cache data.
17794
177952008-02-16 Glenn Morris <rgm@gnu.org>
17796
17797 * fontset.c (Finternal_char_font): Fix compilation warning.
17798
177992008-02-16 Eli Zaretskii <eliz@gnu.org>
17800
17801 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17802 instead of char arrays. Enlarge the size of array passed to
17803 get_token_information.
17804
17805 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17806 warnings.
17807
178082008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17809
17810 * .gdbinit: Don't set `args', it breaks gdb --args.
17811
178122008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17813
17814 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17815 within a narrowed buffer.
17816
178172008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17818
17819 * coding.c (decode_coding_object, encode_coding_object):
17820 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17821
178222008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17823
17824 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17825 hardcoding 1.
17826 (detect_coding_system):
17827 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17828 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17829 * insdel.c (insert_from_gap):
17830 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17831 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17832 (string_to_multibyte):
17833 * character.c (chars_in_text, multibyte_chars_in_text):
17834 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17835
17836 * character.h (FETCH_STRING_CHAR_ADVANCE)
17837 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17838 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17839 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17840
17841 * casefiddle.c (casify_region): Only call after-change and composition
17842 functions on the part of the region that was changed.
17843
17844 * keyboard.c (read_avail_input):
17845 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17846
178472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17848
17849 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17850 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17851
178522008-02-11 Juanma Barranquero <lekktu@gmail.com>
17853
17854 * w32menu.c (push_submenu_start, push_submenu_end)
17855 (push_left_right_boundary, push_menu_pane, push_menu_item):
17856 * keyboard.c (read_key_sequence): Don't pass args with side effects
17857 to AREF, it fails when compiling with -DENABLE_CHECKING.
17858
178592008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17860
17861 * Makefile.in (${lispsource}international/charprop.el):
17862 Delete this target.
17863
17864 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17865 emacs-unicode-2.
17866
178672008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17868
17869 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17870
178712008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17872
17873 * frame.c (Qnoelisp): New symbol.
17874 (syms_of_frame): Initialize it.
17875 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17876 harmless Elisp code, from a strong `force' from x_connection_closed.
17877 * frame.h (Qnoelisp): Declare.
17878 * xterm.c (x_connection_closed): Pass `noelisp'.
17879
17880 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17881 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17882 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17883 rather than `int' for the type of `type'.
17884
178852008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17886
17887 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17888
17889 * Makefile.in (GNUC): Remove support for gcc-1.x.
17890
178912008-02-10 Richard Stallman <rms@gnu.org>
17892
17893 * lisp.h (ASET): Use AREF, not ASLOT.
17894
178952008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17896
17897 * lisp.h (ASET): Check bounds.
17898
178992008-02-10 Glenn Morris <rgm@gnu.org>
17900
17901 * buffer.c (mode-name): Doc fix.
17902
179032008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17904
17905 * Makefile.in:
17906 * emacs.c:
17907 * gmalloc.c:
17908 * keyboard.c:
17909 * lisp.h:
17910 * m/ibm370aix.h:
17911 * process.c:
17912 * regex.c:
17913 * s/hpux.h:
17914 * sysdep.c:
17915 * sysselect.h:
17916 * systty.h:
17917 * unexec.c:
17918 * w32term.c:
17919 * xsmfns.c:
17920 * xterm.c: Remove code that deals with obsolete variables.
17921
17922 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17923
17924 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17925 nothing else needs it anymore.
17926
179272008-02-09 Eli Zaretskii <eliz@gnu.org>
17928
17929 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17930 instead of unibyte_char_to_multibyte.
17931
179322008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17933
17934 * s/gnu-linux.h: Remove commented out code.
17935
17936 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17937
17938 * Makefile.in: Update what RMS says about using autoconf.
17939 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17940 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17941 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17942 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17943
179442008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17945
17946 * keymap.c (Fkey_description): Move side effect outside of macro call.
17947
17948 * xfaces.c (Finternal_make_lisp_face):
17949 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17950
17951 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17952 (syms_of_fontset): Use ASET.
17953
17954 * fns.c (concat): Move side effect outside of macro call.
17955 (hash_clear): Use ASET.
17956
179572008-02-08 Richard Stallman <rms@gnu.org>
17958
17959 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17960 If FORCE, and frame has a surrogate minibuffer for another frame,
17961 delete the other frame first.
17962
179632008-02-07 Timo Savola <timo.savola@iki.fi>
17964
17965 * xterm.c (x_detect_focus_change): Handle embed client message.
17966 (handle_one_xevent): Ditto.
17967 (handle_one_xevent): If embedded and we get a button press/release,
17968 request focus.
17969 (xembed_set_info, xembed_send_message): New functions.
17970 (x_make_frame_visible): Call xembed_set_info if embedded.
17971 (x_make_frame_invisible): Call xembed_set_info if embedded.
17972 (x_term_init): Initialize Xatom_XEMBED.
17973 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17974 (x_iconify_frame): Ditto.
17975
17976 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17977 (enum xembed_info, enum xembed_message, enum xembed_focus)
17978 (enum xembed_modifier, enum xembed_accelerator): New.
17979 (xembed_set_info, xembed_send_message): Declare.
17980 (FRAME_X_EMBEDDED_P): New.
17981
17982 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17983 gtk_plug_new.
17984
17985 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17986 window ID of a frame.
17987 (x_window): Reparent frame if embedded.
17988 (Fx_create_frame): Don't set border width if embedded.
17989
17990 * emacs.c (USAGE3): Add --parent-id.
17991 (standard_args): Ditto.
17992
179932008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17994
17995 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17996
179972008-02-07 Jim Meyering <meyering@redhat.com>
17998
17999 Use "do...while (0)", not "if (1)...else" in macro definitions.
18000 The latter provokes a warning from gcc about the empty else, when
18001 followed by ";". Also, without that trailing semicolon, it would
18002 silently swallow up any following statement.
18003 * syntax.h (SETUP_SYNTAX_TABLE)
18004 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18005 * buffer.h (DECODE_POSITION): Likewise.
18006 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18007 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18008 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18009 (FETCH_CHAR_ADVANCE): Likewise.
18010 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18011
180122008-02-07 Jim Meyering <meyering@redhat.com>
18013
18014 * lread.c [lint]: Don't include <sys/inode.h>.
18015
180162008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18017
18018 * xselect.c (x_handle_dnd_message):
18019 * xmenu.c (digest_single_submenu, xmenu_show):
18020 * xdisp.c (with_echo_area_buffer_unwind_data)
18021 (format_mode_line_unwind_data, unwind_format_mode_line)
18022 (display_menu_bar):
18023 * eval.c (Ffetch_bytecode):
18024 * doc.c (store_function_docstring):
18025 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18026 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18027 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18028
180292008-02-07 Kenichi Handa <handa@m17n.org>
18030
18031 * ftxfont.c (ftxfont_open): Don't set
18032 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18033
18034 * ftfont.c (ftfont_open): Fix previous change.
18035
180362008-02-06 Jason Rumney <jasonr@gnu.org>
18037
18038 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18039 Use cached metrics for ASCII characters.
18040 (w32font_open_internal): Don't set font's owning_frame.
18041 Cache metrics for ASCII characters.
18042
18043 * w32font.h (struct w32font_info): Add ascii_metrics.
18044 Remove owning_frame.
18045
180462008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18047
18048 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18049 to negative value.
18050
18051 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18052
18053 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18054
18055 * charset.c (syms_of_charset): Set QCtest and Qeq.
18056
180572008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18058
18059 * process.c (Fstart_process):
18060 * callproc.c (Fcall_process): Handle the case where
18061 Funhandled_file_name_directory returns nil.
18062
18063 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18064 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18065 * font.c (check_gstring): Use them and AREF to access the vector before
18066 we know it's really a gstring.
18067 (Ffont_shape_text): Fix typo.
46e722a9 18068 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18069
18070 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18071 Declare.
18072
18073 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18074
180752008-02-05 Jason Rumney <jasonr@gnu.org>
18076
18077 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18078 Set smallest_font_height and smallest_char_width in display info.
18079
180802008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18081
18082 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18083
180842008-02-05 Miles Bader <miles@gnu.org>
18085
18086 * xfaces.c (get_lface_attributes, merge_named_face)
18087 (lookup_named_face, lookup_derived_face, realize_named_face):
18088 Revert 2008-02-01 change by cyd@stupidchicken.com.
18089
180902008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18091
18092 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18093 fallback fonts.
18094 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18095
180962008-02-04 Jason Rumney <jasonr@gnu.org>
18097
18098 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18099 set full_name.
18100 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18101
181022008-02-03 Jason Rumney <jasonr@gnu.org>
18103
18104 * makefile.w32-in (OBJ1): Include font.o here.
18105 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18106
181072008-02-02 Jason Rumney <jasonr@gnu.org>
18108
18109 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18110
181112008-02-01 Jason Rumney <jasonr@gnu.org>
18112
18113 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18114
18115 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18116
181172008-02-01 Andreas Schwab <schwab@suse.de>
18118
18119 * Makefile.in (shortlisp, lisp): Update for rename of
18120 ../lisp/language/myanmar.el.
18121
181222008-02-01 Chong Yidong <cyd@stupidchicken.com>
18123
18124 * xfaces.c (get_lface_attributes): Delete function.
18125 (merge_named_face, lookup_named_face, lookup_derived_face)
18126 (realize_named_face): Call lface_from_face_name directly, and use
18127 the fact that merge_face_vectors does not alter its FROM argument.
18128
181292008-02-01 Jason Rumney <jasonr@gnu.org>
18130
18131 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18132 input in the default locale. Handle non-Unicode multibyte input.
18133
181342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18135
18136 * fontset.c (reorder_font_vector): Exclude nil elements from the
18137 font group. Don't try multiple fonts.
18138 (fontset_font): Adjust for the above change.
18139 (Finternal_char_font): Return nil if the found font doesn't
18140 contain the character ch.
18141
18142 * Makefile.in (lisp, shortlisp): Add cham.el.
18143
181442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18145
18146 * font.h (FONTP): Make it return 1 also for a font-object.
18147
18148 * .gdbinit (xfontset): New function.
18149
18150 * font.c (font_find_for_lface): Check if the character C is
18151 supported or not only for the first font.
18152
18153 * fontset.c (reorder_font_vector): Fix typo.
18154 (fontset_find_font): Don't add a font-spec specifying a script.
18155 Use 0 (not Qt) for the indication of empty font-group. Change the
18156 format of RFONT-DEF. Return Qt if no font in the font-group
18157 support the character.
18158 (fontset_font): Adjust for the above change. If no font was
18159 found the character, remember that.
18160 (face_for_char): Adjust for the change of RFONT-DEF.
18161 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18162 no font for the target.
18163 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18164
181652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18166
18167 * font.c (font_load_for_face): Handle the case that the font in
18168 face->lface is a string.
18169
181702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18171
18172 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18173
181742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18175
18176 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18177 Fix previous change. If the frame is not on a window system,
18178 signal an error.
18179
181802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18181
18182 * coding.c (decode_coding_object, encode_coding_object): Adjust
18183 marker positions after conversion.
18184
18185 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18186
181872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18188
18189 * font.c (font_find_for_lface): Fix the handling of the return
18190 value of font_has_char.
18191 (Ffont_shape_text): Fix previous change.
18192
18193 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18194 (fontset_ref_and_range): Delete it.
18195 (fontset_find_font): Call char_table_ref_and_range instead of
18196 FONTSET_REF_AND_RANGE.
18197 (make_fontset): Don't setup font groups of Latin here.
18198 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18199 (new_fontset_from_font): Make the specified font the default for
18200 all Latin characters.
18201
182022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18203
18204 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18205 is on a window system before accessing the fontset of the frame.
18206
182072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18208
18209 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18210
18211 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18212 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18213
18214 * font.c (Ffont_shape_text): If the font driver doesn't have a
18215 shaper function, make zero-width glyphs to have at least one-pixel
18216 width. Fix setting of `to' field of glyphs.
18217
182182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18219
18220 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18221 glyphs.
18222
18223 * font.h (struct font_driver): Improve docstring of member `shape'.
18224
182252008-02-01 Kenichi Handa <handa@m17n.org>
18226
18227 * composite.c (syms_of_composite): Fix docstring of
18228 auto-composition-function.
18229
18230 * font.h (LGLYPH_SIZE): New macro.
18231
18232 * font.c (Ffont_fill_gstring): Stop filling when a character not
18233 supported by the font is found.
18234 (Ffont_shape_text): When a shape callback function returns nil,
18235 try at most two more times with larger gstring.
18236 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18237
18238 * xdisp.c (handle_auto_composed_prop): Change the argument to
18239 auto-composition-function.
18240
18241 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18242 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18243 Lispy glyph and store it in the lgstring.
18244
18245 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18246
18247 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18248
182492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18250
18251 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18252
18253 * fontset.c (Vfont_encoding_charset_alist): New variable.
18254 (syms_of_fontset): DEFVAR it.
18255 (reorder_font_vector, fontset_find_font): Optimize for the case of
18256 no need of reordering.
18257 (face_for_char): Map the charset property by
18258 Vfont_encoding_charset_alist.
18259
182602008-02-01 Jason Rumney <jasonr@gnu.org>
18261
18262 * w32font.c (logfonts_match): Don't check adstyle here.
18263 (font_matches_spec): Check here against physical font instead.
18264 (add_font_entity_to_list): Avoid some substitutions.
18265
18266 * font.c (font_parse_fcname): Default weight and slant to normal.
18267 (font_score): Prefer normal fonts if weight or slant unspecified.
18268 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18269 match freetype scores.
18270
182712008-02-01 Jason Rumney <jasonr@gnu.org>
18272
18273 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18274 font, as it may have been deleted.
18275 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18276 most common hyphenless variation.
18277 (logfonts_match): Check generic family.
18278 (font_matches_spec): Don't check generic family here.
18279 (fill_in_logfont): Set generic family based on adstyle.
18280
18281 * w32font.h (w32font_get_cache): Update declaration.
18282
182832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18284
18285 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18286
18287 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18288 If none of the new drivers are available, call font_update_drivers
18289 with the old drivers.
18290
18291 * w32font.c (w32font_get_cache): Adjust the argument type.
18292
18293 * xfont.c (xfont_get_cache): Adjust the argument type.
18294
18295 * font.h (struct font_driver): Change argument type of get_cache.
18296
18297 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18298
18299 * font.c (Ffont_get): Fix arguments to Fassoc.
18300 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18301 (font_clear_cache): New function.
18302 (font_list_entities, font_matching_entity): Use font_get_cache.
18303 (font_update_drivers): Call font_clear_cache when finishing a driver.
18304
18305 * fontset.c (fontset_find_font): Fix previous change.
18306
183072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18308
18309 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18310 dpyinfo->font_table.
18311 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18312 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18313
18314 * font.c (font_at): Handle the case that the arg C is negative.
18315 Handle the unibyte case.
18316 (Ffont_at): Call font_at with the arg C -1.
18317
18318 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18319 the position here, and call font_at with the arg C -1.
18320 Don't check the range of the existing composition at the point.
18321
183222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18323
18324 * fontset.c (fontset_add): New args charset_id and family.
18325 Change caller.
18326 (load_font_get_repertory, fontset_find_font): Assume that
18327 font_spec is always a font-spec object.
18328 (Fset_fontset_font): Always store a font-spec object in a fontset.
18329
18330 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18331 instead of get_property_and_range.
18332
183332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18334
18335 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18336 (xftfont_open): Don't keep locking face.
18337 (xftfont_close): Don't unlock face.
18338 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18339
18340 * fontset.c (fontset_find_font): Don't prefer a font of
18341 supplementary charset.
18342
183432008-02-01 Kenichi Handa <handa@m17n.org>
18344
18345 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18346 script, langsys_tag to langsys, new member script.
18347 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18348 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18349 listing to the script specified in that property. Fix arg to
18350 OTF_check_features.
18351
183522008-02-01 Jason Rumney <jasonr@gnu.org>
18353
18354 * w32font.h: New file.
18355
18356 * w32font.c: Include it.
18357 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18358 (w32font_open): Set owning_frame.
18359 (w32font_text_extents): Use owning_frame.
18360 (struct font_callback_data): Add opentype_only field.
18361 (add_font_entity_to_list): Use it to filter fonts.
18362 Don't check against full name.
18363 (w32font_list_internal): New function.
18364 (w32font_list): Use it.
18365 (w32font_match_internal): New function.
18366 (w32font_match): Use it.
18367 (w32font_open_internal): New function.
18368 (w32font_open): Use it.
18369 (w32font_get_cache, w32font_close, w32font_has_char)
18370 (w32font_encode_char, w32font_text_extents, w32font_draw):
18371 Make non-static.
18372
18373 * makefile.w32-in (w32font.o): Depend on w32font.h.
18374
183752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18376
18377 * charset.c (Fdefine_charset_internal): Record a supplementary
18378 charset at the tail of Vcharset_order_list.
18379
18380 * font.c (Ffont_shape_text): Fix the return value.
18381
18382 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18383
18384 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18385
183862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18387
18388 * ftfont.c (struct OpenTypeSpec): New struct.
18389 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18390 (ftfont_get_open_type_spec): New function.
18391 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18392
18393 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18394
183952008-02-01 Jason Rumney <jasonr@gnu.org>
18396
18397 * w32font.c (add_font_entity_to_list): Compare only the beginning
18398 of full name.
18399
184002008-02-01 Kenichi Handa <handa@m17n.org>
18401
18402 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18403 Never return HANDLED_RECOMPUTE_PROPS.
18404
184052008-02-01 Kenichi Handa <handa@m17n.org>
18406
18407 * font.c (font_gstring_produce): Delete it.
18408
18409 * composite.h (COMPOSITION_METHOD):
18410 Handle COMPOSITION_WITH_GLYPH_STRING.
18411
184122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18413
18414 * xfont.c (Qx): Delete.
18415 (syms_of_xfont): Don't initialize Qx.
18416
18417 * composite.h (enum composition_method):
18418 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18419
184202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18421
18422 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18423 (choose_face_font): Accept new form of font-spec.
18424
18425 * frame.h (font_driver_list): Declare it unconditionally.
18426 (struct frame): Define members font_driver_list and font_data_list
18427 unconditionally.
18428
18429 * fontset.c: Include "font.h" unconditionally.
18430 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18431 (Fset_fontset_font): Accept a font-spec object.
18432
18433 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18434 PIXEL_SIZE part a wild card.
18435
18436 * dispextern.h (struct glyph_string): Define members clip and
18437 num_clips unconditionally.
18438 (struct face): Define members font_info and extra unconditionally.
18439
18440 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18441 ftfont_info only when HAVE_LIBOTF is defined.
18442
184432008-02-01 Andreas Schwab <schwab@suse.de>
18444
18445 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18446 and end.
18447
184482008-02-01 Jason Rumney <jasonr@gnu.org>
18449
18450 * w32font.c (w32font_driver): Add new fields.
18451
184522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18453
18454 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18455 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18456 (LIBES): Add @M17N_FLT_CFLAGS@.
18457
18458 * composite.c (compose_text): Don't treat the new style
18459 composition specially.
18460
18461 * emacs.c (main): Call syms_of_font unconditionally.
18462
18463 * font.h (FONT_ENTITY_NOT_LOADABLE)
18464 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18465 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18466 (struct font_driver): New member shape.
18467 (font_registry_charsets): Extern it.
18468 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18469 (font_otf_capability, font_drive_otf): Delete their externs.
18470
18471 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18472 (font_charset_alist, font_registry_charsets): Move from xfont.c
18473 and rename.
18474 (font_prop_validate_otf): New function.
18475 (font_property_table): Register it for QCotf.
18476 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18477 (font_drive_otf): Delete.
18478 (font_prepare_composition): New arg F. Adjust for the change of
18479 lispy gstring.
18480 (font_find_for_lface): New arg C.
18481 (font_load_for_face): Adjust for the change of font_find_for_lface.
18482 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18483 lispy gstring.
18484 (Ffont_shape_text): New function.
18485 (Fopen_font): If the font size is not given, use 12-pixel.
18486 (Ffont_at): New arg STRING.
18487 (syms_of_font): Initalize font_charset_alist.
18488 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18489 conditionally.
18490
18491 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18492 fonts of the same font-spec. Change the format of RFONT-DEF.
18493 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18494 Adjust for the change of RFONT-DEF.
18495 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18496
18497 * ftfont.h: New file.
18498
18499 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18500 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18501 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18502 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18503 font_otf_capability and font_drive_otf, set ftfont_shape.
18504 (ftfont_list): Adjust for the change of :otf property value.
18505 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18506 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18507 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18508 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18509 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18510 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18511
18512 * w32term.c (x_draw_composite_glyph_string_foreground):
18513 Adjust for the change of lispy gstring.
18514
18515 * xdisp.c (handle_composition_prop): Adjust for the change of
18516 lispy gstring. Call a function for auto-composition with the
18517 third arg it->window.
18518 (fill_composite_glyph_string): Adjust for the change of lispy string.
18519 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18520
18521 * xfaces.c (set_font_frame_param): Adjust for the change of
18522 font_find_for_lface.
18523
18524 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18525 (xfont_registry_charsets): Likewise. Change caller.
18526 (syms_of_xfont): Don't handle x_font_charset_alist.
18527
18528 * xftfont.c: Include "ftfont.h".
18529 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18530 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18531 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18532 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18533 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18534 Set xftfont_driver.shape to xftfont_shape.
18535
18536 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18537 the change of lispy gstring.
18538
185392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18540
18541 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18542
185432008-02-01 Jason Rumney <jasonr@gnu.org>
18544
18545 * w32font.c (w32font_draw): Fill background manually.
18546
185472008-02-01 Jason Rumney <jasonr@gnu.org>
18548
18549 * font.c (Qfontp): Remove unused symbol.
18550 (QCantialias): New symbol.
18551 (syms_of_font): Define it.
18552 (font_property_table): Set a validator for QCantialias.
18553
18554 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18555 Define if not already.
18556 (QCfamily): Share with xfaces.c.
18557 (Qstandard, Qsubpixel, Qnatural): New symbols.
18558 (syms_of_w32font): Define them. Don't define QCfamily here.
18559 (w32_antialias_type, lispy_antialias_type): New functions.
18560 (w32_enumfont_pattern_entity): New arg requested_font.
18561 Set antialias parameter if non-default was requested.
18562 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18563
185642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18565
18566 * lread.c (read1): Undo the previous change.
18567
185682008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18569
18570 * frame.c (Fdelete_frame): Call font_update_drivers only when
18571 USE_FONT_BACKEND is defined.
18572
185732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18574
18575 * font.h (struct font_bitmap): New member bits_per_pixel.
18576 (struct font_driver): New members start_for_frame and end_for_frame.
18577 (struct font_data_list): New struct.
18578 (font_put_frame_data, font_get_frame_data): Extern them.
18579
18580 * frame.h (struct frame): New member font_data_list.
18581
18582 * font.c (font_update_drivers): Call driver->start_for_frame and
18583 driver->end_for_frame at proper timings.
18584 (font_put_frame_data, font_get_frame_data): New functions.
18585 (Ffont_spec): Add usage in the docstring.
18586
18587 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18588 (Fdelete_frame): Call font_update_drivers.
18589
18590 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18591 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18592 (xftfont_get_xft_draw): New function.
18593 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18594 (xftfont_end_for_frame): New function.
18595 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18596
18597 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18598 Change argument. Cache GCs in the per-frame data.
18599 (struct ftxfont_frame_data): New struct.
18600 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18601 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18602 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18603 (ftxfont_end_for_frame): New function.
18604 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18605
18606 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18607
186082008-02-01 Kenichi Handa <handa@m17n.org>
18609
18610 * xselect.c (Vselection_coding_system)
18611 (Vnext_selection_coding_system): Delete them.
18612 (syms_of_xselect): Don't declare selection-coding-system and
18613 next-selection-coding-system. They are declared in select.el.
18614
186152008-02-01 Jason Rumney <jasonr@gnu.org>
18616
18617 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18618
18619 * w32fns.c: Include imm.h.
18620 (get_composition_string_fn, get_ime_context_fn): New optional
18621 system functions.
18622 (globals_of_w32fns): Load them from imm32.dll.
18623 (ignore_ime_char): New flag.
18624 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18625 WM_IME_ENDCOMPOSITION messages.
18626
18627 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18628 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18629
186302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18631
18632 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18633 (READCHAR_REPORT_MULTIBYTE): New macro.
18634 (readchar): New 2nd arg MULTIBYTE.
18635 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18636 Make symbol's name multibyte according to the multibyteness of the
18637 source.
18638
186392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18640
18641 * xfaces.c (face_for_overlay_string): Call lookup_face with
18642 correct arguments (fix of synching with the trunk).
18643
186442008-02-01 Kenichi Handa <handa@m17n.org>
18645
18646 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18647 (font_prop_validate_non_neg, font_prop_validate_spacing):
18648 Delete argument prop_index.
18649 (font_property_table): Change arguments to validater. Change Callers.
18650 (font_lispy_object): Delete.
18651 (font_at): Use font_find_object instead fo font_lispy_object.
18652
186532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18654
18655 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18656 and file names.
18657
186582008-02-01 Jason Rumney <jasonr@gnu.org>
18659
18660 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18661 (font_matches_spec): Remove debug output.
18662 (add_font_entity_to_list): Avoid using substituted fonts.
18663
186642008-02-01 Jason Rumney <jasonr@gnu.org>
18665
18666 * doc.c (Fsnarf_documentation):
18667 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18668
186692008-02-01 Miles Bader <miles@gnu.org>
18670
18671 * dispextern.h (struct glyph_row): Only define "clip" field if
18672 HAVE_WINDOW_SYSTEM is defined.
18673
186742008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18675
18676 Fix up multi-tty merge.
18677
18678 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18679 and indentation.
18680
18681 * xfaces.c (free_realized_face, clear_face_gcs):
18682 Include font_done_for_face in the input_blocked section, just in case.
18683
18684 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18685 (get_char_face_and_encoding): Undo last change and remove the *other*
18686 duplicate definition (i.e. keep the one that's better scoped and that
18687 includes code for the font-backend).
18688
18689 * terminal.c (create_terminal): Default keyboard_coding to
18690 `no-conversion' and terminal_coding to `undecided'.
18691
18692 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18693
18694 * fontset.c (free_realized_fontsets): Check that the table entry does
18695 contain a fontset before trying to compare it to `base'.
18696
18697 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18698 syms_of_charset, and syms_of_coding earlier because init_window_once
18699 now needs Vcoding_system_hash_table to be setup.
18700
18701 * coding.h (default_buffer_file_coding): Remove.
18702
18703 * coding.c (default_buffer_file_coding): Remove.
18704 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18705 than ->symbol, and use the terminal-local coding system.
18706 (syms_of_coding): Don't setup the coding-systems that are not
18707 terminal-local.
18708 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18709
18710 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18711 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18712
18713 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18714 in chartab.c and were re-added here by mistake.
18715 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18716
18717 * doc.c (Fsnarf_documentation):
18718 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18719 src to etc.
18720
18721 * ChangeLog.10: Add mistakenly removed entry.
18722
187232008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18724
18725 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18726
187272008-02-01 Miles Bader <miles@gnu.org>
18728
18729 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18730 Add extra args to FACE_FOR_CHAR.
18731
187322008-02-01 Kenichi Handa <handa@m17n.org>
18733
18734 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18735 in sequence.
18736
18737 * chartab.c (map_sub_char_table, map_char_table): If the range
18738 contains just one character, call the function with that character
18739 even if the depth is not 3.
18740
187412008-02-01 Jason Rumney <jasonr@gnu.org>
18742
18743 * w32font.c (w32font_text_extents): Calculate metrics for the
18744 whole string.
18745
187462008-02-01 Jason Rumney <jasonr@gnu.org>
18747
18748 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18749
187502008-02-01 Jason Rumney <jasonr@gnu.org>
18751
18752 * w32term.c (x_set_glyph_string_clipping): Use
18753 get_glyph_string_clip_rects.
18754 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18755 Adjust for the change of struct glyph_string.
18756
18757 * w32font.c (w32font_draw): Do clipping here.
18758
187592008-02-01 Kenichi Handa <handa@m17n.org>
18760
18761 * xftfont.c (xftfont_draw): Adjust for the change of struct
18762 glyph_string.
18763
18764 * xterm.c (x_set_glyph_string_clipping): Use
18765 get_glyph_string_clip_rects.
18766 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18767 Adjust for the change of struct glyph_string.
18768
18769 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18770 the resulting clip(s}.
18771 (expose_overlaps): Add arg r. Change callers. Set it to
18772 row->clip temporarily.
18773 (expose_window): Redraw rows overlapping the exposed area.
18774
18775 * dispextern.h (struct glyph_row): New member clip.
18776 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18777 clip_height, new member clip, and num_clips.
18778
187792008-02-01 Kenichi Handa <handa@m17n.org>
18780
18781 * data.c (Fchar_or_string_p): Fix docstring.
18782
187832008-02-01 Kenichi Handa <handa@m17n.org>
18784
18785 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18786 create a temporary XftDraw object.
18787
187882008-02-01 Kenichi Handa <handa@m17n.org>
18789
18790 * font.c (Ffontp): Fix docstring.
18791
18792 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18793 strong evidence of ISO-2022.
18794
187952008-02-01 Kenichi Handa <handa@m17n.org>
18796
18797 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18798 SYNTAX_ENTRY_FOLLOW_PARENT.
18799
188002008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18801
18802 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18803 its type.
18804 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18805 Update to the new type of weak_hash_tables and next_weak.
18806
18807 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18808 a plain C pointer to Lisp_Hash_Table.
18809
18810 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18811 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18812 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18813 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18814 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18815 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18816 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18817 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18818 (GC_EQ): Remove since they've been identical to their non-GC_
18819 alter-egos ever since the markbit was eradicated.
18820
18821 * alloc.c:
18822 * buffer.c:
18823 * buffer.h:
18824 * data.c:
18825 * fileio.c:
18826 * filelock.c:
18827 * fns.c:
18828 * frame.h:
18829 * lisp.h:
18830 * macterm.c:
18831 * print.c:
18832 * process.c:
18833 * w32fns.c:
18834 * w32menu.c:
18835 * w32term.c:
18836 * xfns.c:
18837 * xmenu.c:
18838 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18839
188402008-02-01 Kenichi Handa <handa@m17n.org>
18841
18842 * chartab.c (map_sub_char_table): Make it work for the top-level
18843 char-table. Fix handling of parent char-table.
18844 (map_char_table): Adjust for the above change.
18845
188462008-02-01 Jason Rumney <jasonr@gnu.org>
18847
18848 * w32font.c (Qgdi): Rename from Qw32.
18849
188502008-02-01 Jason Rumney <jasonr@gnu.org>
18851
18852 * w32bdf.c (get_quoted_string): Make function static.
18853
188542008-02-01 Kenichi Handa <handa@m17n.org>
18855
18856 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18857 bigger ascent and descent than those of the font, use them as
18858 font's ascent and descent.
18859
188602008-02-01 Kenichi Handa <handa@m17n.org>
18861
18862 * Makefile.in (${lispsource}international/charprop.el): Move this
18863 target within "#ifdef HAVE_UNIDATA" and "#endif".
18864
188652008-02-01 Kenichi Handa <handa@m17n.org>
18866
18867 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18868 (shortlisp): Add ../lisp/language/tai-viet.el.
18869
188702008-02-01 Ulrich Mueller <ulm@gentoo.org>
18871
18872 * Makefile.in (${lispsource}international/charprop.el): Depend on
18873 temacs${EXEEXT}.
18874
188752008-02-01 Jason Rumney <jasonr@gnu.org>
18876
18877 * w32font.c (w32font_close): Delete the GDI font object.
18878
18879 * w32menu.c: Include character.h.
18880
18881 * w32proc.c: Likewise.
18882
18883 * w32select.c: Likewise.
18884
18885 * makefile.w32-in (w32proc.o): Depend on character.h.
18886
188872008-02-01 Jason Rumney <jasonr@gnu.org>
18888
18889 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18890
18891 * w32menu.c (syms_of_w32menu): Likewise.
18892
18893 * w32proc.c (syms_of_ntproc): Likewise.
18894
18895 * w32select.c (syms_of_w32select): Likewise.
18896
18897 * w32term.c (syms_of_w32term): Likewise.
18898
188992008-02-01 Jason Rumney <jasonr@gnu.org>
18900
18901 * w32font.c (w32font_draw): Delete brush after using it.
18902
189032008-02-01 Jason Rumney <jasonr@gnu.org>
18904
18905 * w32font.c (w32font_open): Don't set font_idx.
18906 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18907 to font settings.
18908 (w32font_draw): Fill background explicitly.
18909
189102008-02-01 Jason Rumney <jasonr@gnu.org>
18911
18912 * w32term.c (w32_initialize): Don't call w32font_initialize.
18913
18914 * w32font.c (w32font_info): Remove subranges.
18915 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18916 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18917 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18918 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18919 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18920 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18921 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18922 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18923 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18924 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18925 New symbols.
18926 (font_callback_data): New struct.
18927 (w32font_list, w32font_match): Use it.
18928 (w32font_open): Don't populate subranges.
18929 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18930 (w32font_encode_char): Always return unicode code-point as-is.
18931 (w32font_text_extents): Supply a transformation matrix to
18932 GetGlyphOutline. Never look up by glyph index. Avoid looping
18933 twice. Use unicode version of GetTexExtentPoint32 instead of
18934 glyph index version.
18935 (set_fonts_frame): Remove.
18936 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18937 set frame parameter. Use backward compatible fake foundries.
18938 Save generic family in extra slot under QCfamily. Make width slot
18939 constant. Save QCspacing value. Save list of scripts instead of
18940 binary subranges.
18941 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18942 (add_font_entity_to_list): Use font_callback_data struct. Filter
18943 unwanted fonts.
18944 (add_one_font_entity_to_list): Use font_callback_data struct.
18945 (w32_registry): Default to iso10646_1.
18946 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18947 string font registries. Don't fill in font name if it is a generic
18948 family name, fill family instead. Use spacing, family and script
18949 extra info to fill pitch, family and charset fields.
18950 (list_all_matching_fonts): Use font_callback_data struct.
18951 (unicode_range_for_char): Remove.
18952 (font_supported_scripts): New function.
18953 (w32font_initialize): Remove.
18954 (syms_of_w32font): Update which symbols are defined.
18955
189562008-02-01 Jason Rumney <jasonr@gnu.org>
18957
18958 * font.c (font_pixel_size): Reverse assq_no_quit args.
18959
18960 * w32term.h (FONT_WIDTH): Report max width, not average.
18961 (FONT_MAX_WIDTH): Remove.
18962 (FONT_AVG_WIDTH): New macro.
18963
18964 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18965 redefinition of FONT_WIDTH.
18966
18967 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18968 (w32_cache_char_metrics): Use FONT_WIDTH.
18969
18970 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18971
189722008-02-01 Jason Rumney <jasonr@gnu.org>
18973
18974 * w32font.c (w32font_open): Make lfHeight negative.
18975
18976 * w32fns.c (x_default_font_parameter): Use new style font name.
18977 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18978
189792008-02-01 Jason Rumney <jasonr@gnu.org>
18980
18981 * w32font.c (QCsubranges): New symbol.
18982 (w32font_open, w32font_has_char): Get subranges from subproperty
18983 of extra.
18984 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18985 (syms_of_w32font): Define :subranges symbol.
18986
18987 * font.c (font_put_extra): Expose externally.
18988
18989 * font.h (font_put_extra): Move declaration from font.c.
18990
18991 * font.c (Ffont_get): Use font driver to determine otf capability.
18992 (adjust_anchor): Check if driver defines anchor_point before using.
18993
18994 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18995 (w32font_draw): Use options.
18996 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18997 Fix detection of truetype fonts.
18998 (registry_to_w32_charset): Handle charsets other than iso8859-1
18999 expressed as lisp symbols.
19000 (w32_registry): Express charset as lisp symbol.
19001 (fill_in_logfont): Reverse pixel and point height logic.
19002 Don't set width here. Set quality to default.
19003
19004 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19005 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19006
19007 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19008 Remove redundant loop and allocation.
19009
19010 * makefile.w32-in (font.o, w32font.o): New objects.
19011 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19012 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19013
19014 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19015 STORE_XCHARB a valid l-value.
19016
19017 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19018 calculations for non-Truetype fonts.
19019 (x_draw_glyph_string): Sync with xterm.c.
19020 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19021 Remove redundant code.
19022 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19023
19024 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19025 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19026
19027 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19028 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19029
19030 * w32font.c: New file for w32 font backend.
19031
190322008-02-01 Kenichi Handa <handa@m17n.org>
19033
19034 * term.c: Don't include "buffer.h" twice.
19035
190362008-02-01 Kenichi Handa <handa@m17n.org>
19037
19038 * character.c (Funibyte_string): New function.
19039 (syms_of_character): Defsubr it.
19040
190412008-02-01 Jason Rumney <jasonr@gnu.org>
19042
19043 * w32term.c [USE_FONT_BACKEND]:
19044 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19045 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19046 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19047 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19048 (x_free_frame_resources): Sync with xterm.c.
19049
190502008-02-01 Andreas Schwab <schwab@suse.de>
19051
19052 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19053 char-table size.
19054
190552008-02-01 Kenichi Handa <handa@m17n.org>
19056
19057 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19058
190592008-02-01 Kenichi Handa <handa@m17n.org>
19060
19061 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19062 font_otf_gpos, add font_drive_otf.
19063
19064 * fontset.c (fontset_find_font): Pay attention to font size
19065 specified for a font.
19066 (reorder_font_vector): Check contents of font_def.
19067
19068 * font.c (struct otf_list): Delete it.
19069 (otf_list): Make it a lisp variable.
19070 (otf_open): Use lispy otf_list.
19071 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19072 (check_otf_features): New function.
19073 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19074 New functions.
19075 (font_drive_otf): New function merging font_otf_gsub and
19076 font_otf_gpos.
19077 (font_open_for_lface): New arg spec. Change argument order.
19078 (font_load_for_face): Adjust for the change of font_open_for_lface.
19079 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19080 Ffont_otf_gpos.
19081 (syms_of_font): Staticpro otf_list. Delete defsubr of
19082 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19083
19084 * xfaces.c (set_font_frame_param): Adjust for the change of
19085 font_open_for_lface.
19086
19087 * font.h (font_open_for_lface): Adjust prototype.
19088 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19089 member otf_drive.
19090 (font_otf_gsub, font_otf_gpos): Delete externs.
19091 (font_drive_otf): Extern it.
19092
190932008-02-01 Kenichi Handa <handa@m17n.org>
19094
19095 * font.c (font_at): If the window W is not on a window system,
19096 return Qnil.
19097
19098 * coding.c (produce_chars, encode_coding): Don't call
19099 insert_from_gap if no characters to produce.
19100
191012008-02-01 Kenichi Handa <handa@m17n.org>
19102
19103 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19104 Fclear_face_cache.
19105
19106 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19107
191082008-02-01 Miles Bader <miles@gnu.org>
19109
19110 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19111 Parse "--disable-font-backend" option.
19112 (standard_args): Add "--disable-font-backend" option.
19113
191142008-02-01 Kenichi Handa <handa@m17n.org>
19115
19116 * fontset.c (fontset_find_font): New function.
19117 (fontset_font): Use fontset_find_font.
19118 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19119 Register the specified font for all Latin characters.
19120 (new_fontset_from_font): Register the specified font for all Latin
19121 characters.
19122 (dump_fontset): For a realized fontset, include the base fontset
19123 name in the returned vector.
19124
191252008-02-01 Kenichi Handa <handa@m17n.org>
19126
19127 * character.h (CHAR_STRING): Cast C to unsigned on calling
19128 char_string.
19129
19130 * character.c (char_string): Type of arg C changed to unsigned.
19131 Signal an error if C is an invalid character code.
19132
19133 * editfns.c (general_insert_function, Fchar_to_string):
19134 Use CHARACTERP, not INTEGERP.
19135
191362008-02-01 Kenichi Handa <handa@m17n.org>
19137
19138 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19139 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19140
19141 * regex.c (analyse_first): Fix for multibyte characters in "case
19142 charset:" and "case categoryspec:".
19143
191442008-02-01 Andreas Schwab <schwab@suse.de>
19145
19146 * Makefile.in (LIBES): Move standard libraries to the end.
19147
191482008-02-01 Kenichi Handa <handa@m17n.org>
19149
19150 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19151 nonzero, don't shrink the buffer nextb.
19152
19153 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19154
19155 * coding.c (coding_alloc_by_making_gap): New arg offset.
19156 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19157 offset.
19158 (decode_coding_iso_2022): Update coding->safe_charsets.
19159 (decode_coding_gap): Temporarily set
19160 current_buffer->text->inhibit_shrinking to 1.
19161
191622008-02-01 Kenichi Handa <handa@m17n.org>
19163
19164 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19165 indexing into elements of s->cmp and s->char2b.
19166
191672008-02-01 Juanma Barranquero <lekktu@gmail.com>
19168
19169 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19170
191712008-02-01 Kenichi Handa <handa@m17n.org>
19172
19173 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19174 target_multibyte instead of multibyte.
19175 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19176 (bcmp_translate): Change the argument name from multibyte to
19177 target_multibyte.
19178
191792008-02-01 Kenichi Handa <handa@m17n.org>
19180
19181 These changes are to compile a regexp into a pattern that can be
19182 used both for multibyte and unibyte targets.
19183
19184 * Makefile.in (search.o): Depend on charset.h.
19185
19186 * character.c (multibyte_char_to_unibyte_safe): New function.
19187
19188 * search.c: Include "charset.h".
19189 (compile_pattern_1): Delete argument multibyte. Don't set
19190 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19191 (compile_pattern): Don't compare cp->buf.target_multibyte.
19192 Compare cp->buf.charset_unibyte.
19193 (compile_pattern): Set cp->buf.target_multibyte.
19194
19195 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19196
19197 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19198
19199 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19200 multibyte. Change callers.
19201 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19202 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19203 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19204 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19205 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19206 (regex_compile): Make the compiled pattern usable both for
19207 multibyte and unibyte targets.
19208 (analyse_first): Make the fastmap usable both for multibyte and
19209 unibyte targets.
19210 (TRANSLATE_VIA_MULTIBYTE): Delete.
19211 (re_match_2_internal): Pay attention to the case that the
19212 multibyteness of bufp and target may be different.
19213
192142008-02-01 Kenichi Handa <handa@m17n.org>
19215
19216 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19217 empty box occupy at least one column width.
19218
192192008-02-01 Miles Bader <miles@gnu.org>
19220
19221 * Makefile.in: Remove redundant HAVE_XFT clause.
19222
192232008-02-01 Kenichi Handa <handa@m17n.org>
19224
19225 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19226
192272008-02-01 Kenichi Handa <handa@m17n.org>
19228
19229 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19230 being nil.
19231
192322008-02-01 Kenichi Handa <handa@m17n.org>
19233
19234 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19235
192362008-02-01 Kenichi Handa <handa@m17n.org>
19237
19238 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19239
192402008-02-01 Kenichi Handa <handa@m17n.org>
19241
19242 * search.c (simple_search): Fix previous change.
19243
192442008-02-01 Kenichi Handa <handa@m17n.org>
19245
19246 * xftfont.c (ftfont_font_format): Extern declaration.
19247
19248 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19249
19250 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19251 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19252
19253 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19254 (ftfont_font_format): Fix previous change.
19255
19256 * font.h (Ffont_xlfd_name): EXFUN it.
19257
19258 * font.c (font_parse_xlfd): Fix the array size of `f'.
19259 (register_font_driver): Use EQ to compare driver->type.
19260
19261 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19262 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19263 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19264
192652008-02-01 Kenichi Handa <handa@m17n.org>
19266
19267 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19268 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19269
192702008-02-01 Kenichi Handa <handa@m17n.org>
19271
19272 * xfont.c (xfont_open): Set font->format.
19273
19274 * xftfont.c (xftfont_open): Set font->format.
19275
19276 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19277 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19278 (ftfont_open): Set font->format.
19279 (ftfont_font_format): New function.
19280
19281 * font.h (struct font): New member format.
19282
19283 * font.c (Qopentype): New variable.
19284 (syms_of_font): Defsym it.
19285 (Fquery_font): Change the format of the last element of the return
19286 value.
19287
192882008-02-01 Kenichi Handa <handa@m17n.org>
19289
19290 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19291 last resort.
19292
192932008-02-01 Kenichi Handa <handa@m17n.org>
19294
19295 * coding.c (detect_coding_charset): Fix detection of multi-byte
19296 charset.
19297
192982008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19299
19300 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19301
193022008-02-01 Kenichi Handa <handa@m17n.org>
19303
19304 * xdisp.c (get_next_display_element): Set it->face_id for the
19305 first component of a composition.
19306 (x_produce_glyphs): Check if the font is changed or not for composition.
19307
193082008-02-01 Kenichi Handa <handa@m17n.org>
19309
19310 * fontset.c (Qlatin): New variable.
19311 (syms_of_fontset): Define it as a lisp symbol.
19312 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19313
193142008-02-01 Kenichi Handa <handa@m17n.org>
19315
19316 * font.c (font_unparse_fcname): Pay attention to the case that
19317 some of font property is a null string.
19318
193192008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * term.c: Include "composite.h".
19322 (encode_terminal_code): Output all components of composition.
19323 Check the size of encode_terminal_src.
19324 (produce_glyphs): For composition, call produce_composite_glyph.
19325 (append_composite_glyph, produce_composite_glyph): New functions.
19326
19327 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19328 is not found, get font_info from the current ascii face.
19329
193302008-02-01 Kenichi Handa <handa@m17n.org>
19331
19332 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19333 buffer-file-name to Qnil before calling insert_from_buffer.
19334
19335 * font.c (font_unparse_fcname): Pay attention to the case that
19336 foundry is a null string.
19337
193382008-02-01 Kenichi Handa <handa@m17n.org>
19339
19340 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19341
19342 * font.c (Qunicode_sip): New variable.
19343 (syms_of_font): Declare it as a Lisp symbol.
19344
19345 * font.h (Qunicode_sip): Extern it.
19346
193472008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 * composite.c (get_composition_id): Pay attention to TAB component.
19350
19351 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19352 TAB. Adjust for the change of s->char2b which always points to
19353 the first element of allocated memory.
19354
19355 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19356
19357 * xdisp.c (handle_composition_prop): Set it->c to the first
19358 non-TAB component.
19359 (fill_composite_glyph_string): Change argument.
19360 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19361 (x_produce_glyphs): Fix handling of left/right padding.
19362
193632008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * coding.c (detect_coding_system): Fix for handling off
19366 inhibit_iso_escape_detection. Fix for the case that no coding
19367 system is defined for a specific coding category.
19368
193692008-02-01 Kenichi Handa <handa@m17n.org>
19370
19371 * font.c (font_matching_entity): Delete unused local var.
19372
19373 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19374 opening a font.
19375
19376 * fileio.c (Finsert_file_contents): On recovering a file, assume
19377 Unix-like eol.
19378 (choose_write_coding_system): On auto-saving a file, force
19379 Unix-like eol.
19380
19381 * coding.c (setup_coding_system): Fix setting of
19382 coding->common_flags based on eol_type.
19383 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19384 inherit from it.
19385
193862008-02-01 Kenichi Handa <handa@m17n.org>
19387
19388 * alloc.c (NSTATICS): Increas to 0x600.
19389
193902008-02-01 Kenichi Handa <handa@m17n.org>
19391
19392 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19393 (ftfont_list): Don't check :name property.
19394 (ftfont_match): New function.
19395 (ftfont_pattern_entity): If the pattern doesn't contain
19396 FC_SPACING, don't assume FC_MONO.
19397
19398 * font.h (struct font_driver): New member `match'.
19399 (font_update_drivers): Adjust prototype.
19400
19401 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19402 property of FONT.
19403 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19404 them unconditionally.
19405 (font_matching_entity): New function.
19406 (font_open_by_name): Try font_matching_entity if exact match is
19407 not found.
19408 (font_update_drivers): Delete the arg FONT. Return a list of
19409 actually used backends. Don't free faces, font caches here.
19410 Don't store data in frame parameters. Don't call x_set_font.
19411 (Ffont_spec): Store :name property as is.
19412 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19413 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19414 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19415 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19416 Call font->driver->otf_gsub instead of font_otf_gsub.
19417
19418 * frame.c (x_set_font_backend): Do more works that were done in
19419 font_update_drivers before.
19420
19421 * xfont.c (xfont_match): New function.
19422 (xfont_driver): Set xfont_driver.match to xfont_match.
19423 (xfont_draw): Set font in GC if necessary.
19424
19425 * ftxfont.c (ftxfont_match): New function.
19426 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19427
19428 * xftfont.c (xftfont_match): New function.
19429 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19430
194312008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * font.h (struct font): New member scalable.
19434 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19435 (font_otf_gsub): Adjust prototype.
19436
19437 * font.c (font_otf_capability): Fix handling of the default langsys.
19438 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19439 Check the contents of SPEC.
19440 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19441 (check_gstring): New function.
19442 (REPLACEMENT_CHARACTER): New macro.
19443 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19444 glyph codes of GSTRING.
19445 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19446 (font_prepare_composition): Set cmp->glyph_len.
19447 (font_open_entity): Set font->scalable.
19448 (Ffont_get): Handle :otf property.
19449 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19450 functions.
19451 (Fquery_font): Use font->font.full_name.
19452 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19453 Sfont_otf_alternates.
19454
19455 * ftfont.c (ftfont_open): Set font->font.full_name and
19456 font->font.name properly. Fix calculation of font->font.height
19457 and font->min_width.
19458
19459 * ftxfont.c (ftxfont_create_gcs): New function.
19460 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19461 (ftxfont_draw_backgrond): Fix filling region.
19462 (ftxfont_default_fid): New function.
19463 (ftxfont_open): Set xfont->fid to the return value of
19464 ftxfont_default_fid.
19465 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19466 (ftxfont_done_face): Free only GCs that are created by
19467 ftxfont_create_gcs.
19468 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19469
19470 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19471 Clip to src->width, etc (not src->clip_XXX).
19472
19473 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19474 FontBackend frame parameter.
19475
194762008-02-01 Kenichi Handa <handa@m17n.org>
19477
19478 * font.h (struct font_driver_list): New member `on'.
19479 (Fclear_font_cache): EXFUN it.
19480 (font_update_drivers): Extern it.
19481
19482 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19483 (font_list_entities): Check driver_list->on.
19484 (register_font_driver): Initalize `on' member to 0.
19485 (font_update_drivers): New function.
19486 (Fclear_font_cache): Check driver_list->on.
19487
19488 * frame.h (Qfont_backend): Extern it.
19489 (x_set_font_backend): Extern it.
19490
19491 * frame.c (Qfont_backend): New variable.
19492 (frame_parms): New element for font-backend.
19493 (x_set_font_backend): New function.
19494
19495 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19496 FontBackend frame parameter.
19497 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19498 x_set_font_backend.
19499
19500 * xfont.c (xfont_list): Don't try listing by :name property if the
19501 name is not for XLFD.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19506 (LGLYPH_SET_TO): New macros.
19507 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19508 element of G is vector or not.
19509 (font_at): Extern it.
19510
19511 * font.c: Include window.h.
19512 (font_lispy_object): New function.
19513 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19514 end of valid glyph.
19515 (font_close_object): Fix getting (struct font *).
19516 (font_at): New function.
19517 (Ffont_get): If FONT is a font-object, get entity from it.
19518 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19519 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19520 range check.
19521 (Ffont_at): New function.
19522 (syms_of_font): Defsubr Sfont_at.
19523
19524 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19525 before the entry for Qcomposition.
19526 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19527 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19528 the font in gstring.
19529 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19530 LGLYPH_FORM (g) to detect the end of valid glyph.
19531 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19532 we are composing with gstring.
19533
19534 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19535 Check if adjustment is vector or not.
19536
19537 * Makefile.in (font.o): Make it depends on window.h.
19538
195392008-02-01 Kenichi Handa <handa@m17n.org>
19540
19541 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19542 adjustment is vector or not.
19543
195442008-02-01 Miles Bader <miles@gnu.org>
19545
19546 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19547
195482008-02-01 Kenichi Handa <handa@m17n.org>
19549
19550 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19551 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19552 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19553
19554 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19555 (DEVICE_DELTA): Fix typo.
19556 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19557 LGLYPH format.
19558
19559 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19560 the change of LGLYPH format.
19561
195622008-02-01 Kenichi Handa <handa@m17n.org>
19563
19564 * ftfont.c (ftfont_list): Fix typo.
19565 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19566
195672008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19568
19569 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19570
19571 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19572 xftface_info is non-NULL.
19573
195742008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19575
19576 * ftfont.c (ftfont_list): Move misplaced #endif.
19577
195782008-02-01 Kenichi Handa <handa@m17n.org>
19579
19580 * ftfont.c (ftfont_list): Pay attention to the case that
19581 FC_CAPABILITY is not defined.
19582
195832008-02-01 Kenichi Handa <handa@m17n.org>
19584
19585 * xftfont.c (xftfont_open): Set charset related members to -1.
19586
19587 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19588 QCname.
19589 (ftfont_open): Set charset related members to -1.
19590
19591 * fontset.c (Votf_script_alist): New variable.
19592 (syms_of_fontset): Initialize it.
19593 (fontset_font): Delete unused variable.
19594
19595 * fontset.h (Votf_script_alist): Extern it.
19596
19597 * font.c (font_find_for_lface): Optimize code.
19598
19599 * font.h (font_close_object, font_merge_old_spec): Extern them.
19600
196012008-02-01 Kenichi Handa <handa@m17n.org>
19602
19603 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19604 (syms_of_font): Initialize them.
19605 (font_pixel_size): Allow float value in dpi.
19606 (font_prop_validate_type): Delete.
19607 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19608 Change caller.
19609 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19610 (font_prop_validate_extra): Delete.
19611 (font_prop_validate_spacing): New function.
19612 (font_property_table): Add elements for all known properties.
19613 (get_font_prop_index): Rename from check_font_prop_name. New
19614 argument FROM. Change caller.
19615 (font_prop_validate): Validate all known properties.
19616 (font_put_extra): Delete argument force. Change caller.
19617 (font_expand_wildcards): Make it static. Fix the way of shrinking
19618 the possible range.
19619 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19620 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19621 Change caller.
19622 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19623 (font_parse_fcname): Delete argument merge. Fix parsing of point
19624 size. Don't validate properties values here. Change caller.
19625 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19626 (font_open_by_name): Delete unused variable.
19627 (Ffont_spec): Likewise. Validate property values.
19628 (Ffont_match_p): New function.
19629
19630 * font.h (QCscalable): Extern it.
19631 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19632
19633 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19634
19635 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19636 (xfont_list_pattern): New function.
19637 (xfont_list): Use xfont_list_pattern.
19638
196392008-02-01 Kenichi Handa <handa@m17n.org>
19640
19641 * font.h (Flist_fonts): EXFUN it.
19642
196432008-02-01 Jason Rumney <jasonr@gnu.org>
19644
19645 * w32term.c (w32_initialize): Add back smoothing_type and
19646 smoothing_enabled definitions.
19647
196482008-02-01 Kenichi Handa <handa@m17n.org>
19649
19650 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19651 s->face->font on determining underline position.
19652
196532008-02-01 Kenichi Handa <handa@m17n.org>
19654
19655 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19656 (font_has_char): Accept font-object too.
19657 (font_find_for_lface): Try at first with a size specified in face.
19658
196592008-02-01 Kenichi Handa <handa@m17n.org>
19660
19661 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19662 font_open_by_name.
19663
196642008-02-01 Kenichi Handa <handa@m17n.org>
19665
19666 * font.h (QCspacing, QCdpi): Extern them.
19667 (enum font_spacing): New enum.
19668 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19669
19670 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19671 (QCspacing, QCdpi): New variables.
19672 (syms_of_font): Initialize them.
19673 (font_pixel_size): New function.
19674 (font_put_extra): New function.
19675 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19676 in FONT_EXTRA.
19677 (font_parse_fcname): Handle enumerated values (e.g. bold).
19678 Fix handling font size. Add QCname property that contains only
19679 unknown properties.
19680 (font_score): Change argument. Change caller. Pay attention to
19681 FONT_PIXEL_SIZE_QUANTUM.
19682 (font_sort_entites, font_list_entities, font_find_for_lface)
19683 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19684 (Ffont_spec): Add QCname property that contains only unknown properties.
19685
19686 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19687 include weight in listing pattern, instead check weight of each
19688 listed font. Don't include scalable in pattern. Pay attention to
19689 FONT_PIXEL_SIZE_QUANTUM.
19690
196912008-02-01 Kenichi Handa <handa@m17n.org>
19692
19693 * font.c (font_parse_fcname): Fix parsing of point-size.
19694 (font_unparse_fcname): Produce symbolic names for style properties.
19695 (font_list_entities): Handle float size correctly.
19696 (font_open_by_name): Prefer `normal' property values if the name
19697 doesn't specify them.
19698
19699 * fontset.c (Finternal_char_font): Use font_get_name, not
19700 Ffont_xlfd_name.
19701
19702 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19703 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19704 pattern. Don't force scalable.
19705
19706 * xftfont.c (xftfont_open): For generating a name, start from
19707 96-byte buffer.
19708
197092008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19710
19711 * frame.h (x_new_fontset2): Fix prototype.
19712
197132008-02-01 Kenichi Handa <handa@m17n.org>
19714
19715 * font.h (struct font_driver): Delete member parse_name.
19716 (font_match_p, font_get_spec, font_parse_fcname)
19717 (font_unparse_fcname): Extern them.
19718 (font_get_name): Adjust prototype.
19719
19720 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19721 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19722 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19723 unnecessary checks for weight, slant, and swidth.
19724 (font_parse_fcname): New function.
19725 (font_unparse_fcname): New function.
19726 (font_parse_name): New function.
19727 (font_match_p): New function.
19728 (font_get_name): Change return value to Lisp string.
19729 (font_get_spec): New function.
19730 (Qunspecified, Qignore_defface): Don't extern them.
19731 (font_find_for_lface): Assume that LFACE is fully specified.
19732 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19733 object, use it for FACE.
19734 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19735 driver->parse_name.
19736 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19737
19738 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19739 prototype.
19740
19741 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19742 argument F. Don't call Fnew_fontset. Instead, directly call
19743 make_fontset.
19744
19745 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19746
19747 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19748 of x_new_fontset2.
19749
19750 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19751 (Qsans__serif): New variables.
19752 (ftfont_generic_family_list): New variable.
19753 (syms_of_ftfont): Initialize the above variables.
19754 (ftfont_pattern_entity): Delete argument NAME.
19755 (ftfont_list_generic_family): New function.
19756 (ftfont_parse_name): Delete this function.
19757 (ftfont_list): Try generic family only when FcFontList found no font.
19758 (ftfont_list_family): Fix args to FcObjectSetBuild.
19759
19760 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19761 object in attrs[LFACE_FONT_INDEX].
19762 (set_lface_from_font_name): Cancel all changes for font-backend.
19763 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19764 function.
19765 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19766 font object in QCfont attribute.
19767 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19768 (realize_default_face) [USE_FONT_BACKEND]: Call
19769 set_lface_from_font_and_fontset.
19770
19771 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19772 "fixed", and signal error here if no suitable font was found.
19773
19774 * xfont.c (xfont_parse_name): Delete this function.
19775
19776 * xftfont.c (xftfont_open): Change coding style of error
19777 handling. Generate fontconfig's fontname pattern.
19778
19779 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19780 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19781
19782 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19783 Both args FONTSET and FONT_OBJECT must be existing ones.
19784
197852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19786
19787 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19788
197892008-02-01 Kenichi Handa <handa@m17n.org>
19790
19791 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19792
19793 * font.h (struct font): Fix typo.
19794
19795 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19796 XLFD_XXX_INDEX.
19797 (enum xlfd_field_mask): New enum.
19798 (intern_font_field): Changed argument. Change caller. If digits
19799 are followed by non-digits, return a symbol.
19800 (font_expand_wildcards): New function.
19801 (font_parse_xlfd): Fix wildcard handling.
19802 (Ffont_spec): If :name is specified, reflect the info in the other
19803 properties.
19804
19805 * ftfont.c (ftfont_pattern_entity): Fix typo.
19806 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19807 locale.
19808
198092008-02-01 Kenichi Handa <handa@m17n.org>
19810
19811 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19812
19813 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19814 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19815 registry doesn't specify encoding part.
19816 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19817 (font_open_by_name): At first try parsing the name.
19818 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19819 as Lisp symbols.
19820
19821 * fontset.c (reorder_font_vector): Pay attention to the case that
19822 the 3rd element of font_def is nil.
19823 (fontset_font): For the default fontset, append one more fontset
19824 elements for a script-based font specification. Don't add script
19825 attribute on finding a font.
19826 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19827 font name.
19828 (fontset_ascii_font): If a font can't be opened, return nil.
19829
19830 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19831 (ftfont_pattern_entity): New function.
19832 (ftfont_get_cache): Assume that freetype_font_cache is already
19833 initialized.
19834 (ftfont_list): Handle the case that a file is specified in font
19835 name. Use ftfont_pattern_entity to generate entities.
19836 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19837 (syms_of_ftfont): Initialize freetype_font_cache.
19838
19839 * xftfont.c (xftfont_open): Make the font name fontconfig's
19840 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19841 (xftfont_close): Free font->font.name if not NULL.
19842
19843 * xfont.c (xfont_list): If script is specified for a font, return
19844 null_vector.
19845 (xfont_list_family): Declare argument type.
19846
19847 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19848 name, set LFACE_FONT (lface) to nil.
19849
19850 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19851 return Qnil.
19852
198532008-02-01 Kenichi Handa <handa@m17n.org>
19854
19855 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19856 (standard_args): Add "-enable-font-backend".
19857
198582008-02-01 Kenichi Handa <handa@m17n.org>
19859
19860 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19861 (struct xftdraw_list, xftdraw_list): Delete them.
19862 (register_xftdraw, check_xftdraw): Delete them.
19863 (xftfont_prepare_face): Don't call register_xftdraw.
19864 (xftfont_done_face): Don't call check_xftdraw.
19865 (xftfont_draw): Get background color only when with_background is
19866 nonzero.
19867
19868 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19869
198702008-02-01 Kenichi Handa <handa@m17n.org>
19871
19872 These changes are for the new font handling codes.
19873
19874 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19875 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19876 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19877 (FONTSRC, FONTOBJ): New variables.
19878 (obj): Add $(FONTOBJ).
19879 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19880 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19881 @LIBOTF_LIBS@.
19882 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19883 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19884
19885 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19886
19887 * character.h (Vscript_representative_chars): Extern it.
19888
19889 * character.c (Vscript_representative_chars): New variable.
19890 (syms_of_character): Declare it as a Lisp variable.
19891
19892 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19893 enable_font_backend is nonzero, accept the composition method
19894 COMPOSITION_WITH_GLYPH_STRING.
19895
19896 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19897 enumeration COMPOSITION_WITH_GLYPH_STRING.
19898
19899 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19900 members clip_x, clip_y, clip_width, and clip_height.
19901 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19902
19903 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19904 --enable-font-backend. Call syms_of_font.
19905
19906 * fns.c (assoc_no_quit): New function.
19907
19908 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19909 (face_for_font, new_fontset_from_font)
19910 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19911
19912 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19913 (fontset_font, fontset_ascii, face_for_char)
19914 (make_fontset_for_ascii_face, Ffont_info)
19915 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19916 is nonzero, use font-backend mechanism.
19917 (find_font_encoding): Make it non-static.
19918 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19919 New functions.
19920
19921 * frame.h (struct frame): New members resx and resy.
19922 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19923 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19924
19925 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19926 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19927
19928 * lisp.h (assoc_no_quit): Extern it.
19929
19930 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19931 Through out the file, use FONT_INFO_FROM_FACE instead of
19932 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19933 rif->per_char_metric.
19934 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19935 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19936 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19937 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19938 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19939 nonzero, use font-backend mechanism.
19940 (get_per_char_metric): New function.
19941
19942 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19943 (set_lface_from_font_name)
19944 (set_font_frame_param, free_realized_face)
19945 (prepare_face_for_display, clear_face_gcs)
19946 (Finternal_set_font_selection_order, realize_x_face)
19947 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19948 font-backend mechanism.
19949 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19950 (load_face_font) [USE_FONT_BACKEND]: Abort.
19951 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19952 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19953
19954 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19955 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19956 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19957 nonzero, register all available font drivers. Call
19958 x_default_font_parameter for deciding a font.
19959 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19960
19961 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19962 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19963 (x_set_glyph_string_clipping_exactly)
19964 (x_compute_glyph_string_overhangs)
19965 (x_draw_glyph_string_foreground)
19966 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19967 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19968 enable_font_backend is nonzero, use font-backend mechanism.
19969 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19970
199712008-02-01 Kenichi Handa <handa@m17n.org>
19972
19973 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19974 system_eol_type.
19975 (syms_of_coding): Initialize system_eol_type.
19976
19977 * process.c (Fset_process_coding_system): Inherit system's eol
19978 format if necessary.
19979
199802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19981
19982 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19983
199842008-02-01 Kenichi Handa <handa@m17n.org>
19985
19986 * coding.c (decode_eol): Pay attention to buffer relocation in
19987 del_range_2.
19988 (decode_coding): Call decode_eol before restoring undo_list.
19989
199902008-02-01 Kenichi Handa <handa@m17n.org>
19991
19992 * charset.c (Fdefine_charset_internal): Fix setting of
19993 emacs_mule_bytes.
19994
199952008-02-01 Kenichi Handa <handa@m17n.org>
19996
19997 * keyboard.c (read_char): Check if C is a character or not before
19998 looking up Vkeyboard_translate_table.
19999
200002008-02-01 Kenichi Handa <handa@m17n.org>
20001
20002 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20003 condition to terminate the loop.
20004
200052008-02-01 Kenichi Handa <handa@m17n.org>
20006
20007 * coding.c (produce_composition): Compare charbuf[i] instead of
20008 args[i] against 0.
20009 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20010
200112008-02-01 Kenichi Handa <handa@m17n.org>
20012
20013 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20014 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20015 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20016 detect_coding.
20017 (emacs_mule_char): Handle old style (Emacs 20) component character
20018 of a composition.
20019 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20020 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20021 composition rule.
20022 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20023
200242008-02-01 Kenichi Handa <handa@m17n.org>
20025
20026 * coding.c (encode_coding_ccl): Allocate destination dynamically
20027 when necessary.
20028
200292008-02-01 Kenichi Handa <handa@m17n.org>
20030
20031 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20032 the loop. When quitted, show a proper error message.
20033
200342008-02-01 Kenichi Handa <handa@m17n.org>
20035
20036 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20037 src->clip_head and src->clip_tail temporarily instead of src->hl.
20038
20039 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20040 character sequence.
20041 (Fccl_execute_on_string): Use ASET, not XSET.
20042
200432008-02-01 Kenichi Handa <handa@m17n.org>
20044
20045 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20046
200472008-02-01 Kenichi Handa <handa@m17n.org>
20048
20049 * coding.c (decode_coding): Fix the condition of terminating the
20050 decoding loop.
20051
200522008-02-01 Kenichi Handa <handa@m17n.org>
20053
20054 * data.c (Faset): On setting a character bigger than 255 in a
20055 unibyte string, signal an error instead of make the string multibyte.
20056
200572008-02-01 Kenichi Handa <handa@m17n.org>
20058
20059 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20060 made by a mapping table.
20061
200622008-02-01 Kenichi Handa <handa@m17n.org>
20063
20064 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20065 not.
20066 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20067 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20068
20069 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20070 s->face is NULL or not.
20071
200722008-02-01 Kenichi Handa <handa@m17n.org>
20073
20074 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20075 (x_draw_glyph_string): Fix drawing of right_overhang and
20076 left_overhang around/on cursor.
20077
20078 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20079
200802008-02-01 Kenichi Handa <handa@m17n.org>
20081
20082 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20083
200842008-02-01 Kenichi Handa <handa@m17n.org>
20085
20086 * coding.c (Fdefine_coding_system_internal)
20087 (Fdefine_coding_system_alias): Avoid a duplicated element in
20088 Vcoding_system_alist.
20089
200902008-02-01 Kenichi Handa <handa@m17n.org>
20091
20092 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20093
20094 * coding.c (Qcoding_system_define_form): New variable.
20095 (syms_of_coding): Intern and staticpro it.
20096 (Fcoding_system_p): Check Qcoding_system_define_form.
20097 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20098
20099 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20100 Fcoding_system_p.
20101 (CHECK_CODING_SYSTEM): If ID is not available, call
20102 Fcheck_coding_system.
20103 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20104 Try also Fcheck_coding_system.
20105
201062008-02-01 Kenichi Handa <handa@m17n.org>
20107
20108 * coding.c (code_conversion_restore): GCPRO arg.
20109
201102008-02-01 Kenichi Handa <handa@m17n.org>
20111
20112 * character.c (lisp_string_width): Check multibyteness of STRING.
20113
201142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20115
20116 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20117 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20118 (decode_mac_font_name): Use decode_coding_c_string instead of
20119 decode_coding.
20120 (x_load_font): Initialize fontp->fontset to -1. Set
20121 fontp->encoding_type.
20122
201232008-02-01 Kenichi Handa <handa@m17n.org>
20124
20125 * search.c (search_buffer): Give up BM search on case-fold-search
20126 if one of a target character has a case-equivalence of different
20127 byte length even if that target charcter is an ASCII.
20128 (simple_search): Fix calculation of byte length of matched text.
20129 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20130
201312008-02-01 Kenichi Handa <handa@m17n.org>
20132
20133 * coding.c (decode_coding): Fix handling of invalid bytes.
20134
201352008-02-01 Kenichi Handa <handa@m17n.org>
20136
20137 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20138 Unicode characters.
20139
201402008-02-01 Kenichi Handa <handa@m17n.org>
20141
20142 * coding.c (encode_coding_object): If a pre-write-conversion
20143 function makes a new buffer, kill it.
20144
201452008-02-01 Kenichi Handa <handa@m17n.org>
20146
20147 * coding.c (QCascii_compatible_p): New variable.
20148 (syms_of_coding): Initialize it.
20149 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20150 calling string_char.
20151 (record_conversion_result): Add `default:' case.
20152 (coding_charset_list): Delete unused variable `coding_type'.
20153 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20154 property in the plist of the coding system.
20155 (Fcoding_system_put): Check QCascii_compatible_p.
20156
201572008-02-01 Miles Bader <miles@gnu.org>
20158
20159 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20160 removed calculation of frame `f', as it's now used.
20161
201622008-02-01 Kenichi Handa <handa@m17n.org>
20163
20164 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20165 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20166 (UNIDATA): New variable.
20167 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20168 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20169 $(RUN_TEMACS) unconditionally.
20170
201712008-02-01 Kenichi Handa <handa@m17n.org>
20172
20173 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20174 (admindir): New variable.
20175 ($(lispsource)international/charprop.el): New target.
20176
201772008-02-01 Miles Bader <miles@gnu.org>
20178
20179 * character.c (chars-in-region): Remove obsolete function.
20180 (syms_of_character): Remove its initialization.
20181
201822008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20183
20184 * w32select.c (validate_coding_system)
20185 (setup_windows_coding_system): New functions.
20186 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20187 setup_windows_coding_system.
20188 (setup_config, Fw32_get_clipboard_data): Use
20189 validate_coding_system.
20190 (Fx_selection_exists): Move call to setup_config to a place
20191 where signals are allowed.
20192
20193 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20194 (Fcheck_coding_system): Add declarations.
20195
201962008-02-01 Kenichi Handa <handa@m17n.org>
20197
20198 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20199
202002008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20201
20202 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20203 string as the second argument for x_new_fontset.
20204
202052008-02-01 Kenichi Handa <handa@m17n.org>
20206
20207 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20208 (encode_coding_object): Use safe_call instead of call2.
20209
202102008-02-01 Kenichi Handa <handa@m17n.org>
20211
20212 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20213
20214 * Makefile.in (lisp): Include charprop.el.
20215
202162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20217
20218 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20219 Not sure if it's unnecessary.
20220
202212008-02-01 Steven Tamm <steventamm@mac.com>
20222
20223 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20224 some possibly unnecessary fontset checking code that crashed
20225 when creating a new frame.
20226
202272008-02-01 Kenichi Handa <handa@m17n.org>
20228
20229 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20230 lookup_face.
20231
20232 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20233
20234 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20235
202362008-02-01 Kenichi Handa <handa@m17n.org>
20237
20238 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20239 (coding_charset_list): New function.
20240
20241 * coding.h (coding_charset_list): Extern it.
20242
202432008-02-01 Kenichi Handa <handa@m17n.org>
20244
20245 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20246 concatenation of family and registry.
20247
202482008-02-01 Kenichi Handa <handa@m17n.org>
20249
20250 * character.h (BYTE8_STRING): Fix typo.
20251
20252 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20253 string to multibyte (sync to HEAD).
20254
20255 * casefiddle.c (casify_region): Handle changes in byte-length
20256 using replace_range_2 (sync to HEAD).
20257
202582008-02-01 Andreas Schwab <schwab@suse.de>
20259
20260 * chartab.c (map_char_table): GCPRO table and arg.
20261
202622008-02-01 Kenichi Handa <handa@m17n.org>
20263
20264 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20265 already at limit.
20266
202672008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20270 instead of fast_c_string_match_ignore_case.
20271 (find_font_encoding): Change argument to Lisp_Object. Use
20272 fast_string_match_ignore_case instead of
20273 fast_c_string_match_ignore_case. Change caller.
20274
202752008-02-01 Kenichi Handa <handa@m17n.org>
20276
20277 * xdisp.c (get_next_display_element): In unibyte case, decide to
20278 display in octal form by checking a character by
20279 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20280
20281 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20282
20283 * character.c (unibyte_has_multibyte_table): New variable.
20284
20285 * character.h (unibyte_has_multibyte_table): Extern it.
20286 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20287
202882008-02-01 Kenichi Handa <handa@m17n.org>
20289
20290 * coding.c (encode_coding_iso_2022): Fix handling of charset
20291 annotation.
20292
202932008-02-01 Kenichi Handa <handa@m17n.org>
20294
20295 * coding.c (setup_coding_system): If coding_system is nil, use
20296 Qundecided.
20297 (Fterminal_coding_system): Return nil if terminal coding system is
20298 `undecided'.
20299 (syms_of_coding): Define coding-system `undecided' here. Setup
20300 terminal_coding as `undecided'.
20301
203022008-02-01 Kenichi Handa <handa@m17n.org>
20303
20304 * xdisp.c (message_dolog, set_message_1): Call
20305 unibyte_char_to_multibyte with arg type int.
20306
20307 * lread.c (read1): Fix reading of a char-table.
20308
20309 * print.c (print_object): Include sub char-table in circularities
20310 detection.
20311
203122008-02-01 Kenichi Handa <handa@m17n.org>
20313
20314 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20315 Append the found sequences in car of ARGS instead of prepending.
20316
203172008-02-01 Kenichi Handa <handa@m17n.org>
20318
20319 * fileio.c (report_file_error): Make a unibyte string from
20320 strerror (errorno).
20321 (Fsubstitute_in_file_name): Fix the arg to
20322 unibyte_char_to_multibyte. It is evaluated twice.
20323
203242008-02-01 Kenichi Handa <handa@m17n.org>
20325
20326 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20327
203282008-02-01 Kenichi Handa <handa@m17n.org>
20329
20330 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20331 BOM is not found.
20332 (detect_coding, detect_coding_system): Optimization for ISO-2022
20333 when no 8-bit data is found.
20334
203352008-02-01 Jason Rumney <jasonr@gnu.org>
20336
20337 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20338
203392008-02-01 Kenichi Handa <handa@m17n.org>
20340
20341 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20342 CHARS.
20343
203442008-02-01 Steven Tamm <steventamm@mac.com>
20345
20346 * macterm.c (mac_encode_char): Add charset argument and update
20347 to use encoding_type.
20348 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20349 switch to pure fontset.
20350 (decode_mac_font_name): Temporarily remove decoding.
20351 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20352 (x_load_font): Temporarily remove encoding.
20353
203542008-02-01 Kenichi Handa <handa@m17n.org>
20355
20356 * xfaces.c (Fface_font): If frame is not on a window system,
20357 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20358 refer to face->font.
20359 (split_font_name_into_vector, build_font_name_from_vector)
20360 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20361 when HAVE_WINDOW_SYSTEM is defined.
20362
203632008-02-01 Kenichi Handa <handa@m17n.org>
20364
20365 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20366 (x_produce_glyphs): Fix setting of members of cmp in case
20367 cmp->glyph_len is zero.
20368
20369 * fontset.c (Fset_fontset_font): Fix docstring.
20370 (Ffontset_info): Make it backward compatible. New arg ALL.
20371
203722008-02-01 Kim F. Storm <storm@cua.dk>
20373
20374 * process.c (read_process_output): Grow decoding_buf when needed;
20375 this could cause a crash in allocate_string and compact_small_strings.
20376
203772008-02-01 Kenichi Handa <handa@m17n.org>
20378
20379 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20380
203812008-02-01 Kenichi Handa <handa@m17n.org>
20382
20383 * coding.c (setup_coding_system): Set coding->common_flags
20384 correctly for raw-text.
20385 (consume_chars): On encoding unibyte text by raw-text, don't check
20386 multibyte form.
20387 (encode_coding): On encoding by raw-text, never use translation tables.
20388
20389 * fileio.c (e_write): Short cut for the case of no encoding.
20390
203912008-02-01 Kenichi Handa <handa@m17n.org>
20392
20393 * coding.c (detect_coding, detect_coding_system): Delete unused
20394 variables.
20395
203962008-02-01 Kenichi Handa <handa@m17n.org>
20397
20398 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20399 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20400
204012008-02-01 Kenichi Handa <handa@m17n.org>
20402
20403 * coding.c (Ffind_coding_systems_region_internal): Include
20404 raw-text and no-conversion in the result.
20405
204062008-02-01 Kenichi Handa <handa@m17n.org>
20407
20408 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20409 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20410 FONT_DEF.
20411 (font_def_arg, add_arg, from_arg, to_arg): New args.
20412 (set_fontset_font): Change argument.
20413 (Fset_fontset_font): Fix for the case that TARGET is a script
20414 name and charset name.
20415 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20416
204172008-02-01 Kenichi Handa <handa@m17n.org>
20418
20419 * fontset.c (fontset_font): Rename from fontset_face. Change return
20420 value.
20421 (face_suitable_for_char_p, face_for_char): Adjust for the change
20422 of fontset_font.
20423 (make_fontset_for_ascii_face): Fix setting of the fontset element
20424 for ASCII.
20425 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20426 to get a font name.
20427 (Ffontset_info): Adjust for the change of fontset_font.
20428
20429 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20430
20431 * character.h (LEADING_CODE_LATIN_1_MIN)
20432 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20433
204342008-02-01 Kenichi Handa <handa@m17n.org>
20435
20436 * editfns.c (check_translation): New function.
20437 (Ftranslate_region_internal): Handle M:N mapping.
20438
204392008-02-01 Kenichi Handa <handa@m17n.org>
20440
20441 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20442
204432008-02-01 Kenichi Handa <handa@m17n.org>
20444
20445 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20446 goto invalid_code.
20447 (decode_coding_iso_2022): Fix handling of invalid designation.
20448
20449 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20450 after calling code_conversion_save.
20451
204522008-02-01 Kenichi Handa <handa@m17n.org>
20453
20454 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20455
20456 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20457
20458 * fontset.c: Include "intervals.h".
20459 (fontset_face): Fix comparing of Lisp_Objects.
20460 (free_face_fontset, new_fontset_from_font_name): Fix
20461 Lisp_Object/int mixup.
20462
20463 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20464
20465 * coding.c: Add many prototypes for static functions.
20466 (get_translation_table): Allow max_lookup to be NULL.
20467 (decode_coding, Ffind_coding_systems_region_internal)
20468 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20469 get_translation_table with max_lookup NULL.
20470
204712008-02-01 Kenichi Handa <handa@m17n.org>
20472
20473 * coding.c (get_translation_table): Declare it as Lisp_Object.
20474 (LOOKUP_TRANSLATION_TABLE): New macro.
20475 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20476 instead of CHAR_TABLE_REF.
20477
204782008-02-01 Kenichi Handa <handa@m17n.org>
20479
20480 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20481 annotation data format.
20482 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20483 Change arguments FROM and TO to single argument NCHARS. Change caller.
20484 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20485 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20486 (decode_coding_ccl, decode_coding_charset): Pay attention to
20487 coding->charbuf_used.
20488 (get_translation): New function.
20489 (produce_chars): New arguments translation_table and last_block.
20490 Translate characters here. Return number of carryover chars.
20491 Change caller.
20492 (produce_composition): New argument pos. Change caller.
20493 Adjust for the change of annotation data format.
20494 (produce_charset, produce_annotation): Likewise.
20495 (decode_coding, encode_coding): Don't call translate_chars.
20496 (consume_chars): New arg translation_table. Change caller.
20497 (translate_chars): Delete.
20498 (syms_of_coding): Make translation-table's number of extra slots 2.
20499
205002008-02-01 Kenichi Handa <handa@m17n.org>
20501
20502 * search.c (simple_search): Fix setting this_pos_byte in backward
20503 search.
20504
20505 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20506 byte sequence.
20507 (detect_coding_ccl): Fix setting of the variable valids.
20508
205092008-02-01 Kenichi Handa <handa@m17n.org>
20510
20511 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20512
20513 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20514
20515 * editfns.c (Ftranslate_region_internal): Rename from
20516 Ftranslate_region. Accept a char-table in TABLE.
20517 (syms_of_editfns): Defsubr Stranslate_region_internal.
20518
20519 * xfaces.c (set_lface_from_font_name): If a font is specified for
20520 a frame, generate a fontset from the font.
20521 (build_scalable_font_name): If the scalable font is requested for
20522 a specific size, don't change that size.
20523 (try_font_list): Try a scalable font also in the case that a
20524 pattern string is specified.
20525
205262008-02-01 Kenichi Handa <handa@m17n.org>
20527
20528 * xfaces.c (Fface_font): New optional arg CHARACTER.
20529
205302008-02-01 Kenichi Handa <handa@m17n.org>
20531
20532 * charset.h (CHARSET_OFFSET): New macro.
20533
205342008-02-01 Kenichi Handa <handa@m17n.org>
20535
20536 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20537
20538 * fontset.c (fontset_face): Handle the case that repertory is a
20539 char-table.
20540 (find_font_encoding): Return nil for unknown encoding.
20541 (Fset_fontset_font): Ignore a font of unknown encoding.
20542
205432008-02-01 Kenichi Handa <handa@m17n.org>
20544
20545 * keymap.c (describe_vector): Handle default value of a char table.
20546
20547 * fontset.c (fontset_face): Handle fallback fonts correctly.
20548 (Ffontset_info): Return infomation about fallback fonts.
20549
205502008-02-01 Kenichi Handa <handa@m17n.org>
20551
20552 * fontset.c (FONTSET_DEFAULT): New macro.
20553 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20554 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20555 the case that it is nil.
20556 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20557 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20558
20559 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20560 subset or superset.
20561
205622008-02-01 Kenichi Handa <handa@m17n.org>
20563
20564 * emacs.c (main): Call init_charset after syms_of_XXX.
20565
20566 * charset.c (Vcharset_map_directory): Delete.
20567 (Vcharset_map_path): New variable.
20568 (load_charset_map_from_file): Use Vcharset_map_path instead.
20569 (init_charset): Initialize Vcharset_map_path.
20570 (syms_of_charset): Delete declaration of "charset-map-directory",
20571 add declaration of "charset-map-path".
20572
205732008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20576 ASCII only string.
20577
20578 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20579
20580 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20581 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20582
205832008-02-01 Kenichi Handa <handa@m17n.org>
20584
20585 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20586
20587 * coding.c (QCmnemonic, QCdefalut_char)
20588 (QCdecode_translation_table, QCencode_translation_table)
20589 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20590 (get_translation_table): Return a list of translation tables if
20591 necessary.
20592 (decode_coding): Call get_translation_table with ENCODEP 0.
20593 (char_encodable_p): If translation_table is non-nil, always call
20594 translate_char.
20595 (Fdefine_coding_system_internal): Accept list of translation
20596 tables as :encode-translation-table and :decode-translation-table.
20597 (Fcoding_system_put): New function.
20598 (syms_of_coding): Declare new symbols. Defsubr
20599 Scoding_system_put.
20600 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20601 typically JISX0212.
20602
20603 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20604 when the charset is superset type.
20605
20606 * character.c (translate_char): Accept list of translation tables.
20607
206082008-02-01 Kenichi Handa <handa@m17n.org>
20609
20610 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20611 (CODING_ATTR_TRANS_TBL): New macro.
20612
20613 * coding.c (get_translation_table): New function.
20614 (translate_chars): Fix the bug of skipping annotation data.
20615 (decode_coding, encode_coding): Utilize get_translation_table.
20616 (char_encodable_p, Funencodable_char_position): Translate char if
20617 necessary.
20618 (Ffind_coding_systems_region_internal)
20619 (Fcheck_coding_systems_region): Setup translation table for encode
20620 in a coding system attribute vector in advance.
20621 (Fdefine_coding_system_internal): Allow a symbol as translation
20622 table. For shift-jis type coding system, allow 4th charset.
20623
206242008-02-01 Kenichi Handa <handa@m17n.org>
20625
20626 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20627
20628 * xdisp.c (get_next_display_element): Pass -1 as POS to
20629 FACE_FOR_CHAR if displaying a C-string.
20630
206312008-02-01 Kenichi Handa <handa@m17n.org>
20632
20633 * composite.c (get_composition_id): Handle xoff and yoff in a
20634 composition rule.
20635
20636 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20637 (struct composition): New member lbearing and rbearing.
20638
20639 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20640 (x_get_glyph_overhangs): Handle a composition glyph.
20641 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20642
20643 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20644 composition glyph.
20645
206462008-02-01 Kenichi Handa <handa@m17n.org>
20647
20648 * print.c: Include charset.h.
20649 (Vprint_charset_text_property): New variable.
20650 (Qdefault): Extern it.
20651 (PRINT_STRING_NON_CHARSET_FOUND)
20652 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20653 (print_check_string_result): New variable.
20654 (print_check_string_charset_prop): New function.
20655 (print_prune_charset_plist): New variable.
20656 (print_prune_string_charset): New function.
20657 (print_object): Call print_prune_string_charset if
20658 Vprint_charset_text_property is not t.
20659 (print_interval): Print nothing if interval->plist is nil.
20660 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20661 variable. Init and staticpro print_prune_charset_plist.
20662
206632008-02-01 Kenichi Handa <handa@m17n.org>
20664
20665 * fontset.c (new_fontset_from_font_name): Use the specified font
20666 for all characters in the new fontset.
20667
20668 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20669 OBJECT args.
20670
20671 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20672 OBJECT args for composition too.
20673
20674 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20675 OBJECT args.
20676
206772008-02-01 Kenichi Handa <handa@m17n.org>
20678
20679 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20680
20681 * fontset.c (reorder_font_vector): Adjust for the change of
20682 FONT_DEF format.
20683 (fontset_face): New arg id. Change caller.
20684 (face_for_char): New args pos and object.
20685 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20686 (fs_query_fontset): Check NAME by Fassoc too.
20687 (Fset_fontset_font): Allow non-XLFD font name.
20688 (Ffontset_info): Adjust for the change of FONT_DEF format.
20689
20690 * fontset.h (face_for_char): Adjust prototype.
20691
20692 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20693 (append_space, extend_face_to_end_of_line)
20694 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20695 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20696
20697 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20698 POS and OBJECT args.
20699
20700 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20701 POS and OBJECT args.
20702
207032008-02-01 Jason Rumney <jasonr@gnu.org>
20704
20705 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20706 of GlobalAlloc'ed memory.
20707
207082008-02-01 Kenichi Handa <handa@m17n.org>
20709
20710 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20711
20712 * charset.h (charset_table_used): Delete extern.
20713
20714 * charset.c (charset_table_used): Make it static.
20715 (map_charset_chars): Fix args to c_function with.
20716
20717 * chartab.c (map_sub_char_table_for_charset): Fix args to
20718 c_function with.
20719
20720 * coding.h (enum coding_result_code): Delete
20721 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20722
20723 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20724 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20725 (Vlast_code_conversion_error): New variables.
20726 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20727 (ONE_MORE_BYTE): Record error if any instead of signaling an
20728 error. If non-ASCII multibyte char is found, return the negative
20729 value of the code. All callers changed to check it.
20730 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20731 (record_conversion_result): New function. Change all codes setting
20732 coding->result to call this function.
20733 (detect_coding_utf_8, decode_coding_utf_8)
20734 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20735 Don't use the local variable incomplete.
20736 (emacs_mule_char): Change the second arg to `const'.
20737 (decode_coding): Fix of flushing out unprocessed data.
20738 (make_conversion_work_buffer): Fix making of a work buffer.
20739 (decode_coding_object): Return coding->dst_object.
20740
20741 * fontset.c (set_fontset_font): Fix args.
20742
20743 * lisp.h (CHARACTERBITS): Define as 22.
20744
20745 * process.c (send_process): Be sure to set coding->src_multibyte.
20746
20747 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20748
207492008-02-01 Kenichi Handa <handa@m17n.org>
20750
20751 * xdisp.c (handle_auto_composed_prop): Give limit to
20752 Fnext_single_char_property_change.
20753
207542008-02-01 Kenichi Handa <handa@m17n.org>
20755
20756 * composite.c (syms_of_composite): Don't make the composition hash
20757 table weak.
20758
20759 * fontset.c (Fset_fontset_font): Fix docstring.
20760
20761 * lisp.h (detect_coding_system): Adjust prototype.
20762
20763 * fileio.c (kill_workbuf_unwind): Delete this function.
20764 (Finsert_file_contents): Adjust the call of detect_coding_system.
20765 Get conversion_buffer by code_conversion_save. Use the macro
20766 CODING_MAY_REQUIRE_DECODING. After decoding, update
20767 coding_system.
20768
20769 * coding.h (make_conversion_work_buffer): Delete extern.
20770 (code_conversion_save): Extern it.
20771
20772 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20773 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20774 (decode_coding_utf_8): Don't do eol converion.
20775 (detect_coding_utf_16): Check coding->src_chars, not
20776 coding->src_bytes. Add heuristics for those that have no signature.
20777 (decode_coding_emacs_mule, decode_coding_iso_2022)
20778 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20779 Don't do eol converion.
20780 (adjust_coding_eol_type): Return a new coding system.
20781 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20782 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20783 each change.
20784 (decode_coding): Pay attention to undo_list. Do eol conversion for
20785 all types of coding-systems (if necessary).
20786 (Vcode_conversion_work_buf_list): Delete it.
20787 (Vcode_conversion_reused_workbuf): Rename from
20788 Vcode_conversion_reused_work_buf.
20789 (Vcode_conversion_workbuf_name): New variable.
20790 (reused_workbuf_in_use): New variable.
20791 (make_conversion_work_buffer): Delete the arg DEPTH.
20792 (code_conversion_restore): Change argument to cons.
20793 (code_conversion_save): Delete the argument BUFFER. Change callers.
20794 (detect_coding_system): New argument src_chars. Change callers.
20795 Fix for utf-16 detection.
20796 (init_coding_once): Don't use ISO_carriage_return.
20797 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20798 reused_workbuf_in_use.
20799
208002008-02-01 Kenichi Handa <handa@m17n.org>
20801
20802 * keymap.c (store_in_keymap): Pay attention to the case that idx
20803 is a cons specifying a character range.
20804
208052008-02-01 Kenichi Handa <handa@m17n.org>
20806
20807 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20808 HANDLED_RECOMPUTE_PROPS.
20809
20810 * coding.c (Fdefine_coding_system_internal): Fix checking of
20811 ascii compatibility.
20812
208132008-02-01 Kenichi Handa <handa@m17n.org>
20814
20815 * charset.c (find_charsets_in_text): Delete unused locale variable.
20816 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20817
20818 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20819 Resync charset_list to Vemacs_mule_charset_list.
20820
20821 * keymap.c (store_in_keymap): Pay attention to the case that idx
20822 is a cons specifying a character range.
20823
208242008-02-01 Kenichi Handa <handa@m17n.org>
20825
20826 * composite.c (update_compositions): Bind inhibit-read-only, etc
20827 to t before calling remove-list-of-text-properties.
20828
20829 * print.c (print_object): Always print ASCII chars as is.
20830
208312008-02-01 Kenichi Handa <handa@m17n.org>
20832
20833 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20834
20835 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20836 is a char table.
20837
208382008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20841
208422008-02-01 Kenichi Handa <handa@m17n.org>
20843
20844 * xfaces.c (set_lface_from_font_name): Fix for the case that
20845 FONTNAME is not fontset name.
20846
208472008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 * fns.c (base64_encode_1): Fix previous change.
20850
208512008-02-01 Kenichi Handa <handa@m17n.org>
20852
20853 * fontset.c (set_fontset_font): New function.
20854 (Fset_fontset_font): If a font is specified for a charset, use
20855 map_charset_chars to store the font spec in a fontset.
20856
208572008-02-01 Kenichi Handa <handa@m17n.org>
20858
20859 * fontset.c (fontset_face): Create a fallback fontset on demand.
20860 (make_fontset): Don't create a fallback fontset here.
20861 (free_face_fontset): Free a fallback fontset (if any) too.
20862 (n_auto_fontsets): Delete this variable.
20863 (auto_fontset_alist): New variable.
20864 (new_fontset_from_font_name): Check auto_fontset_alist.
20865 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20866 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20867 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20868 Defsubr Sfontset_list_all.
20869
208702008-02-01 Kenichi Handa <handa@m17n.org>
20871
20872 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20873
208742008-02-01 Kenichi Handa <handa@m17n.org>
20875
20876 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20877
208782008-02-01 Kenichi Handa <handa@m17n.org>
20879
20880 * editfns.c (Fgoto_char): Fix docstring.
20881
208822008-02-01 Kenichi Handa <handa@m17n.org>
20883
20884 * insdel.c (insert_from_gap): Adjust intervals correctly.
20885
208862008-02-01 Jason Rumney <jasonr@gnu.org>
20887
20888 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20889 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20890 (w32_initialize): Try to load it.
20891 (x_get_font_repertory): Use it if available.
20892 (w32_encode_char): Add shortcut for unicode output.
20893
20894 * w32fns.c (w32_load_system_font): Default charset to -1.
20895 (x_to_w32_charset): Match all fonts for unicode.
20896 (w32_to_x_charset): New parameter matching. Don't return partial
20897 or wildcard charsets.
20898 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20899 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20900 (w32_to_x_font): Match charset to real charset.
20901 (enum_font_cb2): Always list unicode versions.
20902
20903 * makefile.w32-in (temacs): Increase EMHEAP.
20904
209052008-02-01 Jason Rumney <jasonr@gnu.org>
20906
20907 * w32term.c (w32_encode_char): New charset parameter.
20908 font_info.encoding becomes encoding_type.
20909 (x_get_font_repertory): New function. Warning: stub only!
20910 (x_new_font): Return quickly if font already set.
20911 (x_new_fontset): fontsetname parameter is Lisp_Object.
20912 Use new fs_query_fontset. Try new_fontset_from_font_name.
20913 Use fontset_name for return value.
20914
20915 * w32term.h: Declare x_get_font_repertory.
20916
20917 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20918 place of find_charset_in_text. Use encode_coding_object in place
20919 of encode_coding.
20920 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20921 decode_coding.
20922
20923 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20924 of x_new_fontset.
20925 (w32_load_system_font): Initialize charset as unicode.
20926 font_info.encoding becomes encoding_type.
20927 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20928 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20929 (syms_of_w32fns): Set get_font_repertory_func.
20930
20931 * w32console.c: Include character.h. Use terminal_encode_buffer
20932 from term.c.
20933 (write_glyphs): Use new version of encode_terminal_code. Use
20934 encode_coding_object in place of encode_coding.
20935
20936 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20937 encoding becomes encoding_type.
20938
20939 * term.c (terminal_encode_buffer): Make externally visible.
20940
20941 * makefile.w32-in: Add character.h dependancies.
20942 (character.o, chartab.o): New targets.
20943
209442008-02-01 Kenichi Handa <handa@m17n.org>
20945
20946 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20947 CODING_ID_EOL_TYPE.
20948
209492008-02-01 Andreas Schwab <schwab@suse.de>
20950
20951 * coding.c (produce_chars): Revert last change.
20952
209532008-02-01 Kenichi Handa <handa@m17n.org>
20954
20955 * charset.h (charset_unicode): Extern it.
20956
20957 * charset.c (string_xstring_p): Check by (C >= 0x100).
20958 (find_charsets_in_text): Change format of the arc CHARSETS. New
20959 arg MULTIBYTE.
20960 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20961 change of find_charsets_in_text.
20962 (Fsplit_char): Fix doc. Never return unknown.
20963
20964 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20965
20966 * coding.c (Fdefine_coding_system_alias): Update
20967 Vcoding_system_list.
20968
20969 * fontset.c (load_font_get_repertory): Pay attention to the case
20970 that ENCODING of a font is specified by a char-table.
20971
20972 * xterm.c (x_get_font_repertory): Handle the case that the
20973 encoding of font is other than Unicode.
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20978 if a character is encodable by the terminal coding system. If
20979 not, produces proper number of `?'s. Update
20980 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20981 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20982
209832008-02-01 Kenichi Handa <handa@m17n.org>
20984
20985 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20986 variables.
20987 (encode_terminal_code): Change argument. Encode multiple
20988 characters at once. Store the result of encoding in
20989 terminal_encode_buffer.
20990 (write_glyphs, insert_glyphs): Adjust for the change of
20991 encode_terminal_code.
20992 (term_init): Initialize terminal_encode_buffer and
20993 terminal_encode_buf_size.
20994
20995 * coding.c (consume_chars): If coding->src_object is nil, don't
20996 check annotation.
20997
209982008-02-01 Kenichi Handa <handa@m17n.org>
20999
21000 * character.c (char_string): Use ASCII_CHAR_P instead of
21001 SINGLE_BYTE_CHAR_P.
21002
210032008-02-01 Kenichi Handa <handa@m17n.org>
21004
21005 * xdisp.c (handle_auto_composed_prop): Check if the last
21006 characters of auto-composed region is newly composed with the
21007 following characters.
21008 (handle_composition_prop): Fix checking of point being inside
21009 composition.
21010
210112008-02-01 Kenichi Handa <handa@m17n.org>
21012
21013 * fns.c (concat): Don't change multibyteness of the result by
21014 concatenating an 8-bit character.
21015
21016 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21017 multibyteness of the result when newelt is an 8-bit character.
21018
210192008-02-01 Dave Love <fx@gnu.org>
21020
21021 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21022 EMACS_INT.
21023
21024 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21025
21026 * xfaces.c (face_numeric_value): Declare dim size_t.
21027 (Finternal_lisp_face_equal_p): Remove unused f.
21028
21029 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21030 (MATRIX_ROW): Remove unused vars.
21031 (draw_glyphs, x_insert_glyphs, fast_find_position)
21032 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21033 byte/char counts.
21034
21035 * regex.c (regex_compile): Remove unused var.
21036
21037 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21038
21039 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21040 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21041
21042 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21043
21044 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21045
21046 * fileio.c (Fwrite_region): Remove unused var.
21047
21048 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21049 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21050
21051 * composite.c (Fremove_list_of_text_properties): Declare.
21052
21053 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21054 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21055 (coding_inherit_eol_type): Remove unused attrs.
21056 (detect_coding): Cast arg of detect_eol.
21057
21058 * charset.c (syms_of_charset): Remove unused var p.
21059 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21060 byte/char counts.
21061
21062 * casetab.c (set_case_table): Remove unused var.
21063
21064 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21065 unused vars.
21066
210672008-02-01 Dave Love <fx@gnu.org>
21068
21069 * xterm.c (x_bitmap_mask): Declare.
21070
210712008-02-01 Dave Love <fx@gnu.org>
21072
21073 * xterm.c (x_term_init): Fix type error.
21074
21075 * lisp.h: Add Funibyte_char_to_multibyte.
21076
21077 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21078 (Fset_coding_system_priority): Doc fix.
21079
21080 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21081
21082 * indent.c (check_composition): Make start and end EMACS_INT.
21083
21084 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21085
21086 * xdisp.c (handle_composition_prop, check_point_in_composition):
21087 Make buffer positions EMACS_INT.
21088
21089 * composite.c (find_composition, run_composition_function)
21090 (update_compositions, Ffind_composition_internal): Make buffer
21091 positions EMACS_INT.
21092
21093 * composite.h (find_composition, update_compositions): Make
21094 position args EMACS_INT.
21095
21096 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21097
21098 * intervals.c (get_property_and_range):
21099 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21100
21101 * unexalpha.c: Don't include varargs.h.
21102
211032008-02-01 Dave Love <fx@gnu.org>
21104
21105 * coding.h (ENCODE_UTF_8): New.
21106
21107 * Makefile.in (gtkutil.o): Depend on coding.h.
21108
21109 * coding.c (Fset_coding_system_priority): Doc fix.
21110
211112008-02-01 Kenichi Handa <handa@m17n.org>
21112
21113 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21114 the case of auto saving.
21115
211162008-02-01 Andreas Schwab <schwab@suse.de>
21117
21118 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21119 `range' from GC.
21120
211212008-02-01 Kenichi Handa <handa@m17n.org>
21122
21123 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21124
211252008-02-01 Kenichi Handa <handa@m17n.org>
21126
21127 * fileio.c (choose_write_coding_system): Return a decided coding system.
21128 (Fwrite_region): Set Vlast_coding_system_used to the return value
21129 of choose_write_coding_system.
21130
211312008-02-01 Kenichi Handa <handa@m17n.org>
21132
21133 * charset.c (Fset_charset_priority): Pay attention to duplicated
21134 arguments.
21135
21136 * coding.c (QCcategory): New variable.
21137 (syms_of_coding): Defsym it. Set all elements of
21138 Vcoding_category_table and their symbol values.
21139 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21140 coding-category-XXX, and coding-category-list.
21141 (Fdefine_coding_system_internal): Add category in the plist.
21142
211432008-02-01 Kenichi Handa <handa@m17n.org>
21144
21145 * callproc.c (Fcall_process): Handle carryover correctly.
21146
21147 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21148 (raw_text_coding_system): Check NILP (coding_system).
21149 (coding_inherit_eol_type): Check NILP (coding_system) and
21150 NILP (parent).
21151 (consume_chars): Fix for the case of raw-text.
21152
21153 * process.c (read_process_output): Handle carryover correctly.
21154
211552008-02-01 Dave Love <fx@gnu.org>
21156
21157 * regex.c (re_search_2): Fix last change.
21158
211592008-02-01 Kenichi Handa <handa@m17n.org>
21160
21161 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21162 target_multibyte. Even in a unibyte case, return a converted
21163 multibyte char.
21164 (GET_CHAR_AFTER): New macro.
21165 (PATFETCH): Translate via multibyte char.
21166 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21167 (SETUP_MULTIBYTE_RANGE): New macro.
21168 (regex_compile): Setup compiled code so that its multibyteness
21169 matches that of a target. Fix the handling of "[X-YZ]" using
21170 SETUP_MULTIBYTE_RANGE.
21171 (analyse_first) <charset>: For filling fastmap for all multibyte
21172 characters, don't check by BASE_LEADING_CODE_P.
21173 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21174 the same as RE_MULTIBYTE_P (bufp) now.
21175 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21176 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21177 (TRANSLATE_VIA_MULTIBYTE): New macro.
21178 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21179 It is the same as RE_MULTIBYTE_P (bufp) now.
21180 <exactn>: Translate via multibyte.
21181 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21182 translate it.
21183 <charset, charset_not>: Fetch a character by
21184 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21185 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21186 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21187 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21188 by GET_CHAR_AFTER.
21189 (bcmp_translate): Likewise.
21190
21191 * search.c (compile_pattern): Check the member target_multibyte,
21192 not the member multibyte of buf.
21193
21194 * lread.c (read1): While reading a string, set force_singlebyte
21195 and force_multibyte correctly.
21196
21197 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21198 up of unibyte_to_multibyte_table.
21199
212002008-02-01 Kenichi Handa <handa@m17n.org>
21201
21202 * coding.c (setup_coding_system): If coding has
21203 post-read-conversion or pre-write-conversion, set
21204 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21205 respectively.
21206 (decode_coding_gap): Run post-read-conversion if any.
21207
21208 * fileio.c (Finsert_file_contents): Even if we read into a
21209 unibyte buffer, check if we must decode the result or not.
21210
212112008-02-01 Kenichi Handa <handa@m17n.org>
21212
21213 * coding.c (make_conversion_work_buffer): Change the work buffer
21214 name to the same one as that of Emacs 21.
21215
212162008-02-01 Kenichi Handa <handa@m17n.org>
21217
21218 * coding.h (make_conversion_work_buffer): Adjust prototype.
21219 (code_conversion_restore): Don't extern it.
21220
21221 * coding.c (detected_mask): Delete unused variable.
21222 (decode_coding_iso_2022): Pay attention to the byte sequence of
21223 CTEXT extended segment, and retain those bytes as is.
21224 (decode_coding_ccl): Delete unused variable `valids'.
21225 (setup_coding_system): Delete unused variable `category'.
21226 (consume_chars): Delete unused variable `category'. Make it work
21227 for non-multibyte case.
21228 (make_conversion_work_buffer): Change argument.
21229 (saved_coding): Delete unused variable.
21230 (code_conversion_restore): Don't check saved_coding->destination.
21231 (code_conversion_save): New function.
21232 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21233 instead of record_unwind_protect.
21234 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21235 (detect_coding_system): Delete unused variable `mask'.
21236 (Fdefine_coding_system_internal): Delete unused variable id.
21237
21238 * fileio.c (kill_workbuf_unwind): New function.
21239 (Finsert_file_contents): On replacing, call
21240 make_conversion_work_buffer with correct args, and call
21241 record_unwind_protect with the first arg kill_workbuf_unwind.
21242
21243 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21244
212452008-02-01 Kenichi Handa <handa@m17n.org>
21246
21247 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21248 (fontset_add): Fix for the case that TO is less than TO1.
21249 (Ffontset_info): Don't use fallback fontset on checking the
21250 default fontset.
21251 (dump_fontset): New function for debugging.
21252
21253 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21254 coding_type is Qcharset.
21255
212562008-02-01 Kenichi Handa <handa@m17n.org>
21257
21258 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21259 (map_char_table): Don't inherit the value from the parent on
21260 initializing VAL. Adjust for the above change.
21261
212622008-02-01 Kenichi Handa <handa@m17n.org>
21263
21264 * coding.c (Qsignature, Qendian): Delete these variables.
21265 (syms_of_coding): Don't initialize them.
21266 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21267 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21268 detect_info->found.
21269 (decode_coding_utf_16): Don't detect BOM here.
21270 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21271 is NOT utf_16_without_bom.
21272 (setup_coding_system): For a coding system of type utf-16, check
21273 if the attribute :endian is Qbig or not (not nil or not), and set
21274 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21275 (detect_coding): If coding type is utf-16 and BOM detection is
21276 required, detect it.
21277 (Fdefine_coding_system_internal): For a coding system of type
21278 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21279
212802008-02-01 Kenichi Handa <handa@m17n.org>
21281
21282 * coding.c (coding_set_source): Fix for the case that the current
21283 buffer is different from coding->src_object.
21284 (decode_coding_object): Don't use the conversion work buffer if
21285 DST_OBJECT is a buffer.
21286
212872008-02-01 Dave Love <fx@gnu.org>
21288
21289 * lread.c (read_emacs_mule_char) [len==2]: Index
21290 emacs_mule_charset correctly.
21291
212922008-02-01 Dave Love <fx@gnu.org>
21293
21294 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21295 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21296 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21297 treated specially.)
21298 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21299 (detected_mask): Remove Big5 bits.
21300
213012008-02-01 Kenichi Handa <handa@m17n.org>
21302
21303 The following changes are to make the font rescaling facility
21304 compatible with Emacs 21.
21305
21306 * xfaces.c (Vface_font_rescale_alist): Rename from
21307 Vface_resizing_fonts.
21308 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21309 (font_rescale_ratio): Rename from font_resizing_ratio.
21310 (split_font_name): Set font->rescale_ratio.
21311 (better_font_p): Pay attention to font->rescale_ratio.
21312 (build_scalable_font_name): Likewise. Change RESX, and RESY
21313 fields.
21314 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21315
213162008-02-01 Kenichi Handa <handa@m17n.org>
21317
21318 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21319 (Qutf_16_le): Remove these variables.
21320 (syms_of_coding): Don't DEFSYM them.
21321 (decode_coding_utf_16): Fix handling of BOM.
21322 (encode_coding_utf_16): Fix handling of BOM.
21323
213242008-02-01 Kenichi Handa <handa@m17n.org>
21325
21326 * fileio.c (Finsert_file_contents): On replacing, before decoding
21327 the file into the work buffer, set point of the work buffer to the end.
21328
213292008-02-01 Dave Love <fx@gnu.org>
21330
21331 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21332
213332008-02-01 Dave Love <fx@gnu.org>
21334
21335 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21336 and fix C types.
21337
213382008-02-01 Kenichi Handa <handa@m17n.org>
21339
21340 * xdisp.c (SKIP_GLYPHS): New macro.
21341 (set_cursor_from_row): Pay attention to string display properties.
21342
21343 * category.c (copy_category_entry): Fix for the case that RANGE
21344 is an integer.
21345
21346 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21347
21348 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21349
213502008-02-01 Kenichi Handa <handa@m17n.org>
21351
21352 * charset.c (Fcharset_id_internal): New function.
21353 (syms_of_charset): Defsubr it.
21354
21355 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21356 with the last arg charset_list acquired from coding.
21357 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21358 the attribute coding_attr_ccl_valids.
21359
21360 * coding.h (enum define_coding_ccl_arg_index): Set the first
21361 member coding_arg_ccl_decoder to coding_arg_max.
21362
21363 * ccl.h (ccl_driver): Adjust prototype.
21364
21365 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21366 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21367 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21368 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21369 last arg Qnil.
21370
213712008-02-01 Kenichi Handa <handa@m17n.org>
21372
21373 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21374 call encode_char.
21375
21376 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21377
213782008-02-01 Dave Love <fx@gnu.org>
21379
21380 * composite.c (syms_of_composite): Make composition_hash_table weak.
21381
213822008-02-01 Kenichi Handa <handa@m17n.org>
21383
21384 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21385 (font_name_registry): Don't extern them.
21386 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21387
21388 * fontset.h (Qfontset): Don't extern it.
21389 (new_fontset_from_font_name): Extern it.
21390
21391 * fontset.c: Give 8 extra slots to fontset objects.
21392 (Qfontset_info): New variable.
21393 (syms_of_fontset): Defsym it.
21394 (FONTSET_FALLBACK): New macro.
21395 (fontset_face): Try also the default fontset.
21396 (make_fontset): Realize a fallback fontset from the default fontset.
21397 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21398 using split_font_name_into_vector and build_font_name_from_vector.
21399 (Fset_fontset_font): Access the elements of font_spec by enum
21400 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21401 name by using split_font_name_into_vector.
21402 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21403 generate a proper font name from the fontset name. Update
21404 Vfontset_alias_alist.
21405 (n_auto_fontsets): New variable.
21406 (new_fontset_from_font_name): New function.
21407 (Ffont_info): Store the information about fonts generated from the
21408 default fontset in the first extra slot of the returned char-table.
21409
21410 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21411 (font_name_registry): Delete function.
21412 (split_font_name_into_vector): New function.
21413 (build_font_name_from_vector): New function.
21414 (font_list): The argument REGISTRY is now a list of registry names.
21415 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21416 specifies an explicit font name, return the name as is. Make a
21417 list of registy names.
21418
21419 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21420 of x_new_fontset.
21421 (Fx_create_frame): Don't call x_new_fontset here. Just use
21422 x_list_fonts to check the existence of fonts.
21423
21424 * xterm.h (x_new_fontset): Adjust prototype.
21425
21426 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21427 string. Use new_fontset_from_font_name to create a fontset from a
21428 font name.
21429
214302008-02-01 Kenichi Handa <handa@m17n.org>
21431
21432 * syntax.c (Vfind_word_boundary_function_table): New name for
21433 Vnext_word_boundary_function_table.
21434 (find-word-boundary-function-table): New name for
21435 next-word-boundary-function-table.
21436
214372008-02-01 Dave Love <fx@gnu.org>
21438
21439 * Makefile.in: Fix some dependencies.
21440
21441 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21442 set it to nil before returning.
21443
21444 * composite.c (update_compositions): Fix type error.
21445
21446 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21447
214482008-02-01 Kenichi Handa <handa@m17n.org>
21449
21450 * xterm.c (x_new_font): Optimize for the case that the font is
21451 already set for the frame.
21452
214532008-02-01 Kenichi Handa <handa@m17n.org>
21454
21455 * chartab.c (char_table_ascii): Check if the char table contents
21456 is sub-char-table or not.
21457 (char_table_set, char_table_set_range): Fix argument to
21458 char_table_ascii.
21459
21460 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21461 (detect_coding_utf_8, detect_coding_utf_16)
21462 (detect_coding_emacs_mule, detect_coding_iso_2022)
21463 (detect_coding_sjis, detect_coding_big5)
21464 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21465 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21466 sequence is valid in this coding system. Change callers.
21467 (MAX_ANNOTATION_LENGTH): New macro.
21468 (ADD_ANNOTATION_DATA): New macro.
21469 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21470 ADD_ANNOTATION_DATA. Change the format of annotation data.
21471 (ADD_CHARSET_DATA): New macro.
21472 (emacs_mule_char): New argument ID. Change callers.
21473 (decode_coding_emacs_mule, decode_coding_iso_2022)
21474 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21475 Produce charset annotation data in coding->charbuf.
21476 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21477 to charset annotation data in coding->charbuf.
21478 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21479 coding->common_flags if the coding system is iso-2022 based and
21480 uses designation.
21481 (produce_composition): Adjust for the new annotation data format.
21482 (produce_charset): New function.
21483 (produce_annotation): Handle charset annotation.
21484 (handle_composition_annotation, handle_charset_annotation): New
21485 functions.
21486 (consume_chars): Handle charset annotation. Utilize the above two
21487 functions.
21488 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21489 buffer, get the deleted text as a string and set
21490 coding->src_object to that string.
21491 (detect_coding, detect_coding_system): Use the new struct
21492 coding_detection_info.
21493
21494 * coding.h (struct coding_detection_info): New structure.
21495 (struct coding_system): Adjust prototype of the member `detector'.
21496 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21497
214982008-02-01 Kenichi Handa <handa@m17n.org>
21499
21500 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21501
215022008-02-01 Dave Love <fx@gnu.org>
21503
21504 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21505 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21506 to new local and nullify apropos_accumulate before returning.
21507 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21508
215092008-02-01 Kenichi Handa <handa@m17n.org>
21510
21511 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21512 correctly.
e3eea1fc 21513
aac0c6e3
MR
215142008-02-01 Dave Love <fx@gnu.org>
21515
21516 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21517
215182008-02-01 Kenichi Handa <handa@m17n.org>
21519
21520 The following changes are to make character composition happen
21521 automatically on displaying.
21522
21523 * Makefile.in (lisp, shortlisp): Add composite.elc.
21524
21525 * composite.h (Qauto_composed, Vauto_composition_function)
21526 (Qauto_composition_function): Extern them.
21527
21528 * composite.c (Vcomposition_function_table)
21529 (Qcomposition_function_table): Delete variables.
21530 (Qauto_composed, Vauto_composition_function)
21531 (Qauto_composition_function): New variables.
21532 (run_composition_function): Don't call
21533 compose-chars-after-function.
21534 (update_compositions): Clear `auto-composed' text property.
21535 (compose_chars_in_text): Delete this function.
21536 (syms_of_composite): Staticpro Qauto_composed and
21537 Qauto_composition_function. Declare Vauto_composition_function as
21538 a Lisp variable.
21539
21540 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21541
21542 * xdisp.c (it_props): Add an entry for Qauto_composed.
21543 (handle_auto_composed_prop): New function.
21544
21545 * xselect.c (selection_data_to_lisp_data): Don't call
21546 compose_chars_in_text.
21547
215482008-02-01 Dave Love <fx@gnu.org>
21549
21550 * keyboard.c (read_char): Modify checking around use of
21551 Vkeyboard_translate_table.
21552
21553 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21554 and fix C types.
21555
215562008-02-01 Kenichi Handa <handa@m17n.org>
21557
21558 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21559 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21560 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21561 the case that the last byte is '\r' correctly.
21562 (decode_coding): Flush out the unprocessed data correctly.
21563 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21564
215652008-02-01 Dave Love <fx@gnu.org>
21566
21567 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21568 Add XK_ISO... case.
21569 (xaw_scroll_callback): Revert last change.
21570
215712008-02-01 Kenichi Handa <handa@m17n.org>
21572
21573 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21574
215752008-02-01 Kenichi Handa <handa@m17n.org>
21576
21577 * xfaces.c (Vface_resizing_fonts): New variable.
21578 (struct font_name): New member `resizing_ratio'.
21579 (font_resizing_ratio): New function.
21580 (split_font_name): Set font->resizing_ratio.
21581 (better_font_p): Pay attention to font->resizing_ratio.
21582 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21583 RESX, and RESY fields.
21584 (try_alternative_families): Try scalable fonts if
21585 Vscalable_fonts_allowed is not Qt.
21586 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21587
215882008-02-01 Dave Love <fx@gnu.org>
21589
21590 * xterm.c (xaw_scroll_callback): Cast correctly.
21591
215922008-02-01 Dave Love <fx@gnu.org>
21593
21594 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21595 (lispy_kana_keys): Comment out.
21596 (make_lispy_event) [XK_kana_A]: Comment out.
21597
21598 * xterm.c (xaw_scroll_callback): Cast call_data.
21599 (XTread_socket): Deal with ASCII keysyms.
21600 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21601
216022008-02-01 Dave Love <fx@gnu.org>
21603
21604 * xterm.c (Vx_keysym_table): New.
21605 (syms_of_xterm): Initialize it.
21606 (XTread_socket): Use it.
21607 From head: Eliminate incorrect optimization that tried to avoid
21608 decoding the output of X*LookupString.
21609 (x_get_font_repertory): Delete charset declaration.
21610
216112008-02-01 Kenichi Handa <handa@m17n.org>
21612
21613 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21614 return 0.
21615 (Fdefine_coding_system_internal): Setup
21616 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21617
216182008-02-01 Dave Love <fx@gnu.org>
21619
21620 * coding.c (Fcheck_coding_system): Doc fix.
21621
21622 * editfns.c (Finsert_byte): Return a proper value.
21623
216242008-02-01 Kenichi Handa <handa@m17n.org>
21625
21626 * coding.c (decode_coding): Fix args to translate_chars. Pay
21627 attention to Vstandard_translation_table_for_decode.
21628 (encode_coding): Fix args to translate_chars. Pay attention to
21629 Vstandard_translation_table_for_encode.
21630
21631 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21632 SINGLE_BYTE_CHAR_P.
21633
21634 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21635 not by SINGLE_BYTE_CHAR_P.
21636
21637 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21638 SINGLE_BYTE_CHAR_P.
21639
21640 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21641 SINGLE_BYTE_CHAR_P.
21642
21643 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21644 by SINGLE_BYTE_CHAR_P.
21645
21646 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21647 SINGLE_BYTE_CHAR_P.
21648
216492008-02-01 Dave Love <fx@gnu.org>
21650
21651 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21652
216532008-02-01 Dave Love <fx@gnu.org>
21654
21655 * fns.c (Flanginfo): Fix typo.
21656
21657 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21658
216592008-02-01 Kenichi Handa <handa@m17n.org>
21660
21661 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21662 (detect_coding_emacs_mule, detect_coding_iso_2022)
21663 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21664 incomplete byte sequence. Don't update *mask when correctly detected.
21665 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21666 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21667 (detect_coding, detect_coding_system): Adjust for the changes above.
21668
216692008-02-01 Kenichi Handa <handa@m17n.org>
21670
21671 * character.c (char_string): Rename from
21672 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21673 (string_char): Rename from string_char.
21674
21675 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21676 if C is greater than MAX_3_BYTE_CHAR.
21677 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21678 string_char instead of string_char_with_unification.
21679
216802008-02-01 Dave Love <fx@gnu.org>
21681
21682 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21683
216842008-02-01 Kenichi Handa <handa@m17n.org>
21685
21686 * keymap.c (push_key_description): Pay attention to force_multibyte.
21687
21688 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21689
216902008-02-01 Dave Love <fx@gnu.org>
21691
21692 * charset.c (define_charset_internal): Rename `supprementary'.
21693
21694 * Makefile.in (lisp, shortlisp): Remove latin-N.
21695
216962008-02-01 Dave Love <fx@gnu.org>
21697
21698 * xfns.c (x_window, x_window): Use use_xim.
21699
21700 * xterm.c (use_xim): Initialize.
21701 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21702 (x_term_init): Maybe set use_xim.
21703
21704 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21705
217062008-02-01 Kenichi Handa <handa@m17n.org>
21707
21708 * search.c (search_buffer): Fix case-fold-search of multibyte
21709 characters.
21710 (boyer_moore): Rename the last argument to char_high_bits.
21711
217122008-02-01 Kenichi Handa <handa@m17n.org>
21713
21714 * xdisp.c (display_string): Fix for the case of zero width glyph.
21715
21716 * xfns.c (x_set_font): Change the error message of the case that
21717 x_new_fontset returns Qt.
21718
21719 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21720 (Finternal_set_lisp_face_attribute): Use signal_error for the
21721 error of invalid fontset.
21722
21723 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21724 fontset, return Qt.
21725
217262008-02-01 Dave Love <fx@gnu.org>
21727
21728 * unexelf.c (unexec): Make .got handling not SGI-specific.
21729
21730 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21731
21732 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21733
21734 * keyboard.c (read_key_sequence): Fix type error.
21735
21736 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21737 type error.
21738
21739 * fontset.c (fontset_add): Return Lisp_Object.
21740
217412008-02-01 Dave Love <fx@gnu.org>
21742
21743 * charset.h (charset_ordered_list_tick): Declare extern.
21744
217452008-02-01 Kenichi Handa <handa@m17n.org>
21746
21747 The following changes (and some of 2008-02-01 changes of mine) are
21748 for handling syntax, category, and case conversion for unibyte
21749 characters by converting them to multibyte on the fly. With these
21750 changes, we don't have to setup syntax and case tables for unibyte
21751 characters in each language environment.
21752
21753 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21754 multibyte if necessary.
21755
21756 * bytecode.c (Fbyte_code): Likewise.
21757
21758 * character.h (LEADING_CODE_LATIN_1_MIN)
21759 (LEADING_CODE_LATIN_1_MAX): New macros.
21760 (unibyte_to_multibyte_table): Extern it.
21761 (unibyte_char_to_multibyte): New macro.
21762 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21763 (CHAR_LEADING_CODE): New macro.
21764 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21765
21766 * character.c (unibyte_to_multibyte_table): New variable.
21767 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21768 (multibyte_char_to_unibyte): If C is an eight-bit character,
21769 convert it to the corresponding byte value.
21770
21771 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21772 not 1, signals an error. Update the elements of
21773 unibyte_to_multibyte_table.
21774 (init_charset_once): Initialize unibyte_to_multibyte_table.
21775 (syms_of_charset): Define the charset `iso-8859-1'.
21776
21777 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21778 as is without converting it to unibyte. In a unibyte buffer,
21779 convert C to multibyte before checking the syntax.
21780
21781 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21782
21783 * minibuf.c (Fminibuffer_complete_word): Use the macro
21784 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21785
21786 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21787
21788 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21789 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21790 that is zero, convert an eight-bit char to multibyte.
21791 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21792 non-emacs case.
21793 (PATFETCH): Convert an eight-bit char to multibyte.
21794 (HANDLE_UNIBYTE_RANGE): New macro.
21795 (regex_compile): Setup the compiled pattern for multibyte chars
21796 even if the given regex string is unibyte. Use PATFETCH_RAW
21797 instead of PATFETCH in many places. To handle `charset'
21798 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21799 only for ASCII chars.
21800 (analyse_first) <exactn>: Simplify because the compiled pattern
21801 is multibyte.
21802 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21803 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21804 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21805 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21806 multibyte always 1.
21807 (re_search_2): In emacs, set the locale variable multibyte to 1,
21808 otherwise to 0. New local variable target_multibyte. Check it
21809 to decide the multibyteness of STR1 and STR2. If
21810 target_multibyte is zero, convert unibyte chars to multibyte
21811 before translating and checking fastmap.
21812 (TARGET_CHAR_AND_LENGTH): New macro.
21813 (re_match_2_internal): In emacs, set the locale variable multibyte
21814 to 1, otherwise to 0. New local variable target_multibyte. Check
21815 it to decide the multibyteness of STR1 and STR2. Use
21816 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21817 <charset, charset_not>: If multibyte is nonzero, check fastmap
21818 only for ASCII chars. Call bcmp_translate with
21819 target_multibyte, not with multibyte.
21820 <begline>: Declare the local variable C as `unsigned'.
21821 (bcmp_translate): Change the last arg name to target_multibyte.
21822
21823 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21824 the regexp pattern and the matching target. Set cp->buf.multibyte
21825 to the multibyteness of the regexp pattern. Set
21826 cp->but.target_multibyte to the multibyteness of the matching target.
21827 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21828 FETCH_STRING_CHAR_ADVANCE.
21829 (Freplace_match): Convert unibyte chars to multibyte.
21830
21831 * syntax.c (char_quoted, back_comment, scan_words)
21832 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21833 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21834 unibyte chars to multibyte.
21835 (skip_chars): Delete the arg syntaxp, and move the code for
21836 handling syntaxes to skip_syntaxes. Change callers.
21837 Fix the case that the multibyteness of STRING and the current
21838 buffer doesn't match.
21839 (skip_syntaxes): New function.
21840 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21841 SINGLE_BYTE_CHAR_P.
21842
218432008-02-01 Kenichi Handa <handa@m17n.org>
21844
21845 * xfaces.c (QCfontset): New variable.
21846 (LFACE_FONTSET): New macro.
21847 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21848 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21849 (Finternal_set_lisp_face_attribute)
21850 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21851 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21852 check also LFACE_FONTSET_INDEX.
21853 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21854 attrs[LFACE_FONT_INDEX].
21855 (syms_of_xfaces): Intern and staticpro QCfontset.
21856
21857 * dispextern.h (enum lface_attribute_index): New member
21858 LFACE_FONTSET_INDEX.
21859
21860 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21861
218622008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * coding.c (coding_set_destination): Fix coding->destination for
21865 the case converting a region.
21866 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21867 (encode_coding_object): Fix coding->dst_pos and
21868 coding->dst_pos_byte for the case converting a region.
21869
21870 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21871
21872 * character.h (BYTE8_STRING): New macro.
21873
21874 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21875
218762008-02-01 Kenichi Handa <handa@m17n.org>
21877
21878 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21879 characters by octal form.
21880
21881 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21882
21883 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21884 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21885 _fetch_multibyte_char_len.
21886 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21887
21888 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21889
21890 * casefiddle.c (casify_object): Simplify. Handle the case that
21891 the case conversion change the byte length.
21892 (casify_region): Likewise.
21893
21894 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21895
21896 * character.c (_fetch_multibyte_char_len): Delete this variable.
21897 (syms_of_character): Setup Vprintable_chars.
21898
21899 * editfns.c (Fchar_equal): Fix for the unibyte case.
21900 (Finsert_byte): New function.
21901 (syms_of_editfns): Defsubr it.
21902
21903 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21904 of direct code 0x3ffff.
21905
21906 * search.c (Freplace_match): Fix for the unibyte case.
21907
219082008-02-01 Kenichi Handa <handa@m17n.org>
21909
21910 * lread.c (safe_to_load_p): Fix the logic.
21911
21912 * syntax.c (scan_words): Don't treat characters belonging to
21913 different scripts as constituting a word.
21914
21915 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21916
21917 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21918
21919 * emacs.c (main): In the case of --unibyte, instead of aborting on
21920 finding non-empty buffer, make it unibyte.
21921
219222008-02-01 Kenichi Handa <handa@m17n.org>
21923
21924 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21925 to create a fontset.
21926
219272008-02-01 Dave Love <fx@gnu.org>
21928
21929 * character.c (Funibyte_char_to_multibyte): Doc fix.
21930
21931 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21932
219332008-02-01 Kenichi Handa <handa@m17n.org>
21934
21935 * fontset.c (fontset_add): Make the type `int'.
21936 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21937
21938 * character.c (unibyte_char_to_multibyte)
21939 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21940 charset_unibyte, not charset_primary.
21941
21942 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21943
21944 * charset.c (charset_unibyte): Rename from charset_primary.
21945 (Funibyte_charset): Rename from Fprimary_charset.
21946 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21947 (syms_of_charset): Adjust for the above changes.
21948
21949 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21950 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21951 it->multibyte_p is zero.
21952
21953 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21954 Delete extern.
21955
219562008-02-01 Kenichi Handa <handa@m17n.org>
21957
21958 * coding.c (Fdefine_coding_system_internal): Fix category setting
21959 for a coding system of type iso-2022.
21960
219612008-02-01 Kenichi Handa <handa@m17n.org>
21962
21963 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21964
219652008-02-01 Kenichi Handa <handa@m17n.org>
21966
21967 * syntax.c (Vnext_word_boundary_function_table): New variable.
21968 (next-word-boundary-function-table): Declare it as a Lisp variable
21969 in syms_of_syntax.
21970 (scan_words): Call functions in Vnext_word_boundary_function_table
21971 if any.
21972
21973 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21974
21975 * fontset.c (fs_load_font): If fontp->charset is not negative,
21976 return fontp without setting its members.
21977
219782008-02-01 Dave Love <fx@gnu.org>
21979
21980 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21981
21982 * m/sparc.h (HAVE_ALLOCA): Delete.
21983
21984 * s/irix6-5.h: Don't include strings.h.
21985 (bcopy, bzero, bcmp): Don't undef.
21986
21987 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21988
21989 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21990 (TIOCSIGSEND): Don't test IRIX6.
21991 (bcopy, bzero, bcmp): Define conditionally.
21992
219932008-02-01 Kenichi Handa <handa@m17n.org>
21994
21995 * buffer.c (Qas, Qmake, Qto): New variables.
21996 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21997 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21998
21999 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22000 we are inserting a process output into a multibyte buffer.
22001
22002 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22003 multibyte_char_to_unibyte.
22004
22005 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22006 by the primary charset, make it eight-bit char.
22007 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22008
22009 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22010 (charset_8_bit__control, charset_8_bit_graphic)
22011 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22012 (define_charset_internal): New function.
22013 (syms_of_charset): Call define_charset_internal for pre-defined
22014 charsets.
22015
22016 * charset.h (charset_8_bit): Extern it.
22017
22018 * coding.c (make_conversion_work_buffer): Adjust for the change
22019 of Fset_buffer_multibyte.
22020 (encode_coding_raw_text): Increment p0 in the loop.
22021
22022 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22023
22024 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22025 for the change of Fset_buffer_multibyte.
22026
22027 * fns.c (Fstring_to_multibyte): New function.
22028 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22029
220302008-02-01 Dave Love <fx@gnu.org>
22031
22032 * xfns.c (x_put_x_image): Declare args.
22033
22034 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22035 (try_font_list): Declare an arg.
22036
22037 * xdisp.c (message2_nolog, set_message): Declare an arg.
22038
22039 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22040
22041 * syntax.c (scan_sexps_forward): Declare an arg.
22042
22043 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22044 Declare an arg.
22045
22046 * lisp.h (Fnew_fontset): Declare.
22047
22048 * keymap.c (push_key_description): Call CHARACTERP correctly.
22049
22050 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22051 (face_for_char): Delete unused vars.
22052 (Fset_fontset_font): Doc fix. Delete unused vars.
22053
22054 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22055
22056 * composite.c (update_compositions): Declare arg.
22057
22058 * cm.c (calccost, cmgoto): Declare args.
22059
22060 * charset.c: Remove `emacs' conditional. Doc fixes.
22061 (map_char_table_for_charset): Declare.
22062
22063 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22064
22065 * ccl.c: Remove `emacs' conditional.
22066
220672008-02-01 Kenichi Handa <handa@m17n.org>
22068
22069 The following changes are to allow specifying multiple font
22070 patterns for a character range (specified by script or charset).
22071
22072 * Makefile.in (abbrev.o): Depend on syntax.h.
22073 (xfaces.o): Depend on charset.h.
22074
22075 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22076 SINGLE_BYTE_CHAR_P.
22077
22078 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22079
22080 * character.h (Vchar_script_table): Extern it.
22081
22082 * character.c (Vscript_alist): Delete.
22083 (Vchar_script_table, Qchar_script_table): New variable.
22084 (syms_of_character): Declare Vchar_script_table as a lisp variable
22085 and initialize it.
22086
22087 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22088 have property char-table-extra-slots, make no extra slot.
22089
22090 * dispextern.h (struct face): Delete member `charset'.
22091 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22092 SINGLE_BYTE_CHAR_P.
22093 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22094 Add prototypes.
22095 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22096 (generate_ascii_font_name): Rename from generate_ascii_font.
22097
22098 * fontset.h (get_font_repertory_func): New prototype.
22099 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22100 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22101
22102 * fontset.c (Qprepend, Qappend): New variables.
22103 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22104 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22105 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22106 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22107 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22108 (load_font_get_repertory): New functions.
22109 (fontset_set): Delete.
22110 (fontset_face): New arg FACE. Return face ID, not face.
22111 Complete re-write to handle new fontset structure. Change caller.
22112 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22113 (face_for_char): Don't call lookup_face.
22114 (make_fontset_for_ascii_face): New arg FACE.
22115 (fs_load_font): New arg CHARSET_ID. Don't check
22116 Vfont_encoding_alist here.
22117 (find_font_encoding): New function.
22118 (list_fontsets): Use STRINGP, not ! NILP.
22119 (accumulate_script_ranges): New function.
22120 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22121 re-written to handle new fontset structure.
22122 (Ffontset_font): Return a copy of element.
22123 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22124 docstring of font-encoding-alist.
22125
22126 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22127 (Fset_fotset_font): Fix arguments to 5.
22128
22129 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22130
22131 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22132 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22133 (highlight_trailing_whitespace): Adjust for the change of
22134 lookup_named_face.
22135
22136 * xfaces.c: Include charset.h.
22137 (load_face_font): Delete argument C. Change caller.
22138 (generate_ascii_font_name): Rename from generate_ascii_font.
22139 (font_name_registry): New function.
22140 (cache_face): Store ascii faces before non-ascii faces in buckets.
22141 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22142 Lookup only ascii faces.
22143 (lookup_non_ascii_face): New function.
22144 (lookup_named_face): Delete argument C. Change caller.
22145 (lookup_derived_face): Delete argument C. Change caller.
22146 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22147 a string, just call font_list with it.
22148 (choose_face_font): Delete arguments FACE and C. New arg
22149 FONT_SPEC. Change caller.
22150 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22151 Change caller.
22152 (realize_non_ascii_face): New function.
22153 (realize_x_face): Call load_face_font here.
22154 (realize_tty_face): Delete argument C. Change caller.
22155 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22156 get a face ID.
22157 (dump_realized_face): Don't print charset of FACE.
22158
22159 * xfns.c (x_set_font): Always call x_new_fontset and
22160 store_frame_parameter.
22161 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22162 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22163
22164 * xterm.h (x_get_font_repertory): Extern it.
22165
22166 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22167 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22168 it->multibyte_p is zero.
22169 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22170 (x_new_fontset): If FONTSETNAME doesn't match any existing
22171 fontsets, create a new one.
22172 (x_get_font_repertory): New function.
22173
221742008-02-01 Kenichi Handa <handa@m17n.org>
22175
22176 * coding.c (Ffind_coding_systems_region_internal): Detect an
22177 ASCII only string correctly.
22178
22179 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22180 version is 0.
22181
221822008-02-01 Kenichi Handa <handa@m17n.org>
22183
22184 * lread.c: Include "coding.h".
22185 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22186 (load_each_byte, unread_char): New variables.
22187 (readchar_backlog): Delete.
22188 (readchar): Return a character unless load_each_byte is nonzero.
22189 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22190 cons. If unread_char is not -1, simply return it.
22191 (unreadchar): Handle the case that readcharfun is
22192 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22193 (read_multibyte): Delete.
22194 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22195 (read_emacs_mule_char): New functions.
22196 (Fload): Even if the file doesn't have the extension ".elc", if
22197 safe_to_load_p returns a positive version number, assume that the
22198 file contains bytecompiled code. If the version is less than 22,
22199 load the file while decoding multibyte sequences by emacs-mule.
22200 (readevalloop): Don't use readchar_backlog.
22201 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22202 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22203 (read_escape): Delete the arg BYTEREP.
22204 (read1): Set load_each_byte to 1 temporarily while handling
22205 #@NUMBER. Don't call read_multibyte.
22206 (read_vector): Call Fread with a cons. If readcharfun is
22207 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22208 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22209 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22210 and Qload_force_doc_strings.
22211
222122008-02-01 Kenichi Handa <handa@m17n.org>
22213
22214 * xdisp.c (face_before_or_after_it_pos): Call
22215 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22216
222172008-02-01 Kenichi Handa <handa@m17n.org>
22218
22219 * character.h (TRAILING_CODE_P): New macro.
22220 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22221 (string_char_with_unification): Fix prototype.
22222 (Vscript_alist): Extern it.
22223
22224 * character.c (Vscript_alist): New variable.
22225 (string_char_with_unification, str_as_unibyte)
22226 (string_escape_byte8): Add `const' to local variables.
22227 (syms_of_character): Declare script-alist as a Lisp variable.
22228
22229 * charset.h (Vcharset_ordered_list): Extern it.
22230 (charset_ordered_list_tick): Extern it.
22231 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22232 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22233 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22234 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22235 (Funify_charset): Adjust for the change of Funify_charset.
22236
22237 * charset.c (charset_ordered_list_tick): New variable.
22238 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22239 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22240 deunify instead of unify a charset.
aac0c6e3
MR
22241 (string_xstring_p): Add `const' to local variables.
22242 (find_charsets_in_text): Add `const' to arguments and local variables.
22243 (encode_char): Adjust for the change of Funify_charset. Fix
22244 detecting of invalid code.
22245 (Fset_charset_priority): Increment charset_ordered_list_tick.
22246 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22247 and TO_CODE.
22248
22249 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22250 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22251 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22252 (decode_coding_ccl, consume_chars)
22253 (Ffind_coding_systems_region_internal)
22254 (Fcheck_coding_systems_region): Add `const' to local variables.
22255
22256 * print.c (print_object): Use octal form for printing the
22257 contents of a bool vector.
22258
222592008-02-01 Dave Love <fx@gnu.org>
22260
22261 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22262 <version == 20>: Refuse to load.
22263
222642008-02-01 Dave Love <fx@gnu.org>
22265
22266 * fns.c: Move coding.h.
22267 (Qcodeset, Qdays, Qmonths): New.
22268 (concat): Use CHARACTERP instead of INTEGERP.
22269 (Flocale_codeset): Delete.
22270 (Flanginfo): New function.
22271 (syms_of_fns): Change accordingly.
22272
22273 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22274
222752008-02-01 Dave Love <fx@gnu.org>
22276
22277 * casetab.c (init_casetab_once, init_casetab_once): Fix
22278 CHAR_TABLE_SET call.
22279
22280 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22281
22282 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22283
22284 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22285 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22286 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22287
22288 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22289
22290 * coding.c (ENCODE_DESIGNATION, decode_eol)
22291 (make_conversion_work_buffer, code_conversion_restore)
22292 (Fdefine_coding_system_internal): Convert Lisp types.
22293 (code_conversion_restore): Use EQ, not ==.
22294 (Fencode_coding_string): Fix code_convert_string call.
22295
22296 * coding.h (code_convert_region): Fix prototype.
22297
22298 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22299
22300 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22301 (Ffontset_info): Convert Lisp types.
22302
22303 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22304
22305 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22306
22307 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22308
22309 * chartab.c: Include "...h", not <...h> in some cases.
22310
22311 * callproc.c (Fcall_process): Remove unused variables.
22312
223132008-02-01 Dave Love <fx@gnu.org>
22314
22315 * coding.c (Fset_coding_system_priority): Allow null arg list.
22316
223172008-02-01 Dave Love <fx@gnu.org>
22318
22319 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22320 (Fself_insert_and_exit): Use CHARACTERP.
22321
22322 * callproc.c (Fcall_process): Remove unused vars.
22323
22324 * xterm.c (XTread_socket): Add extra dead keysyms.
22325
22326 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22327
22328 * dispextern.h: Remove prototypes for redraw_frame,
22329 redraw_garbaged_frames.
22330
22331 * cmds.c (Fself_insert_command): Use CHARACTERP.
22332
22333 * chartab.c (make_sub_char_table): Remove unused var.
22334 (Fset_char_table_default, Fmap_char_table): Doc fix.
22335
22336 * keymap.c (access_keymap): Remove generic char code.
22337 (push_key_description): Use CHARACTERP.
22338
223392008-02-01 Dave Love <fx@gnu.org>
22340
22341 * charset.c: Doc fixes.
22342 (Funify_charset): Extra checking.
22343
223442008-02-01 Dave Love <fx@gnu.org>
22345
22346 * lread.c: Remove some unused variables.
22347 (safe_to_load_p): If safe, return the magic number version byte.
22348 (Fload): Maybe use load-with-code-conversion.
22349
223502008-02-01 Kenichi Handa <handa@m17n.org>
22351
22352 * category.c (Fmodify_category_entry): Don't modify the contents
22353 of category_set for characters out of the range. Avoid
22354 unnecessary modification.
22355
22356 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22357 Vchar_unify_table. The default value of the table is now nil.
22358
22359 * character.c (syms_of_character): Setup Vchar_width_table for
22360 eight-bit-control and raw-byte chars.
22361
22362 * charset.h (enum define_charset_arg_index): Delete
22363 charset_arg_parents and add charset_arg_subset and
22364 charset_arg_superset.
22365 (enum charset_attr_index): Delete charset_parents and add
22366 charset_subset and charset_superset.
22367 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22368 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22369 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22370 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22371 (CHARSET_SUPERSET): New macros.
22372 (charset_work): Extern it.
22373 (ENCODE_CHAR): Use charset_work.
22374 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22375 (map_charset_chars): Extern it.
22376
22377 * charset.c (load_charset_map): Set the default value of encoder
22378 and deunifier char-tables to nil.
22379 (map_charset_chars): Change argument. Change callers. Use
22380 map_char_table_for_charset instead of map_char_table.
22381 (Fmap_charset_chars): New optional args from_code and to_code.
22382 (Fdefine_charset_internal): Adjust for the change of
22383 `define-charset' (:parents -> :subset or :superset).
22384 (charset_work): New variable.
22385 (encode_char, syms_of_charset): Adjust for the change of
22386 Fdefine_charset_internal.
22387 (Ffind_charset_string): Setup the vector `charsets' correctly.
22388
22389 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22390 the previous change.
22391 (char_table_ref_and_range): Adjust for the above change.
22392 (map_sub_char_table_for_charset): New function.
22393 (map_char_table_for_charset): New function.
22394
22395 * keymap.c (describe_vector): Handle a char-table directly here.
22396 (describe_char_table): Delete.
22397
22398 * lisp.h (map_charset_chars): Delete.
22399
224002008-02-01 Dave Love <fx@gnu.org>
22401
22402 * fns.c (count_combining): Comment out (unused).
22403 (Flocale_codeset): New.
22404 (syms_of_fns): Defsubr it.
22405
22406 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22407 (size_t): Remove.
22408
224092008-02-01 Dave Love <fx@gnu.org>
22410
22411 * Makefile.in (chartab.o): Depend on charset.h.
22412
224132008-02-01 Kenichi Handa <handa@m17n.org>
22414
22415 * character.c (syms_of_character): Set the default value of
22416 Vprintable_chars to Qnil.
22417
224182008-02-01 Dave Love <fx@gnu.org>
22419
22420 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22421
224222008-02-01 Kenichi Handa <handa@m17n.org>
22423
22424 * charset.c (load_charset_map): Handle the case that from < to
22425 correctly.
22426
22427 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22428 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22429 Pay attention to raw-8-bit chars.
22430
224312008-02-01 Kenichi Handa <handa@m17n.org>
22432
22433 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22434 It is not bytecompiled now.
22435
22436 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22437 (charset_jisx0208): New variables.
22438 (Fdefine_charset_internal): Setup them if appropriate.
22439 (init_charset_once): Initialize them to -1.
22440
22441 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22442 (charset_jisx0208): Extern them.
22443
22444 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22445 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22446 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22447 (setup_iso_safe_charsets): Fix arguments to Fassq.
22448 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22449 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22450 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22451 (encode_coding_iso_2022): Change the 1st arg to
22452 ENCODE_ISO_CHARACTER to a variable.
22453
224542008-02-01 Kenichi Handa <handa@m17n.org>
22455
22456 * charset.h (enum define_charset_arg_index): New enums
22457 charset_arg_min_code and charset_arg_max_code.
22458 (struct charset): New member char_index_offset.
22459
22460 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22461 Take charset->char_index_offset into account.
22462 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22463 args[charset_arg_max_code]. Setup charset.char_index_offset.
22464 (syms_of_charset): Fix args to Fdefine_charset_internal.
22465
224662008-02-01 Dave Love <fx@gnu.org>
22467
22468 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22469
224702008-02-01 Dave Love <fx@gnu.org>
22471
22472 * coding.c: Doc fixes.
22473 (Fcoding_system_aliases): Fix return value.
22474 (Qmac): Remove (duplicated) definition.
22475
224762008-02-01 Dave Love <fx@gnu.org>
22477
362654a6
JB
22478 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22479 New functions.
aac0c6e3
MR
22480
22481 * character.c (Fstring): Doc fix.
22482
22483 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22484
362654a6 22485 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22486 (font-encoding-alist): Doc fix.
22487
224882008-02-01 Dave Love <fx@gnu.org>
22489
22490 * term.c (costs_set): Declare static, non-initialized for pcc.
22491 (encode_terminal_code): Remove unused var.
22492
22493 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22494 for K&R.
22495
22496 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22497
22498 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22499 (suffixes): Move out of make_subsidiaries for K&R.
22500
22501 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22502
22503 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22504
225052008-02-01 Dave Love <fx@gnu.org>
22506
22507 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22508
22509 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22510
225112008-02-01 Yong Lu <lyongu@asia-infonet.com>
22512
22513 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22514
22515 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22516
225172008-02-01 Kenichi Handa <handa@m17n.org>
22518
22519 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22520 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22521
225222008-02-01 Kenichi Handa <handa@m17n.org>
22523
22524 * coding.c (decode_coding_charset): Adjust for the change of
22525 Fdefine_coding_system_internal.
22526 (Fdefine_coding_system_internal): For a coding system of
22527 `charset' type, store a list of charset IDs in
22528 `charset_attr_charset_valids' element of coding attributes.
22529
225302008-02-01 Kenichi Handa <handa@m17n.org>
22531
22532 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22533 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22534 caller. Handle 2-byte and 3-byte charsets correctly.
22535 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22536 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22537 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22538 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22539 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22540 sequence.
22541 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22542 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22543 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22544 and alt&rule composition.
22545 (decode_coding_iso_2022): Handle composition correctly.
22546 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22547
22548 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22549 re-defining a charset. If the charset has :emacs-mule-id, setup
22550 emacs_mule_bytes.
22551 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22552
225532008-02-01 Kenichi Handa <handa@m17n.org>
22554
22555 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22556 (encode_coding_big5, encode_coding_charset): If coding requires safe
22557 encoding, produce a character specified by
22558 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22559
225602008-02-01 Dave Love <fx@gnu.org>
22561
22562 * xterm.c (XSetIMValues): Declare.
22563
22564 * process.c: Conditionally include sys/wait.h, pty.h.
22565
22566 * print.c (print_object): Fix print format for 64-bit systems.
22567
22568 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22569
22570 * buffer.c (emacs_strerror): Declare.
22571
22572 * fontset.c (Fclear_face_cache): Declare.
22573 (accumulate_font_info): Comment-out (unused).
22574 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22575 variables.
22576
22577 * character.h (string_escape_byte8): Declare.
22578
22579 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22580 unused vars.
22581 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22582 (Fmap_charset_chars): Doc fix.
22583
22584 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22585 (Fset_coding_system_priority, Fset_coding_system_priority)
22586 (Fdefine_coding_system_internal): Doc fix.
22587
225882008-02-01 Dave Love <fx@gnu.org>
22589
22590 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22591
225922008-02-01 Kenichi Handa <handa@m17n.org>
22593
22594 * character.c (string_escape_byte8): Make multibyte string with
22595 correct size.
22596
22597 * charset.c (Fmake_char): Delete unnecessary code.
22598
225992008-02-01 Kenichi Handa <handa@m17n.org>
22600
22601 * xfns.c (x_encode_text): Allocate coding.destination here, and
22602 call encode_coding_object with dst_object Qnil.
22603
22604 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22605 multibyte form correctly.
22606
22607 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22608 against Vfont_encoding_alist.
22609
22610 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22611 handling of charset list.
22612 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22613 (decode_coding_object): Move point to coding->dst_pos before
22614 calling post-read-conversion function.
22615 (encode_coding_object): Give correct arguments to
22616 pre-write-conversion. Ignore the return value of
22617 pre-write-conversion function. Pay attention to the case that
22618 pre-write-conversion changes the current buffer. If dst_object is
22619 Qt, even if coding->src_bytes is zero, allocate at least one byte
22620 to coding->destination.
22621
22622 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22623
22624 * charset.c (Fmake_char): Make it more backward compatible.
22625 (Fmap_charset_chars): Fix docstring.
22626
226272008-02-01 Dave Love <fx@gnu.org>
22628
22629 * coding.c: Doc fixes.
22630 (Fdefine_coding_system_alias): Use names, not symbols, in
22631 coding-system-alist.
22632
226332008-02-01 Kenichi Handa <handa@m17n.org>
22634
22635 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22636 of calling free_realized_face.
22637
226382008-02-01 Yong Lu <lyongu@asia-infonet.com>
22639
22640 * charset.c (read_hex): Don't treat SPC as a comment starter.
22641 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22642 (Fdecode_char): Fix typo.
22643
226442008-02-01 Kenichi Handa <handa@m17n.org>
22645
22646 * charset.h (struct charset): New member `code_space_mask'.
22647
22648 * coding.c (coding_set_source): Delete the local variable beg_byte.
22649 (encode_coding_charset, Fdefine_coding_system_internal):
22650 Delete the local variable charset.
22651 (Fdefine_coding_system_internal): Setup
22652 attrs[coding_attr_charset_valids] correctly.
22653
22654 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22655 member to check if CODE is valid or not.
22656 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22657 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22658 is within the range of charset->min_code and carset->max_code.
22659
226602008-02-01 Dave Love <fx@gnu.org>
22661
22662 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22663
22664 * dispextern.h (generate_ascii_font): Fix return type.
22665
22666 * xfaces.c (generate_ascii_font): Fix arg declaration.
22667
22668 * coding.c (coding_inherit_eol_type)
22669 (Fset_terminal_coding_system_internal)
22670 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22671
226722008-02-01 Kenichi Handa <handa@m17n.org>
22673
22674 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22675 multiple charsets correctly.
22676
226772008-02-01 Kenichi Handa <handa@m17n.org>
22678
22679 * search.c (boyer_moore): Fix handling of multibyte character
22680 translation.
22681
22682 * xdisp.c (display_mode_element): When the variable `elt' is
22683 changed, update `this' and `lisp_string'.
22684
226852008-02-01 Kenichi Handa <handa@m17n.org>
22686
22687 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22688
22689 * callproc.c (Fcall_process): Be sure to give the current buffer
22690 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22691
22692 * charset.c (struct charset_map_entries): New struct.
22693 (load_charset_map): Rename from parse_charset_map. New args
22694 entries and n_entries. Change caller.
22695 (load_charset_map_from_file): Rename from load_charset_map.
22696 Change caller. New arg control_flag. Call load_charset_map at
22697 the tail.
22698 (load_charset_map_from_vector): New function.
22699 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22700 (encode_char): If the charset is compact, change a character index
22701 to a code point.
22702
22703 * coding.c (coding_alloc_by_making_gap): Check the case that the
22704 source and destination are the same correctly.
22705 (decode_coding_raw_text): Set coding->consumed_char and
22706 coding->consumed to 0.
22707 (produce_chars): If coding->chars_at_source is nonzero, update
22708 coding->consumed_char and coding->consumed before calling
22709 alloc_destination.
22710 (Fdefine_coding_system_alias): Register ALIAS in
22711 Vcoding_system_alist.
22712 (syms_of_coding): Define `no-conversion' coding system at the tail.
22713
22714 * fileio.c (Finsert_file_contents): Set coding_system instead of
22715 val. If the current buffer is multibyte, always call
22716 decode_coding_gap.
22717
22718 * xfaces.c (try_font_list): Give higher priority to fontset's
22719 family than face's family.
22720
227212008-02-01 Kenichi Handa <handa@m17n.org>
22722
22723 * callproc.c (Fcall_process): Be sure to give the current buffer
22724 to decode_coding_c_string.
22725
22726 * xfaces.c (try_font_list): Give a family specified in a fontset
22727 higher priority than a family specified in a face.
22728
227292008-02-01 Kenichi Handa <handa@m17n.org>
22730
22731 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22732 Fix arguments to insert_from_buffer.
22733
22734 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22735
227362008-02-01 Kenichi Handa <handa@m17n.org>
22737
22738 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22739 (decode_coding_gap): Set coding->dst_multibyte correctly.
22740
227412008-02-01 Kenichi Handa <handa@m17n.org>
22742
22743 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22744 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22745 (encode_coding_utf_16): Substitute coding->default_char for
22746 non-Unicode characters.
22747 (decode_coding): Don't call record_insert here.
22748 (setup_coding_system): Initialize `surrogate' of
22749 coding->spec.utf_16 to 0.
22750 (EMIT_ONE_BYTE): Fix for multibyte case.
22751
22752 * insdel.c (insert_from_gap): Call record_insert.
22753
227542008-02-01 Kenichi Handa <handa@m17n.org>
22755
22756 * casefiddle.c (casify_region): Fix multibyte case.
22757
22758 * character.c (c_string_width): Add return type `int'.
22759 (char_string_with_unification): Delete arg ADVANCED.
22760
22761 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22762 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22763 (CHAR_STRING_ADVANCE): Make it do-while statement.
22764
22765 * chartab.c (sub_char_table_set_range): Optimize for the case
22766 DEPTH == 3. Add workaround code for a GCC optimization bug.
22767
22768 * charset.c (parse_charset_map): Remove an unused variable.
22769
22770 * coding.c: Delete unused variables.
22771
22772 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22773 earlier. If inserted is zero and the coding system doesn't
22774 require flushing, don't call decode_coding_gap.
22775
22776 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22777
227782008-02-01 Kenichi Handa <handa@m17n.org>
22779
22780 The following changes are for using Unicode as an internal
22781 character model, and use UTF-8 format for buffer/string
22782 representation.
22783
22784 * .gdbinit (xchartable): Adjust for the change of char table structure.
22785 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22786
22787 * Makefile.in (obj): Add character.o and chartab.o.
22788 (lisp, shortlisp): Remove utf-8.elc.
22789 (*.o): For many files, change dependency on charset.h to
22790 character.h, and add dependency on character.h.
22791 (character.o, chartab.o): New targets.
22792
22793 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22794 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22795 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22796 of "charset.h".
22797
22798 * dired.c, filelock.c: Include "character.h".
22799
22800 * alloc.c: Include "character.h" instead of "charset.h".
22801 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22802 (syms_of_alloc): Remove defsubr for Smake_char_table.
22803
22804 * buffer.c: Include "character.h" instead of "charset.h", don't
22805 include "coding.h".
22806 (Fset_buffer_multibyte): Adjust for UTF-8.
22807
22808 * buffer.h: EXFUN Fbuffer_live_p.
22809
22810 * callproc.c: Include "character.h" instead of "charset.h".
22811 (Fcall_process): Big change for the new code-conversion APIs.
22812
22813 * casetab.c: Include "character.h" instead of "charset.h".
22814 (set_canon, set_identity, shuffle): Adjust for the new
22815 map_char_table spec.
22816 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22817 accessing the char table structure.
22818
22819 * chartab.c: New file that implements char table.
22820
22821 * category.c: Include "character.h".
22822 (copy_category_entry): New function.
22823 (copy_category_table): Call map_char_table and copy_category_entry.
22824 (Fmake_category_table): Initialize all top-level slots.
22825 (char_category_set): New function.
22826 (modify_lower_category_set): Delete.
22827 (Fmodify_category_entry): Call char_table_ref_and_range.
22828
22829 * category.h (CATEGORY_SET): Just call char_category_set.
22830
22831 * ccl.c: Include "character.h".
22832 (Qccl, Qcclp): New variables.
22833 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22834 it's less than 256.
22835 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22836 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22837 and DST type.
22838 (ccl_driver): Change types of argument, adjust code accordingly.
22839 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22840 ccl_driver.
22841 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22842
22843 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22844 New members src_multibyte, dst_multibyte, consumed, and produced.
22845 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22846 (CODING_SPEC_CCL_PROGRAM): New macro.
22847 (ccl_driver): Update prototype.
22848 (Qccl, Qcclp, Fccl_program_p): Extern them.
22849 (CHECK_CCL_PROGRAM): New macro.
22850
22851 * character.c, character.h, chartab.c: New files.
22852
22853 * charset.c: Mostly re-written. Move character and multibyte sequence
22854 handling codes to character.c.
22855
22856 * charset.h: Mostly re-written. Move character and multibyte sequence
22857 handling codes to character.h.
22858
22859 * coding.c, coding.h: Mostly re-written.
22860
22861 * composite.c: Include "character.h" instead of "charset.h".
22862 (CHAR_WIDTH): Move to character.h.
22863 (HASH_KEY, HASH_VALUE): Delete.
22864
22865 * composite.h (enum composition_method): Change order of enumeration
22866 symbols.
22867
22868 * data.c: Include "character.h" instead of "charset.h".
22869 (Faref): Call CHAR_TABLE_REF for a char table.
22870 (Faset): Call CHAR_TABLE_SET for a char table.
22871
22872 * dispextern.h (free_realized_face, check_face_attribytes)
22873 (generate_ascii_font): Extern them.
22874 (free_realized_multibyte_face): Delete extern.
22875
22876 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22877 table structure.
22878
22879 * editfns.c: Include "character.h" instead of "charset.h".
22880 (Fchar_to_string): Always call CHAR_STRING.
22881
22882 * emacs.c (main): Call init_charset_once, init_charset,
22883 syms_of_chartab, and syms_of_character.
22884
22885 * fileio.c: Include "character.h" instead of "charset.h".
22886 (Finsert_file_contents): Big change for the new code-conversion API.
22887 (choose_write_coding_system, Fwrite_region): Likewise.
22888 (build_annotations_2): Delete.
22889 (e_write): Big change for the new code-conversion API.
22890
22891 * fns.c: Include "character.h" instead of "charset.h".
22892 (copy_sub_char_table): Move to chartab.c.
22893 (Fcopy_sequence): Call copy_char_table for a char table.
22894 (concat): Delete codes calling count_multibyte.
22895 (string_char_to_byte, string_byte_to_char): Adjust for the new
22896 multibyte form.
22897 (internal_equal): Adjust for the change of char table structure.
22898 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22899 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22900 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22901 (char_table_translate, optimize_sub_char_table)
22902 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22903 chartab.c.
22904 (char_table_ref_and_index): Delete.
22905 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22906 (Fmd5): Call preferred_coding_system instead of accessing
22907 Vcoding_category_list. Adjust for the new code-conversion API.
22908 (syms_of_fns): Move defsubr for char table related functions to
22909 chartab.c.
22910
22911 * fontset.c: Mostly re-written.
22912
22913 * fontset.h (struct font_info): Change type of the member encoding_type.
22914 (enum FONT_SPEC_INDEX): New enum.
22915 (fontset_font_pattern, fs_load_font): Update prototype.
22916 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22917
22918 * indent.c: Include "character.h" instead of "charset.h".
22919 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22920
22921 * insdel.c: Include "character.h" instead of "charset.h".
22922 (copy_text): Don't refer to Vnonascii_translation_table.
22923 (insert_from_gap): New function.
22924
22925 * keyboard.c: Include "character.h" instead of "charset.h".
22926 (command_loop_1): Never call direct_output_forward_char before
22927 a non-ASCII character.
22928 (read_char): If Vkeyboard_translate_table is a char table, always
22929 translate a character.
22930
22931 * keymap.c: Include "character.h".
22932 (store_in_keymap): Handle the case that IDX is a cons.
22933 (Fdefine_key): Handle the case that KEY is a cons and the car part
22934 is also a cons (range).
22935 (push_key_description): Adjust for the new character code.
22936 (describe_vector): Call describe_char_table for a char table.
22937 (describe_char_table): New function.
22938
22939 * keymap.h (describe_char_table): Extern it.
22940
22941 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22942 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22943 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22944 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22945 Delete.
22946 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22947 structure.
22948 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22949 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22950 (CHARTAB_SIZE_BITS_3): New macros.
22951 (chartab_size): Extern it.
22952 (struct Lisp_Char_Table): Re-design.
22953 (struct Lisp_Sub_Char_Table): New structure.
22954 (HASH_KEY, HASH_VALUE): Move from fns.c.
22955 (CHARACTERBITS): Define as 22.
22956 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22957 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22958 (GC_SUB_CHAR_TABLE_P): New macro.
22959 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22960 (code_convert_string_norecord): Deleted extern.
22961 (init_character_once, syms_of_character, init_charset)
22962 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22963
22964 * lread.c: Include "character.h".
22965 (read_multibyte): New arg NBYTES.
22966 (read_escape): Change the meaning of returned *BYTEREP.
22967 (to_multibyte): Delete.
22968 (read1): Adjust the handling of char table and string.
22969
22970 * print.c: Include "character.h" instead of "charset.h".
22971 (print_string): Convert 8-bit raw bytes to octal form by
22972 string_escape_byte8.
22973 (print_object): Adjust for the new multibyte form. Print 8-bit
22974 raw bytes always in octal form. Handle sub char table correctly.
22975
22976 * process.c: Include "character.h" instead of "charset.h".
22977 (read_process_output, send_process): Adjust for the new
22978 code-conversion API.
22979
22980 * puresize.h (BASE_PURESIZE): Increase.
22981
22982 * regex.c: Include "character.h" instead of "charset.h".
22983 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22984 (regex_compile): Accept a range whose starting and ending
22985 character have different leading bytes.
22986 (analyse_first): Adjust for the above change.
22987
22988 * search.c: Include "character.h" instead of "charset.h".
22989 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22990 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22991
22992 * syntax.c: Include "character.h" instead of "charset.h".
22993 (syntax_parent_lookup): Delete.
22994 (Fmodify_syntax_entry): Accept a cons as CHAR.
22995 (skip_chars): Adjust for the new multibyte form.
22996 (init_syntax_once): Call char_table_set_range instead of directly
22997 accessing the structure of a char table.
22998
22999 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23000 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23001 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23002 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23003
23004 * term.c: Include "buffer.h" and "character.h".
23005 (encode_terminal_code, write_glyphs): Adjust for the new
23006 code-conversion API.
23007 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23008
23009 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23010
23011 * xdisp.c: Include "character.h".
23012 (get_next_display_element): Adjust for the new multibyte form.
23013 (disp_char_vector): Adjust for the new char table structure.
23014 (decode_mode_spec_coding): Adjust for the new structure of
23015 coding system.
23016 (decode_mode_spec): Adjust for the new code-conversion API.
23017
23018 * xfaces.c: Include "character.h" instead of "charset.h".
23019 (load_face_font): Adjust for the change of choose_face_font and
23020 FS_LOAD_FONT.
23021 (generate_ascii_font): New function.
23022 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23023 (set_font_frame_param): Adjust for the change of choose_face_font.
23024 (free_realized_face): Make it public.
23025 (free_realized_faces_for_fontset): Rename from
23026 free_realized_multibyte_face. Free also faces realized for ASCII.
23027 (choose_face_font): Change arguments. Adjust for the change of
23028 fontset_font_pattern and FS_LOAD_FONT.
23029
23030 * xfns.c: Include "character.h".
23031 (x_encode_text): Adjust for the new code-conversion API.
23032
23033 * xselect.c: Don't include "charset.h".
23034 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23035
23036 * xterm.c: Include "character.h".
23037 (x_encode_char): New argument CHARSET. Change caller.
23038 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23039 Call ENCODE_CHAR instead of SPLIT_CHAR.
23040 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23041 CHAR_WIDTH instead of CHARSET_WIDTH.
23042 (XTread_socket): Adjust for the new code-conversion API.
23043 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23044 (x_load_font): Adjust for the change of struct font.
23045
230462008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23047
23048 * xfaces.c (face_at_buffer_position): Remove unused vars.
23049
230502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23051
23052 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23053 Fix overflow checking.
23054
230552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23056
23057 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23058 Cancel previous change.
23059
230602008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23061
23062 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23063 ccl->eight_bit_control. Fix check for buffer overflow.
23064 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23065 (ccl_driver): Initialize extra_bytes to 0.
23066
230672008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23068
23069 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23070 return it ORed with ctrl_modifier.
23071
230722008-01-29 Miles Bader <miles@gnu.org>
23073
23074 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23075
230762008-01-28 Jason Rumney <jasonr@gnu.org>
23077
23078 * w32.c (stat): Don't double check for networked drive.
23079
230802008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23081
23082 * window.c (run_window_configuration_change_hook): New function.
23083 Code extracted from set_window_buffer. Set the selected frame.
23084 (set_window_buffer): Use it.
23085 * window.h (run_window_configuration_change_hook): Declare.
23086 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23087
23088 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23089
230902008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23091
23092 * Makefile.in: Remove references to unused macros.
23093
230942008-01-26 Eli Zaretskii <eliz@gnu.org>
23095
23096 * w32.c (g_b_init_get_sid_sub_authority)
23097 (g_b_init_get_sid_sub_authority_count): New static variables.
23098 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23099 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23100 (init_user_info): Use them to retrieve uid and gid.
23101 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23102 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23103 st_uid and st_gid of the file.
23104
231052008-01-26 Jason Rumney <jasonr@gnu.org>
23106
23107 * w32.c (logon_network_drive): New function.
23108 (stat): Use it.
23109
231102008-01-26 Chong Yidong <cyd@stupidchicken.com>
23111
23112 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23113 invisible text covered with an ellipsis.
23114
231152008-01-25 Richard Stallman <rms@gnu.org>
23116
23117 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23118 jump back to beginning. Move some other initializations after that.
23119 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23120 New variables.
23121 (syms_of_xdisp): Init them.
23122
23123 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23124
23125 * buffer.c (reset_buffer_local_variables):
23126 Implement `permanent-local-hook'.
23127 (Qpermanent_local_hook): New variable.
23128 (syms_of_buffer): Init and staticpro it.
23129
231302008-01-25 Michael Albinus <michael.albinus@gmx.de>
23131
23132 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23133
231342008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23135
23136 * fns.c (Fclrhash): Return TABLE.
23137
231382008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23139
23140 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23141 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23142 is set even without positional changes.
23143 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23144
23145 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23146
231472008-01-23 Jason Rumney <jasonr@gnu.org>
23148
23149 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23150
23151 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23152 the unicode range available in MULE by locale-coding-system.
23153 Improve dbcs lead byte detection. Set event timestamp and modifiers
23154 earlier.
23155
231562008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23157
23158 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23159 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23160 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23161 when used on child processes.
23162
231632008-01-21 Michael Albinus <michael.albinus@gmx.de>
23164
23165 * dbusbind.c (Fdbus_method_return_internal): Rename from
23166 Fdbus_method_return.
23167 (Fdbus_unregister_object): Move to dbus.el.
23168 (Fdbus_call_method, Fdbus_method_return_internal)
23169 (Fdbus_send_signal): Improve debug messages.
23170
231712008-01-20 Martin Rudalics <rudalics@gmx.at>
23172
23173 * undo.c (undo_inhibit_record_point): New variable.
23174 (syms_of_undo): Initialize it.
23175 (record_point): Don't record point when undo_inhibit_record_point
23176 is set.
23177
231782008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23179
23180 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23181
23182 * xdisp.c (Qauto_hscroll_mode): New var.
23183 (syms_of_xdisp): Initialize it.
23184 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23185 window's buffer.
23186 (hscroll_windows): Don't check automatic_hscrolling_p here.
23187
23188 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23189 vscroll if we're setting window-buffer to the value it already has.
23190
231912008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23192
23193 * m/intel386.h: Remove references to XENIX.
23194
231952008-01-17 Andreas Schwab <schwab@suse.de>
23196
23197 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23198 instead of HAVE_X86_64_LIB64_DIR.
23199 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23200
232012008-01-17 Glenn Morris <rgm@gnu.org>
23202
23203 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23204 to HAVE_X86_64_LIB64_DIR.
23205
232062008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23207
23208 * s/irix3-3.h:
23209 * s/irix4-0.h:
23210 * s/386-ix.h:
23211 * s/domain.h:
23212 * s/hpux9-x11r4.h:
23213 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23214
23215 * sysdep.c: Remove code containing references to symbols defined
23216 by unsupported systems.
23217
232182008-01-16 Glenn Morris <rgm@gnu.org>
23219
23220 * coding.c (select-safe-coding-system-function): Doc fix.
23221
232222008-01-15 Glenn Morris <rgm@gnu.org>
23223
23224 * config.in: Revert 2008-01-13 change: this is a generated file.
23225
232262008-01-13 Tom Tromey <tromey@redhat.com>
23227
23228 * lisp.h: Fix typo.
23229
232302008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23231
23232 * m/sequent-ptx.h:
23233 * m/sequent.h:
23234 * s/ptx.h:
23235 * s/ptx4-2.h:
23236 * s/ptx4.h: Remove files for systems no longer supported.
23237
23238 * callproc.c (Fcall_process): Fix previous change.
23239
232402008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23241
23242 * unexsunos4.c: Remove file, system not supported anymore.
23243
23244 * m/mips.h:
23245 * m/intel386.h:
23246 * callproc.c:
23247 * config.in:
23248 * ecrt0.c:
23249 * emacs.c:
23250 * fileio.c:
23251 * frame.c:
23252 * getpagesize.h:
23253 * keyboard.c:
23254 * lread.c:
23255 * process.c:
23256 * puresize.h:
23257 * sysdep.c:
23258 * systty.h:
23259 * syswait.h:
23260 * unexec.c:
23261 * xdisp.c:
23262 * alloc.c: Remove code containing references to symbols defined by
23263 unsupported systems.
23264
232652008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23266
23267 * coding.c (detect_coding_mask): Fix previous change.
23268
232692008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23270
23271 * coding.c (detect_coding_iso2022): New arg
23272 latin_extra_code_state. Allow Latin extra codes only
23273 when *latin_extra_code_state is nonzero.
23274 (detect_coding_mask): If there is a NULL byte, detect the encoding
23275 as UTF-16 or binary. If Latin extra codes exist, detect the
23276 encoding as ISO-2022 only when there's no other proper encoding is
23277 found.
23278
232792008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23280
23281 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23282 #ifdef MAC_OS.
23283
232842008-01-08 Richard Stallman <rms@gnu.org>
23285
23286 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23287
232882008-01-06 Nick Roberts <nickrob@snap.net.nz>
23289
23290 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23291 menu bar in parentheses.
23292
232932008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23294
23295 * m/7300.h:
23296 * m/acorn.h:
23297 * m/alliant-2800.h:
23298 * m/alliant.h:
23299 * m/alliant1.h:
23300 * m/alliant4.h:
23301 * m/altos.h:
23302 * m/amdahl.h:
23303 * m/apollo.h:
23304 * m/att3b.h:
23305 * m/aviion-intel.h:
23306 * m/aviion.h:
23307 * m/celerity.h:
23308 * m/clipper.h:
23309 * m/cnvrgnt.h:
23310 * m/convex.h:
23311 * m/cydra5.h:
23312 * m/delta88k.h:
23313 * m/dpx2.h:
23314 * m/dual.h:
23315 * m/elxsi.h:
23316 * m/f301.h:
23317 * m/gould-np1.h:
23318 * m/gould.h:
23319 * m/i860.h:
23320 * m/ibmps2-aix.h:
23321 * m/ibmrt-aix.h:
23322 * m/ibmrt.h:
23323 * m/irist.h:
23324 * m/is386.h:
23325 * m/isi-ov.h:
23326 * m/mega68.h:
23327 * m/mg1.h:
23328 * m/news-r6.h:
23329 * m/news-risc.h:
23330 * m/news.h:
23331 * m/nh3000.h:
23332 * m/nh4000.h:
23333 * m/ns16000.h:
23334 * m/ns32000.h:
23335 * m/nu.h:
23336 * m/orion.h:
23337 * m/orion105.h:
23338 * m/paragon.h:
23339 * m/pfa50.h:
23340 * m/plexus.h:
23341 * m/pyramid.h:
23342 * m/pyrmips.h:
23343 * m/sh3el.h:
23344 * m/sps7.h:
23345 * m/sr2k.h:
23346 * m/stride.h:
23347 * m/sun1.h:
23348 * m/sun2.h:
23349 * m/sun3-68881.h:
23350 * m/sun3-fpa.h:
23351 * m/sun3-soft.h:
23352 * m/sun3.h:
23353 * m/sun386.h:
23354 * m/symmetry.h:
23355 * m/tad68k.h:
23356 * m/tahoe.h:
23357 * m/targon31.h:
23358 * m/tek4300.h:
23359 * m/tekxd88.h:
23360 * m/tower32.h:
23361 * m/tower32v3.h:
23362 * m/ustation.h:
23363 * m/wicat.h:
23364 * m/xps100.h:
23365 * s/cxux.h:
23366 * s/cxux7.h:
23367 * s/dgux.h:
23368 * s/dgux4.h:
23369 * s/dgux5-4-3.h:
23370 * s/dgux5-4r2.h:
23371 * s/esix.h:
23372 * s/esix5r4.h:
23373 * s/hiuxmpp.h:
23374 * s/hiuxwe2.h:
23375 * s/iris3-5.h:
23376 * s/iris3-6.h:
23377 * s/isc2-2.h:
23378 * s/isc3-0.h:
23379 * s/isc4-0.h:
23380 * s/isc4-1.h:
23381 * s/newsos5.h:
23382 * s/newsos6.h:
23383 * s/osf1.h:
23384 * s/osf5-0.h:
23385 * s/riscix1-1.h:
23386 * s/riscix12.h:
23387 * s/sco4.h:
23388 * s/sco5.h:
23389 * s/sunos4-0.h:
23390 * s/sunos4-1.h:
23391 * s/sunos413.h:
23392 * s/sunos4shr.h:
23393 * s/umax.h:
23394 * s/unipl5-2.h:
23395 * s/xenix.h:
23396 * cxux-crt0.s:
23397 * unexapollo.c:
23398 * unexconvex.c:
23399 * unexenix.c:
23400 * unexsni.c: Remove files for systems no longer supported.
23401
23402 * m/intel386.h: Remove references to unsupported systems.
23403
23404 * w32.c (get_emacs_configuration): Remove reference to i860.
23405
23406 * sysdep.c: Remove dead code.
23407
234082008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23409
23410 * s/rtu.h:
23411 * m/masscomp.h: Remove files. Platform is obsolete.
23412
234132008-01-04 Michael Albinus <michael.albinus@gmx.de>
23414
23415 * dbusbind.c (Fdbus_method_return): New function.
23416 (xd_read_message): Add the serial number to the event.
23417 (Fdbus_register_method): Activate the function.
23418
234192008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23420
23421 * keyboard.c (read_key_sequence): Fix typo.
23422
234232008-01-03 Michael Albinus <michael.albinus@gmx.de>
23424
23425 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23426 (xd_signature, xd_append_arg): Handle element type detection for
23427 empty arrays.
23428 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23429 SDATA () calls; this must be solved more general.
23430 (Fdbus_register_signal): Use SBYTES instead of strlen.
23431
234322008-01-03 Magnus Henoch <magnus@zemdatav>
23433
23434 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23435 unsigned int for byte values (necessary for big-endian platform).
23436 (Fdbus_call_method): Handle the case of no returned arguments.
23437
234382007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23439
23440 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23441
234422007-12-31 Magnus Henoch <mange@freemail.hu>
23443
23444 * dbusbind.c (xd_signature): Signature of variant is just "v".
23445
234462007-12-30 Michael Albinus <michael.albinus@gmx.de>
23447
23448 * dbusbind.c: Fix several errors and compiler warnings.
23449 Reported by Tom Tromey <tromey@redhat.com>.
23450 (XD_ERROR, XD_DEBUG_MESSAGE)
23451 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23452 (xd_append_arg): Part for basic D-Bus types rewritten.
23453 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23454 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23455 appropriate.
23456 (xd_read_message): Return Qnil. Don't signal an error; it is not
23457 useful during event reading.
23458 (Fdbus_register_signal): Signal an error if the check for
23459 FUNCTIONP fails.
23460 (Fdbus_register_method): New function. The implementation is not
23461 complete, the call of the function signals an error therefore.
23462 (Fdbus_unregister_object): New function, renamed from
23463 Fdbus_unregister_signal. The initial check signals an error, if
23464 the object is not well formed.
23465
234662007-12-30 Richard Stallman <rms@gnu.org>
23467
23468 * textprop.c (get_char_property_and_overlay):
23469 Signal error if POSITION is out of range in a buffer.
23470
234712007-12-29 Martin Rudalics <rudalics@gmx.at>
23472
23473 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23474 because the original parameters are in pure storage now.
23475
234762007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23477
23478 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23479
234802007-12-22 Eli Zaretskii <eliz@gnu.org>
23481
23482 * callint.c (syms_of_callint) <command-history>: Add reference to
23483 history-length in the doc string.
23484
234852007-12-17 Jason Rumney <jasonr@gnu.org>
23486
23487 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23488 before passing as wParam.
23489
234902007-12-22 Michael Albinus <michael.albinus@gmx.de>
23491
23492 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23493 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23494 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23495 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23496 as number.
23497 (Fdbus_call_method): Fix docstring.
23498
234992007-12-21 Michael Albinus <michael.albinus@gmx.de>
23500
23501 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23502 New macros.
23503 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23504 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23505 Simplify.
23506 (xd_signature): New function.
23507 (xd_append_arg): Compute also signatures. Major rewrite.
23508 (xd_retrieve_arg): Make debug messages friendly.
23509 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23510 Check for signatures of arguments.
23511
235122007-12-19 Michael Albinus <michael.albinus@gmx.de>
23513
23514 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23515 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23516 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23517 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23518 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23519 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23520 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23521 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23522 (xd_retrieve_value): Remove. Functionality included in ...
23523 (xd_append_arg): New function.
23524 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23525
235262007-12-16 Michael Albinus <michael.albinus@gmx.de>
23527
23528 * dbusbind.c (top): Include <stdio.h>.
23529 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23530 dbus_message_new_method_call and dbus_message_new_signal.
23531 (Fdbus_register_signal): Rename unique_name to uname.
23532 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23533 non-existing unique name. Fix typos in matching rule. Return an
23534 object which is useful in Fdbus_unregister_signal.
23535 (Fdbus_unregister_signal): Reimplementation, in order to remove
23536 only the corresponding entry.
23537 (Vdbus_registered_functions_table): Change the order of entries.
23538 Apply these changes in xd_read_message and Fdbus_register_signal.
23539
235402007-12-16 Andreas Schwab <schwab@suse.de>
23541
23542 * fileio.c (Finsert_file_contents): Fix overflow check to not
23543 depend on undefined integer overflow.
23544
235452007-12-14 Jason Rumney <jasonr@gnu.org>
23546
23547 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23548 for characters above 127.
23549
235502007-12-13 Jason Rumney <jasonr@gnu.org>
23551
23552 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23553 before dereferencing array.
23554 (lookup_vk_code): Remove zero comparison.
23555
235562007-12-14 Michael Albinus <michael.albinus@gmx.de>
23557
23558 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23559 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23560 Use `unsigned int' instead of `uint'.
23561 (xd_read_message, Fdbus_register_signal): Split expressions into
23562 multiple lines before operators "&&" and "||", according to the
23563 GNU Coding Standards.
23564
235652007-12-14 Eli Zaretskii <eliz@gnu.org>
23566
23567 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23568
235692007-12-12 Juri Linkov <juri@jurta.org>
23570
23571 * buffer.c (Frename_buffer): In interactive spec replace
23572 `read-buffer' with `read-string' that uses `buffer-name-history'
23573 as history, and the current buffer's name as default.
23574
235752007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23576
23577 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23578 manipulating the backtrace manually.
23579 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23580 (struct backtrace, backtrace_list): Remove.
23581 (command_loop_1): Remove dead var `no_direct'.
23582
23583 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23584 preserve non-built-in buffer-local variables.
23585 (Fkill_all_local_variables): Don't re-create&re-set permanent
23586 buffer-local variables.
23587
235882007-12-09 Juri Linkov <juri@jurta.org>
23589
23590 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23591 Lisp code that uses `read-buffer' with current buffer as default.
23592
235932007-12-08 Michael Albinus <michael.albinus@gmx.de>
23594
23595 * dbusbind.c (xd_read_message): Generate an event for every
23596 registered handler. There might be several handlers registered
23597 for the same signal.
23598 (Fdbus_register_signal): Don't overwrite a registration for the
23599 same signal. Add a new registration if handlers are different.
23600 (Vdbus_registered_functions_table): Rework doc string.
23601
236022007-12-07 Michael Albinus <michael.albinus@gmx.de>
23603
23604 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23605 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23606 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23607 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23608 Unify argument lists.
23609 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23610 arguments and hash table keys. Use unique name for service.
23611 (Fdbus_unregister_signal): Remove checks.
23612 (Vdbus_registered_functions_table): Fix doc string.
23613
236142007-12-05 Magnus Henoch <mange@freemail.hu>
23615
23616 * process.c (make_process): Initialize pty_flag to 0.
23617
236182007-12-05 Jason Rumney <jasonr@gnu.org>
23619
23620 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23621 specified XBMs.
23622
236232007-12-05 Richard Stallman <rms@gnu.org>
23624
23625 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23626
236272007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23628
23629 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23630 New variable.
23631 (mac_try_close_socket) [MAC_OSX]: New function.
23632 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23633 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23634
23635 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23636 Use mac_try_close_socket.
23637
236382007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23639
23640 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23641 reloc_base.
23642 (copy_dysymtab): Compute relocation base here.
23643 (rebase_reloc_address) [__ppc64__]: New function.
23644 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23645 changed.
23646
236472007-12-05 Jason Rumney <jasonr@gnu.org>
23648
23649 * w32proc.c (sys_spawnve): Quote args with wildcards.
23650
236512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23652
23653 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23654 __objc_* sections.
23655 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23656
236572007-12-05 Michael Albinus <michael.albinus@gmx.de>
23658
23659 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23660 Move check for Vdbus_registered_functions_table to
23661 xd_read_queued_messages.
23662 (xd_read_queued_messages): Protect xd_read_message calls by
23663 internal_condition_case_1.
23664
236652007-12-04 Michael Albinus <michael.albinus@gmx.de>
23666
23667 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23668 Qdbus_system_bus and Qdbus_session_bus, respectively.
23669 (Vdbus_intern_symbols): Remove.
23670 (Vdbus_registered_functions_table): New hash table.
23671 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23672 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23673 Rewrite in order to manage registered functions by hash table
23674 Vdbus_registered_functions_table.
23675
236762007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23677
23678 * xterm.c: Update URL to Window Manager Specification in comment.
23679
236802007-12-02 Michael Albinus <michael.albinus@gmx.de>
23681
23682 * config.in (HAVE_DBUS): Add.
23683
23684 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23685 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23686 (obj): Add $(DBUS_OBJ).
23687 (LIBES): Add $(DBUS_LIBS).
23688 (dbusbind.o): New target.
23689
23690 * dbusbind.c: New file.
23691
23692 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23693
23694 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23695 (Qdbus_event): New Lisp symbol.
23696 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23697 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23698 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23699
23700 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23701
237022007-12-01 Richard Stallman <rms@gnu.org>
23703
23704 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23705
237062007-11-30 Jason Rumney <jasonr@gnu.org>
23707
23708 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23709 (w32con_reset_terminal_modes): Clear screen buffer.
23710 (w32_face_attributes): Don't use color indexes that are out of range.
23711 Only reverse the default colors.
23712
23713 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23714 WINDOWSNT.
23715
23716 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23717
237182007-11-29 Jason Rumney <jasonr@gnu.org>
23719
23720 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23721 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23722 if the terminal colors are initialized.
23723 (unspecified_fg, unspecified_bg): Remove unused declarations.
23724
237252007-11-29 Andreas Schwab <schwab@suse.de>
23726
23727 * keyboard.c (apply_modifiers): Fix typo.
23728
237292007-11-29 Richard Stallman <rms@gnu.org>
23730
23731 * keymap.c (Fcurrent_local_map): Doc fix.
23732
237332007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23734
23735 * s/gnu-kfreebsd.h: New file.
23736
237372007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23738
23739 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23740 Don't cast redundantly.
23741
23742 * keyboard.c (KEY_TO_CHAR): New macro.
23743 (parse_modifiers, apply_modifiers): Accept integer arguments.
23744 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23745 for chars and symbol keys.
23746 After doing such remapping, apply function-key-map again.
23747
237482007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23749
23750 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23751 compiled anymore.
23752
237532007-11-26 Andreas Schwab <schwab@suse.de>
23754
23755 * process.c (list_processes_1): Fix indentation level of the
23756 command column.
23757
237582007-11-23 Andreas Schwab <schwab@suse.de>
23759
23760 * editfns.c (Fformat): Handle %c specially since it requires the
23761 argument to be of type int.
23762
237632007-11-23 Markus Triska <markus.triska@gmx.at>
23764
23765 * emacs.c (main): Call init_editfns before init_process, since
23766 init_process sets Vprocess_connection_type depending on OS release.
23767
237682007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23769
23770 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23771 (find_symbol_value): Use do_symval_forwarding.
23772
23773 * data.c (set_internal): Set the value in the `cons-cell' (for
23774 Buffer_Local_values) not only for frame-local variables.
23775
237762007-11-22 Andreas Schwab <schwab@suse.de>
23777
23778 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23779 values to sprintf.
23780 * keymap.c (Fsingle_key_description): Likewise.
23781 * print.c (print_object): Likewise.
23782
237832007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23784
23785 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23786 file for image is nil.
23787
237882007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23789
23790 * term.c: Include stdarg.h.
23791 (fatal): Implement using varargs.
23792 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23793
237942007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23795
23796 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23797 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23798 Update call to buffer_slot_type_mismatch.
23799 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23800 (buffer_slot_type_mismatch): Update.
23801 * buffer.c (buffer_local_types): Remove.
23802 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23803 (defvar_per_buffer): Set the type in the buffer_objfwd.
23804
238052007-11-21 Jason Rumney <jasonr@gnu.org>
23806
23807 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23808 CreateFileMapping returns NULL on failure.
23809
238102007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23811
23812 * search.c (Fset_match_data): Remove the `evaporate' feature.
23813 (unwind_set_match_data): Don't use the `evaporate' feature.
23814
238152007-11-21 Jason Rumney <jasonr@gnu.org>
23816
23817 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23818
23819 * w32console.c (w32con_write_glyphs): Remove unused variables.
23820
238212007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23822
23823 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23824
23825 * s/darwin.h (MULTI_KBOARD): Remove.
23826
23827 * macfns.c (x_create_tip_frame, Fx_create_frame)
23828 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23829
238302007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23831
23832 * buffer.c (Fbuffer_local_value): Remove redundant test.
23833 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23834 than in `current-buffer' to match the comment.
23835 Do the swap using swap_in_global_binding.
23836
23837 * data.c (store_symval_forwarding, set_internal):
23838 * eval.c (specbind): Remove dead code.
23839
23840 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23841 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23842 Since we do not want to see internal Lisp_*fwd objects here.
23843
238442007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23845
23846 * sysdep.c (init_system_name): Use getaddrinfo if available.
23847
23848 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23849 (x_scroll_bar_note_movement): start, end, with, height in struct
23850 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23851
238522007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23853
23854 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23855
238562007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23857
23858 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23859 This undoes Richard's change of 14-Oct-2002.
23860
23861 * alloc.c (allocate_other_vector):
23862 * lisp.h (allocate_other_vector): Remove.
23863
23864 * window.c (struct save_window_data): Move non-lisp data to the end
23865 and make it `int' rather than Lisp_Object.
23866 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23867 Done wrap/unwrap integer values.
23868 (Fset_window_configuration, compare_window_configurations):
23869 Update use of fields to their new types.
23870
23871 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23872 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23873 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23874 (SET_SCROLL_BAR_X_WINDOW): Remove.
23875 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23876 Access the new x_window field directly.
23877 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23878 Don't wrap/unwrap integers into Lisp_Objects.
23879 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23880 (x_scroll_bar_report_motion):
23881 Don't wrap/unwrap integers into Lisp_Objects.
23882 (x_term_init): Use SDATA.
23883 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23884 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23885 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23886 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23887 * xfns.c (x_set_background_color):
23888 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23889 Access the new x_window field directly.
23890
23891 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23892 (allocate_pseudovector): Make non-static.
23893
23894 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23895 (allocate_pseudovector): Declare.
23896 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23897
238982007-11-15 Andreas Schwab <schwab@suse.de>
23899
23900 * editfns.c (Fformat): Correctly format EMACS_INT values.
23901 Also take precision into account when formatting an integer.
23902
23903 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23904
239052007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23906
23907 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23908 (syms_of_keyboard): Defsubr it.
23909
23910 * data.c (swap_in_global_binding): Fix longstanding bug where
23911 store_symval_forwarding was not called with the right second argument,
23912 thus causing objfwd-ing from being dropped.
23913
239142007-11-14 Juanma Barranquero <lekktu@gmail.com>
23915
23916 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23917 (Fx_display_pixel_height, Fx_display_planes)
23918 (Fx_display_color_cells, Fx_server_max_request_size)
23919 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23920 (Fx_display_visual_class, Fx_display_save_under):
23921 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23922 (Fx_display_pixel_height, Fx_display_planes)
23923 (Fx_display_color_cells, Fx_server_max_request_size)
23924 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23925 (Fx_display_mm_height, Fx_display_mm_width)
23926 (Fx_display_backing_store, Fx_display_visual_class)
23927 (Fw32_select_font, Fx_display_save_under):
23928 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23929 (Fx_display_pixel_height, Fx_display_planes)
23930 (Fx_display_color_cells, Fx_server_max_request_size)
23931 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23932 (Fx_display_save_under): Fix typos in docstrings.
23933
239342007-11-14 Juanma Barranquero <lekktu@gmail.com>
23935
23936 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23937 corresponding to deleted entries; they are an implementation detail.
23938 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23939 Remove variables.
23940 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23941 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23942 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23943 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23944 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23945 (Fw32_define_rgb_color, Fw32_load_color_file)
23946 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23947 Fix typos in docstrings.
23948 (Fx_server_version): Reflow docstring.
23949 (Fw32_shell_execute): Doc fixes.
23950
239512007-11-13 Juanma Barranquero <lekktu@gmail.com>
23952
23953 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23954 if w32_parse_hot_key returned nil.
23955
239562007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23957
23958 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23959
239602007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23961
aac0c6e3
MR
23962 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23963
23964 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23965
23966 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23967 Remove W32_SCROLL_BAR_CLICK_EVENT.
23968
23969 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23970 Add MULTIMEDIA_KEY_EVENT.
23971
23972 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23973 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23974 (make_lispy_event) [WINDOWSNT]: Use it to translate
23975 MULTIMEDIA_KEY_EVENT.
23976
23977 * w32term.h (WM_APPCOMMAND): Define if not already.
23978 (GET_APPCOMMAND_LPARAM): Likewise.
23979
23980 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23981 WM_APPCOMMAND.
23982
23983 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23984 (syms_of_w32fns): Export and initialize it.
23985 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23986
239872007-11-09 Chong Yidong <cyd@stupidchicken.com>
23988
23989 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23990 twice.
23991
23992 * xdisp.c (handle_face_prop): Fix last change.
23993
239942007-11-09 Richard Stallman <rms@gnu.org>
23995
23996 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23997 not just for after-strings and before-strings.
23998 Call face_for_overlay_string and pass the overlay to it.
23999 (handle_display_prop): Determine whether property came from an overlay.
24000 Pass OVERLAY arg to handle_single_display_spec.
24001 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24002 (load_overlay_strings): Fill in it->string_overlays.
24003 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24004
24005 * xfaces.c (face_for_overlay_string): Function renamed from
24006 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24007
24008 * dispextern.h (struct it): New elt string_overlays.
24009 New elt from_overlay, also in stack.
24010 Rearrange a few elements.
24011 (face_for_overlay_string): Decl renamed from
24012 face_at_buffer_position_no_overlays, and add argument.
24013
240142007-11-09 Richard Stallman <rms@gnu.org>
24015
24016 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24017 to get the base face for an overlay string.
24018
24019 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24020
24021 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24022
24023 * xdisp.c (handle_stop): Move some code out of loop.
24024
240252007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24026
24027 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24028 Fix conversion from Lisp object to ATSUFontID.
24029
240302007-11-09 Jason Rumney <jasonr@gnu.org>
24031
24032 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24033
240342007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24035
24036 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24037 Don't assume regions are aligned to page boundary.
24038 (print_load_command_name): Add LC_UUID if defined.
24039
240402007-11-09 Richard Stallman <rms@gnu.org>
24041
24042 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24043
240442007-11-07 Jason Rumney <jasonr@gnu.org>
24045
24046 * s/windows95.h: Remove.
24047
240482007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24049
24050 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24051 abort with a message on unhandled store_type values.
24052
240532007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24054
24055 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24056 Remove HAVE_X11R5 and HAVE_X11R4.
24057
240582007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24059
24060 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24061
240622007-11-01 Johan Bockgård <bojohan@gnu.org>
24063
24064 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24065 Don't set s->stippled_p here, since it has already been set by
24066 x_set_glyph_string_gc from x_draw_glyph_string.
24067
240682007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24069
24070 * sunfns.c: Remove file.
24071
24072 * m/sun386.h:
24073 * m/sun2.h:
24074 * m/sparc.h: Remove Sun windows code.
24075
240762007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24077
24078 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24079 (init_keyboard): Set current_kboard's window-system to nil.
24080 (tty_read_avail_input): Typo.
24081 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24082
240832007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24084
24085 * s/usg5-4.h:
24086 * s/usg5-3.h:
24087 * s/ptx.h:
24088 * m/is386.h:
24089 * m/ibmps2-aix.h:
24090 * Makefile.in: Remove all mentions of X10.
24091
24092 * dispnew.c (syms_of_display): Don't mention version 10.
24093
240942007-10-28 Juanma Barranquero <lekktu@gmail.com>
24095
24096 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24097 ($(BLD)/abbrev.$(O)): Remove.
24098
240992007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24100
24101 Rewrite abbrev.c in Elisp.
24102 * image.c (Qcount): Don't declare as extern.
24103 (syms_of_image): Initialize and staticpro `Qcount'.
24104 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24105 * emacs.c (main): Don't call syms_of_abbrev.
24106 * Makefile.in (obj): Remove abbrev.o.
24107 (abbrev.o): Remove.
24108 * abbrev.c: Remove.
24109
241102007-10-26 Martin Rudalics <rudalics@gmx.at>
24111
24112 * window.c (window_min_size_2): Don't count header-line.
24113
241142007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24115
24116 * frame.h (struct frame): Move all bit fields after the first bit
24117 field to take advantage of the available space. Group all the
24118 chars together to reduce wasted space due to padding.
24119
241202007-10-26 Juanma Barranquero <lekktu@gmail.com>
24121
24122 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24123
24124 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24125 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24126 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24127 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24128 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24129 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24130 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24131 (last_marked, mark_object_loop_halt): Make static.
24132
24133 * frame.c (syms_of_frame) <delete-frame-functions>:
24134 Fix typo in docstring.
24135
241362007-10-25 Juanma Barranquero <lekktu@gmail.com>
24137
24138 * w32.c (init_environment): Fix tiny memory leak.
24139 (w32_get_resource): Remove unused variable `ok'.
24140
241412007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24142
24143 Make `window-system' into a keyboard-local variable (rather than
24144 frame-local as done originally by multi-tty).
24145
24146 * keyboard.h (struct kboard): Add Vwindow_system.
24147 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24148 (mark_kboards): Mark Vwindow_system.
24149
24150 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24151 (init_display): Don't set the obsolete `window-system' frame-param.
24152
24153 * xterm.c (x_term_init):
24154 * w32term.c (w32_create_terminal):
24155 * term.c (init_tty): Set Vwindow_system.
24156 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24157 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24158
24159 * xfns.c (Fx_create_frame, x_create_tip_frame):
24160 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24161 * macfns.c (Fx_create_frame):
24162 Don't set the obsolete `window-system' frame-param.
24163
24164 * frame.h (Qwindow_system): Remove.
24165 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24166 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24167
241682007-10-24 Richard Stallman <rms@gnu.org>
24169
24170 * frame.c (x_figure_window_size): For fullscreen case,
24171 set USPosition | PPosition without clobbering rest of window_prompting.
24172
24173 * keyboard.c (Fcurrent_idle_time): Doc fix.
24174
24175 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24176
241772007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24178
24179 * process.c (unwind_request_sigio): Only define if __ultrix__.
24180
24181 * callproc.c (child_setup): Remove spurious *.
24182
24183 * lisp.h (Fget_text_property): Declare.
24184 (have_menus_p): Declare it here rather than in sys-dep header files.
24185 * macterm.h (have_menus_p):
24186 * msdos.h (have_menus_p):
24187 * xterm.h (have_menus_p): Remove.
24188
24189 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24190 (Fmake_variable_frame_local): Just check the variable's const-ness
24191 rather than checking nil or t.
24192
241932007-10-22 Jason Rumney <jasonr@gnu.org>
24194
24195 * w32fns.c: Include math.h.
24196 (w32_abort): Declaration moved to nt/config.nt.
24197
24198 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24199 (abort): Redefinition moved to nt/config.nt.
24200
24201 * m/windowsnt.h: Remove.
24202
242032007-10-22 Juanma Barranquero <lekktu@gmail.com>
24204
24205 * emacs.c (Fdump_emacs): Fix typo in message.
24206 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24207 <installation-directory>: Reflow docstring.
24208
242092007-10-22 Juri Linkov <juri@jurta.org>
24210
24211 * minibuf.c: Allow minibuffer default to be a list of default values.
24212 With empty input use the first element of this list as returned default.
24213 (string_to_object)
24214 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24215 (read_minibuf): If defalt is cons, set histstring to its car.
24216 (Fread_string): If default_value is cons, set val to its car.
24217 (Fread_buffer): If def is cons, use its car.
24218 (Fcompleting_read): If defalt is cons, set val to its car.
24219
242202007-10-21 Michael Albinus <michael.albinus@gmx.de>
24221
24222 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24223
242242007-10-20 Juanma Barranquero <lekktu@gmail.com>
24225
24226 * doc.c (Fdocumentation): Check for advice in all cases.
24227
242282007-10-19 Chong Yidong <cyd@stupidchicken.com>
24229
24230 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24231
242322007-10-19 Richard Stallman <rms@gnu.org>
24233
24234 * doc.c (Fdocumentation): Check for and handle an advised function.
24235
242362007-10-19 Juanma Barranquero <lekktu@gmail.com>
24237
24238 * process.c (Fset_process_filter): Doc fix.
24239
242402007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24241
24242 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24243 which caused key-translation-map to applied repeatedly (thus breaking
24244 double-mode).
24245
242462007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24247
24248 * xselect.c (x_own_selection, x_handle_selection_clear)
24249 (x_clear_frame_selections):
24250 * w32menu.c (list_of_panes, list_of_items):
24251 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24252 * textprop.c (validate_plist, interval_has_all_properties)
24253 (interval_has_some_properties, interval_has_some_properties_list)
24254 (add_properties, text_property_list):
24255 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24256 * minibuf.c (Fassoc_string):
24257 * macselect.c (x_own_selection, x_clear_frame_selections)
24258 (Fx_disown_selection_internal):
24259 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24260 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24261
242622007-10-17 Chong Yidong <cyd@stupidchicken.com>
24263
24264 * process.c: Link to libs for calling res_init() if available.
24265 (Fmake_network_process): Call res_init() before getaddrinfo or
24266 gethostbyname, if possible.
24267
242682007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24269
24270 * lread.c (read1): Set pvectype for char_tables.
24271
24272 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24273 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24274 Add type checks.
24275 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24276
24277 * alloc.c (free_misc): Use XMISCTYPE.
24278 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24279
242802007-10-17 Glenn Morris <rgm@gnu.org>
24281
24282 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24283 (syms_of_minibuf): Add Qcompletion_ignore_case.
24284 * dired.c (Qcompletion_ignore_case): Change to external.
24285 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24286 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24287 (Fread_file_name): Use it rather than intern'ing.
24288
24289 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24290 (Fread_coding_system): Ignore case of user input.
24291
242922007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24293
24294 * xdisp.c (handle_display_prop): Ignore display specs after
24295 replacing one when string text is being replaced.
24296 (handle_single_display_spec): Pretend as if characters with display
24297 property haven't been consumed only when buffer text is being replaced.
24298
242992007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24300
24301 * xfns.c (Fx_create_frame, Fx_display_list):
24302 * window.c (window_fixed_size_p, enlarge_window)
24303 (shrink_window_lowest_first):
24304 * macterm.c (init_font_name_table):
24305 * macfns.c (Fx_create_frame, Fx_display_list):
24306 * lread.c (close_load_descs):
24307 * keyboard.c (read_char_x_menu_prompt):
24308 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24309 * coding.c (code_convert_region_unwind): Test the type of an object
24310 rather than just !NILP before extracting data from it.
24311
24312 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24313
24314 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24315 (XMISCANY): New macro.
24316 (XMISCTYPE): Use it.
24317 (struct Lisp_Misc_Any): New type.
24318 (union Lisp_Misc): Use it.
24319 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24320 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24321 (find_symbol_value, set_internal, default_value, Fset_default)
24322 (Fmake_variable_buffer_local, Fmake_local_variable)
24323 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24324 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24325 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24326 * alloc.c (allocate_buffer): Set the size and tag.
24327 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24328 Use XMISCANY.
24329 (die): Follow the GNU convention for error messages.
24330 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24331 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24332 tag any more.
24333 (set_buffer_internal_1):
24334 * frame.c (store_frame_param):
24335 * eval.c (specbind):
24336 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24337
24338 * doc.c (Fsnarf_documentation): Simplify.
24339
243402007-10-14 Juanma Barranquero <lekktu@gmail.com>
24341
24342 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24343 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24344
243452007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24346
24347 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24348
243492007-10-14 Juanma Barranquero <lekktu@gmail.com>
24350
24351 * eval.c (do_autoload): Don't save autoloads.
24352
24353 * data.c (Ffset): Save autoload of the function being set.
24354
243552007-10-07 John Paul Wallington <jpw@pobox.com>
24356
24357 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24358 parameter before setting up faces.
24359
243602007-10-13 Eli Zaretskii <eliz@gnu.org>
24361
24362 * ccl.c (Fregister_code_conversion_map):
24363 * keyboard.c (append_tool_bar_item): Reformat last change.
24364
24365 * lisp.h (eabs): Rename from `abs'. All callers changed.
24366
243672007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24368
24369 * buffer.c (add_overlay_mod_hooklist):
24370 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24371 * fontset.c (make_fontset):
24372 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24373 (append_tool_bar_item):
24374 * macmenu.c (grow_menu_items):
24375 * w32menu.c (grow_menu_items):
24376 * xmenu.c (grow_menu_items): Use larger_vector.
24377
243782007-10-13 Eli Zaretskii <eliz@gnu.org>
24379
24380 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24381 selected frame'' on MSDOS).
24382
243832007-10-12 Martin Rudalics <rudalics@gmx.at>
24384
24385 * frame.c (Qexplicit_name): New variable.
24386 (x_report_frame_params): Report it in parameter alist.
24387 (syms_of_frame): Intern and staticpro it.
24388
243892007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24390
24391 * macfns.c (x_create_tip_frame): Set terminal for frame.
24392
243932007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24394
24395 * frame.c (Qenvironment): Remove.
24396 (syms_of_frame) <Qenvironment>: Don't initialize.
24397 (Fdelete_frame): Don't treat the `environment' param specially.
24398 * frame.h (Qenvironment): Don't declare.
24399 * callproc.c (set_initial_environment): Don't set unused frame param.
24400
24401 * frame.c (Fframe_with_environment): Remove.
24402 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24403
24404 * lisp.h (Fframe_with_environment): Don't declare.
24405
244062007-10-10 Juanma Barranquero <lekktu@gmail.com>
24407
24408 * indent.c (indent_tabs_mode, last_known_column)
24409 (last_known_column_modified): Make static.
24410 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24411
244122007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24413
24414 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24415
244162007-10-09 Jason Rumney <jasonr@gnu.org>
24417
24418 * w32term.c (x_set_window_size): Disable code that attempts to tell
24419 Lisp code about a size change before it actually happens.
24420
244212007-10-09 Richard Stallman <rms@gnu.org>
24422
24423 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24424 return HANDLED_RETURN.
24425
244262007-10-08 Martin Rudalics <rudalics@gmx.at>
24427
24428 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24429 when there's an unread command event.
24430
24431 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24432 window autoselection act appropriately when leaving selected frame.
24433 (syms_of_frame): Initialize focus_follows_mouse.
24434 * frame.h (focus_follows_mouse): Extern it.
24435 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24436 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24437 * msdos.c (dos_rawgetc): Likewise.
24438 * w32term.c (w32_read_socket): Likewise.
24439 * xterm.c (handle_one_xevent): Likewise.
24440 * xdisp.c (syms_of_xdisp): In doc-string of
24441 mouse-autoselect-window mention focus-follows-mouse.
24442
244432007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24444
24445 * macterm.c (mac_load_query_font): Fix missing return value.
24446 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24447 Add BLOCK_INPUT.
24448
244492007-10-08 Richard Stallman <rms@gnu.org>
24450
24451 * xdisp.c (get_window_cursor_type): Implement documented behavior
24452 for cursor-in-non-selected-windows = t.
24453
244542007-10-08 Jason Rumney <jasonr@gnu.org>
24455
24456 * w32.c (w32_get_resource): Always close registry keys.
24457
244582007-10-08 Jason Rumney <jasonr@gnu.org>
24459
24460 * makefile.w32-in (LIBS): Add COMCTL32.
24461
24462 * w32fns.c (globals_of_w32fns): Init common controls.
24463
244642007-10-08 Richard Stallman <rms@gnu.org>
24465
24466 * image.c (our_memory_buffer): Rename from omfib_buffer.
24467
244682007-10-08 Richard Stallman <rms@gnu.org>
24469
24470 * buffer.c (Foverlays_at): Doc fix.
24471
244722007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24473
24474 * fns.c (Fplist_put): Preserve uneven tail data.
24475
244762007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24477
24478 * termhooks.h (enum event_kind): Remove trailing comma.
24479
24480 * frame.h (enum): Remove trailing comma.
24481
244822007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24483
24484 * w32proc.c (delete_child): Don't terminate threads of zombies.
24485
244862007-10-08 Martin Rudalics <rudalics@gmx.at>
24487
24488 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24489
24490 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24491 last-repeatable-command.
24492 (init_kboard): Initialize Vlast_repeatable_command.
24493 (command_loop_1): Set it to real_this_command unless that was
24494 bound to an input event.
24495 (mark_kboards): Mark it.
24496
244972007-10-08 Richard Stallman <rms@gnu.org>
24498
24499 * eval.c (condition-case): Doc fix.
24500
245012007-10-08 Masatake YAMATO <jet@gyve.org>
24502
24503 * xfaces.c (tty_supports_face_attributes_p): Fix code
24504 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24505 was copied and not edited.
24506
245072007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24508
24509 Add new `input-decode-map' keymap and use it for terminal
24510 escape sequences.
24511 * keyboard.h (struct kboard): Add Vinput_decode_map.
24512 Remove Vlocal_key_translation_map.
24513 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24514 (init_kboard): Init input-decode-map.
24515 Replace local-key-translation-map back with key-translation-map.
24516 (syms_of_keyboard): Declare input-decode-map.
24517 Remove local-key-translation-map. Update docstrings.
24518 (mark_kboards): Mark Vinput_decode_map.
24519 Don't mark Vlocal_key_translation_map.
24520 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24521 Replace local-key-translation-map back with key-translation-map.
24522 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24523 Bind in input-decode-map rather than function-key-map.
24524
24525 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24526 This was made redundant by the previous introduction of XSETPVECTYPE.
24527
245282007-10-09 Richard Stallman <rms@gnu.org>
24529
24530 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24531
245322007-09-29 Richard Stallman <rms@gnu.org>
24533
24534 * eval.c (internal_condition_case_2, internal_condition_case_1)
24535 (internal_condition_case): Reenable abort if x_catching_errors ()
24536 to see if that really happens and why.
24537
245382007-10-06 Andreas Schwab <schwab@suse.de>
24539
24540 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24541
245422007-10-04 Juanma Barranquero <lekktu@gmail.com>
24543
24544 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24545
245462007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24547
24548 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24549
245502007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24551
24552 * window.h (struct window):
24553 * window.c (struct save_window_data, struct saved_window):
24554 * termhooks.h (struct terminal):
24555 * process.h (struct Lisp_Process):
24556 * frame.h (struct frame):
24557 * buffer.h (struct buffer):
24558 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24559 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24560 The size field of (pseudo)vectors is now unsigned.
24561 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24562
24563 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24564 Turn `count' into an integer.
24565
24566 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24567 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24568 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24569 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24570 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24571
24572 * alloc.c (allocate_pseudovector): New fun.
24573 (ALLOCATE_PSEUDOVECTOR): New macro.
24574 (allocate_window, allocate_terminal, allocate_frame)
24575 (allocate_process): Use it.
24576 (mark_vectorlike): New function.
24577 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24578 (mark_terminals): Use it.
24579 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24580 (Fmake_byte_code): Use XSETPVECTYPE.
24581
24582 * frame.c (Fframe_parameters): Minor simplification.
24583
24584 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24585
24586 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24587
24588 * buffer.c (Fget_buffer_create, init_buffer_once):
24589 * lread.c (defsubr):
24590 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24591
24592 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24593 defined differently in the m/*.h files.
24594 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24595 (XSETPVECTYPE): New macro.
24596 (XSETPSEUDOVECTOR): Use it.
24597
24598 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24599 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24600
24601 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24602 * lread.c (defvar_per_buffer):
24603 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24604
24605 * window.c (candidate_window_p): Only consider as visible frames that
24606 are on the same terminal.
24607
24608 * m/ibms390x.h (MARKBIT): Remove unused macro.
24609
246102007-10-01 Juanma Barranquero <lekktu@gmail.com>
24611
24612 * lread.c (Fload): Fix typo in docstring.
24613
246142007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24615
24616 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24617 of a non-zero value can't yield zero.
24618
246192007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24620
24621 * term.c (term_clear_mouse_face, term_mouse_highlight)
24622 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24623
24624 * print.c (safe_debug_print): Use XHASH.
24625
24626 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24627 Lisp elements such as tags.
24628 (XHASH): New macro.
24629 (EQ): Use it.
24630 (SREF, SSET, STRING_COPYIN): Use SDATA.
24631 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24632
24633 * alloc.c (mark_terminal): Remove left-over declaration.
24634 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24635 (allocate_vectorlike): Remove type argument. Adjust callers.
24636 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24637 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24638
24639 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24640 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24641 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24642 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24643 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24644 Use them.
24645
24646 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24647 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24648 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24649
246502007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24651
24652 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24653 loaded by default.
24654
246552007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24656
24657 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24658 on this tty.
24659 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24660
24661 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24662 Update all users.
24663 (handle_one_term_event): Use Gpm_DrawPointer.
24664 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24665 Signal errors instead of returning nil. Always return nil.
24666 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24667 Make it a noop if gpm-mouse was not activated.
24668 (syms_of_term): Update names.
24669
246702007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24671
24672 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24673 (init_sys_modes): Check that gpm_tty is the current tty.
24674
24675 * alloc.c (allocate_terminal): Set the vector size to only count the
24676 lisp fields. Initialize those to nil.
24677 (mark_object): Don't treat terminals specially.
24678 (mark_terminal): Remove.
24679 (mark_terminals): Use mark_object instead.
24680
24681 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24682 the GC to the beginning.
24683
24684 * indent.h:
24685 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24686
24687 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24688
246892007-09-25 Jason Rumney <jasonr@gnu.org>
24690
24691 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24692
24693 * w32console.c (create_w32cons_output): Remove.
24694
24695 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24696
24697 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24698 (reset_sys_modes): Use reset_terminal_modes_hook.
24699
247002007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24701
24702 * eval.c (do_autoload): Don't output any message.
24703
247042007-09-24 Juri Linkov <juri@jurta.org>
24705
24706 * emacs.c (standard_args): Change priority of "--no-splash"
24707 from 40 to 3. Add "--no-desktop" with the same priority.
24708
247092007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24710
24711 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24712 and optimize the case where they are all 1.
24713
247142007-09-23 Johannes Weiner <hannes@saeurebad.de>
24715
24716 * lisp.h (abs): Define if not defined.
24717 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24718 Don't define `abs', since it's defined in lisp.h.
24719
247202007-09-22 Eli Zaretskii <eliz@gnu.org>
24721
24722 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24723 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24724 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24725 (init_tty): Use DEV_TTY instead of "/dev/tty".
24726 [WINDOWSNT]: No need to protect from NAME arg being null.
24727
247282007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24729
24730 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24731 up the tty state.
24732
247332007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24734
24735 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24736 (gpm_tty): Change its type.
24737 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24738 (gpm_tty): Change its type and initialize it.
24739 (Fterm_open_connection): Check the frame is indeed a tty.
24740 Use the new gpm_tty.
24741 (Fterm_close_connection): Use the new gpm_tty.
24742 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24743 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24744
247452007-09-21 Juanma Barranquero <lekktu@gmail.com>
24746
24747 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24748 underline_color, to draw strike-through.
24749
247502007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24751
24752 * lisp.h (allocate_terminal): Declare.
24753
24754 * window.c (candidate_window_p): Consider frames that are being placed
24755 by the user as somewhere between visible and iconified.
24756 (window_loop): Prefer windows on the current frame.
24757 (Fselect_window): Move the use of select-frame to the beginning so we
24758 can just delegate all the work (it'll call us back anyway).
24759
24760 * frame.c (Qdisplay_environment_variable):
24761 * frame.h (Qdisplay_environment_variable): Delete.
24762
24763 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24764 of the first arg, since that value may be a union.
24765
24766 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24767 parameter rather than Qdisplay_environment_variable. If all else
24768 fails, look for DISPLAY in initial-environment.
24769
247702007-09-21 Glenn Morris <rgm@gnu.org>
24771
24772 * Makefile.in (emacstool): Remove target.
24773 (lisp, shortlisp): Remove termdev.elc.
24774
247752007-09-21 Markus Triska <markus.triska@gmx.at>
24776
24777 * xterm.c (x_delete_display): Compile session management conditionally.
24778
247792007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24780
24781 * callproc.c (getenv_internal_1): New function.
24782 (getenv_internal): Use it.
24783 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24784
24785 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24786 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24787 (Fset_terminal_parameter): Work with dead terminals as well.
24788 (Fmodify_terminal_parameters): Remove.
24789
24790 * terminal.c (get_terminal): Handle terminals.
24791 Make sure the terminal returned is live.
24792 (create_terminal): Use allocate_terminal.
24793 (mark_terminals): Move to alloc.c.
24794 (delete_terminal): Use terminal->name as liveness status.
24795 NULL out fields after freeing their contents.
24796 Don't deallocate the object.
24797 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24798 rather than an int.
24799 (Fterminal_live_p): Accept non-integer arguments.
24800 (Fterminal_list): Return terminal objects rather than an ints.
24801
24802 * alloc.c (enum mem_type): New member for `terminal' objects.
24803 (allocate_terminal): New function.
24804 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24805 Handle terminals.
24806 (mark_terminal): New fun.
24807 (mark_terminals): Move from terminal.c.
24808
24809 * term.c (get_tty_terminal): Don't treat output_initial specially.
24810 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24811 (delete_tty): Use terminal->name as liveness status.
24812
24813 * termhooks.h (struct terminal): Make it into a pseudovector.
24814 Remove `deleted' replaced by checking `name's nullness.
24815
24816 * print.c (print_object): Handle terminals.
24817
24818 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24819 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24820
24821 * frame.c (make_terminal_frame):
24822 * keyboard.c (tty_read_avail_input):
24823 * w32term.c (x_delete_terminal):
24824 * xfns.c (Fx_create_frame, x_create_tip_frame):
24825 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24826
248272007-09-20 Glenn Morris <rgm@gnu.org>
24828
24829 * process.c (Fmake_network_process): Doc fix.
24830
248312007-09-19 Jason Rumney <jasonr@gnu.org>
24832
24833 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24834
248352007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24836
24837 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24838 Fix a C warning regarding variable constness.
24839
24840 * xterm.c (handle_one_xevent): Fix a C warning.
24841
248422007-09-18 Jason Rumney <jasonr@gnu.org>
24843
24844 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24845
248462007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24847
24848 * gtkutil.c (gdpy_def): New variable.
24849 (xg_initialize): Initialize gdpy_def.
24850 (xg_display_close): If no other display exists, set gdpy_def to a
24851 new connection.
24852
248532007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24854
24855 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24856 when we have no file name for the icon.
24857 (xg_tool_bar_expose_callback): Remove.
24858 (xg_create_tool_bar): Don't connect expose signal to
24859 xg_tool_bar_expose_callback.
24860 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24861
248622007-09-16 Andreas Schwab <schwab@suse.de>
24863
24864 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24865 values instead of zapping them.
24866
248672007-09-14 Glenn Morris <rgm@gnu.org>
24868
24869 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24870 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24871 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24872 scope and rename to omfib_buffer for clarity.
24873 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24874
248752007-09-14 Kenichi Handa <handa@m17n.org>
24876
24877 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24878
248792007-09-13 Jason Rumney <jasonr@gnu.org>
24880
24881 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24882
24883 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24884
24885 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24886 (mac_term_init): Call here instead, passing rif.
24887
248882007-09-13 Glenn Morris <rgm@gnu.org>
24889
24890 * s/hpux.h: No longer define `static' as nothing.
24891
248922007-09-13 Johan Bockgård <bojohan@gnu.org>
24893
24894 * callint.c (Fcall_interactively): Remove unused var `fun'.
24895
248962007-09-12 Romain Francoise <romain@orebokech.com>
24897
24898 * window.c (prefer_window_split_horizontally, display_buffer):
24899 Revert 2007-09-08 change.
24900
249012007-09-12 Glenn Morris <rgm@gnu.org>
24902
24903 * alloca.c: Remove file.
24904 * Makefile.in (alloca): Do not undef.
24905 (allocaobj, alloca.o): Remove.
24906 (otherobj): Remove allocaobj.
24907 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24908 * regex.c (C_ALLOCA): Remove all references and code that was only
24909 used when this was defined.
24910 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24911 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24912 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24913
24914 * Makefile.in (SOURCES, unlock, relock): Delete.
24915
24916 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24917 (menu_grab_callback): All uses changed.
24918
24919 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24920 (x_reply_selection_request): All uses changed.
24921
249222007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24923
24924 * lread.c (load_warn_old_style_backquotes): Change message to look
24925 better when it appears in the middle of byte-compiler messages.
24926
249272007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24928
24929 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24930
24931 * xterm.c (x_create_terminal): Add comment.
24932
24933 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24934
249352007-09-10 Richard Stallman <rms@gnu.org>
24936
24937 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24938
249392007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24940
24941 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24942 (DEFUN): Document `intspec', use it instead of `prompt'.
24943
24944 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24945
24946 * data.c (Finteractive_form): If the interactive specification starts
24947 with a `(', use it as a Lisp form.
24948
24949 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24950 name and file modes.
24951
24952 * callint.c (Fcall_interactively): Comment fixes.
24953
249542007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24955
24956 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24957 and compiled functions.
24958
249592007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24960
24961 * window.c (prefer_window_split_horizontally): New variable.
24962 (display_buffer): Consider splitting window horizontally depending
24963 on prefer_window_split_horizontally.
24964
249652007-09-08 Eli Zaretskii <eliz@gnu.org>
24966
24967 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24968
249692007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24970
24971 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24972
24973 * frame.c (x_set_frame_parameters): Check number is positive before
24974 using XFASTINT.
24975
24976 * window.c (freeze_window_start): Don't presume selected_window holds
24977 a window object.
24978 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24979
249802007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24981
24982 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24983
249842007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24985
24986 * window.c (Vsplit_window_preferred_function): New var.
24987 (Fdisplay_buffer): Use it.
24988 (syms_of_window): Export, and initialize it.
24989
249902007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24991
24992 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24993
249942007-09-06 Glenn Morris <rgm@gnu.org>
24995
24996 * gtkutil.c (menu_grab_callback) <cnt>:
24997 * xselect.c (x_reply_selection_request) <cnt>: Move static
24998 variable to file scope.
24999
250002007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25001
25002 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25003 consistent values of selected_frame and selected_window.
25004
250052007-09-04 Jason Rumney <jasonr@gnu.org>
25006
25007 * w32console.c (initialize_w32_display): Zero unused hooks.
25008
250092007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25010
25011 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25012 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25013
250142007-09-04 Jason Rumney <jasonr@gnu.org>
25015
25016 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25017 in w32console.c. Set up input. Remove XXX comments that have been
25018 confirmed as correct.
25019
25020 * s/ms-w32.h (MULTI_KBOARD): Define.
25021
25022 * w32console.c (one_and_only_w32cons): Remove.
25023 (initialize_w32_display): Take terminal argument.
25024
25025 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25026 initialize_w32_display.
25027 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25028
25029 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25030
25031 * keyboard.c (discard_mouse_events): Discard it.
25032 (make_lispy_event): Translate it to a lisp event.
25033 (lispy_wheel_names): Add wheel-left and right events.
25034 (syms_of_keyboard): Enlarge wheel_syms.
25035
25036 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25037 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25038
25039 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25040
25041 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25042 from WM_MOUSEHWHEEL.
25043 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25044
25045 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25046 terminal.
25047
25048 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25049 keyboard for the terminal.
25050
250512007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25052
25053 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25054 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25055 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25056 and resume-tty-function to resume-tty-hook.
25057 (Fsuspend_tty, Fresume_tty): Use new names.
25058
250592007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25060
25061 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25062 if it starts with "n:".
25063
250642007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25065
25066 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25067
250682007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25069
25070 * frame.h:
25071 * frame.c (Qterm_environment_variable): Remove.
25072 (syms_of_frame): Don't init and staticpro it.
25073
25074 * callproc.c (getenv_internal): Remove special case for $TERM.
25075
25076 * callproc.c (Vinitial_environment): New variable.
25077 (set_initial_environment): Initialize it.
25078 (syms_of_callproc): Declare it.
25079 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25080 TERM under which a process runs is never related to the TERM in which
25081 Emacs is running.
25082
250832007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25084
25085 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25086 * s/darwin.h: ... do it here.
25087
250882007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25089
25090 * lisp.h (set_initial_environment): Rename from set_global_environment.
25091
25092 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25093 removed by mistake on the multi-tty branch.
25094
25095 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25096 (Fmodify_frame_parameters): Return a value.
25097
25098 * image.c (png_load): Comment-out var only used in commented-out code.
25099
25100 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25101 before passing it to mark_object.
25102
25103 * xfaces.c (internal_resolve_face_name): Return a value.
25104 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25105
25106 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25107 (x_icon): Comment-out var only used in commented-out code.
25108
251092007-08-29 Romain Francoise <romain@orebokech.com>
25110
25111 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25112 QUIT hasn't been provided.
25113
251142007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25115
25116 * callproc.c (child_setup, getenv_internal): Use the
25117 display-environment-variable and term-environment-variable frame params.
25118 (set_initial_environment): Initialise Vprocess_environment.
25119
25120 * config.in: Disable multi-keyboard support on a mac.
25121
25122 * frame.c (Qterm_environment_variable)
25123 (Qdisplay_environment_variable): New variables.
25124 (syms_of_frame): Intern and staticpro them.
25125 (Fmake_terminal_frame): Disable output method test.
25126
25127 * frame.h: Declare them here.
25128
25129 * macfns.c (x_set_mouse_color): Get rif from the frame.
25130 (x_set_tool_bar_lines): Don't use updating_frame.
25131 (mac_window): Add 2 new parameters for consistency with other systems.
25132 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25133 frame parameters following what is done in X11 and w32. Don't use
25134 FRAME_MAC_DISPLAY_INFO.
25135 (Fx_open_connection, start_hourglass): Remove window-system check.
25136 (x_create_tip_frame): Get the keyboard from the terminal.
25137
25138 * macmenu.c: Reorder includes.
25139 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25140
25141 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25142 terminal parameter.
25143 (x_clear_frame): Add a frame parameter.
25144 (note_mouse_movement): Get rif from the frame.
25145 (mac_term_init): Initialize the terminal.
25146 (mac_initialize): Make static and move terminal initialization ...
25147 (mac_create_terminal): ... to this new function.
25148
25149 * macterm.h (struct mac_display_info): Add terminal.
25150 (mac_initialize): Delete declaration.
25151
25152 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25153
25154 * sysdep.c: Comment out text after #endif.
25155
25156 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25157 is defined. Better initialize ttys in windows. Use terminal
25158 specific mouse_position_hook.
25159
25160 * termhooks.h (union display_info): Add mac_display_info.
25161
25162 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25163 Set the default minibuffer frame, window_system and the rest of the
25164 frame parameters following what is done in X11.
25165
25166 * w32term.c (w32_initialize): Make static.
25167
25168 * xselect.c (x_handle_selection_clear): Only access
25169 terminal->kboard when MULTI_KBOARD is defined.
25170
25171 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25172 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25173
251742007-08-29 Jason Rumney <jasonr@gnu.org>
25175
25176 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25177 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25178
25179 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25180 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25181
25182 * keyboard.c (restore_kboard_configuration): Only define when
25183 MULTI_KBOARD defined.
25184
25185 * makefile.w32-in: Update dependancies from Makefile.in.
25186 (OBJ1): Add terminal.$(O)
25187
25188 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25189 Don't define function body.
25190 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25191
25192 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25193
25194 * w32.c (request_sigio, unrequest_sigio): Remove.
25195
25196 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25197 (w32con_clear_frame, w32con_clear_end_of_line)
25198 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25199 (w32con_delete_glyphs, w32con_set_terminal_window)
25200 (scroll_line, w32_sys_ring_bell): Add frame arg.
25201 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25202 Add terminal arg.
25203 (PICK_FRAME): Remove.
25204 (w32con_write_glyphs): Use frame specific terminal coding.
25205 (one_and_only_w32cons): New global variable.
25206 (initialize_w32_display): Use it for storing hooks.
25207 (create_w32cons_output): New function.
25208
25209 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25210 arg a frame.
25211
25212 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25213 Set window_system.
25214 (x_set_tool_bar_lines): Don't use updating_frame.
25215 (Fx_create_frame): Set terminal and ref count.
25216 (Fx_open_connection): Remove window-system check.
25217
25218 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25219
25220 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25221 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25222 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25223 Add frame arg.
25224 (x_delete_terminal, w32_create_terminal): New functions.
25225 (w32_term_init): Create a terminal.
25226 (w32_initialize): Move terminal specific initialization to
25227 w32_create_terminal.
25228
25229 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25230 (w32_clear_rect, w32_clear_area): Use background from frame.
25231 (w32_display_info): Add terminal.
25232 (w32_sys_ring_bell, x_delete_display): Declare here.
25233
25234 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25235
25236 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25237
252382007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25239
25240 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25241 Fix get_named_tty calls for the controlling tty.
25242
252432007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25244
194d44e7 25245 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25246
252472007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25248
25249 * term.c (tty_insert_glyphs): Add missing first parameter.
25250
252512007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25252
25253 * buffer.c (Fbuffer_list, Fbury_buffer):
25254 Take frame->buried_buffer_list into account.
25255
25256 * cm.c (current_tty): New variable, for cmputc().
25257 (cmputc): Use it.
25258 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25259 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25260 (cmgoto): Add tty parameter. Pass it on to calccost().
25261 Use emacs_tputs() instead of tputs().
25262
25263 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25264 tputs().
25265 (current_tty): New variable, for cmputc().
25266 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25267
25268 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25269 (internal_condition_case, internal_condition_case_1)
25270 (internal_condition_case_2): Don't abort when x_catching_errors.
25271
25272 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25273 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25274 prevent crashes caused by bogus longjmps in read_char.
25275
25276 * keymap.h (Fset_keymap_parent): Add EXFUN.
25277
25278 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25279 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25280 Remove redundant definition.
25281
25282 * macfns.c (x_set_mouse_color, x_make_gc):
25283 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25284
25285 * w32term.c (x_free_frame_resources):
25286 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25287 (w32_initialize): Use the accessor macros for terminal characteristics.
25288
25289 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25290 Use the accessor macros for terminal characteristics.
25291 * msdos.c (internal_terminal_init): Use the accessor macros for
25292 terminal characteristics.
25293 (ScreenVisualBell, internal_terminal_init):
25294 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25295
25296 * termopts.h (no_redraw_on_reenter): Declare.
25297
25298 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25299 (mark_terminals, mark_ttys): Declare.
25300 (Fgarbage_collect): Call them.
25301 (mark_object): Mark buried_buffer_list.
25302
25303 * prefix-args.c: Include stdlib.h for exit.
25304
25305 * syssignal.h: Add comment.
25306
25307 * indent.c: Include stdio.h.
25308
25309 * window.h (Vinitial_window_system): Declare.
25310 (Vwindow_system): Delete declaration.
25311
25312 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25313
25314 * image.c (lookup_image): Don't initialize `c' until the xasserts
25315 have been run.
25316
25317 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25318 FRAME_FOREGROUND_PIXEL.
25319
25320 * print.c (print_preprocess): Don't lose print_depth levels while
25321 iterating.
25322
25323 * widget.c (update_from_various_frame_slots):
25324 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25325
25326 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25327 frames.
25328 (window_internal_height): Remove bogus make_number call.
25329 (init_window_once): Call make_terminal_frame with two zero parameters.
25330
25331 * fileio.c (Fread_file_name): Update comment.
25332
25333 * callint.c (Fcall_interactively):
25334 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25335 Make sure it is correctly unwound.
25336
25337 * xsmfns.c (x_session_close): New function.
25338
25339 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25340 Delete declarations.
25341
25342 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25343 (x_output): Remove background_pixel and foreground_pixel fields.
25344 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25345 (x_delete_device, x_session_close): Declare.
25346
25347 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25348 (read_filtered_event): Call `read_char' with a local
25349 `wrong_kboard_jmpbuf'.
25350
25351 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25352 Don't call single_kboard_state. Use FRAME_RIF.
25353
25354 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25355 systems.
25356
25357 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25358 (Fframe_with_environment, Fset_input_meta_mode)
25359 (Fset_quit_char): EXFUN.
25360 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25361 (init_sys_modes, reset_sys_modes): Update prototypes.
25362 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25363
25364 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25365 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25366 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25367 Delete declarations.
25368 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25369 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25370 New declarations.
25371
25372 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25373 already does that during init_display(). Call syms_of_keymap
25374 before syms_of_keyboard. Call `syms_of_terminal'.
25375 Call set_initial_environment, not set_process_environment.
25376 (shut_down_emacs): Call reset_all_sys_modes() instead of
25377 reset_sys_modes().
25378
25379 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25380 (internal_resolve_face_name, resolve_face_name_error): New functions.
25381 (resolve_face_name): Protect against loops and errors thrown by Fget.
25382 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25383 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25384
25385 * scroll.c: Replace CURTTY() with local variables throughout the
25386 file (where applicable).
25387 (calculate_scrolling, calculate_direct_scrolling)
25388 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25389 characteristics.
25390
25391 * keymap.c (Vfunction_key_map): Remove.
25392 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25393 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25394 (Vkey_translation_map): Remove.
25395 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25396 (Fdescribe_buffer_bindings)
25397 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25398 Update for terminal-local key-translation-map.
25399
25400 * Makefile.in (callproc.o): Update dependencies.
25401 (lisp, shortlisp): Add termdev.elc.
25402 (obj): Add terminal.o.
25403 (terminal.o): Add dependencies.
25404 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25405 (data.o, fns.o): Add termhooks.h dependency.
25406 (SOME_MACHINE_LISP): Add dnd.elc.
25407 (minibuf.o): Fix typo.
25408 Update dependencies.
25409
25410 * data.c (do_symval_forwarding, store_symval_forwarding)
25411 (find_symbol_value): Use the selected frame's keyboard, not
25412 current_kboard.
25413
25414 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25415 Vwindow_system.
25416
25417 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25418 Fmenu_bar_open.
25419 (syms_of_xmenu): Update defsubr.
25420 (mouse_position_for_popup, Fx_popup_menu)
25421 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25422 (set_frame_menubar, free_frame_menubar)
b97439ce 25423 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25424 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25425 an X frame.
25426
25427 * xselect.c (x_own_selection): Abort if not an X frame.
25428 (some_frame_on_display): Check if it is an X frame.
25429 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25430
25431 * coding.c: Include frame.h and termhooks.h.
25432 (terminal_coding, keyboard_coding): Delete.
25433 (Fset_terminal_coding_system_internal)
25434 (Fset_keyboard_coding_system_internal)
25435 (Fkeyboard_coding_system)
25436 (Fterminal_coding_system): Add a terminal parameter.
25437 Get terminal_coding from the terminal.
25438 (init_coding_once): Don't call setup_coding_system here.
25439
25440 * dispextern.h (set_scroll_region, turn_off_insert)
25441 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25442 (tty_clear_end_of_line, tty_setup_colors)
25443 (delete_tty, updating_frame)
25444 (produce_special_glyphs, produce_glyphs, write_glyphs)
25445 (insert_glyphs): Remove.
25446 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25447 (tty_turn_off_highlight, get_tty_size): Add declaration.
25448 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25449
25450 * frame.h (enum output_method): Add output_initial.
25451 (struct x_output): Delete.
25452 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25453 Access foreground_pixel and background_pixel directly from the frame.
25454 (tty_display): Delete.
25455 (struct frame): Add buried_buffer_list, foreground_pixel,
25456 background_pixel and terminal. Delete kboard.
25457 (union output_data): Add tty.
25458 (FRAME_KBOARD): Get the kboard from the terminal.
25459 (FRAME_INITIAL_P): New macro.
25460 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25461 (Qterm_environment_variable, Qdisplay_environment_variable)
25462 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25463 New declarations.
25464
25465 * termchar.h (tty_output, tty_display_info): New structures.
25466 (tty_list): Declare.
25467 (FRAME_TTY, CURTTY): New macros.
25468 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25469 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25470 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25471 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25472
25473 * callproc.c: Include frame.h and termhooks.h, for terminal
25474 parameters.
25475 (add_env): New function.
25476 (child_setup): Use it.
25477 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25478 (getenv_internal): Fix get_terminal_param call.
25479 (Fgetenv_internal, egetenv): Update doc.
25480 (syms_of_callproc): Initialize Vprocess_environment to nil.
25481 Register and initialize them. Remove obsolete defvars. Update doc
25482 strings.
25483 (child_setup): Handle Vlocal_environment_variables.
25484 (getenv_internal): Add terminal parameter.
25485 Handle Vlocal_environment_variables.
25486 (Fgetenv_internal): Add terminal parameter.
25487 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25488 environment in a frame (not terminal) parameter. Update doc strings.
25489 (set_initial_environment): Rename from set_global_environment.
25490 Store Emacs environment in initial frame parameter.
25491
25492 * xdisp.c (redisplay_internal): Update references to
25493 `previous_terminal_frame'.
25494 (display_mode_line, Fformat_mode_line): Replace calls to
25495 `push_frame_kboard' with `push_kboard'.
25496 (get_glyph_string_clip_rects): Add extra parentheses and
25497 braces to prevent compiler warnings.
25498 (calc_pixel_width_or_height): Add xassert to check that the
25499 frame is alive. Don't call `lookup_image' on a termcap frame.
25500 (message2_nolog, message3_nolog, redisplay_internal)
25501 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25502 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25503 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25504 (Fx_display_pixel_width, Fx_display_pixel_height)
25505 (Fx_display_planes, Fx_display_color_cells)
25506 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25507 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25508 (Fx_display_backing_store, Fx_display_visual_class)
25509 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25510 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25511
25512 * xfns.c (x_set_foreground_color x_set_background_color)
25513 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25514 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25515 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25516 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25517 terminal that is being deleted.
25518 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25519 frame parameter, and make sure it overrides any user-supplied setting.
25520 (Fx_close_connection, Fx_synchronize): Unify argument names with
25521 the rest of the DEFUNs.
25522
25523 * dispnew.c (Fsend_string_to_terminal): Update call to
25524 `get_tty_terminal'.
25525 (Fredraw_frame, Fsend_string_to_terminal)
25526 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25527 FRAME_TERMCAP_P and FRAME_TTY.
25528 (window_change_signal): Don't believe width/height values that are
25529 impossibly small.
25530 (Vinitial_window_system): Rename from Vwindow_system.
25531 (termscript, Wcm, rif): Delete.
25532
25533 * termhooks.h (struct terminal): New struct containing the
25534 previously global text display hooks and new members NAME,
25535 DELETED and PARAM_ALIST.
25536 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25537 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25538 (FRAME_RIF): New macros.
25539 (get_terminal_param, get_device): New declarations.
25540 (termscript): Delete declaration.
25541
25542 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25543 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25544 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25545 FRAME_FOREGROUND_PIXEL.
25546 (x_fully_uncatch_errors): Disable definition.
25547 (x_scroll_bar_expose): Fix reference to foreground pixel.
25548 (XTread_socket): Disable loop on all X displays.
25549 (x_delete_terminal): Don't set terminal->deleted and let
25550 delete_terminal delete the frames on the terminal.
25551 (x_delete_display): Doc update to reflect changes in
25552 delete_terminal.
25553 (x_display_info) <terminal>: Move member earlier in the struct.
25554 (deleting_tty): Remove old variable.
25555 (Fsuspend_tty): Call clear_tty_hooks.
25556 (Fresume_tty, init_tty): Call set_tty_hooks.
25557 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25558 errors on X frames.
25559 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25560 (handle_one_xevent): Initialize `f' to NULL.
25561 (x_delete_terminal, x_create_terminal): New functions.
25562 (XTset_terminal_modes, XTreset_terminal_modes)
25563 (XTread_socket, x_connection_closed, x_term_init)
25564 (x_term_init, x_delete_display): Add terminal parameter.
25565 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25566 X connections.
25567
25568 * frame.c: Include termchar.h.
25569 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25570 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25571 (Qdisplay_environment_variable): New vars.
25572 (Fframep): Deal with output_initial.
25573 (Fframe-live-p): Doc fix.
25574 (Fwindow-system): New function.
25575 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25576 (make_terminal_frame): Don't create frames on a terminal that is
25577 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25578 (store_frame_param): Check for found_for_frame before calling XFRAME.
25579 (Fmake_terminal_frame): Handle NULL tty names correctly.
25580 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25581 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25582 frames to refer to a deleted frame in their 'environment parameter.
25583 (Fframe_with_environment): New function.
25584 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25585 (get_future_frame_param): New function.
25586 (Fmake_terminal_frame): Use it.
25587 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25588
25589 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25590 * sysdep.c (reset_sys_modes): Update for renames.
25591
25592 * keyboard.c (tty_read_avail_input): New function.
25593 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25594 (syms_of_keyboard): Defsubr them.
25595 (Fset_input_meta_mode, Fset_quit_char): New functions.
25596 (Fset_input_mode): Split to above functions.
25597 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25598 parameter. Use it in call to `read_char'.
25599 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25600 Set wrong_kboard_jmpbuf correctly in recursive calls.
25601 Use current_kboard to access Vkeyboard_translate_table.
25602 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25603 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25604 Update longjmp invocations. Remember the original current_kboard,
25605 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25606 changes it. Comment out unnecessary calls to
25607 `record_single_kboard_state' and `any_kboard_state'.
25608 Update recursive calls.
25609 (wrong_kboard_jmpbuf): Remove global variable.
25610 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25611 Handle deleted interrupted_kboards correctly; that is a legal
25612 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25613 and read_char calls. Abort if interrupted_kboard died in read_char.
25614 (any_kboard_state, single_kboard_state)
25615 (push_frame_kboard): Remove function.
25616 (pop_kboard): Switch out of single_kboard mode if the kboard has
25617 been deleted. Remove unused variable. Help debugging by not
25618 changing current_kboard unnecessarily. Set current_kboard to the
25619 kboard of the selected frame when the stored kboard object has
25620 been deleted before pop_kboard.
25621 (temporarily_switch_to_single_kboard): Change first parameter to a
25622 frame pointer. Throw an error when caller wants to change kboards
25623 while in single_kboard mode. Don't push_kboard if we weren't in
25624 single kboard state. Don't pop_kboard if we popped into any
25625 kboard state.
25626 (restore_kboard_configuration): Abort if pop_kboard changed the
25627 kboard in single_kboard mode. Call pop_kboard only after setting
25628 up single_kboard mode.
25629 (Frecursive_edit): Switch to single_kboard mode only in nested
25630 command loops.
25631 (cmd_error, command_loop, command_loop_1, timer_check):
25632 Comment out unnecessary call to `any_kboard_state' and
25633 `record_single_kboard_state'.
25634 (delete_kboard): Exit single_kboard mode if we have just deleted
25635 that kboard. Use FRAME_KBOARD.
25636 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25637 `fatal_error_signal'.
25638 (record_single_kboard_state): Don't push_kboard if we weren't in
25639 single kboard state. Don't pop_kboard if we popped into any
25640 kboard state.
25641 (push_frame_kboard): Rename to push_kboard.
25642 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25643 (read_avail_input): Read input from all terminals.
25644 (mark_kboards): Also mark Vkeyboard_translate_table.
25645 (kbd_buffer_store_event_hold): Simplify condition.
25646 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25647 (Vkeyboard_translate_table): Move to struct kboard.
25648 (init_kboard): Initialize Vkeyboard_translate_table.
25649 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25650 Vkeyboard_translate_table. Update doc strings. Update docs of
25651 local-function-key-map and function-key-map.
25652
25653 * terminal.c: New file.
25654
25655 * term.c: Include errno.h.
25656 (Vring_bell_function, device_list, initial_device)
25657 (next_device_id, ring_bell, update_begin, update_end)
25658 (set_terminal_window, cursor_to, raw_cursor_to)
25659 (clear_to_end, clear_frame, clear_end_of_line)
25660 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25661 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25662 (syms_of_term): Move their initialization to terminal.c.
25663 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25664 (Ftty_display_color_cells)
25665 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25666 (clear_tty_hooks, set_tty_hooks)
25667 (init_tty, maybe_fatal): New functions.
25668 (Ftty_type): Return nil if terminal is not on a tty instead of
25669 throwing an error. Doc update.
25670 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25671 Doc update. Initialize new subrs and variables.
25672 (delete_tty): Use terminal->deleted.
25673 (tty_set_terminal_modes): Rename from set_terminal_modes.
25674 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25675 (set_scroll_region): Rename to `tty_set_scroll_region'.
25676 (turn_on_insert): Rename to `tty_turn_on_insert'.
25677 (turn_off_insert): Rename to `tty_turn_off_insert'.
25678 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25679 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25680 (toggle_highligh): Rename to `tty_toggle_highlight'.
25681 (background_highlight): Rename to `tty_background_highlight'.
25682 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25683 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25684 (tty_set_scroll_region, tty_background_highlight)
25685 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25686 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25687 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25688 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25689 Add static modifier.
25690 (tty_reset_terminal_modes, tty_set_terminal_window)
25691 (tty_set_scroll_region, tty_background_highlight)
25692 (tty_highlight_if_desired, tty_cursor_to)
25693 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25694 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25695 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25696 renames.
25697
256982007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25699
25700 * keyboard.c: Qrtl is new.
25701 (parse_tool_bar_item): Handle :rtl keyword.
25702 (syms_of_keyboard): Intern :rtl keyword.
25703
25704 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25705
25706 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25707 so no Lisp code is executed.
25708 (file_for_image, find_rtl_image): New functions.
25709 (xg_get_image_for_pixmap): Use file_for_image.
25710 (update_frame_tool_bar): If direction is RTL, use RTL image if
25711 defined. Use Gtk stock images if defined.
25712
257132007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25714
25715 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25716 for nonexistent or zero-width glyph in composition glyph.
25717
257182007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25719
25720 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25721
25722 * xdisp.c (Finvisible_p): New function.
25723 (syms_of_xdisp): defsubr it.
25724
257252007-08-24 Juanma Barranquero <lekktu@gmail.com>
25726
25727 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25728 Doc fixes.
25729
257302007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25731
25732 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25733
257342007-08-24 Martin Rudalics <rudalics@gmx.at>
25735
25736 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25737 whether decoding has modified buffer contents.
25738
257392007-08-24 Jason Rumney <jasonr@gnu.org>
25740
25741 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25742 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25743 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25744 (init_svg_functions) [HAVE_NTGUI]: New function.
25745 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25746 (svg_load_image): Use them.
25747 (svg_load_image) [HAVE_NTGUI]: Implement background.
25748
257492007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25750
25751 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25752 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25753 (LIBX): Remove @RSVG_LIBS@.
25754 (LIBES): Add $(RSVG_LIBS).
25755
25756 * image.c (svg_load_image): Blend with specified background if exists.
25757 Use IMAGE_BACKGROUND. Add Mac OS Support.
25758
25759 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25760 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25761 Remove macros.
25762 [MAC_OSX] (socket_callback): Do nothing.
25763 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25764 ReceiveNextEvent.
25765 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25766 socket_callback.
25767 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25768
257692007-08-22 Glenn Morris <rgm@gnu.org>
25770
25771 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25772
257732007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25774
25775 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25776
25777 * image.c: Add support for SVG images. Some additional comments
25778 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25779 (svg_image_p): New function to test for SVG image.
25780 (svg_load): New function to load SVG image.
25781 (svg_load_image): New function, helper for svg_load.
25782 (Qsvg): New Lisp_object.
25783 (svg_keyword_index): New enum.
25784 (svg_format): New static `image_keyword' struct.
25785 (svg_type): New static `image_type' struct.
25786 (librsvg/rsvg.h): Include it.
25787
257882007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25789
25790 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25791
257922007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25793
25794 * lread.c (Qold_style_backquotes): New var.
25795 (syms_of_lread): Init and staticpro it.
25796 (load_warn_old_style_backquotes): New fun.
25797 (Fload): Use them to warn about old style backquotes.
25798 (end_of_file_error, Fload): Remove unused vars.
25799
25800 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25801
25802 * lread.c (Vold_style_backquotes): New var.
25803 (syms_of_lread): Init and export it to Elisp.
25804 (read1): Set it when we find an old-style (back)quote.
25805
258062007-08-22 Jason Rumney <jasonr@gnu.org>
25807
25808 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25809
258102007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25811
25812 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25813
258142007-08-19 Richard Stallman <rms@gnu.org>
25815
25816 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25817
258182007-08-19 Andreas Schwab <schwab@suse.de>
25819
25820 * alloc.c (pure): Round PURESIZE up.
25821
258222007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25823
25824 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25825 active frame.
25826
258272007-08-16 Richard Stallman <rms@gnu.org>
25828
25829 * eval.c (Fcommandp): Add parens to clarify.
25830
25831 * minibuf.c (Fall_completions): Use enum for type of table.
25832
25833 * emacs.c (USAGE2): Improve text.
25834
258352007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25836
25837 * term.c (tty_default_color_capabilities): Declare static
25838 variables in file scope, to avoid HPUX compiler problem.
25839
258402007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25841
25842 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25843 to gtk_toolbar_insert.
25844
258452007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25846
25847 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25848
25849 * insdel.c (reset_var_on_error): New fun.
25850 (signal_before_change, signal_after_change):
25851 Use it to reset (after|before)-change-functions to nil in case of error.
25852 Bind inhibit-modification-hooks to t.
25853 Don't bind (after|before)-change-functions to nil while they run.
25854
258552007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25856
25857 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25858 filling pixmap with stippled background.
25859
258602007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25861
25862 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25863 Don't use invisible frame as parent window for repositioning.
25864
258652007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25866
25867 * print.c (new_backquote_output): Rename from old_backquote_output.
25868 (print): Inverse its logic (according to its name) so as to match the
25869 behavior of new_backquote_flag in lread.c.
25870
258712007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25872
25873 * gmalloc.c (posix_memalign): New function.
25874
25875 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25876 ActivateControl/DeactivateControl here.
25877 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25878 frame-notice-user-settings is non-nil.
25879 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25880 for kEventParamFMFontStyle.
25881 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25882 mac_pass_command_to_system and mac_pass_control_to_system here.
25883 (XTread_socket): Call ActivateControl/DeactivateControl here.
25884 (XTread_socket) [TARGET_API_MAC_CARBON]:
25885 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25886 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25887 for window repositioning.
25888
258892007-08-08 Glenn Morris <rgm@gnu.org>
25890
25891 * Replace `iff' in doc-strings and comments.
25892
258932007-08-07 Chong Yidong <cyd@stupidchicken.com>
25894
25895 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25896
258972007-08-07 Martin Rudalics <rudalics@gmx.at>
25898
25899 * fileio.c (Finsert_file_contents): Run format-decode and
25900 after_insert_file_functions on entire buffer when REPLACE is
25901 non-nil and inhibit modification_hooks and point_motion_hooks.
25902 For consistency, run after_insert_file_functions iff something
25903 got inserted. Move signal_after_change and update_compositions
25904 after code running after_insert_file_functions. Make sure that
25905 undo_list doesn't record intermediate steps of the decoding process.
25906
259072007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25908
25909 * emacs.c (main)
25910 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25911 Call malloc_enable_thread on interactive startup.
25912
25913 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25914 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25915 [USE_PTHREAD]: Conditionalize with it.
25916 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25917 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25918 New functions.
25919
259202007-08-06 Chong Yidong <cyd@stupidchicken.com>
25921
25922 * xdisp.c (redisplay_window): When restoring original buffer
25923 position, make sure it is still valid.
25924
25925 * image.c (png_load): Ignore png-supplied background color.
25926
259272007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25928
25929 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25930 Use kCFAbsoluteTimeIntervalSince1970.
25931
25932 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25933 New variable.
25934 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25935 event loop should be quit.
25936 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25937 Quit dialog event loop if quit_dialog_event_loop is set.
25938
25939 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25940 (Selection): New typedef. Use instead of ScrapRef.
25941 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25942 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25943 (mac_clear_selection): Rename from clear_scrap.
25944 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25945 scrap_has_target_type. All uses changed.
25946 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25947 (mac_selection_has_target_p): New functions.
25948 (mac_put_selection_value): Rename from put_scrap_string.
25949 (mac_get_selection_value): Rename from get_scrap_string.
25950 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25951 (put_scrap_private_timestamp, scrap_has_target_type)
25952 (get_scrap_private_timestamp): Remove functions.
25953 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25954 (x_own_selection, x_get_local_selection):
25955 Use mac_valid_selection_value_p.
25956 (x_own_selection): Don't use put_scrap_private_timestamp.
25957 Record OWNERSHIP-INFO into Vselection_alist instead.
25958 (x_get_local_selection): Don't check type if request is local.
25959 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25960 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25961
259622007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25963
25964 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25965 add comment explaining why.
25966
259672007-08-03 Richard Stallman <rms@gnu.org>
25968
25969 * fileio.c (Fvisited_file_modtime): Use make_time.
25970
259712007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25972
25973 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25974 build.
25975
259762007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25977
25978 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25979
259802007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25981
25982 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25983
259842007-07-30 Richard Stallman <rms@gnu.org>
25985
25986 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25987
259882007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25989
25990 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25991
259922007-07-28 Nick Roberts <nickrob@snap.net.nz>
25993
25994 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25995 remote default-directory.
25996
25997 * buffer.c (mode-line-format): Update doc string.
25998
259992007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26000
26001 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26002 scroll bar gap.
26003 (x_scroll_bar_create): Set bar->fringe_extended_p.
26004 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26005 on frame edge. Check fringe background extension. Don't clear
26006 extended fringe background area.
26007
26008 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26009 (w32_fill_area): Enclose multiple statements with do ... while (0).
26010
26011 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26012 Extend fringe background to scroll bar gap.
26013 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26014 Set bar->fringe_extended_p.
26015 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26016 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26017 background extension. Don't clear extended fringe background area.
26018
26019 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26020 New member fringe_extended_p.
26021
260222007-07-25 Glenn Morris <rgm@gnu.org>
26023
26024 * Relicense all FSF files to GPLv3 or later.
26025
26026 * COPYING: Switch to GPLv3.
26027
260282007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26029
26030 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26031
26032 * data.c (Finteractive_form): Check for the presence of an
26033 `interactive-form' symbol property more thoroughly.
26034
26035 * data.c (Finteractive_form): Use an `interactive-form' property if
26036 present, analogous to the function-documentation property.
26037
260382007-07-24 Jason Rumney <jasonr@gnu.org>
26039
26040 * w32fns.c (x_real_positions): Get real position from OS instead of
26041 calculating it.
26042
260432007-07-23 Jason Rumney <jasonr@gnu.org>
26044
26045 * filelock.c (current_lock_owner): Allow for @ sign in username.
26046
260472007-07-22 Nick Roberts <nickrob@snap.net.nz>
26048
26049 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26050 remote default-directory.
26051
26052 * buffer.c (mode-line-format): Describe above case in doc string.
26053
260542007-07-20 Eli Zaretskii <eliz@gnu.org>
26055
26056 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26057 Define if not defined.
26058
260592007-07-18 Jason Rumney <jasonr@gnu.org>
26060
26061 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26062
260632007-07-18 Richard Stallman <rms@gnu.org>
26064
26065 * data.c (Fsetq_default): Doc fix.
26066
26067 * eval.c (Fsetq): Doc fix.
26068
260692007-07-18 Juanma Barranquero <lekktu@gmail.com>
26070
26071 * coding.c (Ffind_operation_coding_system):
26072 * eval.c (For, Fand): Doc fixes.
26073 Reported by Johan Bockgård.
26074
260752007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26076
26077 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26078
26079 * xterm.h: Declare x_ewmh_activate_frame.
26080
26081 * xterm.c (x_ewmh_activate_frame): New function.
26082 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26083
260842007-07-17 Martin Rudalics <rudalics@gmx.at>
26085
26086 * window.c (Fdisplay_buffer): If largest or LRU window is the
26087 only window, split it even if it is not eligible for splitting.
26088 This restores the original behavior broken by the 2007-07-15
26089 change.
26090
260912007-07-17 Glenn Morris <rgm@gnu.org>
26092
26093 * abbrev.c (abbrev_check_chars): New function.
26094 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26095 Call abbrev_check_chars to check abbrev characters are word
26096 constituents. Doc fix.
26097
260982007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26099
26100 * process.c (Fstart_process, Fmake_network_process)
26101 (read_process_output): Fix up last changes.
26102
261032007-07-16 Eli Zaretskii <eliz@gnu.org>
26104
26105 * makefile.w32-in (clean): Don't delete *~.
26106
261072007-07-16 Andreas Schwab <schwab@suse.de>
26108
26109 * window.c (Fdisplay_buffer): Use NILP.
26110 (Fset_window_scroll_bars): Likewise.
26111
261122007-07-15 Martin Rudalics <rudalics@gmx.at>
26113
26114 * window.c (window_min_size_2): New function.
26115 (window_min_size_1, size_window, Fdisplay_buffer)
26116 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26117 windows without mode- or header-lines when window-min-height is
26118 too small.
26119 (size_window): Reset nodelete_p after testing it, following an
26120 earlier note by Kim F. Storm.
26121 (display_buffer): Do not set split_height_threshold to twice the
26122 value of window_min_height to avoid changing the value of a
26123 customizable variable. Rather explicitly check whether the
26124 height of the window that shall be splitted is at least as large
26125 as split_height_threshold.
26126 (Fwindow_full_width_p): New defun.
26127 (syms_of_window): Defsubr it.
26128
26129 * window.h: Add EXFUN for Fwindow_full_width_p.
26130
261312007-07-14 Jason Rumney <jasonr@gnu.org>
26132
26133 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26134
261352007-07-14 Richard Stallman <rms@gnu.org>
26136
26137 * eval.c (maybe_call_debugger): New function.
26138 (find_handler_clause): Use maybe_call_debugger.
26139 Call it when the handler says `debug'.
26140 Eliminate DEBUGGER_VALUE_PTR.
26141 (Fsignal): Eliminate debugger_value.
26142 (Qdebug): New variable.
26143 (syms_of_eval): Initialize it.
26144
261452007-07-14 Juanma Barranquero <lekktu@gmail.com>
26146
26147 * eval.c (Fprogn):
26148 * keyboard.c (Ftrack_mouse):
26149 * print.c (Fwith_output_to_temp_buffer):
26150 * window.c (Fsave_window_excursion): Doc fix.
26151
261522007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26153
26154 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26155
261562007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26157
26158 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26159 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26160 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26161 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26162 Remove unused encoding_carryover.
26163 * process.c: Adjust all functions accordingly.
26164
261652007-07-12 Richard Stallman <rms@gnu.org>
26166
26167 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26168
261692007-07-11 Jason Rumney <jasonr@gnu.org>
26170
26171 * makefile.w32-in (LIBS): Include OLE32.
26172
26173 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26174 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26175
261762007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26177
26178 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26179 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26180 from a Lisp_Object into a bare pointer.
26181 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26182 Adjust the code correspondingly.
26183
26184 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26185
26186 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26187 (term_show_mouse_face): Remove unused var `j'.
26188 (handle_one_term_event): Remove unused vars `i' and `j'.
26189 Don't cast return value of ttyname since it's not necessary.
26190
261912007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26192
26193 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26194 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26195
26196 * fns.c (map_char_table): Use an array of int for `indices' rather than
26197 an array of Lisp_Objects (which are only ever integers anyway).
26198 (Fmap_char_table): Update caller.
26199 * lisp.h: Update prototype.
26200 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26201 * fontset.c (Ffontset_info):
26202 * casetab.c (set_case_table): Update callers.
26203
26204 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26205
26206 * keymap.c (struct accessible_keymaps_data)
26207 (struct where_is_internal_data): New structures.
26208 (accessible_keymaps_1, where_is_internal_1): Use them to change
26209 interface to adhere to the one used by map_keymap.
26210 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26211 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26212
26213 * keymap.h (map_keymap_function_t): More informative prototype.
26214
262152007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26216
26217 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26218 (looking_at_1): Don't change search_regs and last_thing_searched
26219 if `inhibit-changing-match-data' is non-nil.
26220 (string_match_1, search_buffer, set_search_regs): Likewise.
26221 (syms_of_search): Add Lisp level definition for
26222 `inhibit-changing-match-data' and set it to nil.
26223 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26224 start and end of the match, instead of using values in search_regs.
26225
262262007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26227
26228 * minibuf.c (Fcompleting_read): New value `confirm-only'
26229 for `require-match'.
26230
262312007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26232
26233 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26234 part of the 2007-06-27 change to syms_of_fileio.
26235
262362007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26237
26238 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26239 Check WINDOWP before using XWINDOW. Consolidate return statements.
26240
262412007-06-27 Richard Stallman <rms@gnu.org>
26242
26243 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26244
262452007-06-27 Juanma Barranquero <lekktu@gmail.com>
26246
26247 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26248
262492007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26250
26251 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26252 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26253 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26254 (_free_internal, memalign): Use them.
26255 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26256 Initialize to PTHREAD_MUTEX_INITIALIZER.
26257 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26258 (morecore_nolock): Rename from morecore. All uses changed.
26259 Use only nolock versions of internal allocation functions.
26260 (_malloc_internal_nolock, _realloc_internal_nolock)
26261 (_free_internal_nolock): New functions created from
26262 _malloc_internal, _realloc_internal, and _free_internal.
26263 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26264 Copy hook value to automatic variable before its use.
26265 (memalign): Copy hook value to automatic variable before its use.
26266
262672007-06-26 Kenichi Handa <handa@m17n.org>
26268
26269 * coding.c (Ffind_operation_coding_system): Docstring improved.
26270 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26271
262722007-06-25 David Kastrup <dak@gnu.org>
26273
26274 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26275 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26276 cater for additional parameter.
26277
26278 * keymap.h: Adjust number of parameters to `current-active-maps'.
26279
26280 * doc.c (Fsubstitute_command_keys): Adjust call of
26281 `current-active-maps'.
26282
262832007-06-25 David Kastrup <dak@gnu.org>
26284
26285 * callint.c (Fcall_interactively): Make the parsing of interactive
26286 specs somewhat more readable.
26287
262882007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26289
26290 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26291 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26292 if extended background has already been filled.
26293
262942007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26295
26296 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26297 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26298
26299 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26300 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26301 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26302 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26303 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26304 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26305 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26306 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26307 Run timers during dialog popup.
26308 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26309
263102007-06-21 Jason Rumney <jasonr@gnu.org>
26311
26312 * image.c (convert_mono_to_color_image): Swap fore and background.
26313
263142007-06-20 Jason Rumney <jasonr@gnu.org>
26315
26316 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26317 (w32_free_bdf_font): Unmap memory not handle.
26318
263192007-06-20 Sam Steingold <sds@gnu.org>
26320
26321 * gmalloc.c (__morecore): Fix the declaration to comply with the
26322 definition.
26323
263242007-06-20 Juanma Barranquero <lekktu@gmail.com>
26325
26326 * w32term.c (w32_delete_display): Remove leftover declaration.
26327 (w32_define_cursor, w32_initialize): Make static.
26328
26329 * w32.c (_wsa_errlist): Fix typo in error message.
26330 (init_environment): Ignore any environment variable from the
26331 registry having a null value.
26332
263332007-06-20 Glenn Morris <rgm@gnu.org>
26334
26335 * Makefile.in (LIBGIF): Default to -lgif.
26336
263372007-06-17 Jason Rumney <jasonr@gnu.org>
26338
26339 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26340 unicode strings.
26341
263422007-06-16 Juanma Barranquero <lekktu@gmail.com>
26343
26344 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26345 Fix typo in docstring.
26346
263472007-06-16 Eli Zaretskii <eliz@gnu.org>
26348
26349 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26350 and their keybindings.
26351
263522007-06-15 Chong Yidong <cyd@stupidchicken.com>
26353
26354 * composite.c (update_compositions): Fix last fix.
26355
263562007-06-14 Jason Rumney <jasonr@gnu.org>
26357
26358 * w32.c (get_process_times_fn): New function pointer.
26359 (globals_of_w32): Intialize it if present in kernel32.dll.
26360 (w32_get_internal_run_time): New function.
26361
26362 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26363
263642007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26365
26366 * composite.c (update_compositions): Check the validness of
26367 compositions.
26368
263692007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26370
26371 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26372 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26373
26374 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26375 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26376
26377 * macgui.h (USE_MAC_TOOLBAR): New define.
26378
26379 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26380 Return immediately unless popup is activated.
26381
26382 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26383 background to scroll bar gap.
26384 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26385 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26386 scroll bars on frame edge. Check fringe background extension.
26387 Don't clear extended fringe background area.
26388 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26389 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26390 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26391 [USE_MAC_TOOLBAR]: New macros.
26392 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26393 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26394 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26395 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26396 [USE_MAC_TOOLBAR]: New functions.
26397 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26398 manually if previous repositioning has failed.
26399 (mac_handle_keyboard_event): Use precomputed event kind.
26400 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26401 as tool bar item click. Handle mouse movement over tool bar items.
26402
26403 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26404 toolbar_win_gravity.
26405 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26406 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26407 Add externs.
26408
26409 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26410 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26411
264122007-06-14 Chong Yidong <cyd@stupidchicken.com>
26413
26414 * image.c (search_image_cache): Remove unused variable.
26415
264162007-06-13 Chong Yidong <cyd@stupidchicken.com>
26417
26418 * xfns.c, xmenu.c: Link to xaw3d if available.
26419
264202007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26421
26422 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26423 frame_foreground and frame_background.
26424
26425 * image.c (lookup_image): Save frame foreground and background colors.
26426 (search_image_cache): Check if saved and current frame colors match.
26427
264282007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26429
26430 * regex.c (regex_compile): Remove the `regnum' counter.
26431 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26432
264332007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26434
26435 * term.c: Include intervals.h to declare Fget_text_property.
26436
264372007-06-10 Jason Rumney <jasonr@gnu.org>
26438
26439 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26440
264412007-06-08 Juanma Barranquero <lekktu@gmail.com>
26442
26443 * callint.c (Fcall_interactively):
26444 * editfns.c (Fdelete_and_extract_region):
26445 * fileio.c (Fread_file_name):
26446 * fns.c (Fmapconcat):
26447 * keyboard.c (cmd_error_internal):
26448 * keymap.c (Fkey_description):
26449 * lread.c (openp):
26450 * minibuf.c (read_minibuf):
26451 * search.c (wordify):
26452 * sunfns.c (sel_read):
26453 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26454 * xfns.c (x_default_scroll_bar_color_parameter):
26455 * xmenu.c (menu_help_callback):
26456 * xselect.c (Fx_get_atom_name):
26457 * xterm.c (x_term_init): Use empty_unibyte_string.
26458
264592007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26460
26461 * alloc.c (init_strings): Initialize canonical empty strings.
26462 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26463 canonical empty string when the requested size is 0.
26464
26465 * emacs.c (empty_unibyte_string): Rename from empty_string.
26466 (empty_multibyte_string): New canonical empty string.
26467 (syms_of_emacs): Don't initialize empty_string.
26468
26469 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26470 string, if appropriate.
26471 (empty_unibyte_string, empty_multibyte_string): New externs.
26472 (empty_string): Remove extern.
26473
26474 * lread.c (syms_of_lread): Use empty_unibyte_string.
26475
264762007-06-07 Jason Rumney <jasonr@gnu.org>
26477
26478 * s/ms-w32.h: Don't define HAVE_TZNAME.
26479
26480 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26481
264822007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26483
26484 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26485
26486 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26487 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26488
26489 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26490 Don't call next handler.
26491 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26492 Remove argument. Install handler to application.
26493 (set_frame_menubar): Don't change deep_p.
26494 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26495 FRAME_OUTER_TO_INNER_DIFF_Y.
26496 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26497 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26498 [HAVE_DIALOGS]: New macros.
26499 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26500 Use them.
26501 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26502
26503 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26504 init_service_handler. All callers changed. Return OSStatus value.
26505
26506 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26507 All callers changed so as not to call SetPortWindowPort.
26508 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26509 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26510 mac_draw_string_common.
26511 (mac_draw_image_string_qd): Likewise.
26512 (mac_draw_string_common): Use them. Add INLINE.
26513 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26514 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26515 GetGlobalMouse.
26516 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26517 and FRAME_OUTER_TO_INNER_DIFF_Y.
26518 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26519 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26520 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26521 repositioning window to mac_handle_window_event.
26522 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26523 saving window location to mac_handle_window_event
26524 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26525 (install_menu_target_item_handler): Remove argument in extern.
26526 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26527 Also accept command events.
26528 (do_keystroke): New function created from XTread_socket.
26529 (init_command_handler): Remove functions.
26530 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26531 and save window location by kEventWindowShowing and kEventWindowHiding
26532 handlers here. Don't call next handler for window state change and
26533 focus events.
26534 (mac_handle_application_event, mac_handle_keyboard_event)
26535 [TARGET_API_MAC_CARBON]: New functions.
26536 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26537 kEventWindowShowing and kEventWindowHiding events. Move installation
26538 of mouse, font, text input and menu target item handlers to
26539 install_application_handler.
26540 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26541 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26542 New function.
26543 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26544 Register it.
26545 (XTread_socket) [TARGET_API_MAC_CARBON]:
26546 Consolidate SendEventToEventTarget calls.
26547 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26548 Move application activation handler to mac_handle_application_event.
26549 Move keyboard handler to mac_handle_keyboard_event.
26550 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26551 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26552 init_command_handler. Call install_application_handler.
26553
26554 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26555 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26556
265572007-06-07 Glenn Morris <rgm@gnu.org>
26558
26559 * emacs.c (main): Use `emacs-copyright' in --version output.
26560
265612007-06-06 Chong Yidong <cyd@stupidchicken.com>
26562
26563 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26564
265652007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26566
26567 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26568
26569 * macgui.h: Replace WindowPtr with WindowRef.
26570
26571 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26572 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26573 Replace ControlHandle with ControlRef.
26574 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26575
26576 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26577 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26578 Replace ControlHandle with ControlRef.
26579 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26580 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26581
26582 * macterm.h (struct scroll_bar): Rename member control_handle_low
26583 and control_handle_high to control_ref_low and control_ref_high.
26584 All uses changed.
26585 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26586 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26587 respectively. All uses changed.
26588 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26589 (install_window_handler, remove_window_handler): Replace WindowPtr
26590 with WindowRef in externs.
26591
265922007-06-05 Juanma Barranquero <lekktu@gmail.com>
26593
26594 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26595
265962007-06-03 Nick Roberts <nickrob@snap.net.nz>
26597
26598 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26599
26600 * frame.c (Fmouse_position, Fmouse_pixel_position):
26601 Condition on HAVE_GPM too.
26602
26603 * term.c (term_mouse_highlight): Remove unused variables.
26604 (Fterm_open_connection): Set gpm_zerobased to 1.
26605 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26606 Use zero based co-ordinates.
26607 (handle_one_term_event): Report a drag as mouse movement too.
26608
26609 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26610
266112007-06-03 Chong Yidong <cyd@stupidchicken.com>
26612
26613 * image.c (search_image_cache): New function. Require background
26614 color match if background color is unspecified in the image spec.
26615 (uncache_image, lookup_image): Use it.
26616
266172007-06-01 Juanma Barranquero <lekktu@gmail.com>
26618
26619 * window.c (Fshrink_window): Reflow docstring.
26620
266212007-06-02 Chong Yidong <cyd@stupidchicken.com>
26622
26623 * Version 22.1 released.
26624
266252007-06-01 Richard Stallman <rms@gnu.org>
26626
26627 * xfns.c (x_encode_text): Add GCPRO.
26628
266292007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26630
26631 * xfns.c (x_set_name_internal): Save encoded name before
26632 x_encode_text in case string data is relocated.
26633
266342007-05-31 Richard Stallman <rms@gnu.org>
26635
26636 * buffer.c (syms_of_buffer): Doc fix.
26637
266382007-05-30 Nick Roberts <nickrob@snap.net.nz>
26639
26640 * sysdep.c (init_sys_modes): Add rather than replace with
26641 O_NONBLOCK.
26642
26643 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26644 term_mouse_moveto.
26645
26646 * termhooks.h (term_mouse_moveto): New extern.
26647
26648 * term.c (mouse_face_window): Rename...
26649 (Qmouse_face_window): ...to this.
26650 (term_show_mouse_face, term_clear_mouse_face)
26651 (term_mouse_highlight): Use Qmouse_face_window.
26652 (term_mouse_moveto): New function.
26653 (term_mouse_position): Make it work.
26654 (syms_of_term): Uncomment assignment to mouse_position_hook.
26655 Staticpro Qmouse_face_window.
26656
266572007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26658
26659 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26660 around current_column call.
26661
266622007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26663
26664 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26665 * xdisp.c (next_element_from_buffer):
26666 * window.c (delete_window):
26667 * term.c (term_mouse_highlight):
26668 * msdos.c (getdefdir):
26669 * macterm.c (mac_create_bitmap_from_bitmap_data)
26670 (init_font_name_table):
26671 * fns.c (Fsxhash):
26672 * data.c (Fmake_local_variable):
26673 * ccl.c (ccl_driver): Likewise.
26674
266752007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26676
26677 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26678 Call mac_wakeup_from_rne on window size change.
26679
266802007-05-25 Chong Yidong <cyd@stupidchicken.com>
26681
26682 * image.c (uncache_image): Fix typo.
26683
266842007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26685
26686 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26687
266882007-05-22 Richard Stallman <rms@gnu.org>
26689
26690 * xterm.c (x_connection_closed): Remove NO_RETURN.
26691
266922007-05-22 Martin Rudalics <rudalics@gmx.at>
26693
26694 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26695
266962007-05-21 Chong Yidong <cyd@stupidchicken.com>
26697
26698 * image.c (uncache_image): New function.
26699 (Fimage_refresh): New function.
26700
267012007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26702
26703 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26704
267052007-05-20 Nick Roberts <nickrob@snap.net.nz>
26706
26707 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26708 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26709
267102007-05-20 Nick Roberts <nickrob@snap.net.nz>
26711
26712 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26713 conditional on [HAVE_GPM_H].
26714
267152007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26716
26717 * syntax.c (skip_chars): Update syntax-table only after we checked that
26718 the new location is valid.
26719
267202007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26721
26722 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26723 mac_get_window_bounds.
26724
267252007-05-20 Nick Roberts <nickrob@snap.net.nz>
26726
26727 * Makefile.in (LIBGPM): Allow it to be set from configure.
26728 If set then link Emacs with it.
26729
26730 * config.in: Regenerate.
26731
26732 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26733 New externs.
26734
26735 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26736 Include gpm.h.
26737 (handle_one_term_event, term_gpm): New externs.
26738
26739 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26740 and allow it to be interrupted by SIGIO.
26741
26742 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26743 (wait_reading_process_output): Wait on gpm_fd too.
26744 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26745 (add_gpm_wait_descriptor_called_flag): New variable.
26746 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26747
26748 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26749 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26750 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26751 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26752 (make_lispy_event): Add case GPM_CLICK_EVENT.
26753 (read_avail_input): Handle mouse input.
26754
26755 * term.c (write_glyphs_with_face): New function.
26756 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26757 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26758 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26759 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26760 (last_mouse_x, last_mouse_y): New variables.
26761 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26762 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26763 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26764 (Fterm_close_connection): New functions.
26765 (term_init): Initialise mouse_face_window.
26766
267672007-05-19 Chong Yidong <cyd@stupidchicken.com>
26768
26769 * xdisp.c (redisplay_window): If first window line is a
26770 continuation line, recompute the new window start instead of
26771 recentering.
26772
267732007-05-18 Glenn Morris <rgm@gnu.org>
26774
26775 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26776 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26777
267782007-05-17 Glenn Morris <rgm@gnu.org>
26779
26780 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26781
267822007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26783
26784 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26785 dead key repeat and up events.
26786
267872007-05-14 Chong Yidong <cyd@stupidchicken.com>
26788
26789 * image.c (pbm_load): Check image size for monochrome pbm.
26790
267912007-05-13 Chong Yidong <cyd@stupidchicken.com>
26792
26793 * xterm.c (XTread_socket): Revert last change.
26794
267952007-05-12 Chong Yidong <cyd@stupidchicken.com>
26796
26797 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26798
26799 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26800
268012007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26802
26803 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26804 mixup (YAILOM).
26805
268062007-05-07 Andreas Schwab <schwab@suse.de>
26807
26808 * keymap.c (Flookup_key): Fix typo in last change.
26809
268102007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26811
26812 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26813 mapping for unibyte strings.
26814
268152007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26816
26817 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26818 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26819
268202007-04-29 Richard Stallman <rms@gnu.org>
26821
26822 * insdel.c (replace_range): For undo, record insertion first.
26823
268242007-04-29 Andreas Schwab <schwab@suse.de>
26825
26826 * lisp.h (VECSIZE): Use OFFSETOF.
26827
268282007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26829
26830 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26831 disabled lines.
26832
268332007-04-28 Richard Stallman <rms@gnu.org>
26834
26835 * lread.c (read_escape): In a string, \s is always space.
26836
268372007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26838
26839 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26840
26841 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26842 submenu for menu bar items.
26843
26844See ChangeLog.10 for earlier changes.
26845
26846;; Local Variables:
26847;; coding: utf-8
26848;; add-log-time-zone-rule: t
aac0c6e3
MR
26849;; End:
26850
e3eb1dae 26851 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26852
26853 This file is part of GNU Emacs.
26854
26855 GNU Emacs is free software: you can redistribute it and/or modify
26856 it under the terms of the GNU General Public License as published by
26857 the Free Software Foundation, either version 3 of the License, or
26858 (at your option) any later version.
26859
26860 GNU Emacs is distributed in the hope that it will be useful,
26861 but WITHOUT ANY WARRANTY; without even the implied warranty of
26862 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26863 GNU General Public License for more details.
26864
26865 You should have received a copy of the GNU General Public License
26866 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26867
26868;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40