Finished work on mouse highlight that comes from display strings.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d0010be5
EZ
12010-10-16 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4 (mouse_face_from_string_pos): New function, replaces
5 fast_find_string_pos.
6 (note_mouse_highlight): Call it instead of fast_find_string_pos.
7
d2038a61
EZ
82010-10-16 Eli Zaretskii <eliz@gnu.org>
9
10 * xdisp.c (note_mode_line_or_margin_highlight): Support
11 bidi-reordered strings and R2L glyph rows. Fix more comments.
12
9a3d704f
EZ
132010-10-16 Eli Zaretskii <eliz@gnu.org>
14
15 * xdisp.c (rows_from_pos_range, mouse_face_from_buffer_pos)
16 (note_mode_line_or_margin_highlight): Fix comments.
17
2f3f89b3
EZ
182010-10-09 Eli Zaretskii <eliz@gnu.org>
19
20 Finished work on mouse_face_from_buffer_pos for bidi-reordered
21 rows. Need lots of testing, including bug#1220.
22 Next task: get rid of fast_find_position, call
23 mouse_face_from_buffer_pos instead.
24
25 * xdisp.c (rows_from_pos_range): New function.
26 (mouse_face_from_buffer_pos): Use it instead of calling
27 row_containing_pos for START_CHARPOS and END_CHARPOS.
28 (note_mouse_highlight): When bidi reordering is turned on in a
29 buffer, call next-single-property-change and
30 previous-single-property-change with last argument nil.
31
12d54c2e
EZ
322010-10-02 Eli Zaretskii <eliz@gnu.org>
33
34 * xdisp.c (coords_in_mouse_face_p): Fix the conditions for when
35 mouse_face_beg_row and mouse_face_end_row are equal.
36 (note_mouse_highlight): Clear mouse highlight when mouse pointer
37 is in a R2L row on the stretch glyph that stands for no text
38 beyond the line end.
1f382a02
EZ
39 (row_containing_pos): Don't return too early when CHARPOS is in a
40 bidi-reordered continued line. Return immediately when the first
41 hit is found in a line that is not continued, or when an exact
42 match for CHARPOS is found.
43 (mouse_face_from_buffer_pos): Rewrite to not assume that
44 START_CHARPOS is always in mouse_face_beg_row. If necessary, swap
45 mouse_face_beg_row and mouse_face_end_row so that the former is
e1291a36
EZ
46 always above the latter or identical to it. Don't compute beg_col
47 if already decided to paint from beginning of window.
12d54c2e 48
544bbc31
EZ
492010-08-28 Eli Zaretskii <eliz@gnu.org>
50
51 * xdisp.c (mouse_face_from_buffer_pos): Fix code using bug#1220 as
5f53c454
EZ
52 test case. Implement highlight for R2L rows. Fix the case of
53 continued L2R lines.
1554d88e 54 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
55 (coords_in_mouse_face_p): New function, bidi-aware.
56 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
57 Call it instead of comparing with mouse-face members of dpyinfo.
58 (note_mode_line_or_margin_highlight): Fix confusingly swapped
59 usage of hpos and vpos.
544bbc31 60
40629f17
EZ
612010-08-21 Eli Zaretskii <eliz@gnu.org>
62
efb6b75c
EZ
63 * xdisp.c (mouse_face_from_buffer_pos): Support mouse highlight in
64 bidi-reordered L2R lines. Continued lines are not yet supported.
65
40629f17
EZ
66 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
67 mirroring pixel positions.
68
d931da8c
DN
692010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
70
b5c76d0c
DN
71 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
72 write only.
73 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
74 malloc_sbrk_used, nothing uses them.
75
74815588
DN
76 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
77 defined, unconditionally defined in lisp.h.
78
f5817d1c
DN
79 * term.c: Do not include <termios.h>, systty.h does it.
80
d931da8c
DN
81 * s/unixware.h (HAVE_TCATTR):
82 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
83 systty.h defines it when HAVE_TERMIOS is defined.
84
ff2de6d2 852010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 86
b43c883c 87 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 88 terminals: add one-character offset for R2L lines.
b43c883c 89
491a1546
EZ
90 * emacs.c <emacs_version>: Add a comment regarding
91 msdos/mainmake.v2's dependency on the syntax of this declaration.
92
2396cbba
EZ
932010-08-20 Eli Zaretskii <eliz@gnu.org>
94
95 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
96 position for R2L lines by mirroring the pixel position wrt the
97 text are box. Improve commentary.
98
7df6150a
AS
992010-08-20 Andreas Schwab <schwab@linux-m68k.org>
100
101 * image.c (imagemagick_clear_image): Remove debugging output.
102
a2e5caf7
SM
1032010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
104
105 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
106 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
107 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
108 self-insert-face.
109 (syms_of_cmds): Initialize the new vars.
110
20d60baf
JR
1112010-08-19 Jason Rumney <jasonr@gnu.org>
112
cc477da7
JR
113 * w32menu.c (set_frame_menubar): Remove call to undefined function.
114
20d60baf
JR
115 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
116
2c0ac867
J
1172010-08-19 Jan Djärv <jan.h.d@swipnet.se>
118
119 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
120
93352106
EZ
1212010-08-18 Eli Zaretskii <eliz@gnu.org>
122
123 * xterm.c (x_draw_bar_cursor):
124 * w32term.c (x_draw_bar_cursor): If the character under cursor is
125 R2L, draw the bar cursor on its right rather than on its left.
126
c785836d
SM
1272010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
128
0193499f
SM
129 * eval.c (Fdefmacro): Only obey one declaration.
130
c785836d
SM
131 * casefiddle.c (casify_region): Setup gl_state.
132
9cb728a5
J
1332010-08-18 Jan Djärv <jan.h.d@swipnet.se>
134
135 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
136
e1e18511
J
1372010-08-18 Jan Djärv <jan.h.d@swipnet.se>
138
139 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
140
64cb6c78
J
1412010-08-18 David De La Harpe Golden <david@harpegolden.net>
142
143 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
144 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
145 QPRIMARY => NXPrimaryPboard.
146 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
147 NXPrimaryPboard => QPRIMARY.
148 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
149 NXSecondaryPboard = SecondarySelection.
150 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
151
0c9b8993
GM
1522010-08-18 Joakim Verona <joakim@verona.se>
153
154 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
155 defined:
156 (imagemagick_image_p): New function to test for ImageMagic image.
157 (imagemagick_load): New function to load ImageMagick image.
158 (imagemagick_load_image): New function, helper for imagemagick_load.
159 (imagemagick-types): New function.
160 (Qimagemagick): New Lisp_object.
161 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 162
c3554f68
SM
1632010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
164
165 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
166 is a string.
167
1ff2e434
J
1682010-08-17 Jan Djärv <jan.h.d@swipnet.se>
169
170 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
171 x_set_tool_bar_position handler.
172
0cc56427
EZ
1732010-08-17 Eli Zaretskii <eliz@gnu.org>
174
175 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
176 x_set_tool_bar_position handler, needed to support changes from
177 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
178
e45a249b
JD
1792010-08-16 Jan Djärv <jan.h.d@swipnet.se>
180
921242c6
J
181 * nsselect.m: include keyboard.h for QPRIMARY, remove its
182 declaration (Bug#6863).
573d150b 183 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 184
e45a249b
JD
185 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
186
187 * keyboard.h (QPRIMARY): Declare (Bug#6864).
188
7c23dd44
CY
1892010-08-16 Chong Yidong <cyd@stupidchicken.com>
190
191 * keyboard.c (command_loop_1): Avoid setting selection twice,
192 since it's done in deactivate-mark as well.
193 (Vselect_active_regions): Change default to t. Replace `lazy'
194 with non-default value `only', meaning only set PRIMARY for
195 temporarily active regions.
196
197 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
198 select-active-regions.
199
0005830c
J
2002010-08-15 Jan Djärv <jan.h.d@swipnet.se>
201
202 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
203 isn't a string.
204
603dfc72
AS
2052010-08-15 Andreas Schwab <schwab@linux-m68k.org>
206
207 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
208
c25ce9d0
J
2092010-08-15 Jan Djärv <jan.h.d@swipnet.se>
210
c3554f68
SM
211 * keyboard.c (parse_tool_bar_item): malloc buf.
212 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
213 new_lbl (Bug#6855).
c25ce9d0 214
5872c762
EZ
2152010-08-14 Eli Zaretskii <eliz@gnu.org>
216
b236615c
EZ
217 * xterm.c (x_draw_stretch_glyph_string):
218 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
219 the cursor on the right edge of the stretch glyph.
220
c3554f68
SM
221 * xdisp.c (window_box_right_offset, window_box_right):
222 Fix commentary.
b236615c 223
5872c762
EZ
224 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
225 direction when point is inside a run of whitespace characters.
226
227 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
228
e66f9a1b
JR
2292010-08-14 Jason Rumney <jasonr@gnu.org>
230
231 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
232
79d6f59e
CY
2332010-08-14 Chong Yidong <cyd@stupidchicken.com>
234
235 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
236
1c9b4129
JR
2372010-08-13 Jason Rumney <jasonr@gnu.org>
238
239 * w32menu.c (simple_dialog_show): Use unicode message box if available.
240 (MessageBoxW_Proc): New function typedef.
241 (unicode-message-box): New function pointer.
242 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
243
2b4e6277
J
2442010-08-13 Jan Djärv <jan.h.d@swipnet.se>
245
246 * frame.h (Qtool_bar_position): Declare.
247
248 * xfns.c (Fx_create_frame): Call x_default_parameter for
249 Qtool_bar_position.
250
94c97d85
EZ
2512010-08-13 Eli Zaretskii <eliz@gnu.org>
252
8ee81892
EZ
253 * unexcoff.c: Remove the parts used when "emacs" is not defined.
254 (report_error, report_error_1): Ditto.
255 (write_segment): Remove "#if 0" unused code.
256 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
257 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
258 (start_of_text): Remove unused function (was used only if NO_REMAP
259 was NOT defined).
260
891ef8f7
EZ
261 * msdos.c (IT_set_face): Fix format string to match argument
262 types.
263 (IT_write_glyphs, IT_note_mode_line_highlight)
264 (IT_set_frame_parameters): Remove unused variables.
265 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
266 (IT_set_terminal_modes): Disambiguate expression in if clause.
267 (Fmsdos_remember_default_colors): Return Qnil.
268 (IT_set_frame_parameters): Add parens to disambiguate boolean
269 expression for logging the cursor type to termscript.
270 (keyboard_layout_list, keypad_translate_map)
271 (grey_key_translate_map): Add braces in inner initializers.
272 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
273 (dos_rawgetc): Remove unused label.
274 (XMenuActivate): Add braces to remove ambiguous `else'.
275 (dos_ttraw): Always return a value.
276 (spawnve): Declare.
277 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
278
279 * dosfns.h (x_set_title): Declare.
280
281 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
282 Remove unused variables.
283
284 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
285 variables.
286 (init_dosfns): Declare get_lim_data.
287 (system_process_attributes): Declare Fget_internal_run_time.
288
38e41e0e
EZ
289 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
290 list to be consistent with menu.h.
291
94c97d85
EZ
292 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
293 warnings due to mixing of "char *" and "const char *".
294
c5683ceb
SM
2952010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
296
297 Introduce a new comment style "c" flag.
298 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
299 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
300 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
301 (syntax_prefix_flag_p): New function.
302 (Fstring_to_syntax): Understand new "c" flag.
303 (Finternal_describe_syntax_value): Recognize new flag; use the
304 SYNTAX_FLAGS_* macros.
305 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
306 comment style to accomodate the new styles.
307 (back_comment, forw_comment, Fforward_comment, scan_lists)
308 (scan_sexps_forward): Update code to obey the new comment style flag.
309
310 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
311
312 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
313
7aee76f4
J
3142010-08-11 Jan Djärv <jan.h.d@swipnet.se>
315
3a46642b
J
316 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
317 first.
94dff98f 318 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
319
320 * gtkutil.h (xg_check_special_colors): Declare.
321
322 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
323 (xg_create_frame_widgets): Connect theme name changes to
324 style_changed_cb.
325
42ca4633
J
326 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
327 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
328 (x_term_init): Use char[] display_opt and name_opt instead of
329 string literal. file is const char*.
330
331 * xsmfns.c (NOSPLASH_OPT): Change to char[].
332 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
333 props. Free them at the end.
334
335 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
336
c5683ceb
SM
337 * xrdb.c (get_system_app): Make path const and use char *p for
338 non-const char.
42ca4633
J
339
340 * xmenu.c (Fx_popup_dialog): error_name is const char*.
341 (xmenu_show): error parameter is const char **. pane_string is const
342 char *.
343 (button_names): Is const char *.
344 (xdialog_show): error_name and pane_string is const.
345
346 * process.h (synch_process_death): Is const char*.
347
348 * w32menu.c (w32_menu_show):
349 * nsmenu.m (ns_menu_show): error parameter is const char **.
350
351 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
352 is const char **.
353
354 * menu.c (Fx_popup_menu): error_name is const.
355
356 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
357 with unsigned char and XtPointer with void *.
358
359 * gtkutil.h: Replace widget_value with struct _widget_value.
360 (enum button_type, struct _widget_value): Remove and use the one from
361 keyboard.h.
362
363 * gtkutil.c (get_utf8_string): Always return an allocated string.
364 Parameter is const.
365 (create_dialog, xg_create_one_menuitem, create_menus)
366 (xg_item_label_same_p, xg_update_menu_item): Free result from
367 get_utf8_string.
368 (xg_separator_p, xg_item_label_same_p): label is const.
369
370 * font.h (font_open_by_name): Make name const.
371
372 * font.c (font_open_by_name): Make name const.
373
374 * floatfns.c (matherr): Use a const char* variable for x->name.
375
376 * emacs.c (main): Pass char[] to putenv instead of literal.
377
378 * callproc.c (synch_process_death): Make const.
379 (Fcall_process): Make signame const.
380
9c5bd55a
J
381 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
382 (addDisplayItemWithImage): Use const char*.
383
384 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
385 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
386
387 * nsfont.m (ns_descriptor_to_entity): Use const char*.
388
389 * keyboard.h (_widget_value): name, value and key are const char*.
390
7aee76f4
J
391 * unexmacosx.c (unexec_error): Use const char *.
392
09d93395
DN
3932010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
394
395 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 396 (font_parse_name, font_open_by_name):
09d93395 397 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 398 (font_parse_name, font_open_by_name): Remove const.
09d93395 399
671d409f
AS
4002010-08-09 Andreas Schwab <schwab@linux-m68k.org>
401
402 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
403 definition.
404
405 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
406 * m/amdx86-64.h: Likewise.
407 * m/arm.h: Likewise.
408 * m/hp800.h: Likewise.
409 * m/ia64.h: Likewise.
410 * m/ibmrs6000.h: Likewise.
411 * m/ibms390.h: Likewise.
412 * m/intel386.h: Likewise.
413 * m/iris4d.h: Likewise.
414 * m/m68k.h: Likewise.
415 * m/macppc.h: Likewise.
416 * m/mips.h: Likewise.
417 * m/sh3.h: Likewise.
418 * m/sparc.h: Likewise.
419 * m/template.h: Likewise.
420 * m/vax.h: Likewise.
421 * m/xtensa.h: Likewise.
422 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
423 WORDS_BIG_ENDIAN.
424 * lisp.h: Likewise.
425 * md5.c: Likewise.
426 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
427
8ea90aa3
DN
4282010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
429
430 Use const char* instead of char*.
431 Reduce the number of warnings with -Wwrite-strings.
432 * xrdb.c (get_environ_db, get_system_name):
433 * unexelf.c (find_section):
434 * term.c (string_cost, string_cost_one_line, per_line_cost)
435 (get_named_tty, init_tty):
436 * sysdep.c (sys_subshell):
437 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
438 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
439 * search.c (Freplace_match):
440 * process.c (Fmake_network_process, send_process, init_process):
441 * lread.c (Fload, init_lread):
442 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
443 * keyboard.c (parse_tool_bar_item, struct event_head):
444 * gtkutil.h (xg_get_font_name):
445 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
446 (make_widget_for_menu_item, make_menu_item, create_menus)
447 (xg_make_tool_item):
448 * font.c (parse_matrix, font_parse_name):
449 * floatfns.c (rounding_driver, float_error_fn_name):
450 * filelock.c (get_boot_time_1, lock_file_1):
451 * fileio.c (barf_or_query_if_file_exists, check_writable):
452 * editfns.c (get_system_name, get_operating_system_release)
453 (Fencode_time, Fset_time_zone_rule):
454 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
455 * buffer.c (defvar_per_buffer): Use const.
456
7815fe19 4572010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5
KH
458
459 * charset.c: Include <stdlib.h>
460 (struct charset_sort_data): New struct.
461 (charset_compare): New function.
462 (Fsort_charsets): New funciton.
463 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
464
465 * coding.c (decode_coding_iso_2022): Fix checking of dimension
466 number in CTEXT extended segment.
467
7815fe19 4682010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
469
470 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
471 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
472
7815fe19 4732010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
474
475 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
476 (Fhash_table_size): Fix typos in docstrings.
477 (Fmake_hash_table): Doc fix.
478
7815fe19 4792010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
480
481 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
482 Doc fix (bug#5625).
483
7815fe19 4842010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
485
486 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
487 the MSDOS definition.
488
1b6d8cf0
DN
4892010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
490
675e2c69
DN
491 Use const char* instead of char*.
492 * xterm.c (x_create_toolkit_scroll_bar):
493 * xfont.c (xfont_list_pattern):
494 * xfns.c (x_default_scroll_bar_color_parameter)
495 (xic_create_fontsetname, x_default_font_parameter)
496 (x_screen_planes):
497 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
498 (store_mode_line_string, decode_mode_spec, display_string):
499 * menu.c (digest_single_submenu):
500 * keymap.h (initial_define_key, initial_define_lispy_key):
501 * keymap.c (initial_define_key, initial_define_lispy_key):
502 * image.c (image_error, image_keyword):
503 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
504 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
505 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
506 (ftfont_list, ftfont_match):
507 * frame.c (frame_parm_table):
508 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
509 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
510 (font_add_log, font_deferred_log):
511 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
512 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
513 (font_add_log, font_deferred_log):
514 * emacs.c (argmatch):
515 * dispextern.h (struct it):
516 * coding.c (ENCODE_DESIGNATION):
517 * charset.c (define_charset_internal): Use const.
518
25717ca1
DN
519 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
520
c5683ceb
SM
521 * xrdb.c: Remove include guard.
522 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
523 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
524 realloc->xrealloc instead of using #defines.
525
efb41e21
EZ
5262010-08-08 Eli Zaretskii <eliz@gnu.org>
527
cd21226d 528 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
529 * editfns.c (Fline_beginning_position, Fline_end_position):
530 State in the doc strings that start and end of line are in the
531 logical order.
cd21226d 532
efb41e21
EZ
533 * xdisp.c (display_line): Move the handling of overlay arrow after
534 the call to find_row_edges. (Bug#6699)
535
746812d9
CY
5362010-08-07 Chong Yidong <cyd@stupidchicken.com>
537
538 * keyboard.c (command_loop_1):
539 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
540
9852377f
CY
5412010-08-07 Chong Yidong <cyd@stupidchicken.com>
542
543 * insdel.c (prepare_to_modify_buffer): Save active region text to
544 Vsaved_region_selection.
545
546 * xselect.c (QPRIMARY): Move to keyboard.c.
547
548 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
549 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
550 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 551
0e9c8657
JB
5522010-08-07 Juanma Barranquero <lekktu@gmail.com>
553
554 * alloc.c (lisp_malloc):
555 * buffer.c (set_buffer_internal, set_buffer_internal_1):
556 * charset.h (emacs_mule_charset):
557 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
558 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
559 (bitch_at_user):
560 * lisp.h (Fcheck_coding_system, Fget_text_property)
561 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
562 Remove duplicate declarations.
563
648801d1
DN
5642010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
565
32bc6709
DN
566 * process.c: Simplify include logic.
567
3ef1d108
DN
568 * keyboard.h (quit_char): Add declaration.
569 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
570 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
571 Add declarations.
3ef1d108
DN
572 * sysdep.c:
573 * w32.c: Remove the above declarations.
574
97ec208f
DN
575 Remove extern declarations in .c files, .h files have them.
576 * xterm.c:
577 * xdisp.c:
97ec208f
DN
578 * msdos.c:
579 * image.c:
580 * gtkutil.c:
581 * fileio.c:
582 * eval.c: Remove declarations.
583
94eed851
DN
584 * frame.c (frame_params): Make const.
585
36e053eb
DN
586 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
587
0e843971
DN
588 * emacs.c (emacs_copyright, emacs_version): Make static.
589 (Vinitial_window_system, Vauto_save_list_file_name)
590 (Vinhibit_redisplay): Remove declarations.
591 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
592 for AIX.
593
648801d1
DN
594 Use const for some arrays and functions.
595 * xterm.h (xg_set_icon_from_xpm_data):
596 * xfns.c (xg_set_icon_from_xpm_data):
597 * term.c (fkeys):
598 * keyboard.c (lispy_accent_keys, lispy_function_keys)
599 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
600 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
601 (frame.c frame_parms):
602 * emacs-icon.h (gnu_xpm_bits):
603 * callint.c (callint_argfuns): Use const.
604
8646d999
J
6052010-08-06 Jan Djärv <jan.h.d@swipnet.se>
606
607 * sysdep.c: Move include term.h last of includes (Bug#6812).
608
cb4545ad
EZ
6092010-08-06 Eli Zaretskii <eliz@gnu.org>
610
611 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
612
613 * msdos.c (IT_display_cursor): Log cursor position on termscript.
614
615 * .gdbinit (pgx): Display the avoid_cursor_p flag.
616
da7e2be6
JB
6172010-08-06 Juanma Barranquero <lekktu@gmail.com>
618
619 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
620
3d608a86
J
6212010-08-06 Jan Djärv <jan.h.d@swipnet.se>
622
7908fb60
J
623 * xterm.h (x_get_focus_frame): Declare.
624
625 * keyboard.h (poll_for_input_1): Unconditionally declare.
626
4094bf36
J
627 * nsterm.h (x_set_menu_bar_lines): Declare.
628
629 * window.c: Don't include menu.h, it depends on lots of other .h-files.
630
3d608a86
J
631 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
632
633 * window.c: Include menu.h.
634
635 * unexmacosx.c (print_region_list, print_regions)
636 (build_region_list, find_emacs_zone_regions)
637 (unexec_regions_merge, read_load_commands, dump_it)
638 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
639
640 * term.c: Check HAVE_SYS_IOCTL_H.
641
686b968e 642 * sysdep.c: Check HAVE_TERM_H.
3d608a86 643
686b968e 644 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
645
646 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
647 (ns_ring_bell, ns_defined_color, hide_hourglass)
648 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
649 Convert to ANSI C prototypes.
650 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
651 before code.
652
653 * nsterm.h : Include sysselect.h.
654 (x_sync, x_get_focus_frame, x_set_mouse_position)
655 (x_set_mouse_pixel_position, x_make_frame_visible)
656 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
657 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
658 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
659 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 660 Declare.
3d608a86
J
661
662 * nsmenu.m (popup_activated, name_is_separator)
663 (syms_of_nsmenu): Convert to ANSI C prototypes.
664 (runMenuAt): Prototypes and move declarations before code.
665
666 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
667
668 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
669 prototypes.
670
671 * nsfns.m (have_menus_p, ns_display_info_for_name)
672 (x_set_cursor_type, ns_appkit_version_str)
673 (ns_appkit_version_int, ns_do_applescript)
674 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
675 (syms_of_nsfns): Convert to ANSI C prototypes.
676
677 * menu.h (x_set_menu_bar_line): Declare.
678 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
679
680 * lisp.h (fmod_float): Declare.
681
682 * image.c (xpm_scan, xpm_make_color_table_v)
683 (xpm_put_color_table_v, xpm_get_color_table_v)
684 (xpm_make_color_table_h, xpm_put_color_table_h)
685 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
686 (xpm_load): Convert to ANSI C prototypes.
687
688 * emacs.c: Include nsterm.h if HAVE_NS.
689
690 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
691
fce70521
DN
6922010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
693
694 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
695 subprocesses, only MSDOS does not define HAVE_SOCKETS.
696 (socket_options): Use const char* for name.
697
a11889ab
JB
6982010-08-06 Juanma Barranquero <lekktu@gmail.com>
699
700 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
701
702 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
703 Don't declare xmalloc_widget_value and digest_single_submenu.
704
705 * w32font.c (Qlatin): Remove declaration.
706
707 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
708
c95b508f 709 * dired.c (compile_pattern): Restore declaration.
a11889ab 710
6254cdda
DN
7112010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
712
04bab72c
DN
713 Remove extern declarations in .c files, .h files have them.
714 * data.c:
715 * dired.c:
716 * editfns.c:
717 * filelock.c:
718 * fns.c:
719 * font.c:
720 * fontset.c:
721 * frame.c:
722 * fringe.c:
723 * ftfont.c:
724 * gtkutil.c:
725 * indent.c:
726 * keyboard.c:
727 * keymap.c:
728 * lread.c:
729 * menu.c:
730 * print.c:
731 * search.c:
732 * sound.c:
733 * window.c:
734 * xdisp.c:
735 * xfaces.c:
736 * xfns.c:
737 * xfont.c:
738 * xftfont.c:
739 * xmenu.c:
740 * xterm.c: Remove declarations.
741
dff94ed5
DN
742 Cleanup syssignal.h.
743 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
744 (main_thread): Move down to remove #ifdef.
745 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
746 Remove conditional definition following unconditional ones.
747
99f3388e
DN
748 * lisp.h: Remove HAVE_SHM code, unused.
749 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
750 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
751 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
752 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
753 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
754 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
755 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
756 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
757 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
758 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
759 (Qwindow_scroll_functions, Vafter_load_alist)
760 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
761 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
762 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
763 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
764 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
765 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
766 (initial_argv, last_nonmenu_event, load_in_progress)
767 (noninteractive_need_newline, scroll_margin): Add declarations.
768
769 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
770 declarations, menu.h has them.
771 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
772 (Vinput_method_function, Qinput_method_function)
773 (Qevent_symbol_element_mask, last_event_timestamp):
774 * dispextern.h (Voverflow_newline_into_fringe):
775 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
776 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
777 (syms_of_w32font, syms_of_nsfont):
778 * fontset.h (find_font_encoding, Qlatin):
779 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
780 (Vtool_bar_mode, set_frame_menubar):
781 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
782 * xterm.h (Qx_gtk_map_stock):
783 * keymap.h (meta_prefix_char): Add declarations.
784
9f5dd6f2
DN
785 * term.c: Remove dead code.
786
6254cdda
DN
787 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
788 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
789 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
790 which is what was there before BSD_PGRPS was removed.
791
29cf3e20
EZ
7922010-08-05 Eli Zaretskii <eliz@gnu.org>
793
794 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
795
796 * unexcoff.c: Renamed from unexec.c.
797
aaa0a19a
SM
7982010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
799
800 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
801
8d1d9587
JB
8022010-08-03 Johan Bockgård <bojohan@gnu.org>
803
804 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 805 (Bug#6744)
8d1d9587 806
9a747ba6
JD
8072010-08-02 Jan Djärv <jan.h.d@swipnet.se>
808
4d464ae4
JD
809 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
810 to TRUE if depth of screen is < 16.
811
ac01763e
JD
812 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
813 USE_GTK_TOOLTIP.
e0d62a9b
JB
814 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
815 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 816 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
817 USE_GTK_TOOLTIP.
818 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
819
820 * xterm.h (USE_GTK_TOOLTIP): New define.
821 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
822
9a747ba6
JD
823 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
824 to Control-D (Bug#6771).
825
7b0815ba
JB
8262010-08-02 Juanma Barranquero <lekktu@gmail.com>
827
828 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
829 Wording by Drew Adams <drew.adams@oracle.com>.
830
aa1859f5
J
8312010-08-01 Jan Djärv <jan.h.d@swipnet.se>
832
833 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
834 ttip_lbl.
835
836 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
837 calling gtk_widget_queue_draw.
838 (x_free_frame_resources): Call xg_free_frame_widgets.
839
840 * xfns.c (x_gtk_use_system_tooltips): New variable.
841 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
842 new gtkutil tooltip functions to show the tooltip.
843 (Fx_hide_tip): Call xg_hide_tooltip.
844 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
845
846 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
847 (xg_show_tooltip, xg_hide_tooltip): Declare.
848
849 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
850 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
851 New functions.
aa1859f5
J
852 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
853 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
854 Remove code that is commented out.
855
76417ef4
SM
8562010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
857
858 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
859
16041401
CY
8602010-07-31 Chong Yidong <cyd@stupidchicken.com>
861
862 * xselect.c (x_own_selection): Use list4.
863
2c09a58f
DN
8642010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
865
866 * buffer.c (Qwindow): Do not define, already defined in data.c.
867 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
868
59df9fdd 8692010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 870
59df9fdd
JB
871 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
872 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
873 * config.in: Undef HAVE_DIRENT_H.
1c97e857 874 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 875 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 876
1b231651
DN
8772010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
878
879 Rename s/usg5-4.h -> s/usg5-4-common.h.
880 * s/usg5-4.h: Rename file to ...
881 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
882 * s/unixware.h:
883 * s/sol2-6.h:
884 * s/irix6-5.h: Update includes accordingly.
885
bfeabdc3
JD
8862010-07-29 Jan Djärv <jan.h.d@swipnet.se>
887
2ebf1083
J
888 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
889
bfeabdc3 890 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
891 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
892 Remove toolbar_height.
893 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
894 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
895 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
896 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
897
898 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
899
900 * xfns.c (x_set_tool_bar_position): New function.
901 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
902 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 903 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
904
905 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
906 and FRAME_TOOLBAR_LEFT_WIDTH.
907
908 * gtkutil.h (xg_change_toolbar_position): Declare.
909
910 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
911 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
912 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
913 (xg_create_frame_widgets): Create a hobox for placing widgets
914 vertically. Use gtk_box_pack_start.
915 (xg_height_or_width_changed): Renamed from xg_height_changed.
916 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
917 (xg_update_frame_menubar, free_frame_menubar): Change to
918 xg_height_or_width_changed.
919 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
920 size correctly. Remove hardcoded 4, instead use handlebox size -
921 toolbar size.
922 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 923 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
924 (xg_pack_tool_bar): POS is a new parameter.
925 Set orientation of tool bar based on pos.
926 Only make handlebox_widget if NULL.
927 Check if tool bar goes to vbox or hbox depending on pos.
928 (xg_update_tool_bar_sizes): New function.
686b968e 929 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
930 height, call xg_update_tool_bar_sizes instead.
931 (free_frame_tool_bar): Remove from hbox or vbox depending on
932 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
933 (xg_change_toolbar_position): New function.
934
935 * frame.h (struct frame): Add tool_bar_position.
936 (Qbottom): Declare.
937
938 * frame.c (Qtool_bar_position): New variable.
939 (make_frame): Set tool_bar_position to Qtop.
940 (frame_parms): Add tool-bar-position.
941 (x_report_frame_params): Store tool_bar_position.
942 (x_set_fringe_width): Reset wm size hint after fringe changes.
943
26469a38
DN
9442010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
945
946 Make lisp_time_argument declaration work on all systems.
947 * lisp.h (lisp_time_argument): Move declaration ...
948 * systime.h (lisp_time_argument): ... here
949 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
950
8848b728
JD
9512010-07-29 Jan Djärv <jan.h.d@swipnet.se>
952
953 * vm-limit.c (POINTER): Add typedef for it.
954 (start_of_data): Change return type from POINTER to char *.
955
956 * frame.h (Qtty_color_mode): Move declaration out of ifdef
957 HAVE_WINDOW_SYSTEM.
958
76fd1ee9
DN
9592010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
960
0441987e
DN
961 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
962 Remove reference to __osf__, unused.
963
56a000c7
DN
964 * mem-limits.h: Remove duplicated includes.
965 (NULL): Remove definition, unused.
966 (POINTER): Remove definition.
967 (start_of_data): Use char* in prototype, as the function
968 definition does.
969
e6cba650
DN
970 Remove extern declarations from .c files, and them to .h files.
971 * keyboard.h (Qhelp_echo, waiting_for_input)
972 (input_available_clear_time, ignore_mouse_drag_p)
973 (Vdouble_click_time, real_this_command, Vthis_original_command):
974 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
975 (Voverriding_local_map_menu_flag):
976 * lisp.h (Qinteractive_form, use_file_dialog)
977 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
978 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
979 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
980 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
981 (Qfunction, debug_on_next_call, Qfield)
982 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
983 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
984 (Qfile_directory_p, Qinsert_file_contents)
985 (Qcompletion_ignore_case, Qcompletion_ignore_case)
986 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
987 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
988 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
989 (Qminibuffer_prompt)
990 (Vtemporary_file_directory,char_ins_del_vector, Qface):
991 * xterm.h (gray_bitmap_width, gray_bitmap_height)
992 (gray_bitmap_bits, xic_create_fontsetname):
993 * coding.h (Vtranslation_table_for_input): Add extern declarations.
994
995 * xsmfns.c (Vuser_login_name):
996 * xrdb.c (Vdouble_click_time):
997 * xfaces.c (xic_create_fontsetname):
998 * w32select.c (waiting_for_input):
999 * print.c (minibuffer_auto_raise):
1000 * msdos.c (Qhelp_echo):
1001 * macros.c (real_this_command):
1002 * keymap.c (Voverriding_local_map):
1003 * xterm.c (poll_for_input_1, gray_bitmap_width)
1004 (gray_bitmap_height, gray_bitmap_bits;
1005 * xmenu.c ( Voverriding_local_map)
1006 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1007 (use_file_dialog, Xt_app_con):
1008 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1009 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1010 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1011 (Qtool_bar_lines, ignore_mouse_drag_p):
1012 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1013 (Qrear_nonsticky, nconc2):
1014 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1015 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1016 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1017 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1018 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1019 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1020 (gc_in_progress):
1021 * doc.c (Voverriding_local_map, Qremap):
1022 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1023 (Vcompletion_regexp_list):
1024 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1025 (Qcompletion_ignore_case):
1026 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1027 (Vhistory_length, Vthis_original_command, real_this_command)
1028 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1029 * image.c (Qrisky_local_variable):
1030 * fontset.c (QCname):
1031 * fns.c (minibuffer_auto_raise, QCname):
1032 * dispnew.c (char_ins_del_cost):
1033 * composite.c (font_fill_lglyph_metrics):
1034 * cmds.c (Qface, Vtranslation_table_for_input):
1035 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1036 * ccl.c (charset_unicode):
1037 * callproc.c (Vtemporary_file_directory):
1038 * buffer.c (emacs_strerror): Remove extern declarations.
1039
1040 * data.c (Qwindow): Make non-static, used from other files too.
1041 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1042
76fd1ee9
DN
1043 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1044 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1045 * s/usg5-4.h (COFF):
1046 * s/template.h:
1047 * s/msdos.h (COFF, NO_REMAP):
1048 * s/ms-w32.h (NO_REMAP):
1049 * s/hpux10-20.h (NO_REMAP):
1050 * m/sparc.h (SEGMENT_MASK):
1051 * m/m68k.h (NO_REMAP):
1052 * m/intel386.h (SEGMENT_MASK):
1053 * m/arm.h (NO_REMAP):
1054 * m/alpha.h (COFF):
1055 * m/template.h: Remove references to unused defines.
1056
8a52f00a
JD
10572010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1058
1059 * xsettings.c (Ftool_bar_get_system_style): Also check for
1060 Qtext_image_horiz.
1061
1062 * xdisp.c (Qtext_image_horiz): Define.
1063 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1064 to documentation of tool-bar-style.
8a52f00a
JD
1065
1066 * lisp.h (Qtext_image_horiz): Declare.
1067
1068 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1069 style text_image_horiz.
1070
89dc303e
DN
10712010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1072
60799703
DN
1073 * emacs.c (Fkill_emacs): Remove return statement.
1074
37254dc1
DN
1075 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1076 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1077 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1078 local extern declarations.
1079
71c7345a
DN
1080 * xmenu.c: Do not included lwlib.h, not needed.
1081
6ba577cb
DN
1082 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1083
fdb183d6
DN
1084 * process.c: Move definitions earlier to minimize #ifdefs.
1085
1086 * xterm.h (x_get_customization_string, x_load_resources)
1087 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1088 (x_check_errors, x_property_data_to_lisp, defined_color)
1089 (xic_set_xfontset, x_defined_color): Use const.
1090
1091 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1092 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1093
1094 * xselect.c (selection_data_to_lisp_data)
1095 (x_property_data_to_lisp):
1096 * xrdb.c (x_get_string_resource, file_p)
1097 (x_get_customization_string, magic_file_p, search_magic_path)
1098 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1099 (x_get_string_resource): Use const.
1100
1101 * xfns.c: Include xlwmenu.h when USE_LUCID.
1102 (x_defined_color, xic_set_xfontset): Use const.
1103 (Fx_hide_tip): Remove local extern declaration.
1104
1105 * xfaces.c (Qmouse_face): Remove declaration.
1106 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1107 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1108
1109 * xdisp.c (do_mouse_tracking): Remove declaration.
1110 (add_to_log): Use const.
1111
1112 * minibuf.c (Qmouse_face): Remove declaration.
1113
1114 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1115
1116 * keyboard.h (do_mouse_tracking): Add declaration.
1117
1118 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1119 (QCdata, QCtype, Qcenter): Remove declarations.
1120
1121 * frame.c (x_get_resource_string, x_get_string_resource)
1122 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1123 (x_default_parameter): Use const.
1124
1125 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1126 (QCheight, QCsize, QCname): Remove declarations.
1127
1128 * emacs.c (main): Remove local extern declaration.
1129
1130 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1131 declarations.
1132
1133 * dispnew.c: Remove duplicate #include <unistd.h>.
1134 (update_window, update_frame_1, init_display): Remove local extern
1135 declarations.
1136
1137 * dispextern.h (add_to_log): Remove declaration.
1138 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1139 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1140
1141 * dired.c (scmp): Add const.
1142 (directory_files_internal): Remove local extern declaration.
1143
1144 * data.c (Finteractive_form): Use const.
1145
1146 * composite.c (syms_of_composite): Remove local extern declarations.
1147
1148 * charset.c (add_to_log): Remove declaration.
1149
1150 * character.c (strwidth, parse_str_to_multibyte): Add const.
1151
1152 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1153
1154 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1155
89dc303e 1156 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1157 (Lisp_Subr): Make doc and intspec constant.
1158 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1159 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1160 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1161 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1162 (display_arg): Add declarations.
89dc303e 1163
0ed082fe 11642010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1165
1166 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1167
0ed082fe
JB
1168 * window.c (Fwindow_height): Doc fix (bug#6518).
1169
11702010-07-27 Juanma Barranquero <lekktu@gmail.com>
1171
1172 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1173
ccaf0336
DN
11742010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1175
977105dc
DN
1176 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1177 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1178 functions.
1179
f5ada890
DN
1180 * frame.h (Qtty_color_mode): Add declaration.
1181
ccaf0336
DN
1182 * lisp.h (Ftop_level, Fexit_recursive_edit)
1183 (Fabort_recursive_edit): Mark as NO_RETURN.
1184
dfe3c90f
KH
11852010-07-26 Kenichi Handa <handa@m17n.org>
1186
1187 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1188 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1189
7d383292
JB
11902010-07-26 Juanma Barranquero <lekktu@gmail.com>
1191
1192 * lread.c (unreadpure, mapatoms_1): Make static.
1193
da31e629
JB
11942010-07-25 Juanma Barranquero <lekktu@gmail.com>
1195
1196 * terminfo.c (tparam): Fix prototype of tparm.
1197
7bfa6d77
AS
11982010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1199
dcc19aac
AS
1200 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1201 find start of text segment.
1202 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1203 is defined.
1204
7bfa6d77
AS
1205 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1206
63f9a672
KB
12072010-07-25 Ken Brown <kbrown@cornell.edu>
1208
1209 * vm-limit.c (check_memory_limits): Fix previous change;
1210 accidentally reverted an earlier change.
1211
24933075
KB
12122010-07-25 Ken Brown <kbrown@cornell.edu>
1213
1214 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1215 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1216
361358ea
JB
12172010-07-25 Juanma Barranquero <lekktu@gmail.com>
1218
1219 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1220 * dired.c (opendir, readdir): Fix prototypes.
1221 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1222 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1223 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1224 (telldir): Remove declaration.
1225 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1226 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1227 * syssignal.h (strsignal): Fix prototype.
1228 * term.c (tparam): Fix prototype.
1229 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1230 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1231 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1232 and __morecore.
1233 * w32gui.h (XParseGeometry): Fix prototype.
1234 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1235 * w32term.c (my_set_focus): Declare inside #if 0.
1236 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1237 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1238 (drain_message_queue, get_next_msg, post_msg, parse_button)
1239 (ClipboardSequence_Proc): Fix prototypes.
1240 (wait_for_sync): Remove declaration.
1241
630b9592
JB
12422010-07-24 Juanma Barranquero <lekktu@gmail.com>
1243
1244 * w32fns.c (w32_to_x_color): Remove, unused.
1245
6a0d6611
AS
12462010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1247
1248 * lisp.h: Remove leftover P_.
1249
4e8608ff
DN
12502010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1251
1252 * ecrt0.c, unexalpha.c: Remove files, unused.
1253
c8197983
AS
12542010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1255
1256 * cmds.c (internal_self_insert): Make static.
1257 * lisp.h (internal_self_insert): Remove declaration.
1258
97b372d7
JB
12592010-07-23 Juanma Barranquero <lekktu@gmail.com>
1260
33ac0414
JB
1261 * alloc.c (free_float):
1262 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1263 * frame.c (delete_frame_handler):
1264 * ralloc.c (reorder_bloc):
1265 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1266 Remove unused static functions.
1267
94da8397
JB
1268 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1269 it is called only from NS code.
1270
2e6c8532
JB
1271 * w32term.c (my_set_focus): #ifdef away; it is called only from
1272 "#ifdef 0" code.
1273
97b372d7
JB
1274 * w32fns.c (x_edge_detection):
1275 * xfaces.c (may_use_scalable_font_p):
1276 Remove obsolete static declarations.
1277
7c3320d8
JB
12782010-07-20 Juanma Barranquero <lekktu@gmail.com>
1279
1280 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1281 (emacs_blocked_realloc, uninterrupt_malloc):
1282 * fringe.c (w32_reset_fringes):
1283 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1284 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1285 * sound.c (be2hs, do_play_sound):
1286 * vm-limit.c (get_lim_data, ret_lim_data):
1287 * w32term.c (x_free_frame_resources):
1288 * xfaces.c (x_create_gc, x_free_gc):
1289 Convert definitions to standard C.
1290
d5273788
SM
12912010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1292
1293 * eval.c (Feval, Ffuncall): Use the new names.
1294
1295 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1296 (DEFUN): Add braces around the union initialisation and use ## to
1297 specify the right union alternative and avoid a cast.
1298
8d16a259
JB
12992010-07-18 Juanma Barranquero <lekktu@gmail.com>
1300
1301 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1302
3b8eff32
CY
13032010-07-17 Chong Yidong <cyd@stupidchicken.com>
1304
1305 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1306
499322ce
J
13072010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1308
1309 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1310 is related to the menu bar (Bug#6499).
a628ad9d 1311 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1312
f6003da5 13132010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1314
1315 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1316
1317 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1318
1319 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1320 i.e. don't put back ButtonRelease (Bug#6608).
1321
1322 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1323 instead of Window. Call xg_event_is_for_menubar when
1324 USE_GTK (Bug#6499).
1325
1326 * gtkutil.h (xg_event_is_for_menubar): Declare.
1327
1328 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1329
f6003da5 13302010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1331
1332 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1333 when it's the same as the old foreground. (Bug#6609)
1334
23243f29
J
13352010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1336
1337 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1338 widget is non-null (Bug#6645).
1339
2b23d2a6
AS
13402010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1341
01b564ff
AS
1342 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1343 Convert old-style definition.
1344
2b23d2a6
AS
1345 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1346 timestamp argument.
1347
c4affd2c
EZ
13482010-07-15 Eli Zaretskii <eliz@gnu.org>
1349
1350 * fringe.c (update_window_fringes): Restore mistakenly reverted
1351 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1352
cf28cebc
J
13532010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1354
1355 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1356 (SET_SAVED_KEY_EVENT): Remove (not used).
1357 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1358 remove size parameter.
1359 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1360 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1361 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1362 ButtonRelease.
6b2c4bd9
J
1363 (x_set_window_size_1): scroll_bar_actual_width is always
1364 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1365
1366 * xdisp.c (pending_menu_activation): Remove extern declaration.
1367 (prepare_menu_bars): Remove setting of pending_menu_activation.
1368
1369 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1370 (x_activate_menubar): Set popup_activated_flag for Xt also.
1371 Remove setting of pending_menu_activation.
cf28cebc
J
1372 (set_frame_menubar): Remove check of pending_menu_activation.
1373 Declare menubar_size before code. Correct spelling in comment.
1374
f6c1c771
KH
13752010-07-14 Kenichi Handa <handa@m17n.org>
1376
1377 * font.c (font_open_entity): Cancel previous change.
1378 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1379
20477505
EZ
13802010-07-13 Eli Zaretskii <eliz@gnu.org>
1381
77defa9a
EZ
1382 Remove subprocesses #ifdefs.
1383 * process.c <inhibit_sentinels>: Move to the common part.
1384 (Fwaiting_for_user_input_p): Move to the common part; return nil
1385 if async subprocesses aren't supported.
1386 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1387 MS-DOS. Remove "#ifdef subprocesses".
1388 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1389 (gettimeofday): Remove "#ifdef subprocesses".
1390 (wait_without_blocking): Remove function.
1391 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1392 Remove "#ifdef subprocesses".
1393 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1394 compiled on MS-DOS.
1395 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1396 wait_for_termination on MS-DOS.
1397 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1398 initialization of inhibit_sentinels.
1399 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1400 subprocesses" conditional.
1401 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1402 wait_for_termination, since `buffer' cannot be an integer when
1403 async subprocesses are not supported
1404 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1405 for ifdefing away the call to Fprocess_status.
1406
20477505
EZ
1407 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1408 away the entire body of the function.
1409
b3ffc17c
DN
14102010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1411
01faa934
DN
1412 Remove subprocesses #ifdefs from term.c.
1413 * process.c (add_keyboard_wait_descriptor)
1414 (delete_keyboard_wait_descriptor): Move to common section, do
1415 nothing when subprocesses is not defined.
a628ad9d
JB
1416 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1417 Remove subprocesses #ifdefs.
01faa934 1418
b3ffc17c
DN
1419 Convert maybe_fatal to standard C.
1420 * lisp.h (verror): Declare.
1421 * eval.c (verror): New function containing the code from ...
1422 (error): ... this. Call verror.
1423 * term.c (vfatal): New function containing the code from ...
1424 (fatal): ... this. Call vfatal.
1425 (maybe_fatal): Convert to standard C, use variable number of
1426 arguments. Declare as non-return.
1427 (init_tty): Fix maybe_fatal call.
1428
0521f580
DN
14292010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1430
1431 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1432 (_scroll_bar_note_movement): Convert definitions to standard C.
1433 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1434 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1435
ebd15611
DN
14362010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1437
1438 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1439 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1440 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1441 (xaw_jump_callback, xaw_scroll_callback)
1442 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1443 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1444 definitions to standard C.
1445 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1446 (popup_activate_callback, popup_deactivate_callback)
1447 (menu_highlight_callback, menubar_selection_callback)
1448 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1449 (free_frame_menubar, popup_selection_callback, as)
1450 (create_and_show_popup_menu, dialog_selection_callback)
1451 (create_and_show_dialog):
1452 * xfns.c (hack_wm_protocols, x_window):
1453 * xfaces.c (x_update_menu_appearance):
1454 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1455 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1456 (set_frame_size, update_wm_hints, setup_frame_gcs)
1457 (update_various_frame_slots, update_from_various_frame_slots)
1458 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1459 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1460 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1461
de06a2dd
AS
14622010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1463
a628ad9d 1464 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1465
fc549af9
EZ
14662010-07-12 Eli Zaretskii <eliz@gnu.org>
1467
1468 * process.c (setup_process_coding_systems): Move to the part
1469 shared by non-subprocesses systems, and make its body empty when
1470 subprocesses is not defined.
1471 (close_process_descs): Move to the part shared by non-subprocesses
1472 systems.
1408902e
EZ
1473 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1474 ANSI C.
fc549af9 1475
d5a3eaaf
AS
14762010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1477
1478 * editfns.c (transpose_markers): Convert old-style definition.
1479 * emacs.c (abort, shut_down_emacs, fixup_locale)
1480 (synchronize_system_time_locale)
1481 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1482 * floatfns.c (extract_float, matherr, init_floatfns)
1483 (syms_of_floatfns): Likewise.
1484 * fns.c (make_hash_table): Likewise.
1485 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1486 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1487 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1488 (ftfont_variation_glyphs): Likewise.
1489 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1490 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1491 * lread.c (read_filtered_event): Likewise.
1492 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1493 * process.c (wait_reading_process_output): Likewise.
1494 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1495 * search.c (search_buffer, boyer_moore): Likewise.
1496 * syntax.c (scan_sexps_forward): Likewise.
1497 * xdisp.c (try_scrolling): Likewise.
1498 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1499 (face_at_string_position): Likewise.
1500 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1501 * xselect.c (x_get_window_property, receive_incremental_selection)
1502 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1503 Likewise.
1504 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1505
6f704c76
DN
15062010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1507
ded80a25
DN
1508 * callproc.c (child_setup): Remove subprocesses conditional.
1509 Remove code dealing with SET_EMACS_PRIORITY, unused.
1510
49d937f4 1511 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1512 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1513
1514 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1515 (__do_global_dtors, __main): Use void in definition.
1516 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1517 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1518 the only users from ...
1519 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1520 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1521 (HAVE_VOLATILE): Remove, unused.
1522
6f704c76
DN
1523 Convert more function definitions to standard C.
1524 * xdisp.c (window_box_edges, handle_single_display_spec)
1525 (display_string): Convert definition to standard C.
1526 * scroll.c (do_direct_scrolling, scrolling_1):
1527 * dispnew.c (allocate_matrices_for_frame_redisplay)
1528 (mirrored_line_dance):
1529 * coding.c (code_convert_string):
1530 * charset.c (map_charset_chars):
1531 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1532 (Fregister_ccl_program, Fregister_code_conversion_map):
1533 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1534 (head_table): Make static and const.
1535
e6cfa7c3
AS
15362010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1537
1538 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1539 (PROFILING_LDFLAGS): Set from substitution.
1540 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1541 CFLAGS last.
1542
892dd565
KH
15432010-07-12 Kenichi Handa <handa@m17n.org>
1544
6f2cdcd1
KH
1545 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1546 (shortlisp): Likewise.
1547
892dd565
KH
1548 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1549
1550 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1551 of FONT_ENTITY_INDEX.
1552 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1553 property, get the property value dynamically.
1554 (Ffont_put): Accept font-entity and font-object too.
1555 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1556 return value changed.
1557 (syms_of_font): Adjusted for the above change.
1558
ae96d47a
AS
15592010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1560
c8fc18ee
AS
1561 * blockinput.h: Remove obsolete comment.
1562
89887d67
AS
1563 * lisp.h: Include <stddef.h>.
1564 (OFFSETOF): Don't define.
1565 (VECSIZE): Use offsetof instead of OFFSETOF.
1566 (PSEUDOVECSIZE): Likewise.
1567 * process.c (conv_sockaddr_to_lisp): Likewise.
1568 * alloc.c: Don't include <stddef.h>.
1569 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1570
ae96d47a
AS
1571 * process.c: Remove obsolete comment.
1572
635c0aa1
CY
15732010-07-11 Chong Yidong <cyd@stupidchicken.com>
1574
1575 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1576
a64df650
AS
15772010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1578
8966b757
AS
1579 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1580 index, rindex.
1581 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1582 * editfns.c (Fuser_full_name, Fformat): Likewise.
1583 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1584 * fileio.c (Ffile_symlink_p): Likewise.
1585 * filelock.c (current_lock_owner): Likewise.
1586 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1587 * fontset.c (fontset_pattern_regexp): Likewise.
1588 * lread.c (read1): Likewise.
1589 * sysdep.c (init_system_name): Likewise.
1590 * xfns.c (select_visual): Likewise.
1591 * s/hpux10-20.h (index, rindex): Don't define.
1592 * s/ms-w32.h (index): Likewise.
1593 * s/usg5-4.h: Likewise.
1594
cf237e27
AS
1595 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1596
a8fe7202
AS
1597 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1598 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1599 (egetenv): Likewise.
1600 * doprnt.c (doprnt): Likewise.
1601 * editfns.c (set_time_zone_rule, format2): Likewise.
1602 * emacs.c (decode_env_path): Likewise.
1603 * eval.c (signal_error, error): Likewise.
1604 * insdel.c (replace_range_2): Likewise.
1605 * keyboard.c (cmd_error_internal): Likewise.
1606 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1607 * print.c (write_string, write_string_1, print_error_message):
1608 Likewise.
1609 * vm-limit.c (warn_function, memory_warnings): Likewise.
1610 * xdisp.c (message1, message1_nolog, message_with_string)
1611 (vmessage, message, message_nolog): Likewise.
1612 * emacs.c: Remove duplicate declaration.
1613 * keyboard.h: Likewise.
1614 * lisp.h: Update prototypes.
1615
bb8e180f
AS
1616 * eval.c: Fix indentation problem.
1617
83380e65
AS
1618 * keyboard.c: Include "process.h"
1619
a64df650
AS
1620 * eval.c: Remove obsolete noinline declaration.
1621 * fns.c: Likewise.
1622
6a8033e1
KR
16232010-07-11 Ken Raeburn <raeburn@raeburn.org>
1624
1625 * doprnt.c (doprnt): Take a va_list argument instead of count and
1626 pointer.
1627 * eval.c (error): Change to a standard-C variadic function.
1628 * xdisp.c (vmessage): Renamed from message, made static, and
1629 changed to take a va_list argument.
1630 (message): New variadic wrapper.
1631 (message_nolog): Now a variadic function, calling vmessage.
1632 * lisp.h: Include stdarg.h for va_list.
1633 (doprnt, error, message, message_nolog): Decls updated.
1634
462aa963
EZ
16352010-07-11 Eli Zaretskii <eliz@gnu.org>
1636
1637 * process.c (syms_of_process) <delete-exited-processes>: Define
1638 even if !subprocesses.
1639 (delete_exited_processes): Ditto.
1640
1641 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1642 (delete_exited_processes): Don't define.
1643
48104462
CY
16442010-07-10 Chong Yidong <cyd@stupidchicken.com>
1645
1646 * frame.c (make_frame): Initialize menu_bar_lines and
1647 tool_bar_lines members.
1648 (make_initial_frame, make_terminal_frame): Initialize
1649 menu_bar_lines using value of menu-bar-mode.
1650
1651 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1652
f388c88a
EZ
16532010-07-10 Eli Zaretskii <eliz@gnu.org>
1654
1655 * process.c: Reshuffle #include's. Condition some of the global
1656 and static variables on `subprocesses'.
1657 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1658 Leave only one implementation.
1659 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1660 (kill_buffer_processes, Flist_system_processes)
1661 (Fprocess_attributes, init_process, syms_of_process): Unify the
1662 implementations for with subprocesses and without them.
1663
723f5a07
J
16642010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1665
1666 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1667 correct size for Motif.
1668 (free_frame_menubar): Call x_set_window_size to update frame size.
1669
1670 * xfns.c (x_window): Set borderWidth to 0 for pane and
1671 EmacsFrame. Frame size calculation is wrong otherwise.
1672
2536a4b7
MA
16732010-07-09 Michael Albinus <michael.albinus@gmx.de>
1674
1675 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1676 allows to suppress errors when polling in Emacs' main loop.
1677 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1678 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1679 (Fdbus_method_error_internal, Fdbus_send_signal)
1680 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1681 (Fdbus_register_method): Use it. (Bug#6579)
1682
5842a27b
DN
16832010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1684
1685 * alloc.c: Convert DEFUNs to standard C.
1686 * buffer.c:
1687 * bytecode.c:
1688 * callint.c:
1689 * callproc.c:
1690 * casefiddle.c:
1691 * casetab.c:
1692 * category.c:
1693 * character.c:
1694 * charset.c:
1695 * chartab.c:
1696 * cmds.c:
1697 * coding.c:
1698 * composite.c:
1699 * data.c:
1700 * dbusbind.c:
1701 * dired.c:
1702 * dispnew.c:
1703 * doc.c:
1704 * dosfns.c:
1705 * editfns.c:
1706 * emacs.c:
1707 * eval.c:
1708 * fileio.c:
1709 * filelock.c:
1710 * floatfns.c:
1711 * fns.c:
1712 * font.c:
1713 * fontset.c:
1714 * frame.c:
1715 * fringe.c:
1716 * image.c:
1717 * indent.c:
1718 * insdel.c:
1719 * keyboard.c:
1720 * keymap.c:
1721 * lread.c:
1722 * macros.c:
1723 * marker.c:
1724 * menu.c:
1725 * minibuf.c:
1726 * msdos.c:
1727 * nsfns.m:
1728 * nsmenu.m:
1729 * nsselect.m:
1730 * print.c:
1731 * process.c:
1732 * search.c:
1733 * sound.c:
1734 * syntax.c:
1735 * term.c:
1736 * terminal.c:
1737 * textprop.c:
1738 * undo.c:
1739 * w16select.c:
1740 * w32console.c:
1741 * w32fns.c:
1742 * w32font.c:
1743 * w32menu.c:
1744 * w32proc.c:
1745 * w32select.c:
1746 * window.c:
1747 * xdisp.c:
1748 * xfaces.c:
1749 * xfns.c:
1750 * xmenu.c:
1751 * xselect.c:
1752 * xsettings.c:
1753 * xsmfns.c: Likewise.
1754
d568829b
EZ
17552010-07-08 Eli Zaretskii <eliz@gnu.org>
1756
1757 * process.c (kbd_is_on_hold, hold_keyboard_input)
1758 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1759
52214050
J
17602010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1761
1762 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1763 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1764 unless USE_LUCID.
1765
313d9eb2
DN
17662010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1767
a628ad9d
JB
1768 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1769 declaration.
d8825aa3 1770
295d0d8f
DN
1771 Clean up include guards.
1772 * tparam.c: Remove include guards for config.h, string.h and code
1773 that assumes #ifndef emacs.
1774 * termcap.c:
1775 * unexalpha.c:
1776 * sysdep.c:
1777 * filemode.c:
1778 * filelock.c:
1779 * bidi.c: Likewise.
1780
49d9e6b0
DN
1781 Remove prefix-args.c
1782 * prefix-args.c: Remove file.
1783 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1784 * Makefile.in (temacs${EXEEXT}): Remove references to
1785 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1786 (mostlyclean): Remove reference to prefix-args.
1787 (prefix-args): Remove.
1788
313d9eb2
DN
1789 Simplify cstart_of_data, start_of_code and related code.
1790 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1791 (start_of_data): Merge into start_of_data function.
1792 * sysdep.c (start_of_text): Remove. Move simplified versions of
1793 it in the only users: unexaix.c and unexec.c.
1794 (read_input_waiting): Remove local declaration of quit_char.
1795 (start, etext): Remove declarations.
1796 (start_of_data): Merge with the version in mem-limits.h and move
1797 to vm-limits.c.
1798 * vm-limit.c (start_of_data): Merged and simplified version of the
1799 code formerly in mem-limits.h and sysdep.c.
1800 * unexec.c (start): New declaration, moved from sysdep.c.
1801 (start_of_text): Simplified version of the code formerly in sysdep.c.
1802 * unexaix.c (start_of_text): Simplified version of the code
1803 formerly in sysdep.c.
1804 * m/alpha.h (HAVE_TEXT_START): Remove.
1805 (TEXT_START): Move ...
1806 * unexalpha.c (TEXT_START): ... here.
1807 * s/hpux10-20.h (TEXT_START): Remove.
1808 * s/darwin.h (TEXT_START):
1809 * m/mips.h (TEXT_START):
1810 * m/macppc.h (HAVE_TEXT_START):
1811 * m/m68k.h (TEXT_START):
1812 * m/iris4d.h (TEXT_START):
1813 * m/intel386.h (TEXT_START):
1814 * m/ibmrs6000.h (TEXT_START):
1815 * m/ia64.h (HAVE_TEXT_START):
1816 * s/msdos.h (TEXT_START): Likewise.
1817
72af86bd
AS
18182010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1819
1820 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1821 (overrun_check_free, xstrdup, allocate_string)
1822 (allocate_string_data, compact_small_strings, Fmake_string)
1823 (make_unibyte_string, make_multibyte_string)
1824 (make_string_from_bytes, make_specified_string, make_float)
1825 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1826 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1827 memcpy, memmove, memset, memcmp.
1828 * atimer.c (start_atimer, set_alarm): Likewise.
1829 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1830 (mmap_realloc, init_buffer_once): Likewise.
1831 * callint.c (Fcall_interactively): Likewise.
1832 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1833 (getenv_internal_1): Likewise.
1834 * casefiddle.c (casify_object): Likewise.
1835 * ccl.c (ccl_driver): Likewise.
1836 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1837 * charset.c (load_charset_map_from_file)
1838 (load_charset_map_from_file, load_charset_map_from_vector)
1839 (Fdefine_charset_internal): Likewise.
1840 * cm.c (Wcm_clear): Likewise.
1841 * coding.c (decode_eol, decode_coding_object)
1842 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1843 * data.c (Faset): Likewise.
1844 * dired.c (directory_files_internal, file_name_completion_stat):
1845 Likewise.
1846 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1847 (clear_glyph_row, copy_row_except_pointers)
1848 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1849 (save_current_matrix, restore_current_matrix)
1850 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1851 (mirror_line_dance, scrolling_window): Likewise.
1852 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1853 Likewise.
1854 * doprnt.c (doprnt): Likewise.
1855 * editfns.c (Fuser_full_name, make_buffer_string_both)
1856 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1857 * emacs.c (sort_args): Likewise.
1858 * eval.c (Fapply, Ffuncall): Likewise.
1859 * fileio.c (Ffile_name_directory, make_temp_name)
1860 (Fexpand_file_name, search_embedded_absfilename)
1861 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1862 (auto_save_error): Likewise.
1863 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1864 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1865 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1866 (Fmake_hash_table): Likewise.
1867 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1868 * ftfont.c (ftfont_text_extents): Likewise.
1869 * getloadavg.c (getloadavg): Likewise.
1870 * image.c (define_image_type, make_image, make_image_cache)
1871 (x_create_x_image_and_pixmap, xbm_image_p)
1872 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1873 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1874 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1875 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1876 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1877 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1878 Likewise.
1879 * indent.c (scan_for_column, compute_motion): Likewise.
1880 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1881 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1882 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1883 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1884 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1885 (store_user_signal_events, menu_bar_items, tool_bar_items)
1886 (process_tool_bar_item, append_tool_bar_item)
1887 (read_char_minibuf_menu_prompt, read_key_sequence)
1888 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1889 Likewise.
1890 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1891 Likewise.
1892 * lisp.h (STRING_COPYIN): Likewise.
1893 * lread.c (Fload, read1, oblookup): Likewise.
1894 * msdos.c (Frecent_doskeys): Likewise.
1895 * nsfns.m (Fx_create_frame): Likewise.
1896 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1897 Likewise.
1898 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1899 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1900 Likewise.
1901 * nsmenu.m (ns_update_menubar): Likewise.
1902 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1903 * print.c (print_unwind, printchar, strout, print_string)
1904 (print_error_message): Likewise.
1905 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1906 (Fmake_network_process, Fnetwork_interface_list)
1907 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1908 (init_process): Likewise.
1909 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1910 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1911 Likewise.
1912 * scroll.c (do_scrolling, do_direct_scrolling)
1913 (scrolling_max_lines_saved): Likewise.
1914 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1915 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1916 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1917 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1918 (emacs_set_tty): Likewise.
1919 * term.c (encode_terminal_code, calculate_costs)
1920 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1921 Likewise.
1922 * termcap.c (tgetst1, gobble_line): Likewise.
1923 * termhooks.h (EVENT_INIT): Likewise.
1924 * tparam.c (tparam1): Likewise.
1925 * unexalpha.c (unexec): Likewise.
1926 * unexec.c (write_segment): Likewise.
1927 * unexmacosx.c (unexec_write_zero): Likewise.
1928 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1929 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1930 * w32font.c (w32font_list_family, w32font_text_extents)
1931 (w32font_list_internal, w32font_match_internal)
1932 (w32font_open_internal, compute_metrics, Fx_select_font):
1933 Likewise.
1934 * w32menu.c (set_frame_menubar, add_menu_item)
1935 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1936 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1937 * w32uniscribe.c (uniscribe_list_family): Likewise.
1938 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1939 * window.c (make_window, replace_window, set_window_buffer)
1940 (Fsplit_window): Likewise.
1941 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1942 (add_to_log, message3, x_consider_frame_title)
1943 (append_space_for_newline, extend_face_to_end_of_line)
1944 (decode_mode_spec_coding, init_glyph_string): Likewise.
1945 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1946 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1947 (face_attr_equal_p, make_realized_face, make_face_cache)
1948 (free_realized_faces, lookup_named_face, smaller_face)
1949 (face_with_height, lookup_derived_face)
1950 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1951 (Finternal_set_font_selection_order, realize_default_face)
1952 (compute_char_face, face_at_buffer_position)
1953 (face_for_overlay_string, face_at_string_position, merge_faces):
1954 Likewise.
1955 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1956 (Fx_window_property, x_create_tip_frame)
1957 (Fx_backspace_delete_keys_p): Likewise.
1958 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1959 (xfont_text_extents): Likewise.
1960 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1961 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1962 * xselect.c (x_queue_event, x_get_window_property)
1963 (receive_incremental_selection): Likewise.
1964 * xsmfns.c (x_session_check_input): Likewise.
1965 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1966 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1967 Likewise.
1968 * character.h (BCOPY_SHORT): Removed.
1969 * config.in: Regenerate.
1970 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1971 * emacs.c (main) [PROFILING]: Don't declare
1972 dump_opcode_frequencies.
1973 * lisp.h (safe_bcopy): Remove declaration.
1974 (memset) [!HAVE_MEMSET]: Declare.
1975 (memcpy) [!HAVE_MEMCPY]: Likewise.
1976 (memmove) [!HAVE_MEMMOVE]: Likewise.
1977 (memcmp) [!HAVE_MEMCMP]: Likewise.
1978 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1979 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1980 Don't define.
1981 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1982 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1983 (BCOPY_DOWNWARD_SAFE): Don't define.
1984 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1985 (memcpy) [!HAVE_MEMCPY]: Define.
1986 (memmove) [!HAVE_MEMMOVE]: Define.
1987 (memcmp) [!HAVE_MEMCMP]: Define.
1988
cb768704
J
19892010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1990
1991 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1992 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1993 New functions.
cb768704
J
1994 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1995 select on empty input mask.
1996 (init_process): Initialize kbd_is_on_hold to 0.
1997
1998 * process.h (hold_keyboard_input, unhold_keyboard_input)
1999 (kbd_on_hold_p): Declare.
2000
2001 * keyboard.c (input_available_signal): Declare.
2002 (kbd_buffer_nr_stored): New function.
2003 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2004 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2005 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2006 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2007 (tty_read_avail_input): If input is on hold, return.
2008 Don't read more that free slots in kbd_buffer (Bug#6571).
2009
3a8ce822
EZ
20102010-07-07 Eli Zaretskii <eliz@gnu.org>
2011
2012 * msdos.h:
2013 * msdos.c:
2014 * dosfns.c:
2015 * w16select.c: Convert function definitions to ANSI C.
2016
a628ad9d
JB
2017 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2018 Remove unused prototypes.
3a8ce822 2019
cf84bb53
JB
20202010-07-07 Juanma Barranquero <lekktu@gmail.com>
2021
2022 * coding.c, sysdep.c: Convert some more functions to standard C.
2023
1a4990fb
JB
20242010-07-07 Juanma Barranquero <lekktu@gmail.com>
2025
2026 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2027 (encode_coding_object): Use SPECPDL_INDEX.
2028 (syms_of_coding): Use DOS_NT.
2029
c0f2f16b
DN
20302010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2031
48fb6855
DN
2032 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2033
c0f2f16b
DN
2034 Make the function member of Lisp_Subr use standard C prototypes.
2035 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2036 (DECL_ALIGN): Add a cast for the function.
2037 * eval.c (Feval, Ffuncall): Use the proper type for each type
2038 function call.
2039
67aecef9
CY
20402010-07-06 Chong Yidong <cyd@stupidchicken.com>
2041
2042 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2043 fringe face id, so face-remapping-alist works (Bug#6091).
2044
b56ceb92
JB
20452010-07-06 Juanma Barranquero <lekktu@gmail.com>
2046
2047 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2048 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2049 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2050
7af07b96
AS
20512010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2052
2053 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2054 * lisp.h: Declare x_get_keysym_name.
2055 * keyboard.c (modify_event_symbol): Don't declare
2056 x_get_keysym_name here.
2057
69e24e34
DN
20582010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2059
2060 * ecrt0.c: Revert conversion to standard C.
2061
d3da34e0 20622010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2063
2064 * vm-limit.c (memory_warnings):
2065 * keyboard.c (modify_event_symbol):
2066 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2067 (round2, emacs_rint):
2068 * process.c (send_process, old_sigpipe): Convert function
2069 definitions and declarations to standard C.
2070
20712010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2072
2073 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2074 * xdisp.c: Convert function definitions to standard C.
2075
2076 * cm.c (cmputc): Arg C is now int, not char.
2077 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2078
00be444c
J
20792010-07-05 James Cloos <cloos@jhcloos.com>
2080
2081 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2082
2083 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2084 _NET_WM_ICON_NAME atoms.
2085
2086 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2087 and _NET_WM_ICON_NAME properties, too, matching what is
2088 done in the Gtk+ case.
2089
e4c8d29a
J
20902010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2091
ff919460
J
2092 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2093
e4c8d29a
J
2094 * xsmfns.c (SSDATA): New macro.
2095 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2096 passed to strlen/strcpy/strcat.
2097 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2098 7:th arg to XChangeProperty to (unsigned char *)
2099
2100 * xsettings.c (something_changedCB, parse_settings)
2101 (apply_xft_settings): Reformat prototype.
2102 (something_changedCB, init_gconf): Remove unused variable i.
2103 (read_settings): Remove unused variable long_len.
2104
2105 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2106 (xg_get_image_for_pixmap, create_dialog)
2107 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2108 (menuitem_highlight_callback, make_menu_item)
2109 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2110 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2111 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2112 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2113 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2114 (xg_tool_bar_item_expose_callback): Reformat prototype.
2115 (xg_update_menubar): GList *group => GSList *group.
2116 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2117 before use.
2118 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2119 to GTK_IMAGE (wimage).
2120
dd4c5104
DN
21212010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2122
898b4c5c
DN
2123 * atimer.c: Use "" instead of <> for local includes for
2124 consistency with the rest of the code.
2125
dd4c5104
DN
2126 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2127 * xrdb.c (get_system_name):
2128 * window.c (shrink_windows):
2129 * syntax.c (forw_comment):
2130 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2131 (ins_del_costs):
2132 * mem-limits.h (start_of_data):
2133 * lread.c (readevalloop):
2134 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2135 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2136 * frame.c (x_get_focus_frame):
2137 * floatfns.c (fmod_float):
2138 * fileio.c (choose_write_coding_system):
2139 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2140 (malloc_initialize_hook, sort_args, synchronize_locale):
2141 * doprnt.c (doprnt):
2142 * dired.c (compile_pattern):
2143 * data.c (fmod_float):
2144 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2145 (map_char_table_for_charset):
2146 * charset.c (define_charset_internal):
2147 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2148 to standard C.
2149
9a39b306 21502010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2151 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2152
2153 * lread.c (read1): Fix up last change to not mess up `c'.
2154
e6cb2cbb
JB
21552010-07-04 Juanma Barranquero <lekktu@gmail.com>
2156
2157 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2158
438105ed
JB
21592010-07-04 Juanma Barranquero <lekktu@gmail.com>
2160
2161 Fix prototypes.
2162
e5447b22 2163 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2164 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2165 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2166 arg, as required by internal_condition_case_1.
dcc7404b 2167 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2168 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2169 (analyse_first): Fix "const const".
e5447b22 2170 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2171 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2172 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2173
971de7fb
DN
21742010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2175
2176 * alloc.c: Convert function definitions to standard C.
2177 * atimer.c:
2178 * bidi.c:
2179 * bytecode.c:
2180 * callint.c:
2181 * callproc.c:
2182 * casefiddle.c:
2183 * casetab.c:
2184 * category.c:
2185 * ccl.c:
2186 * character.c:
2187 * charset.c:
2188 * chartab.c:
2189 * cmds.c:
2190 * coding.c:
2191 * composite.c:
2192 * data.c:
2193 * dbusbind.c:
2194 * dired.c:
2195 * dispnew.c:
2196 * doc.c:
2197 * doprnt.c:
2198 * ecrt0.c:
2199 * editfns.c:
2200 * fileio.c:
2201 * filelock.c:
2202 * filemode.c:
2203 * fns.c:
2204 * font.c:
2205 * fontset.c:
2206 * frame.c:
2207 * fringe.c:
2208 * ftfont.c:
2209 * ftxfont.c:
2210 * gtkutil.c:
2211 * indent.c:
2212 * insdel.c:
2213 * intervals.c:
2214 * keymap.c:
2215 * lread.c:
2216 * macros.c:
2217 * marker.c:
2218 * md5.c:
2219 * menu.c:
2220 * minibuf.c:
2221 * prefix-args.c:
2222 * print.c:
2223 * ralloc.c:
2224 * regex.c:
2225 * region-cache.c:
2226 * scroll.c:
2227 * search.c:
2228 * sound.c:
2229 * strftime.c:
2230 * syntax.c:
2231 * sysdep.c:
2232 * termcap.c:
2233 * terminal.c:
2234 * terminfo.c:
2235 * textprop.c:
2236 * tparam.c:
2237 * undo.c:
2238 * unexelf.c:
2239 * window.c:
2240 * xfaces.c:
2241 * xfns.c:
2242 * xfont.c:
2243 * xftfont.c:
2244 * xgselect.c:
2245 * xmenu.c:
2246 * xrdb.c:
2247 * xselect.c:
2248 * xsettings.c:
2249 * xsmfns.c:
2250 * xterm.c: Likewise.
2251
ae492bec
EZ
22522010-07-03 Eli Zaretskii <eliz@gnu.org>
2253
76ea4cc9
EZ
2254 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2255 frames other than the initial one. Fix reversal of colors when
2256 `reverse' is specified in the frame parameters. Call
2257 update_face_from_frame_parameter instead of
2258 internal-set-lisp-face-attribute. Initialize screen colors from
2259 initial_screen_colors[] when f->default_face_done_p is zero,
2260 instead of depending on being called with default-frame-alist as
2261 the alist argument.
2262
2263 * xfaces.c (update_face_from_frame_parameter): Move out of
2264 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2265 with HAVE_WINDOW_SYSTEM.
2266
1e6255ae
EZ
2267 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2268 to menu-bar-mode, if not set in the frame parameters or in
2269 default-frame-alist.
2270
ae492bec
EZ
2271 * w32console.c (sys_tputs): Adjust argument list to prototype in
2272 term.c.
2273
3a35a84c
JB
22742010-07-03 Juanma Barranquero <lekktu@gmail.com>
2275
2276 * lisp.h (memory_warnings): Fix prototype.
2277
2278 * cm.h (evalcost): Fix prototype.
2279
2280 * cm.c (evalcost): Fix arg type.
2281
c532d349
DN
22822010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2283
2284 * term.c (term_clear_mouse_face, Fidentity):
2285 * syssignal.h (signal_handler_t):
2286 * lisp.h (memory_warnings):
2287 * coding.h (preferred_coding_system):
2288 * cm.h (evalcost):
2289 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2290
c0b36d46
EZ
22912010-07-02 Eli Zaretskii <eliz@gnu.org>
2292
2293 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2294 from prototypes.
2295
2296 * msdos.h (load_pixmap): Don't define away.
2297
383e0970
J
22982010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2299
f57e2426
J
2300 * lisp.h:
2301 * atimer.h: Remove define for P_.
2302
2303 * alloc.c: Remove __P and P_ from .c and .m files.
2304 * atimer.c:
2305 * buffer.c:
2306 * callint.c:
2307 * category.c:
2308 * charset.c:
2309 * chartab.c:
2310 * cm.c:
2311 * coding.c:
2312 * composite.c:
2313 * data.c:
2314 * dired.c:
2315 * dispnew.c:
2316 * doc.c:
2317 * editfns.c:
2318 * emacs.c:
2319 * eval.c:
2320 * fileio.c:
2321 * filelock.c:
2322 * fns.c:
2323 * font.c:
2324 * fontset.c:
2325 * frame.c:
2326 * ftfont.c:
2327 * ftxfont.c:
2328 * gmalloc.c:
2329 * gtkutil.c:
2330 * image.c:
2331 * indent.c:
2332 * intervals.c:
2333 * keyboard.c:
2334 * keymap.c:
2335 * lread.c:
2336 * marker.c:
2337 * menu.c:
2338 * minibuf.c:
2339 * print.c:
2340 * process.c:
2341 * scroll.c:
2342 * search.c:
2343 * sound.c:
2344 * strftime.c:
2345 * syntax.c:
2346 * sysdep.c:
2347 * term.c:
2348 * terminal.c:
2349 * textprop.c:
2350 * unexalpha.c:
2351 * w32console.c:
2352 * w32fns.c:
2353 * w32font.c:
2354 * w32menu.c:
2355 * w32term.c:
2356 * w32uniscribe.c:
2357 * window.c:
2358 * xdisp.c:
2359 * xfaces.c:
2360 * xfns.c:
2361 * xfont.c:
2362 * xftfont.c:
2363 * xmenu.c:
2364 * xselect.c:
2365 * xterm.c: Likewise.
2366
383e0970 2367 Remove P_ and __P macros.
f57e2426
J
2368 * atimer.h: Remove P_ and __P macros.
2369 * buffer.h:
383e0970
J
2370 * category.h:
2371 * ccl.h:
2372 * character.h:
2373 * charset.h:
2374 * cm.h:
2375 * coding.h:
2376 * composite.h:
2377 * dispextern.h:
2378 * disptab.h:
9e892c8d 2379 * dosfns.h:
383e0970
J
2380 * font.h:
2381 * fontset.h:
2382 * frame.h:
2383 * gtkutil.h:
2384 * indent.h:
2385 * intervals.h:
2386 * keyboard.h:
2387 * keymap.h:
2388 * lisp.h:
2389 * macros.h:
2390 * md5.h:
2391 * menu.h:
2392 * msdos.h:
2393 * nsterm.h:
2394 * puresize.h:
2395 * region-cache.h:
2396 * syntax.h:
2397 * syssignal.h:
2398 * systime.h:
2399 * termhooks.h:
9e892c8d 2400 * w32font.h:
383e0970
J
2401 * w32term.h:
2402 * widget.h:
2403 * window.h:
2404 * xgselect.h:
2405 * xsettings.h:
2406 * xterm.h: Likewise.
2407
98601119
DN
24082010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2409
d9170db5
DN
2410 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2411
98601119
DN
2412 Cleanup old code.
2413 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2414 * syssignal.h: Remove code for Lynx, not supported anymore.
2415 * vm-limit.c: Remove unused code the depends on emacs not being
2416 defined and NO_LIM_DATA being defined.
2417 * mem-limits.h: Remove dead code.
2418
1f984e12
J
24192010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2420
c49d071a
J
2421 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2422
9d5405ec
J
2423 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2424 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2425
7a18115b
J
2426 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2427 parameters, they are already absolute.
2428
a628ad9d
JB
2429 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2430 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2431
a628ad9d 2432 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2433
a628ad9d
JB
2434 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2435 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2436
a628ad9d
JB
2437 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2438 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2439
c1ef4455
CY
24402010-06-30 Chong Yidong <cyd@stupidchicken.com>
2441
2442 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2443 check default-frame-alist.
2444
ce8f5a9a
AS
24452010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2446
2447 * process.c (create_process): Avoid using invalid file descriptors.
2448
2449 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2450
bf935339
J
24512010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2452
2453 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2454 Improve documentation. Return font regardless of use_system_font.
2455 (syms_of_xsettings): Improve documentation for font-use-system-font.
2456
7c33a057
CY
24572010-07-10 Chong Yidong <cyd@stupidchicken.com>
2458
2ec1b5ee
CY
2459 * xfaces.c (realize_face): Garbage the frame if a face is removed
2460 (Bug#6593).
2461
24622010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2463
2464 * keyboard.c: Remove duplicate <setjmp.h>.
2465 (read_key_sequence): Remove volatile qualifiers.
2466
24672010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2468
2469 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2470 (struct glyph_row): New members left_fringe_offset and
2471 right_fringe_offset.
2472
2473 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2474 specially.
2475 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2476 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2477
2478 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2479 Take account of bitmap offset.
2ec1b5ee
CY
2480 (draw_window_fringes): Take account of window vscroll.
2481 (update_window_fringes): Likewise. Extend top-aligned top indicator
2482 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2483 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2484 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2485
24862010-07-04 Juanma Barranquero <lekktu@gmail.com>
2487
2488 * w32fns.c (Qtooltip): Declare.
2489 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2490
24912010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2492
2493 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2494 grab on just Press (Bug#6499).
2495
24962010-07-02 Chong Yidong <cyd@stupidchicken.com>
2497
2498 * frame.c (Qtooltip): New var.
2499 (delete_frame): Use it. Fix faulty if statement. Don't update
2500 mode line for tooltip frames. Suggested by Martin Rudalics.
2501
2502 * xfns.c (x_create_tip_frame):
2503 * w32fns.c (x_create_tip_frame): Use it.
2504
25052010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2506
2507 * xftfont.c (xftfont_open): Check font width one by one also when
2508 spacing is dual.
2509
2510 * ftfont.c (ftfont_open): Ditto.
2511
6259c2ec
GM
25122010-06-30 Glenn Morris <rgm@gnu.org>
2513
a46007e9
GM
2514 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2515
6259c2ec
GM
2516 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2517
2518 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2519 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2520 * s/darwin.h (SYSTEM_MALLOC):
2521 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2522
5d1d3d04
J
25232010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2524
2525 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2526 (ns_get_screen): Don't assign integer to f.
2527 (Fx_display_color_cells): Declarations before statements.
2528
e547b051
J
25292010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2530
5fc8e5bc
J
2531 * xfns.c (x_default_font_parameter): Remove got_from_system
2532 (Bug#6526).
2533
e547b051
J
2534 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2535 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2536 defines based on what configure finds.
2537
2538 * xterm.c (XTflash): Use gtk_widget_get_window.
2539 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2540 gtk_adjustment_get_page_size.
2541 (handle_one_xevent): Use gtk_widget_get_mapped.
2542 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2543 messages.
2544
2545 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2546
2547 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2548 HAVE_GTK_FILE_SELECTION_NEW.
2549
2550 * gtkutil.c (xg_display_open, xg_display_close): Remove
2551 HAVE_GTK_MULTIDISPLAY, it is always defined.
2552 (xg_display_open): Return type is void.
2553 (gtk_widget_set_has_window)
2554 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2555 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2556 (gtk_adjustment_set_page_increment)
2557 (gtk_adjustment_get_step_increment): #define these if not found
2558 by configure.
2559 (remove_submenu): New define based on Gtk+ version.
2560 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2561 gtk_widget_get_window.
2562 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2563 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2564 (create_dialog): Use gtk_dialog_get_action_area and
2565 gtk_dialog_get_content_area.
2566 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2567 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2568 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2569 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2570 g_object_ref and g_object_unref.
2571 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2572 gtk_widget_get_sensitive.
2573 (xg_update_submenu): Use remove_submenu.
2574 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2575 properties instead to get old x and y position.
2576 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2577 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2578 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2579 (xg_get_tool_bar_widgets): New function.
2580 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2581 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2582 (toolbar_set_orientation): New #define based on if configure
2583 finds gtk_orientable_set_orientation.
2584 (xg_create_tool_bar): Call toolbar_set_orientation.
2585 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2586 instead of gtk_box_pack_start_defaults.
2587
b9229673
CY
25882010-06-28 Chong Yidong <cyd@stupidchicken.com>
2589
2590 * cmds.c (Fdelete_backward_char): Move into Lisp.
2591
bbc803b0
DN
25922010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2593
2594 * s/freebsd.h (BSD4_2): Remove redundant definition.
2595 bsd-common.h defines it already.
2596
6431f2e6
CY
25972010-06-27 Chong Yidong <cyd@stupidchicken.com>
2598
2599 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2600 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2601 tool-bar-mode, which are now set using these X resources at
2602 startup, to determine the defaults (Bug#2249).
2603
2604 * w32fns.c (Fx_create_frame):
2605 * nsfns.m (Fx_create_frame): Likewise.
2606
2607 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2608
8c079ebb
JB
26092010-06-24 Juanma Barranquero <lekktu@gmail.com>
2610
2611 * gtkutil.c (xg_update_scrollbar_pos):
2612 Avoid C99 mid-block variable declaration.
2613
e9b7ab96
JD
26142010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2615
bc869eca
JD
2616 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2617
2b7e356a 2618 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2619
2620 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2621 if height is less than scroll bar min size.
2622 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2623
e9b7ab96
JD
2624 * xfns.c (x_default_font_parameter): Try to open font from system
2625 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2626
a628ad9d 26272010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2628
2629 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2630
70c4cfbb
EZ
26312010-06-20 Eli Zaretskii <eliz@gnu.org>
2632
2633 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2634 most-positive-fixnum, be extra accurate when scrolling window
2635 start, to avoid missing the cursor line.
2636
ad5a12b5
EZ
26372010-06-19 Eli Zaretskii <eliz@gnu.org>
2638
2639 * xdisp.c (try_scrolling): Compute the limit for searching point
2640 in forward scroll from scroll_max, instead of an arbitrary limit
2641 of 10 screen lines. See
2642 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2643 and
2644 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2645 for details.
2646
2a64315a 26472010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2648
2649 * editfns.c (Fbyte_to_string): Pacify compiler.
2650
288cf4e9
SM
26512010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2652
2653 * lread.c (read1): Phase out old-style backquotes a bit more.
2654
6e6e5760
EZ
26552010-06-12 Eli Zaretskii <eliz@gnu.org>
2656
cbc4fd20
EZ
2657 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2658 bidimirror.h.
2659
2660 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2661
317fbf33
EZ
2662 * bidi.c (bidi_initialize): Remove explicit initialization of
2663 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2664 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2665 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2666
2667 * biditype.h: New file.
2668
cbc4fd20
EZ
2669 * bidimirror.h: New file.
2670
6e6e5760
EZ
2671 * window.c (syms_of_window): Doc fix (bug#6409).
2672
4176cba2
RF
26732010-06-12 Romain Francoise <romain@orebokech.com>
2674
2675 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2676 ediff-hook.
2677
cb4bfcb5
GM
26782010-06-10 Glenn Morris <rgm@gnu.org>
2679
64c60c2f
GM
2680 * editfns.c (Fbyte_to_string): Pacify compiler.
2681
cb4bfcb5
GM
2682 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2683
2ec1b5ee
CY
26842010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2685
2686 * alloc.c (Fmake_byte_code): Don't access undefined argument
2687 (Bug#6517).
2688
26892010-06-25 Chong Yidong <cyd@stupidchicken.com>
2690
2691 * xdisp.c (next_element_from_image): Ensure that after-strings are
2692 read the next time we hit handle_stop (Bug#1336).
2693
26942010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2695
2696 * lread.c (read1): Signal error if #s is not followed by paren.
2697
26982010-06-19 Chong Yidong <cyd@stupidchicken.com>
2699
2700 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2701
2702 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2703
27042010-06-15 Glenn Morris <rgm@gnu.org>
2705
2706 * editfns.c (Fbyte_to_string): Pacify compiler.
2707
e454a4a3
SM
27082010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2709
2710 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2711 Check `object's type before accessing its guts.
2712
c1b1acc2
DN
27132010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2714
2715 * s/usg5-4.h: Fix previous change.
2716 Suggested by Lawrence Mitchell <wence@gmx.li>
2717
657d4c0b
AS
27182010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2719
2720 * minibuf.c (Fall_completions): Add more checks.
2721
9b27fd9f
JB
27222010-06-08 Juanma Barranquero <lekktu@gmail.com>
2723
2724 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2725
a99ebb40
DN
27262010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2727
d7c5d87d
DN
2728 * lread.c (X_OK): Remove, unused.
2729
0263a941
DN
2730 * dispnew.c: Remove obsolete comment.
2731
a99ebb40
DN
2732 Remove INCLUDED_FCNTL.
2733 * xterm.c (INCLUDED_FCNTL):
2734 * callproc.c (INCLUDED_FCNTL):
2735 * alloc.c (INCLUDED_FCNTL):
2736 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2737 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2738
13b5221f
MR
27392010-06-07 Martin Rudalics <rudalics@gmx.at>
2740
2741 * window.c (Fselect_window): Move `record_buffer' up to the
2742 beginning of this function, so the buffer gets recorded
2743 even if the selected window does not change.
2744 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2745
5220357f
JB
27462010-06-07 Juanma Barranquero <lekktu@gmail.com>
2747
2748 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2749 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2750
3085237c
DN
27512010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2752
2753 Remove BSTRING related code, all platforms define it.
2754 * s/usg5-4.h (BSTRING): Remove definition.
2755 * s/template.h (BSTRING):
2756 * s/msdos.h (BSTRING):
2757 * s/ms-w32.h (BSTRING):
2758 * s/hpux10-20.h (BSTRING):
2759 * s/gnu-linux.h (BSTRING):
2760 * s/darwin.h (BSTRING):
2761 * s/cygwin.h (BSTRING):
2762 * s/bsd-common.h (BSTRING):
2763 * s/aix4-2.h (BSTRING): Likewise.
2764 * sysdep.c: Remove code depending on BSTRING not being defined.
2765
409f2919
JB
27662010-06-05 Juanma Barranquero <lekktu@gmail.com>
2767
2768 Remove obsolete macro BASE_LEADING_CODE_P.
2769 * character.h (BASE_LEADING_CODE_P): Remove.
2770 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2771 * buffer.c (Fset_buffer_multibyte):
2772 * indent.c (scan_for_column, compute_motion):
2773 * insdel.c (count_combining_before, count_combining_after):
2774 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2775
087fc47a
JB
27762010-06-04 Juanma Barranquero <lekktu@gmail.com>
2777
2778 Turn `directory-sep-char' into a noop.
2779
2780 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2781 (DIRECTORY_SEP): Define unconditionally.
2782
2783 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2784
2785 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2786 call dostounix_filename directly.
2787
2788 * fileio.c (CORRECT_DIR_SEPS): Remove.
2789 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2790 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2791 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2792 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2793
2794 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2795 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2796
0eb7675e
AS
27972010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2798
a628ad9d
JB
2799 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2800 (Bug#6346)
0eb7675e 2801
78edd3b7
JB
28022010-06-03 Juanma Barranquero <lekktu@gmail.com>
2803
2804 * ccl.c (Fccl_program_p): Fix typo in docstring.
2805
eb697db5
DN
28062010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2807
2808 Move UNEXEC definition to autoconf.
2809 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2810 * s/sol2-10.h (UNEXEC):
2811 * s/irix6-5.h (UNEXEC):
2812 * s/hpux10-20.h (UNEXEC):
2813 * s/gnu-linux.h (UNEXEC):
2814 * s/darwin.h (UNEXEC):
2815 * s/cygwin.h (UNEXEC):
2816 * s/bsd-common.h (UNEXEC):
2817 * s/aix4-2.h (UNEXEC):
2818 * m/alpha.h (UNEXEC): Likewise.
2819 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2820
aa3830c4
JB
28212010-06-03 Juanma Barranquero <lekktu@gmail.com>
2822
2823 Remove obsolete pre-unicode2 macros.
2824 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2825 * composite.c (composition_reseat_it):
2826 * data.c (Faset):
2827 * fns.c (Ffillarray):
2828 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2829 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2830
d234d13e
JL
28312010-06-03 Juri Linkov <juri@jurta.org>
2832
2833 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2834 (Fswitch_to_buffer): Remove unused variable `err'.
2835
0d4bcf4d
GM
28362010-06-03 Glenn Morris <rgm@gnu.org>
2837
e23dc1e2
GM
2838 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2839
05b09564
GM
2840 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2841 now that AH_BOTTOM does it.
2842
824e2978
GM
2843 * m/hp800.h (HAVE_ALLOCA):
2844 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2845
0d4bcf4d
GM
2846 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2847 Remove NOT_C_CODE tests, it is always true now.
2848
c55d2abf
DN
28492010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2850
08a494a3
DN
2851 Fix config.h includes.
2852 * xsettings.c:
2853 * xgselect.c:
2854 * nsterm.m:
2855 * nsselect.m:
2856 * nsimage.m:
2857 * nsfont.m:
2858 * nsfns.m:
2859 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2860 other files do.
2861
75934b1d
DN
2862 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2863
9f32a766
DN
2864 * s/sol2-6.h: Remove obsolete comments.
2865
c55d2abf
DN
2866 Remove unnecessary alloca.h includes.
2867 * keymap.c: Do not include alloca.h, config.h does that.
2868 * sysdep.c: Likewise. Do not define fwrite, not used.
2869
06ac62b4
SM
28702010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2871
2872 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2873 the HAVE_TERMIO where it belongs (bug#6149).
2874
1ab8293c
SM
28752010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2876
2877 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2878 of bug#6305).
2879
6dcfd253
EZ
28802010-05-30 Eli Zaretskii <eliz@gnu.org>
2881
2882 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2883 state is always cached (bug#6306).
2884
6d26bbb2
EZ
28852010-05-29 Eli Zaretskii <eliz@gnu.org>
2886
06fa4a23
EZ
2887 Fix cursor motion in bidi-reordered continued lines.
2888 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2889 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2890 over continuation lines in bidi-reordered buffers. Return
2891 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2892 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2893
f5783df3
MA
28942010-05-28 Michael Albinus <michael.albinus@gmx.de>
2895
2896 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2897
7d56b2dd
KH
28982010-05-28 Kenichi Handa <handa@m17n.org>
2899
2900 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2901 Don't sheck SPEC if it is nil.
2902 (font_list_entities): Call font_delete_unmatched if
b925d231 2903 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2904
e58d4ff7
GM
29052010-05-28 Glenn Morris <rgm@gnu.org>
2906
2907 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2908
f1a5d776
CY
29092010-05-27 Chong Yidong <cyd@stupidchicken.com>
2910
2911 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2912 whether to trash.
2913 (internal_delete_file, Frename_file): Callers changed.
2914 (delete_by_moving_to_trash): Doc fix.
2915 (Fdelete_directory_internal): Don't move to trash.
2916
2917 * callproc.c (delete_temp_file):
2918 * buffer.c (Fkill_buffer): Callers changed.
2919
2920 * lisp.h: Update prototype.
2921
f44a59e6
CY
29222010-05-27 Chong Yidong <cyd@stupidchicken.com>
2923
2924 * xdisp.c (redisplay_window): After redisplay, check if point is
2925 still valid before setting it (Bug#6177).
2926
81ac4f35
GM
29272010-05-27 Glenn Morris <rgm@gnu.org>
2928
2929 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2930 Convert comments to Makefile format.
2931
2932 * Makefile.in (bootstrap-clean): No more Makefile.c.
2933
ccd89fb3
GM
29342010-05-26 Glenn Morris <rgm@gnu.org>
2935
90278cb6
GM
2936 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2937 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2938
ccd89fb3
GM
2939 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2940 Remove.
2941 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2942
b7050583
KH
29432010-05-26 Kenichi Handa <handa@m17n.org>
2944
2945 * composite.c (composition_compute_stop_pos): Fix condition for
2946 backward scanning.
2947
e5458003
GM
29482010-05-25 Glenn Morris <rgm@gnu.org>
2949
c345fe90
GM
2950 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2951 Move before TEMACS_LDFLAGS.
2952 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2953 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2954
2e0689ab
GM
2955 * Makefile.in (NOT_C_CODE): No longer define.
2956 (config.h): No longer include.
2957
8009a5e8
GM
2958 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2959 variables it may reference.
2960
e5458003
GM
2961 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2962 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2963
10f72a37
KH
29642010-05-25 Kenichi Handa <handa@m17n.org>
2965
2966 * dispextern.h (struct composition_it): New members rule_idx and
2967 charpos.
2968
2969 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2970 that the character positions of IT point the last character of the
2971 current grapheme cluster.
2972 (next_element_from_composition): Don't change character positions
2973 of IT.
2974 (append_composite_glyph): Set glyph->charpos to
2975 it->cmp_it.charpos.
2976
2977 * composite.c (autocmp_chars): Change the first argument to RULE,
2978 and try composition with RULE only.
2979 (composition_compute_stop_pos): Record the index number of the
2980 composition rule in CMP_IT->rule_idx.
2981 (composition_reseat_it): Call autocmp_chars repeatedly until the
2982 correct rule of the composition is found.
2983 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2984 is at the last character of the current grapheme cluster when
2985 CMP_IT->reversed_p is nonzero.
2986
171eda53 29872010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2988
171eda53
SM
2989 * editfns.c (Fbyte_to_string): New function.
2990
66a9f7f4
SM
29912010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2992
2993 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2994 Suggested by Masatake YAMATO <yamato@redhat.com>.
2995
d8c315d1
EZ
29962010-05-23 Eli Zaretskii <eliz@gnu.org>
2997
171eda53 2998 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2999
f5b416d2 30002010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3001
3002 * s/netbsd.h: If terminfo is found, use it in preference to
3003 termcap. (Bug#6190) [Backport from trunk]
3004
0416466c
EZ
30052010-05-19 Eli Zaretskii <eliz@gnu.org>
3006
11117830 3007 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3008
3009 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3010 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3011 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3012 and maxpos members instead of start.pos and end.pos, respectively.
3013
3014 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3015 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3016 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3017 (try_window_reusing_current_matrix, try_window_id):
3018 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3019 (init_from_display_pos, init_iterator): Use EMACS_INT for
3020 character and byte positions.
66a9f7f4 3021 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3022 arguments for minimum and maximum buffer positions seen by
3023 display_line for this row. Don't use iterator to find the
3024 position following the maximum one; instead, increment the
11117830
EZ
3025 position found by display_line directly. Fix logic; eol_pos
3026 should be tested before the rest. Handle the case of characters
3027 delivered from display vector (bug#6036). Fix tests related to
3028 it->method. Handle the truncated_on_right_p rows.
3029 (RECORD_MAX_MIN_POS): New macro.
3030 (display_line): Use it to record the minimum and maximum buffer
3031 positions for glyphs in the row being assembled. Record the
3032 position of the newline that terminates the line. If word wrap is
3033 in effect, restore minimum and maximum positions seen up to the
3034 wrap point, when iterator returns to it.
3035 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3036 row and cursor not already at point. Restore original pre-bidi
3037 code for unidirectional buffers.
d36fe237
EZ
3038
3039 * dispnew.c (increment_row_positions, check_matrix_invariants):
3040 Increment and check row->start.pos and row->end.pos, in addition
3041 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3042
11117830
EZ
3043 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3044 Display truncated_on_left_p and truncated_on_right_p flags.
3045 Formatting fixes.
3046 (pmtxrows): Display the ordinal number of each row. Don't display
3047 rows beyond the last one.
3048
3049 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3050 it is not copied by bidi_copy_it.
3051
6e83d800
EZ
30522010-05-22 Eli Zaretskii <eliz@gnu.org>
3053
3054 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3055 (Bug#6237)
3056
110683ad
CY
30572010-05-22 Chong Yidong <cyd@stupidchicken.com>
3058
3059 * image.c (Fimage_flush): Rename from image-refresh.
3060
98fe5161
CY
30612010-05-21 Chong Yidong <cyd@stupidchicken.com>
3062
3063 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3064 just one window.
3065
3066 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3067 (clear_image_cache): If the number of cached images is unusually
3068 large, decrease the cache eviction delay (Bug#6230).
3069
e8752c66
GM
30702010-05-21 Glenn Morris <rgm@gnu.org>
3071
66dbf213
GM
3072 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3073 Move these rules to ns.mk.
3074 * ns.mk: New file.
3075
04384b2d
GM
3076 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3077
e8752c66
GM
3078 * Makefile.in (CANNOT_DUMP): New, set by configure.
3079 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3080
2e2bbddb
JL
30812010-05-20 Juri Linkov <juri@jurta.org>
3082
3083 * fileio.c (Fdelete_file): Change interative spec to use
3084 `read-file-name' like in `find-file-read-args' where the default
3085 value is `default-directory' instead of `buffer-file-name'.
3086 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3087
31c4aaf6
KR
30882010-05-20 Kevin Ryde <user42@zip.com.au>
3089
3090 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3091 (Voverriding_terminal_local_map, Vsystem_key_alist)
3092 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3093
9d5cf9b6
GM
30942010-05-20 Glenn Morris <rgm@gnu.org>
3095
3096 * Makefile.in (DEPDIR): New constant.
3097 (DEPFLAGS): Set with configure, not cpp.
3098 (MKDEPDIR): New, set by configure.
3099 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3100 (clean): Use $DEPDIR.
3101 (deps_frag): Include from configure.
3102 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3103 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3104
ead6f8f5
EZ
3105 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3106 reallocation of the cache. (Bug#6210)
3107
7f34aec3
GM
31082010-05-19 Glenn Morris <rgm@gnu.org>
3109
d494e8f2
GM
3110 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3111
c1d0dcfd
GM
3112 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3113 (GNULIB_VAR): Remove.
3114 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3115
3116 * m/ibms390x.h (LINKER):
3117 * m/macppc.h (LINKER) [GNU_LINUX]:
3118 * s/aix4-2.h (ORDINARY_LINK):
3119 * s/cygwin.h (LINKER):
3120 * s/darwin.h (ORDINARY_LINK):
3121 * s/gnu.h (ORDINARY_LINK):
3122 * s/netbsd.h (LINKER):
3123 * s/usg5-4.h (ORDINARY_LINK):
3124 Move to configure.
3125
7f34aec3
GM
3126 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3127
754790b6
CY
31282010-05-18 Chong Yidong <cyd@stupidchicken.com>
3129
3130 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3131 prevent stack overflow if number of arguments is too large
3132 (Bug#6214).
3133
161e44d1
JB
31342010-05-18 Juanma Barranquero <lekktu@gmail.com>
3135
3136 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3137
be4ff9da
GM
31382010-05-18 Glenn Morris <rgm@gnu.org>
3139
9539dc5d
GM
3140 * s/gnu-linux.h: Combine two conditionals.
3141
3142 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3143 $(POST_ALLOC_OBJ).
3144
40dc6bf4
GM
3145 * Makefile.in (RALLOC_OBJ): New, set by configure.
3146 (rallocobj): Replace with the previous variable.
3147 (otherobj): Use $RALLOC_OBJ.
3148
3149 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3150 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3151
be4ff9da
GM
3152 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3153 (gmallocobj, vmlimitobj): Replace with previous two variables.
3154 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3155
16455a85
GM
31562010-05-17 Glenn Morris <rgm@gnu.org>
3157
3158 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3159 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3160
5fdb7468
GM
31612010-05-16 Glenn Morris <rgm@gnu.org>
3162
7ca1f3f9
GM
3163 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3164
7541dad5
GM
3165 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3166
da53fab9
GM
3167 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3168 trailing "/".
3169
b02a6645
GM
3170 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3171 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3172
8877ca0f
GM
3173 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3174 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3175 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3176 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3177 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3178
5fdb7468
GM
3179 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3180 Remove ${STARTFLAGS}, nothing ever sets it.
3181
95adb4b1
DN
31822010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3183
3184 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3185
676b6304
GM
31862010-05-16 Glenn Morris <rgm@gnu.org>
3187
9beab9ce
GM
3188 * Makefile.in (LIBX_BASE): Always define.
3189
8a95f0e7
GM
3190 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3191
676b6304
GM
3192 * Makefile.in (LIBXT): Always define.
3193
6e546d18
GM
31942010-05-15 Glenn Morris <rgm@gnu.org>
3195
4235ca47 3196 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3197
6e546d18
GM
3198 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3199 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3200
8c5ff6dd
KR
32012010-05-15 Ken Raeburn <raeburn@raeburn.org>
3202
560bb7ae 3203 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3204 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3205
8b4eb796
KR
3206 * emacs.c (main): Initialize initial-environment and
3207 process-environment before generating from env, not after.
3208
8c5ff6dd
KR
3209 Handle --version reasonably in CANNOT_DUMP configuration.
3210 * emacs.c (emacs_version, emacs_copyright): New string variables.
3211 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3212 (syms_of_emacs): Defvar them, and initialize them from the C
3213 string variables.
3214 (main): If initialization hasn't been done, print initial version
3215 info from the C strings, instead of starting an interactive session.
3216
dbd3f723
EZ
32172010-05-15 Eli Zaretskii <eliz@gnu.org>
3218
d20e1419
EZ
3219 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3220 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3221 (bidi_paragraph_init): Remove redundant assertion that we are at
3222 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3223
3224 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3225 (syms_of_xdisp): Defsubr it.
3226
d36fe237
EZ
3227 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3228
dbd3f723
EZ
3229 * Makefile.in: Fix MSDOS-related comments.
3230
02be533b
GM
32312010-05-15 Glenn Morris <rgm@gnu.org>
3232
1a82cca9
GM
3233 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3234 (really-lwlib, really-oldXMenu): Always define.
3235 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3236
3df7b338
GM
3237 * Makefile.in: Simplify cpp conditional.
3238
2b5f541b
GM
3239 * Makefile.in (${ns_appdir}): Simplify using umask.
3240
02be533b
GM
3241 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3242
4e2db1fe
SM
32432010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3244
3245 * eval.c (specbind): Remove left-over duplicate test.
3246 Disallow let-binding frame-local vars. Add comment.
3247
4b292a22
EZ
32482010-05-14 Eli Zaretskii <eliz@gnu.org>
3249
2fe72643 3250 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3251 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3252 (bidi_init_it): Call it.
3253 (bidi_cache_iterator_state): Enlarge the cache if needed.
3254
4e2db1fe 3255 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3256 bidi_get_next_char_visually. All callers changed.
3257
82ebc97b
KH
32582010-05-14 Kenichi Handa <handa@m17n.org>
3259
3260 * dispextern.h (struct composition_it): New member reversed_p.
3261
3262 * composite.c (composition_compute_stop_pos): Search backward if
3263 ENDPOS < CHARPOS.
3264 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3265 Set CMP_IT->reversed_p.
b4b6e17e 3266 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3267
4e2db1fe
SM
3268 * xdisp.c (set_iterator_to_next):
3269 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3270 scanning backward. Call composition_compute_stop_pos if scan
3271 direction is changed.
3272 (next_element_from_buffer): Call composition_compute_stop_pos with
3273 negative ENDPOS if we are scanning backward.
3274 (next_element_from_composition): Pay attention to
3275 IT->cmp_it.reversed_p.
3276
0e5d7800
KH
32772010-05-14 Kenichi Handa <handa@m17n.org>
3278
560bb7ae 3279 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3280
cb027b32
GM
32812010-05-14 Glenn Morris <rgm@gnu.org>
3282
177b0288
GM
3283 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3284
fbc00890
GM
3285 * Makefile.in (mktime, X11, register): Move undefs to configure.
3286
f14d1dfd
GM
3287 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3288 (MSDOS_X_OBJ): New variable.
3289 (MSDOS_SUPPORT_REAL): New constant.
3290 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3291 (obj): Use MSDOS_X_OBJ.
3292 (lisp): Use MSDOS_SUPPORT as a variable.
3293
11842bd8
GM
3294 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3295 (GPM_MOUSE_SUPPORT): Now it's a constant.
3296 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3297 not cpp.
3298
489d31a4 3299 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3300 (ns_appresdir): Remove, unused.
e20f1f07 3301
489d31a4
GM
3302 * Makefile.in (SHELL): Move outside cpp section.
3303
cb027b32
GM
3304 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3305
5a903aa9
GM
33062010-05-13 Glenn Morris <rgm@gnu.org>
3307
3369c79f
GM
3308 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3309 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3310
d5e982a6
GM
3311 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3312 HAVE_WINDOW_SYSTEM must be too.
3313
6192e163
GM
3314 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3315 (lisp): Remove WINNT_SUPPORT.
3316
472c5d6b
GM
3317 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3318 Let configure set these variables (to empty) in this case as well.
3319
0116466b
GM
3320 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3321 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3322
5a903aa9
GM
3323 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3324 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3325 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3326 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3327 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3328 the values output by configure.
5a903aa9
GM
3329 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3330
1a0d7c06
GM
33312010-05-12 Glenn Morris <rgm@gnu.org>
3332
b5457f14
GM
3333 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3334 (LINKER_WAS_SPECIFIED): Remove.
3335
1a0d7c06
GM
3336 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3337 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3338 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3339 * s/cygwin.h (LIB_GCC):
3340 * s/freebsd.h (LIB_GCC):
3341 * s/gnu-linux.h (LIB_GCC):
3342 * s/msdos.h (LIB_GCC):
3343 * s/netbsd.h (LIB_GCC):
3344 Move to configure.
3345
3ffd4615 33462010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3347
3348 * ftfont.c: Fix incorrect parentheses of #if condition for
3349 definining M17N_FLT_USE_NEW_FEATURE.
3350
acddf8ae
GM
33512010-05-11 Glenn Morris <rgm@gnu.org>
3352
3353 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3354 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3355
ae5e04fa
EZ
33562010-05-10 Eli Zaretskii <eliz@gnu.org>
3357
3358 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3359 unibyte buffers. See
3360 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3361
7490175b
GM
33622010-05-10 Glenn Morris <rgm@gnu.org>
3363
97efb629
GM
3364 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3365 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3366 (LIBES): Use LIBS_SYSTEM as a variable.
3367 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3368 * s/aix4-2.h (LIBS_SYSTEM):
3369 * s/freebsd.h (LIBS_SYSTEM):
3370 * s/hpux10-20.h (LIBS_SYSTEM):
3371 * s/sol2-6.h (LIBS_SYSTEM):
3372 * s/unixware.h (LIBS_SYSTEM):
3373 Move to configure.
3374
7490175b
GM
3375 * s/aix4-2.h (MAIL_USE_LOCKF):
3376 * s/bsd-common.h (MAIL_USE_FLOCK):
3377 * s/darwin.h (MAIL_USE_FLOCK):
3378 * s/gnu-linux.h (MAIL_USE_FLOCK):
3379 * s/irix6-5.h (MAIL_USE_FLOCK):
3380 * s/template.h (MAIL_USE_FLOCK):
3381 Move to configure.
3382
0235128c 33832010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3384
3385 * Version 23.2 released.
3386
0235128c 33872010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3388
3389 * composite.c (autocmp_chars): Save point as marker before calling
3390 auto-composition-function (Bug#5984).
3391
3392 * lisp.h (restore_point_unwind): Add prototype.
3393
3394 * fileio.c (restore_point_unwind): Remove static attribute.
3395
0235128c 33962010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3397
3398 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3399 new feature of libotf and m17n-flt.
0235128c
SM
3400 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3401 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3402 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3403 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3404 that OUT is NULL. Use OTF_drive_gsub_with_log and
3405 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3406 OTF_drive_gpos.
3407 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3408 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3409 Setup mflt_enable_new_feature and mflt_try_otf.
3410
4721152c
J
34112010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3412
3413 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3414
3415 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3416 box and toolbar (Bug #6139).
3417 (xg_create_tool_bar): Remove comment (Bug #6139).
3418 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3419 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3420
ee0a16cf
JB
34212010-05-08 Juanma Barranquero <lekktu@gmail.com>
3422
3423 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3424 Update dependencies.
3425
96d79611
EZ
34262010-05-08 Eli Zaretskii <eliz@gnu.org>
3427
3428 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3429 R2L lines.
3430
40c17879
GM
34312010-05-08 Glenn Morris <rgm@gnu.org>
3432
7b42b29f
GM
3433 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3434
40c17879
GM
3435 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3436 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3437 (termcapobj): Replace with TERMCAP_OBJ.
3438 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3439 (LIBES): Use LIBS_TERMCAP as a variable.
3440
3441 * s/freebsd.h (osreldate.h): No longer include, since this file
3442 does not use __FreeBSD_version any more.
3443
3444 * s/aix4-2.h (TERMINFO):
3445 * s/cygwin.h (TERMINFO):
3446 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3447 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3448 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3449 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3450 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3451 * s/irix6-5.h (TERMINFO):
3452 * s/netbsd.h (LIBS_TERMCAP):
3453 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3454 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3455 * s/usg5-4.h (TERMINFO):
3456 Move to configure.
3457
94b612ad
SM
34582010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3459
3460 * eval.c (unbind_to): Don't unbind a local binding into the global
3461 binding when the local binding disappeared. Inversely, don't unbind
3462 a global binding into a newly created local binding.
3463 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3464 can specify the frame to use, when applicable. Adjust callers.
3465
15e12598 34662010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3467 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3468
3469 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3470
f724825e
EZ
34712010-05-07 Eli Zaretskii <eliz@gnu.org>
3472
5cba3209
EZ
3473 * w32fns.c: Include w32.h.
3474 (Fw32_shell_execute): Decode the error message before passing it
3475 to `error'. (Bug#6126)
3476
d16bdfc3
EZ
3477 * msdos.c (dos_set_window_size):
3478 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3479 instead of `XSYMBOL (foo)->value'.
3480
59d93e87
EZ
34812010-05-07 Eli Zaretskii <eliz@gnu.org>
3482
9fdec8bc
EZ
3483 Fix the MS-DOS build, broken by autoconfiscation.
3484
3485 * Makefile.in: Don't use Make-style comments past the "start of
3486 cpp stuff" line.
3487 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3488
3489 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3490 edited directly by msdos/sed1v2.inp).
f724825e 3491
2f86b22b
GM
34922010-05-07 Glenn Morris <rgm@gnu.org>
3493
3494 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3495 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3496 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3497 move out of cpp section.
3498 * s/freebsd.h (LD_SWITCH_SYSTEM):
3499 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3500 * s/netbsd.h (LD_SWITCH_SYSTEM):
3501 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3502
49ebbd65
DN
35032010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3504
3505 Define LIB_STANDARD and START_FILES using autoconf.
3506 * s/usg5-4.h (LIB_STANDARD):
3507 * s/netbsd.h (START_FILES):
3508 * s/irix6-5.h (LIB_STANDARD):
3509 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3510 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3511 * s/freebsd.h (START_FILES):
3512 * s/darwin.h (START_FILES):
3513 * s/cygwin.h (START_FILES):
3514 * s/aix4-2.h (LIB_STANDARD):
3515 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3516 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3517 autoconf, not cpp.
3518
d43c06d6
DN
35192010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3520
28823648
DN
3521 Remove NEED_BSDTTY and NEED_UNISTD_H.
3522 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3523 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3524 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3525 <sys/ptyio.h> and <unistd.h>.
3526
aca00430
DN
3527 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3528
d43c06d6
DN
3529 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3530 * s/gnu.h (START_FILES): Remove empty definition.
3531
3e56b11d
JD
35322010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3533
3534 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3535
e3cf0cde
GM
35362010-05-06 Glenn Morris <rgm@gnu.org>
3537
3538 * Makefile.in (CPP, LN_S): Remove unused variables.
3539
774b9a60
SM
35402010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3541
3542 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3543
4ab92842
LM
35442010-05-05 Lawrence Mitchell <wence@gmx.li>
3545
3546 * m/sparc.h: Fix typo in earlier change.
3547
178f2507
SM
35482010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3549
3550 Misc tweaks.
3551 * eval.c (Fdefvaralias): Remove unintended nested if.
3552 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3553
80f00217 35542010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3555
3556 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3557
ef03a4e6
DN
35582010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3559
58eb6cf0
DN
3560 Remove BSD_PGRPS.
3561 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3562 * s/gnu-linux.h (BSD_PGRPS): Remove.
3563 * term.c (dissociate_if_controlling_tty):
3564 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3565 (init_sys_modes, reset_sys_modes):
3566 * emacs.c (main):
3567 * callproc.c (Fcall_process, child_setup): Remove code depending
3568 on BSD_PGRPS.
3569
ef03a4e6
DN
3570 Remove POSIX_SIGNALS.
3571 * s/usg5-4.h (POSIX_SIGNALS):
3572 * s/netbsd.h (POSIX_SIGNALS):
3573 * s/msdos.h (POSIX_SIGNALS):
3574 * s/ms-w32.h (POSIX_SIGNALS):
3575 * s/hpux11.h (POSIX_SIGNALS):
3576 * s/gnu.h (POSIX_SIGNALS):
3577 * s/gnu-linux.h (POSIX_SIGNALS):
3578 * s/freebsd.h (POSIX_SIGNALS):
3579 * s/darwin.h (POSIX_SIGNALS):
3580 * s/cygwin.h (POSIX_SIGNALS):
3581 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3582 * s/unixware.h:
3583 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3584 * process.c (create_process):
3585 * syssignal.h:
3586 * sysdep.c (wait_for_termination, init_signals):
3587 * process.c (create_process):
3588 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3589 remove all code that assumes the contrary.
3590
49628785
GM
35912010-05-04 Glenn Morris <rgm@gnu.org>
3592
27a2cdfc
GM
3593 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3594 variable.
3595 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3596 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3597 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3598 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3599 LD_SWITCH_SYSTEM_tmp.
3600 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3601 New variables, set by configure.
3602
eb21eab5
GM
3603 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3604 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3605 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3606 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3607 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3608
49628785
GM
3609 * s/aix4-2.h (C_SWITCH_SYSTEM):
3610 * m/alpha.h (C_SWITCH_MACHINE):
3611 Move to configure.in.
3612 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3613 New variables, set by configure.
3614 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3615 $c_switch_machine and $c_switch_system.
3616
7dff330b
DN
36172010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3618
3619 * s/hpux10-20.h (LIB_STANDARD): New definition.
3620 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3621 on it, not used anymore.
3622
53967e09
CY
36232010-05-03 Chong Yidong <cyd@stupidchicken.com>
3624
3625 * eval.c (internal_condition_case_n): Rename from
3626 internal_condition_case_2.
3627 (internal_condition_case_2): New function.
3628
3629 * xdisp.c (safe_call): Use internal_condition_case_n.
3630
3631 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3632 (internal_delete_file, Frename_file): Callers changed.
3633
3634 * buffer.c (Fkill_buffer):
3635 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3636
3637 * lisp.h: Update prototypes.
3638
3dee6fdb
GM
36392010-05-03 Glenn Morris <rgm@gnu.org>
3640
3641 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3642 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3643 (LIBXT): Set with configure, not cpp.
3644 (LIBX): Remove.
3645 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3646
a101e0fb
DN
36472010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3648
3649 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3650 The FreeBSD is not needed, the default works, Solaris version is
3651 not needed, and the remaining case is not supported by configure.
3652
f63d0028
JD
36532010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3654
3655 * xsmfns.c (CHDIR_OPT): New define.
3656 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3657 restarting emacs.
3658
3659 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3660 shut_down_emacs.
3661
3662 * emacs.c (USAGE1): Mention --chdir.
3663 (main): Handle --chdir.
3664 (standard_args): Add --chdir.
3665 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3666 #5552).
3667
e4814a9f
DN
36682010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3669
cd03c74a
DN
3670 Remove LD_SWITCH_MACHINE.
3671 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3672 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3673
c3a398a1
DN
3674 Clean up IRIX code.
3675 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3676 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3677
87e7285c
DN
3678 Clean up AIX code.
3679 * m/ibmrs6000.inp: Remove file, unused.
3680 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3681 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3682 definition ...
3683 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3684
80f00217
JB
3685 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3686 unused.
e4814a9f 3687
59ca28de
EZ
36882010-05-01 Eli Zaretskii <eliz@gnu.org>
3689
197daef4
EZ
3690 Emulate POSIX_SIGNALS on MS-Windows.
3691
3692 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3693 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3694
3695 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3696 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3697 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3698
80f00217
JB
3699 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3700 New stubs.
197daef4 3701
af7c7572
EZ
3702 Miscellaneous fixes of bidi display.
3703
59ca28de
EZ
3704 * xdisp.c (find_row_end): New function, refactored from display_line.
3705 (display_line): Use it.
017ea819
EZ
3706 (extend_face_to_end_of_line): In almost-filled rows, extend only
3707 if the row is R2L and not continued.
166e930d 3708 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3709 Preserve overlay and string info in row->end.
166e930d
EZ
3710 (insert_left_trunc_glyphs): Support addition of left truncation
3711 glyphs to R2L rows.
b47e0dcf 3712 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3713 glyph between adjacent windows. Fix a crash when a display string
3714 is continued to the next line. Don't return zero if cursor was
3715 found by `cursor' property of a display string.
b47e0dcf
EZ
3716 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3717 test for that explicitly.
59ca28de 3718
7acac9f4
GM
37192010-05-01 Glenn Morris <rgm@gnu.org>
3720
3721 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3722 for clarity.
3723 (OTHER_OBJ): Remove.
3724 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3725 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3726
45841e65
KK
37272010-05-01 Karel Klíč <kklic@redhat.com>
3728
3729 * fileio.c (Ffile_selinux_context): Context functions may return null.
3730
afc61943
DN
37312010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3732
80f00217 3733 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3734
5a1bb006
GM
37352010-04-30 Glenn Morris <rgm@gnu.org>
3736
3737 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3738 (OTHER_OBJ): Define as a separate variable, for clarity.
3739
210af043
J
37402010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3741
3742 * xsettings.c: include limits.h and update file comment.
3743
0a7df391
GM
37442010-04-30 Glenn Morris <rgm@gnu.org>
3745
d5096f16
GM
3746 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3747 Set with configure, not cpp.
3748 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3749
7eb1ac33
GM
3750 * Makefile.in (mallocobj): Remove.
3751 (otherobj): Simplify using @OTHER_OBJ@.
3752
517d086b
GM
3753 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3754 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3755 Don't bother making nsgui.h dependency platform-specific.
3756
0a7df391
GM
3757 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3758
d6d23852
SM
37592010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3760
d2630aef
SM
3761 * process.c (read_process_output, exec_sentinel): Don't burp if the
3762 sentinel/filter kills the current buffer (bug#6060).
3763
f9dddf52 3764 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3765 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3766 Remove unused var `args'.
3767 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3768 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3769 * doc.c (store_function_docstring): Use XSETCAR.
3770
f1e3642a
GM
37712010-04-28 Glenn Morris <rgm@gnu.org>
3772
faf535f8
GM
3773 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3774 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3775
c40f9449
GM
3776 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3777
658f86ca
GM
3778 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3779 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3780
bc0b5f61
GM
3781 * Makefile.in (FONT_OBJ): New, set by configure.
3782 (FONT_DRIVERS): Use $FONT_OBJ.
3783
294c50a0
GM
3784 * Makefile.in (LIBXMU): Set with configure, not cpp.
3785 * s/aix4-2.h (LIBXMU):
3786 * s/hpux10-20.h (LIBXMU):
3787 Remove definition, now set in configure.
3788
e6ec4e99
GM
3789 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3790
f1e3642a
GM
3791 * m/amdx86-64.h [i386]: Move this test to configure.in.
3792
c6ea2936
GM
37932010-04-27 Glenn Morris <rgm@gnu.org>
3794
8fdac2c3
GM
3795 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3796 * s/unixware.h (NEED_LIBW): Remove definition.
3797
986fb647
GM
3798 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3799 (TOOLKIT_LIBW): New, set by configure.
3800 (@X_TOOLKIT_TYPE@): No longer define it.
3801
c6ea2936
GM
3802 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3803 (MOTIF_LIBW): Set with configure, not cpp.
3804 * s/aix4-2.h (LIB_MOTIF):
3805 * s/gnu-linux.h (LIB_MOTIF):
3806 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3807
aaa36002
DN
38082010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3809
3810 Reduce CPP usage.
3811 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3812 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3813 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3814 definitions and undefs. Inline definitions in the only user.
3815 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3816
b678dd8b
GM
38172010-04-27 Glenn Morris <rgm@gnu.org>
3818
76cda504
GM
3819 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3820 since the defaults (set by the system file) are fine in most cases.
3821 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3822 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3823 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3824 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3825 Remove definitions, since they are set correctly in s/gnu-linux.h.
3826 * s/freebsd.h (START_FILES, LIB_STANDARD):
3827 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3828 * s/hpux10-20.h (START_FILES):
3829 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3830 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3831
b678dd8b
GM
3832 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3833 (MOTIF_LIBW): Use $LIBXP.
3834 (otherobj): Use $WIDGET_OBJ.
3835
9452ded1
DN
38362010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3837
7e10844c
DN
3838 * Makefile.in (LIBS_MACHINE): Remove, unused.
3839
9452ded1
DN
3840 Use autoconf instead of cpp for LIB_MATH.
3841 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3842 * s/cygwin.h (LIB_MATH): Likewise.
3843 * Makefile.in (LIB_MATH): Do not define with cpp.
3844 (LIBES): Use autoconf for LIB_MATH.
3845
fcebfc6a
KH
38462010-04-26 Kenichi Handa <handa@m17n.org>
3847
3848 * composite.c (Ffind_composition_internal): Fix the return value
3849 for an automatic composition.
3850
39e2ad1b
DN
38512010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3852
3853 Remove all NO_ARG_ARRAY uses.
3854 * fns.c (concat2, concat3, nconc2):
3855 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3856 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3857 * m/xtensa.h (NO_ARG_ARRAY):
3858 * m/template.h (NO_ARG_ARRAY):
3859 * m/sparc.h (NO_ARG_ARRAY):
3860 * m/sh3.h (NO_ARG_ARRAY):
3861 * m/mips.h (NO_ARG_ARRAY):
3862 * m/macppc.h (NO_ARG_ARRAY):
3863 * m/iris4d.h (NO_ARG_ARRAY):
3864 * m/intel386.h (NO_ARG_ARRAY):
3865 * m/ibms390x.h (NO_ARG_ARRAY):
3866 * m/ibms390.h (NO_ARG_ARRAY):
3867 * m/ibmrs6000.h (NO_ARG_ARRAY):
3868 * m/ia64.h (NO_ARG_ARRAY):
3869 * m/hp800.h (NO_ARG_ARRAY):
3870 * m/arm.h (NO_ARG_ARRAY):
3871 * m/amdx86-64.h (NO_ARG_ARRAY):
3872 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3873
adf4f59c
EZ
38742010-04-25 Eli Zaretskii <eliz@gnu.org>
3875
6bdf5d65
EZ
3876 * xdisp.c (display_line): Don't assume 2nd call to
3877 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3878 (iterate_out_of_display_property): New function, body from pop_it.
3879 (pop_it): Use it.
adf4f59c 3880
dfbbda83
GM
38812010-04-24 Glenn Morris <rgm@gnu.org>
3882
3883 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3884 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3885 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3886 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3887
2d4018aa
EZ
38882010-04-24 Eli Zaretskii <eliz@gnu.org>
3889
a49884a6
EZ
3890 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3891 use `get_next_display_element' and `set_iterator_to_next' to
3892 advance to the next character, when looking for the character that
3893 begins the next row.
3894
76db6fcc 3895 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3896 definition of "struct Lisp_Symbol".
3897
70eab5c1
GM
38982010-04-24 Glenn Morris <rgm@gnu.org>
3899
3900 * Makefile.in (CRT_DIR): New variable, set by configure.
3901 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3902 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3903
1ad4cc3d
DN
39042010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3905
e769f484
DN
3906 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3907
4196ff33
DN
3908 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3909
879b0ee4
DN
3910 Remove redundant flags.
3911 * s/freebsd.h (C_SWITCH_SYSTEM):
3912 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3913 * s/netbsd.h (C_SWITCH_SYSTEM):
3914 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3915 of these.
3916
03cbbcb8
DN
3917 Simplify m/intel386.h.
3918 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3919 user: ecrt0.c.
3920 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3921 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3922 the only user: s/unixware.h.
3923 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3924 from m/intel386.h.
3925 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3926 moved here from m/intel386.h.
3927
1ad4cc3d
DN
3928 * m/mips.h: Remove #if 0 code.
3929
8785b888
EZ
39302010-04-23 Eli Zaretskii <eliz@gnu.org>
3931
728588cc
EZ
3932 Fix display of composed characters from L2R scripts in bidi buffers.
3933 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3934 After advancing IT past the composition, resync the bidi iterator
3935 with IT's position. (Bug#5977)
3936
a63f80b4
DN
39372010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3938
3939 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3940 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3941
ff5dec5c
SM
39422010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3943
3944 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3945
8785b888
EZ
39462010-04-23 Eli Zaretskii <eliz@gnu.org>
3947
58ccf243 3948 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3949 * xdisp.c (pop_it): When the stack is popped after displaying
3950 from a string, bidi-iterate to exit from the text portion covered
3951 by the `display' property or overlay. (Bug#5988, bug#5920)
3952
feeb1604
DN
39532010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3954
8e324eb6
DN
3955 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3956 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3957
809fcaba
DN
3958 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3959 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3960
ed710380
DN
3961 Simplify STARTFILES definition.
3962 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3963 relying on Makefile.in to define it.
3964 * s/cygwin.h (START_FILES): Likewise.
3965 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3966
feeb1604
DN
3967 Clean up Solaris code.
3968 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3969 (LIB_MOTIF): Remove, configure takes care of this.
3970 (NOT_USING_MOTIF): Remove, unused.
3971 * xrdb.c: Remove #if 0-ed #include.
3972 (SYSV): Remove conditional for old SysV.
3973 * sysdep.c (closedir): Remove conditional code for Solaris,
3974 Solaris has closedir.
3975
a0d0b563
JD
39762010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3977
3978 * xsettings.c (read_and_apply_settings): Check if current_font is
3979 NULL before strcmp (Bug#6001).
3980
56bae7c7
DN
39812010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3982
3983 Clean up HP-UX files.
3984 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3985 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3986 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3987 * s/hpux10-20.h: ... to the only user, here.
3988
372b7a95
EZ
39892010-04-21 Eli Zaretskii <eliz@gnu.org>
3990
3991 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3992 use buffer-local values of paragraph-start and paragraph-separate.
3993 <paragraph_start_re, paragraph_separate_re>: Rename from
3994 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3995 (Bug#5992)
3996
f904c0f9
JD
39972010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3998
3999 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4000 current_tool_bar_style are new.
4001 (store_config_changed_event): Rename from store_font_changed_event.
4002 (XSETTINGS_TOOL_BAR_STYLE): New define.
4003 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4004 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4005 HAVE_XFT.
4006 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4007 store_config_changed_event.
f904c0f9
JD
4008 (parse_settings): Rename from parse_xft_settings. Read
4009 non-xft xsettings outside #ifdef HAVE_XFT.
4010 (read_settings): Renamed from read_xft_settings.
4011 (apply_xft_settings): Take current settings as parameter. Do not
4012 call read_(xft)_settings.
4013 (read_and_apply_settings): New function.
4014 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4015 read_and_apply_settings if there are settings to be read.
4016 (init_xsettings): Renamed from init_xfd_settings.
4017 Call read_and_apply_settings unconditionally.
4018 (xsettings_initialize): Call init_xsettings.
4019 (Ftool_bar_get_system_style): New function.
4020 (syms_of_xsettings): Define Qmonospace_font_name and
4021 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4022 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4023 dynamic-setting.
31a01b90 4024 Move misplaced HAVE_GCONF
f904c0f9
JD
4025
4026 * xsettings.h (Ftool_bar_get_system_style): Declare.
4027
4028 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4029 Qtext, Qboth, Qboth_horiz are new.
4030 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4031 Vtool_bar_style, tool_bar_max_label_size.
4032
4033 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4034
4035 * keyboard.c: QClabel is new.
4036 (parse_tool_bar_item): Take out QClabel from tool bar items.
4037 Try to construct a label if ther is no QClabel.
4038 (syms_of_keyboard): Intern :label as QClabel.
4039
4040 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4041 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4042 New.
4043
4044 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4045 dynamic-setting.el.
4046
4047 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4048 (xg_make_tool_item, xg_show_toolbar_item): New function.
4049 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4050 Call xg_make_tool_item to make a tool bar item.
4051 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4052
4053 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4054 into account for toolbars.
4055
c632dfda
JD
40562010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4057
4058 * data.c (make_blv): Declarations before code (Bug#5993).
4059
10efe302
GM
40602010-04-21 Glenn Morris <rgm@gnu.org>
4061
4062 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4063 Define using autoconf, not cpp.
4064 (LIBXSM): New variable, set by autoconf.
4065 (LIBXT): Use $LIBXSM.
4066
4285ac5a
DN
40672010-04-21 Dan Nicolaescu <local_user@dannlt>
4068
3ec759e7
DN
4069 Remove NOMULTIPLEJOBS, unused.
4070 * s/template.h (NOMULTIPLEJOBS):
4071 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4072
4285ac5a
DN
4073 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4074 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4075 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4076 detects -znocombreloc and passes it to the linker
4077 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4078
2807228d
GM
40792010-04-21 Glenn Morris <rgm@gnu.org>
4080
4081 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4082
574c05e2
KK
40832010-04-21 Karel Klíč <kklic@redhat.com>
4084
4085 * Makefile.in (LIBSELINUX_LIBS): New.
4086 (LIBES): Add $LIBSELINUX_LIBS.
4087 * eval.c, lisp.h (call7): New function.
4088 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4089 (Ffile_selinux_context, Fset_file_selinux_context):
4090 New functions.
4091 (Fcopy_file): New parameter preserve-selinux-context.
4092 (Frename_file): Preserve selinux context when renaming by copy-file.
4093
91eac4bb 40942010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4095 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4096
50426a04
JB
4097 Don't depend on cm.c or termcap.c on Windows, use stubs.
4098 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4099 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4100 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4101 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4102 (sys_tputs, sys_tgetstr): New stubs.
4103 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4104 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4105
938efb77
JB
41062010-04-20 Juanma Barranquero <lekktu@gmail.com>
4107
4108 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4109
b4bf28b7
SM
41102010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4111
8b1e1112
SM
4112 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4113 Just signal a warning rather than an error when inside a let.
4114 (Fmake_variable_frame_local): Add the same test.
4115
933ac235
SM
4116 * font.c (syms_of_font): Make the style table vars read-only.
4117
b4bf28b7
SM
4118 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4119 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4120
4121 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4122
93d68d0c
EZ
41232010-04-20 Eli Zaretskii <eliz@gnu.org>
4124
4125 Fix R2L paragraph display on TTY.
4126
4127 * xdisp.c (unproduce_glyphs): New function.
4128 (display_line): Use it when produced glyphs are discarded from R2L
4129 glyph rows.
4130 (append_composite_glyph): In R2L rows, prepend the glyph rather
4131 than appending it.
4132
4133 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4134 rather than append it. Set up the resolved_level and bidi_type
4135 attributes of the appended glyph.
283ccc18
EZ
4136 (produce_special_glyphs): Mirror the backslash continuation
4137 character in R2L lines.
93d68d0c 4138
283ccc18 4139 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4140
283ccc18
EZ
4141 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4142 append_stretch_glyph.
4143 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4144 off-by-one error in computing x at end of text in the row.
4145 (append_stretch_glyph): In reversed row, prepend the glyph rather
4146 than append it. Set resolved_level and bidi_type of the glyph.
4147 (extend_face_to_end_of_line): If the row is reversed, prepend a
4148 stretch glyph whose width is such that the rightmost glyph will be
4149 drawn at the right margin of the window. Fix off-by-one error on
4150 TTY frames in testing whether a line needs face extension. Fix
4151 face extension at ZV. If this is the last glyph row, use
4152 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4153 region face.
4154 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4155 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4156 row->continuation_lines_width.
283ccc18
EZ
4157 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4158 are at ZV. Fixes a crash when reseated to ZV by
4159 try_window_reusing_current_matrix.
45903529
EZ
4160 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4161 which happens with R2L glyph rows. Fixes a crash when inserting a
4162 character at end of an R2L line.
283ccc18
EZ
4163 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4164 treat them as having zero-width characters. Improve comments.
4165 Don't reverse pos_before and pos_after for reversed glyph rows.
4166 Set cursor.x to negative value when the cursor might be on the
4167 left fringe.
4168 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4169 left fringe, not the right one.
f951a506
EZ
4170 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4171 (erase_phys_cursor): For reversed cursor_row, support cursor on
4172 the left fringe.
4173
283ccc18
EZ
4174 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4175 of continuation indicators on the fringes.
4176 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4177 left fringe.
4178
f951a506
EZ
4179 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4180 draw cursor on the left fringe.
4181
4182 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4183 cursor on the left fringe.
4184
f951a506
EZ
4185 * dispnew.c (update_text_area): Handle reversed desired rows when
4186 the cursor is on the left fringe.
4187 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4188 below, not by 0, for when the cursor is on the left fringe.
4189
3bb49aaf
JD
41902010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4191
4192 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4193 widget is a scrollbar.
4194
c0be27fd
KH
41952010-04-20 Kenichi Handa <handa@m17n.org>
4196
4197 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4198 only when the arg CHARSET_LIST is nil.
4199
ce5b453a
SM
42002010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4201
4202 Make variable forwarding explicit rather the using special values.
4203 Basically, this makes the structure of buffer-local values and object
4204 forwarding explicit in the type of Lisp_Symbols rather than use
4205 special Lisp_Objects for that. This tends to lead to slightly more
4206 verbose code, but is more C-like, simpler, and makes it easier to make
4207 sure we handled all cases, among other things by letting the compiler
4208 help us check it.
4209 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4210 Removing forwarding objects.
4211 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4212 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4213 explicit rather than hiding them inside Lisp_Object "values".
4214 (XFWDTYPE): New macro.
4215 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4216 (XBUFFER_LOCAL_VALUE): Remove.
4217 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4218 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4219 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4220 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4221 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4222 Remove the Lisp_Misc_* header.
4223 (struct Lisp_Buffer_Local_Value): Redefine.
4224 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4225 (struct Lisp_Misc_Any): Add filler to get the right size.
4226 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4227 Lisp_Intfwd.
4228 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4229 (DEFVAR_KBOARD): Allocate a forwarding object.
4230 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4231 (let_shadows_global_binding_p): New function.
4232 (union Lisp_Val_Fwd): New type.
4233 (make_blv): New function.
4234 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4235 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4236 (swap_in_symval_forwarding, find_symbol_value, Fset)
4237 (let_shadows_buffer_binding_p, set_internal, default_value)
4238 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4239 (Fkill_local_variable, Fmake_variable_frame_local)
4240 (Flocal_variable_p, Flocal_variable_if_set_p)
4241 (Fvariable_binding_locus):
4242 * xdisp.c (select_frame_for_redisplay):
4243 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4244 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4245 * frame.c (store_frame_param):
4246 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4247 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4248 value structure.
4249 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4250 (clone_per_buffer_values): Only adjust markers into the current buffer.
4251 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4252 (Fbuffer_local_value, set_buffer_internal_1)
4253 (swap_out_buffer_local_variables):
4254 Adapt to the new symbol value structure.
4255 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4256 (defvar_per_buffer): Take a new arg for the fwd object.
4257 (buffer_lisp_local_variables): Return a proper alist (different fix
4258 for bug#4138).
4259 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4260 (Fgarbage_collect): Don't handle buffer_defaults specially.
4261 (mark_object): Handle new symbol value structure rather than the old
4262 special Lisp_Misc_* objects.
4263 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4264 * term.c (set_tty_color_mode):
4265 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4266 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4267 a buffer_local_flags.
4268 * print.c (print_object): Get rid of impossible forwarding objects.
4269
fd3998ff
EZ
42702010-04-19 Eli Zaretskii <eliz@gnu.org>
4271
4272 * bidi.c (bidi_get_type, bidi_get_category)
4273 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4274 (bidi_type_of_next_char, bidi_level_of_next_char):
4275 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4276
e42cd1a7
JB
42772010-04-19 Juanma Barranquero <lekktu@gmail.com>
4278
4279 * dired.c (Ffile_attributes): Fix typo in docstring.
4280
6e104790 42812010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4282
4283 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4284 NSInteger (Bug#5811).
4285
6e104790 42862010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4287
4288 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4289 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4290
6e104790 42912010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4292
4293 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4294
6e104790
SM
42952010-04-19 Chong Yidong <cyd@stupidchicken.com>
4296
4297 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4298 terminal frames (Bug#5837).
4299
37dcfea0
EZ
43002010-04-19 Eli Zaretskii <eliz@gnu.org>
4301
d1da276f
EZ
4302 * .gdbinit (xsubchartable): New command.
4303
37dcfea0
EZ
43042010-04-19 Eli Zaretskii <eliz@gnu.org>
4305
4306 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4307 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4308 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4309 and
4310 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4311
e9515805
SM
43122010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4313
4314 * alloc.c (Fpurecopy): Hash-cons if requested.
4315 (syms_of_alloc): Update purify-flag docstring.
4316
22aa44a8
JD
43172010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4318
4319 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4320 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4321
ebb5722e
EZ
43222010-04-17 Eli Zaretskii <eliz@gnu.org>
4323
4324 Fix a crash when an NSM character is inserted at BEGV.
4325
4326 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4327 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4328 NEUTRAL_B or UNKNOWN_BT.
4329
0f4442ef
EZ
43302010-04-16 Eli Zaretskii <eliz@gnu.org>
4331
4332 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4333 other rows with cursor unless they are different from this row and
4334 this row is part of a continued line. (Bug#5943)
4335
7d4e45f8
DN
43362010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4337
4338 * s/freebsd.h: Restore osreldate.h include.
4339 Suggested by Naohiro Aota.
4340
5ba5ec85
J
43412010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4342
4343 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4344
20af301d
CY
43452010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4346
4347 * s/cygwin.h: Avoid linking against static libgcc.
4348
a4b000fb
JL
43492010-04-15 Juri Linkov <juri@jurta.org>
4350
4351 * window.c: Add Qscroll_command.
4352 Remove Vscroll_preserve_screen_position_commands.
4353 (window_scroll_pixel_based, window_scroll_line_based): Check the
4354 `scroll-command' property on the last command instead of searching
4355 the last command in Vscroll_preserve_screen_position_commands.
4356 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4357 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4358 (scroll-preserve-screen-position): Doc fix.
4359 (Vscroll_preserve_screen_position_commands): Remove variable.
4360
bc319ba4
DN
43612010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4362
6bb24457
DN
4363 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4364
19d4c244
DN
43652010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4366
4367 Reduce cpp use in Makefile.in.
4368 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4369 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4370 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4371 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4372 (CRT0_COMPILE): Remove, inline it in the only user.
4373
32129746
JL
43742010-04-14 Juri Linkov <juri@jurta.org>
4375
4376 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4377 `scroll-up-command' and `M-v' from `scroll-down' to
4378 `scroll-down-command'.
4379
9013a7f8
JL
43802010-04-14 Juri Linkov <juri@jurta.org>
4381
4382 * window.c (Vscroll_preserve_screen_position_commands): New variable
4383 with the default value as the list of Qscroll_down and Qscroll_up.
4384 (window_scroll_pixel_based, window_scroll_line_based): Search the
4385 last command in the list Vscroll_preserve_screen_position_commands
4386 instead of comparing with Qscroll_up and Qscroll_down.
4387
4bef8d26
JD
43882010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4389
92848133
JD
4390 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4391 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4392 does that.
4393
4bef8d26
JD
4394 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4395 to zero.
4396
58b963f7
SM
43972010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4398
84164a0d
SM
4399 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4400
2b0a91e7
SM
4401 Try to solve the problem of spurious EOF chars in long lines of text
4402 sent to interactive subprocesses.
4403 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4404 (system_process_attributes): Remove unused var `ttotal'.
4405 * process.c (send_process): Don't bother breaking long line with EOF
4406 chars when talking to ttys any more.
4407 (wait_reading_process_output): Output a warning when called in such
4408 a way that it could block without being interruptible.
4409
58b963f7
SM
4410 Try to detect file modification within the same second.
4411 * buffer.h (struct buffer): New field modtime_size.
4412 * buffer.c (reset_buffer): Initialize it.
4413 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4414 (Fverify_visited_file_modtime): Check it.
4415 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4416 (Fset_visited_file_modtime): Set (or clear) it.
4417
01f5787b
SM
44182010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4419
4420 * process.c (status_notify): Remove unused var `ro'.
4421
83725342
JD
44222010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4423
4424 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4425 more than one visual (Bug#5938).
4426
b9465836
DN
44272010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4428
50426a04
JB
4429 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4430 Undefine.
b9465836 4431
8d9c8ece
DN
44322010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4433
b1f52161
DN
4434 Remove C_SWITCH_SYSTEM_TEMACS.
4435 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4436 (malloc, realloc, free): Use emacs, not temacs for conditional
4437 definition.
4438
4439 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4440 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4441
8d9c8ece
DN
4442 Use autoconf, not cpp for some variables.
4443 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4444 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4445 (ALL_CFLAGS): Use them as make variables.
4446 (really-lwlib, really-oldXMenu): Do not pass them.
4447
1ecb2d3f
JD
44482010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4449
4450 * xmenu.c (apply_systemfont_to_dialog): New.
4451 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4452
3a4fa2f2
SM
44532010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4454
97e53006
SM
4455 * process.c (exec_sentinel): Preserve current-buffer.
4456
3a4fa2f2
SM
4457 * process.c (read_process_output): Move the save-current-buffer to
4458 apply to both the filter and the non-filter branches.
4459
88df7221
DN
44602010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4461
4462 * s/msdos.h (UNEXEC): New definition.
4463
5634ff85
YM
44642010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4465
6eff5c3d
YM
4466 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4467 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4468
4469 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4470 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4471 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4472 TRY_WINDOW_CHECK_MARGINS.
4473
4474 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4475 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4476 width only when it is for padding.
5634ff85 4477
b13aef54
J
44782010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4479
4480 * xfns.c (Fx_show_tip): Call try_window in a loop until
4481 fonts_changed_p is zero (Bug#2423).
4482
21d28484
EZ
44832010-04-08 Eli Zaretskii <eliz@gnu.org>
4484
4485 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4486 the end of TEXT_AREA. (Bug#5856)
4487
0269ef77
JD
44882010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4489
4490 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4491 HAVE_GCONF.
4492
5930fe97
EZ
44932010-04-08 Eli Zaretskii <eliz@gnu.org>
4494
4495 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4496 prev.orig_type, for resolving type of NSM. (Bug#5858)
4497
99852628
JD
44982010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4499
4500 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4501 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4502 in current_font.
4503 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4504 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4505 New functions.
4506 (syms_of_xsettings): Initialize current_font.
4507 defsubr Sfont_get_system_normal_font.
99852628 4508
686b968e
JB
4509 * xsettings.h (Ffont_get_system_normal_font)
4510 (xsettings_get_system_normal_font): Declare.
99852628
JD
4511
4512 * xfns.c (extern xlwmenu_default_font): Remove.
4513 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4514 to xlwmenu.c.
4515
4516 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4517 menu items in UTF-8.
4518
4519 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4520 (apply_systemfont_to_menu): New function.
4521 (set_frame_menubar, create_and_show_popup_menu): Call
4522 apply_systemfont_to_menu.
4523
7fc874c4
J
45242010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4525
4526 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4527 FRAME_LINE_TO_PIXEL_Y.
4528
4529 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4530 pixelwidth/height.
4531
863bf481
DN
45322010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4533
5e5a3b92
DN
4534 Simplify code for HP machines.
4535 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4536 for GNU_LINUX, not needed.
4537 (UNEXEC, NEED_BSDTTY): Move definitions...
4538 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4539
863bf481
DN
4540 * m/iris4d.h (UNEXEC): Move definition ...
4541 * s/irix6-5.h (UNEXEC): ... here.
4542
3e6bec3b
JD
45432010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4544
4545 * xfns.c (set_machine_and_pid_properties): New function.
4546 (Fx_create_frame): Call set_machine_and_pid_properties.
4547
2912322b
SM
45482010-04-03 Eli Zaretskii <eliz@gnu.org>
4549
1502b819
EZ
4550 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4551 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4552 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4553
2912322b
SM
4554 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4555 in this function. (Bug#5703)
4556
45572010-04-03 Chong Yidong <cyd@stupidchicken.com>
4558
4559 * nsterm.h: Fix last change.
4560
c435b432
DN
45612010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4562
a568f507
DN
4563 * m/intel386.h (NO_REMAP): Move definition ...
4564 * s/msdos.h (NO_REMAP): ... here.
4565
4cd9f6c2
DN
4566 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4567
c435b432
DN
4568 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4569 used on those platforms.
4570
42a2c622
DN
45712010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4572
4573 Remove extern errno declarations.
4574 * xterm.c:
4575 * xrdb.c:
4576 * w32term.c:
4577 * unexec.c:
4578 * unexaix.c:
4579 * sysdep.c:
4580 * process.c:
4581 * lread.c:
4582 * keyboard.c:
4583 * floatfns.c:
4584 * filelock.c:
4585 * fileio.c:
4586 * emacs.c (main):
4587 * ecrt0.c:
4588 * dispnew.c:
4589 * callproc.c:
4590 * buffer.c: Remove errno extern declarations.
4591 * s/netbsd.h (NEED_ERRNO): Remove.
4592
8224f93d
DN
45932010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4594
4595 Remove all uses of LIBX11_SYSTEM.
4596 * Makefile.in (LIBX11_SYSTEM): Remove.
4597 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4598 instead.
4599
814062c7
EZ
46002010-04-01 Eli Zaretskii <eliz@gnu.org>
4601
ed68db4d
EZ
4602 Remove support for DJGPP v1.x (bug#5813).
4603
4604 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4605 * s/msdos.h:
4606 * unexec.c (make_hdr, copy_text_and_data):
4607 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4608 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4609 (IT_set_terminal_modes, __write, _rename, gethostname)
4610 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4611 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4612 the value of __DJGPP__.
ed68db4d
EZ
4613 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4614 compatibility code.
8224f93d
DN
4615 * lread.c:
4616 * gmalloc.c (memalign):
4617 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4618 * emacs.c (main):
4619 * dosfns.c (init_dosfns):
ed68db4d
EZ
4620 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4621
52f4d8d5
EZ
46222010-04-01 Eli Zaretskii <eliz@gnu.org>
4623
814062c7
EZ
4624 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4625 string with `cursor' property comes from an `after-string'
4626 overlay. (Bug#5816)
4627
0dc2e11d
GM
46282010-04-01 Glenn Morris <rgm@gnu.org>
4629
4630 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4631 Define as Makefile variables.
4632 (LIBX): Use above variables rather than directly using autoconf.
4633
1d29df59
DN
46342010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4635
4636 Clean up BSD_SYSTEM use.
4637 * xterm.c:
4638 * process.c:
4639 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4640 for including <sys/ioctl.h>.
4641 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4642 code is only used for MSDOS.
4643
1546c559
JL
46442010-03-31 Juri Linkov <juri@jurta.org>
4645
4646 * image.c: Add `Qextension_data'.
4647 (syms_of_image): Initialize and staticpro `Qextension_data'.
4648 (Fimage_metadata): Rename from `Fimage_extension_data'.
4649 (gif_load): Put GIF extension data to the property
4650 `Qextension_data'.
4651
6521c534
CY
46522010-03-31 Chong Yidong <cyd@stupidchicken.com>
4653
4654 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4655 * nsterm.h: Fix prototype.
4656
52c30783
EZ
46572010-03-31 Eli Zaretskii <eliz@gnu.org>
4658
4659 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4660 trailing whitespace in right-to-left rows.
4661
855a0da7
SM
46622010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4663
4664 Get rid of the direct_output optimizations.
4665 * keyboard.c (nonundocount): Remove extern declaration.
4666 (command_loop_1): Remove brittle optimisation for cheap and
4667 common operations.
4668 * xdisp.c (redisplay_internal): Don't bother checking
4669 redisplay_performed_directly_p any more.
4670 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4671 any more.
4672 * dispnew.c (redisplay_performed_directly_p)
4673 (direct_output_for_insert, direct_output_forward_char):
4674 * dispextern.h (redisplay_performed_directly_p)
4675 (direct_output_for_insert, direct_output_forward_char): Remove.
4676 * cmds.c (nonundocount): Make it static.
4677
85738751 46782010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4679
4680 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4681
85738751 46822010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4683
4684 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4685 invisible (Bug#5766).
4686
85738751 46872010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4688
855a0da7
SM
4689 * xdisp.c (x_consider_frame_title, update_window_cursor):
4690 Remove HAVE_NS conditionals.
194d44e7 4691 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4692
4693 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4694 filename for the title.
4695 (ns_set_doc_edited): Do nothing if the selected window is a
4696 minibuffer window.
4697
4698 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4699 ns_set_doc_edited.
4700
4701 * nsterm.m: Remove unneeded prototype.
4702
85738751 47032010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4704
4705 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4706 in the DOC file. (Bug#5336)
4707
85738751 47082010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4709
4710 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4711
75d1428c
SM
47122010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4713
4714 * window.c (keys_of_window): Remove redundant/overridden bindings.
4715
82043cfb
EZ
47162010-03-30 Eli Zaretskii <eliz@gnu.org>
4717
4718 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4719 Restore original behavior when the iterator is not bidi_p.
4720
b5dd0ae7
DN
47212010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4722
4723 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4724
bd924a5d
EZ
47252010-03-30 Eli Zaretskii <eliz@gnu.org>
4726
4727 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4728 are outside the range of cached character positions.
4729
3580374b
JB
47302010-03-30 Juanma Barranquero <lekktu@gmail.com>
4731
4732 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4733
a7b02820
EZ
47342010-03-30 Eli Zaretskii <eliz@gnu.org>
4735
4736 Initial support for bidirectional editing.
4737
4738 * Makefile.in (obj): Include bidi.o.
4739 (bidi.o): New target.
4740
4741 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4742 ($(BLD)/bidi.$(O)): New target.
4743
4744 * bidi.c: New file.
4745
4746 * buffer.h (struct buffer): New members bidi_display_reordering
4747 and bidi_paragraph_direction.
4748
4749 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4750 and bidi_paragraph_direction.
4751 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4752 and bidi-paragraph-direction.
4753 (Fbuffer_swap_text): Swap the values of
4754 bidi_display_reordering and bidi_paragraph_direction.
4755
4756 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4757 (bidi_type_t, bidi_dir_t): New types.
4758 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4759 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4760 prev_stop, base_level_stop, and eol_pos.
4761 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4762 (IT_STACK_SIZE): Enlarge to 5.
4763 (struct glyph_row): New member reversed_p.
4764 <string_buffer_position>: Update prototype.
4765 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4766 glyph_row if bidi_it.paragraph_dir == R2L.
4767 (struct glyph): New members resolved_level and bidi_type.
4768
4769 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4770 processing or buffer's direction is right-to-left.
4771 (prepare_desired_row): Preserve the reversed_p flag.
4772 (row_equal_p): Compare the reversed_p attributes as well.
4773
4774 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4775 bidi_init_it and set it->paragraph_embedding from the current
4776 buffer's value of bidi_paragraph_direction.
4777 (reseat_1): Initialize bidi_it.first_elt.
4778 (set_iterator_to_next, next_element_from_buffer): Use the value of
4779 paragraph_embedding to determine the paragraph direction.
4780 (set_iterator_to_next): Under bidi reordering, call
4781 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4782 new_paragraph flag is set in the bidi iterator.
4783 (next_element_from_buffer): If bidi_it.first_elt is set,
4784 initialize paragraph direction and find the first character to
4785 display in the visual order. If reseated to a middle of a line,
4786 prime the bidi iterator starting at the line's beginning. Handle
4787 the situation where we overstepped stop_charpos due to
4788 non-linearity of the bidi iteration. Likewise for when we back up
4789 beyond the previous stop_charpos. When moving across stop_charpos,
4790 record it in prev_stop.
4791 (display_line): Set row->end and it->start for the next row to the
4792 next character in logical order. Always extend reversed_p rows to
4793 the end of line, even if they end at ZV. Copy the reversed_p flag
4794 to the next glyph row. Keep calling set_cursor_from_row for
4795 bidi-reordered rows even if we already have a possible candidate
4796 for cursor position. Set row_end after all the row's glyphs have
4797 been produced, by looping over the glyphs. Record the position
4798 after EOL in it->eol_pos, and use it to set end_pos of the last
4799 row produced for a continued line.
4800 <Qright_to_left, Qleft_to_right>: New variables.
4801 (syms_of_xdisp): Initialize and staticpro them.
4802 (string_buffer_position_lim): New function.
4803 (string_buffer_position): Most of code moved to
4804 string_buffer_position_lim. Last argument and return value are
4805 now EMACS_INT; all callers changed.
4806 (set_cursor_from_row): Rewritten to support bidirectional text and
4807 reversed glyph rows.
4808 (text_outside_line_unchanged_p, try_window_id): Disable
4809 optimizations if we are reordering bidirectional text and the
4810 paragraph direction can be affected by the change.
4811 (append_glyph, append_composite_glyph)
4812 (produce_image_glyph, append_stretch_glyph): Set the
4813 resolved_level and bidi_type members of each glyph.
4814 (append_glyph): If the glyph row is reversed, prepend the glyph
4815 rather than appending it.
4816 (handle_stop_backwards): New function.
4817 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4818 (reseat): call handle_stop_backwards to recompute prev_stop and
4819 base_level_stop for the new position.
4820 (handle_invisible_prop): Under bidi iteration, skip invisible text
4821 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4822 paragraph direction. Update IT->prev_stop after skipping
4823 invisible text.
4824 (move_it_in_display_line_to): New variables prev_method
4825 and prev_pos. Compare for strict equality in
4826 BUFFER_POS_REACHED_P.
4827 (try_cursor_movement): Examine all the candidate rows that occlude
4828 point, to return the best match. If rows are bidi-reordered
4829 and point moved backwards, back up to the row that is not a
4830 continuation line, and start looking for a suitable row from
4831 there.
4832
4833 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4834 rather than appending, if the glyph_row's reversed_p flag is set.
4835 Set the resolved_level and bidi_type members of each glyph.
4836
4837 * .gdbinit (pbiditype): New command.
4838 (pgx): Use it to display bidi level and type of the glyph.
4839 (pitx): Display some bidi information about the iterator.
4840 (prowlims, pmtxrows): New commands.
4841
32a8894e
DN
48422010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4843
4844 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4845 * s/usg5-4.h (LIBS_DEBUG):
4846 * s/irix6-5.h (C_DEBUG_SWITCH):
4847 * s/gnu-linux.h (LIBS_DEBUG):
4848 * s/darwin.h (LIBS_DEBUG):
4849 * s/bsd-common.h (LIBS_DEBUG):
4850 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4851 * m/iris4d.h (LIBS_DEBUG):
4852 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4853
4854 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4855 (LIBS_DEBUG): Remove definition.
4856
649dbf36
CY
48572010-03-27 Chong Yidong <cyd@stupidchicken.com>
4858
4859 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4860 Windows.
4861
cad4261f
YM
48622010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4863
4864 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4865 `connect' (Bug#5723).
4866
cd591dbc
HE
48672010-03-25 Helmut Eller <eller.helmut@gmail.com>
4868
4869 * process.c (Fmake_network_process): Call `select' for interrupted
4870 `connect' rather than creating new socket (Bug#5173).
4871
e867cb5d 48722010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4873
4874 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4875
4876 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4877
4878 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4879
e867cb5d 48802010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4881
4882 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4883 XLoadQueryFont.
4884
e867cb5d 48852010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4886
4887 * coding.c (decode_coding_ccl): Fix previous change for the
4888 multibyte case.
fb608df3
KH
4889 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4890 case that the output buffer is fullfilled.
4891 (encode_coding): Setup ccl program here.
fbdc1721 4892
5845f0ed
DN
48932010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4894
814fb708
DN
4895 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4896
5845f0ed
DN
4897 Simplify LIBS_MACHINE definitions.
4898 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4899 * m/iris4d.h (LIBS_MACHINE): Likewise.
4900 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4901 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4902 * s/netbsd.h: Remove commented out code.
5845f0ed 4903
b7064064
DN
49042010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4905
df7734b2
DN
4906 Remove dead code dealing with POSIX_SIGNALS.
4907 * atimer.c (set_alarm): Remove dead code, all USG systems define
4908 POSIX_SIGNALS.
4909 * data.c (arith_error): Likewise.
4910 * keyboard.c (input_available_signal, handle_user_signal)
4911 (interrupt_signal): Likewise.
4912 * process.c (sigchld_handler): Likewise.
4913 (create_process): Remove if 0 code. Remove HPUX conditional when
4914 !defined (POSIX_SIGNALS), it cannot be true.
4915 * syssignal.h: Remove USG5_4 and USG conditionals when
4916 !POSIX_SIGNALS, they cannot be true.
4917
b7064064
DN
4918 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4919 NO_SOCK_SIGIO, not used anymore.
4920
55da5ee3
DN
49212010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4922
0be96e3a
DN
4923 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4924 support vax on BSDs.
4925
55da5ee3
DN
4926 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4927 * s/aix4-2.h (ORDINARY_LINK): ... here.
4928
c0282183
AS
49292010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4930
82c3d67a
AS
4931 * Makefile.in (abs_builddir): Define.
4932 (bootstrap_exe): Use it.
4933 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4934
3613edce
SM
49352010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4936
4937 * Makefile.in (bootstrap_exe): Use an absolute name.
4938
7f110ddc
DN
49392010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4940
22e87574
DN
4941 Remove support for old GNU/Linux using libc version 5.
4942 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4943 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4944
05a670e6
DN
4945 Consolidate redundant definitions in s/bsd-common.h.
4946 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4947 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4948 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4949 doing it in all files that include this one.
4950 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4951 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4952 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4953 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4954 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4955 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4956 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4957 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4958 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4959
2968f561
DN
4960 Consolidate redundant definitions.
4961 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4962 it's undefined in all files that include this one.
4963 (POSIX_SIGNALS): Define here instead of doing it in all files that
4964 include this one.
4965 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4966 (POSIX_SIGNALS): Do not define.
4967 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4968 (POSIX_SIGNALS): Do not define.
4969 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4970 (POSIX_SIGNALS): Do not define.
4971
15d25dc0
DN
4972 Remove support for old UNIX System V systems.
4973 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4974 * s/usg-5-4-2.h: Remove.
4975
07e339e4
DN
4976 Remove support for Solaris on PPC and for old versions.
4977 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4978 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4979 that cancel each other.
4980 * s/sol2-3.h:
4981 * s/sol2-4.h:
4982 * s/sol2-5.h: Remove.
4983 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4984 (NO_REMAP): Remove, unused.
4985 (UNEXEC): Move definition ...
4986 * s/aix4-2.h (UNEXEC): ... here.
4987
7f110ddc
DN
4988 * s/openbsd.h: Remove support for non-ELF and for systems that do
4989 not support shared libraries.
4990 * s/netbsd.h:
4991 * s/freebsd.h: Likewise.
4992
605f35cd
DN
49932010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4994
4995 Remove non-working support for lynxos 3.0.
4996 * s/lynxos.h: Remove file.
4997
4998 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4999 COFF_BSD_SYMBOLS, nothing defines it anymore.
5000
aed71cf4
DN
50012010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5002
5003 Remove obsolete uses of HAVE_SHM.
5004 * emacs.c (standard_args):
5005 (Fdump_emacs):
5006 (syms_of_emacs): Remove code depending on HAVE_SHM.
5007
5008 * alloc.c: Remove HAVE_SHM dependent definition.
5009
5010 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5011
aded53ff
GM
50122010-03-18 Glenn Morris <rgm@gnu.org>
5013
17284745
GM
5014 * emacs.c (USAGE4): Hard-code bug address.
5015 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5016 (bug_reporting_address): Remove.
5017 (main): Don't call bug_reporting_address.
5018
aded53ff
GM
5019 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5020 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5021
303500aa
CY
50222010-03-15 Chong Yidong <cyd@stupidchicken.com>
5023
5024 * xfns.c (Fx_create_frame):
5025 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5026 on left.
5027
cef3058f
CY
50282010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5029
5030 * editfns.c (Fformat): Account for string precision when computing
5031 field width (Bug#5710).
5032
a647d59d
CY
50332010-03-12 Chong Yidong <cyd@stupidchicken.com>
5034
4fa42018
CY
5035 * xfns.c (Fx_create_frame): Set default to Qright.
5036
a647d59d
CY
5037 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5038 all window systems.
5039
6da23aaa
EZ
50402010-03-12 Eli Zaretskii <eliz@gnu.org>
5041
a96f6398 5042 These changes remove termcap.c from the build on Posix platforms.
83d02def 5043 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5044 (MSDOS_OBJ): ...to here.
5045 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5046 now identical to when LIBS_TERMCAP is defined.
5047
5048 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5049
5050 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5051
a96f6398 5052 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5053
288f9fc0
CY
50542010-03-10 Chong Yidong <cyd@stupidchicken.com>
5055
5056 * Branch for 23.2.
5057
d48cd3f4
SM
50582010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5059
5060 Cleanup setup of gl_state in various parts of the code.
5061 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5062 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5063 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5064 (skip_chars):
5065 * regex.c (regex_compile): Use it.
5066 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5067 it's now set in regex_compile when/if we need it.
5068
618db430
SM
50692010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5070
c0335e02
SM
5071 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5072 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5073 (QUIT): Use it to consolidate code and remove redundancy.
5074 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5075
254c06a8
SM
5076 * regex.c (regex_compile): Setup gl_state as well.
5077
618db430
SM
5078 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5079 (in_classes): Use CONSP before XCAR/XCDR.
5080
233f0c9f
CY
50812010-03-03 Chong Yidong <cyd@stupidchicken.com>
5082
5083 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5084 definitions, so that keyboard macros are correctly handled
5085 (Bug#5481).
5086
75f80e63
EZ
50872010-03-02 Eli Zaretskii <eliz@gnu.org>
5088
5089 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5090 text that could be relocated inside the call to emacs_mule_char.
5091 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5092 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5093
dcfb9bc4
KH
50942010-03-02 Kenichi Handa <handa@m17n.org>
5095
fc9a17bc
KH
5096 * character.c (parse_str_as_multibyte): Fix handling of the
5097 multibyte form of raw-bytes.
5098 (str_as_multibyte): Likewise.
5099
dcfb9bc4
KH
5100 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5101 form of raw-bytes.
5102
412c01b6
CY
51032010-02-28 Chong Yidong <cyd@stupidchicken.com>
5104
5105 * charset.c (load_charset_map_from_file)
5106 (load_charset_map_from_vector): Zero out allocated
5107 charset_map_entries before using them.
5108
df7e1ea0
AS
51092010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5110
5111 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5112
fe69a722
CY
51132010-02-27 Chong Yidong <cyd@stupidchicken.com>
5114
4ed28cf4
CY
5115 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5116 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5117
7379cfce
KH
51182010-02-26 Kenichi Handa <handa@m17n.org>
5119
f88cc4d6
KH
5120 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5121
7379cfce
KH
5122 * xdisp.c (reseat_to_string): Fix previous change.
5123
cf2fdcfb
CY
51242010-02-26 David Reitter <david.reitter@gmail.com>
5125
5126 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5127 Lisp_Object (Bug#4736).
5128
cc6c7c75
KH
51292010-02-25 Kenichi Handa <handa@m17n.org>
5130
5131 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5132
32e737d7
JD
51332010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5134
5135 * xterm.c (XTflash): Move declarations before statements.
5136
5137 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5138 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5139 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5140 (xg_create_tool_bar): Remove unused variables.
5141 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5142 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5143
676cae9f
CY
51442010-02-21 Chong Yidong <cyd@stupidchicken.com>
5145
5146 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5147
886cc2b8
SM
51482010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5149
5150 * term.c (fatal): Add a final \n if needed (bug#5596).
5151
ddb2d8e2
CY
51522010-02-18 Chong Yidong <cyd@stupidchicken.com>
5153
5154 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5155
2a4f8d3d
GM
51562010-02-18 Glenn Morris <rgm@gnu.org>
5157
5158 * callint.c (Finteractive): Doc fix.
5159
ebaf11b6
KH
51602010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5161
886cc2b8
SM
5162 * coding.c (record_conversion_result):
5163 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5164 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5165 memory allocation error.
5166
d0396581
KH
51672010-02-17 Kenichi Handa <handa@m17n.org>
5168
886cc2b8
SM
5169 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5170 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5171 (decode_coding): Setup ccl program here. Keep looping when the
5172 decoder stopped because the output buffer is
5173 fullfilled (bug#5534).
5174
5175 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5176
98599f74
JD
51772010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5178
471e4f04 5179 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5180 bug #5571.
886cc2b8 5181 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5182 overdrawn.
98599f74 5183
182659ae
JD
51842010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5185
5186 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5187 doing_interact here.
5188 (ice_connection_closed): New function.
5189 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5190 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5191 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5192 returns I/O error.
5193 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5194 bug #5512.
5195
9be32c4e 51962010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5197
5198 * nsfont.m (nsfont_open): The system's value for the font descent
5199 is negative, so round it down to avoid clipping.
5200
a2f3eb19
CY
52012010-02-06 Chong Yidong <cyd@stupidchicken.com>
5202
5203 * charset.c (load_charset_map_from_file)
5204 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5205 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5206
3088147c
CY
52072010-02-05 Chong Yidong <cyd@stupidchicken.com>
5208
5209 * charset.c (load_charset_map_from_file): Allocate large
5210 charset_map_entries structure on the heap rather than the stack.
5211 (Bug#5526).
5212
b57d9029
KH
52132010-01-31 Kenichi Handa <handa@m17n.org>
5214
5215 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5216 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5217
c67d885b
CY
52182010-01-31 Chong Yidong <cyd@stupidchicken.com>
5219
5220 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5221 <deactivated@gmail.com> (Bug#3605).
5222
8fab2362
CY
52232010-01-31 David De La Harpe Golden <david@harpegolden.net>
5224
5225 * fileio.c (Frename_file): Correctly rename symlinks to
5226 directories (Bug#5496).
5227
cb2a62f2
CY
52282010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5229
5230 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5231
944c7a26
AS
52322010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5233
5234 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5235
c024ac08
CY
52362010-01-29 Chong Yidong <cyd@stupidchicken.com>
5237
5238 * frame.c (DEFAULT_ROWS): Change default to 35.
5239
5240 * xfns.c (x_default_font_parameter): Change default XFT font to
5241 monospace-10 (Bug#3643).
5242
af93af83
EZ
52432010-01-29 Eli Zaretskii <eliz@gnu.org>
5244
5245 * w32inevt.c (key_event): Remove unnecessary comparison of
5246 event->uChar.AsciiChar with 128.
5247
ca0eb708
CY
52482010-01-28 Chong Yidong <cyd@stupidchicken.com>
5249
b242dbfc
CY
5250 * fileio.c (Frename_file): Fix last change (Bug#5487).
5251
ca0eb708
CY
5252 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5253
5254 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5255
45d45af5
JD
52562010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5257
5258 * xfns.c (Fx_create_frame): Remove window size matching code from
5259 2010-01-15.
a73f9c9d 5260 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5261
7e233730
JR
52622010-01-27 Jason Rumney <jasonr@gnu.org>
5263
5264 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5265 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5266
86e893e3
KH
52672010-01-27 Kenichi Handa <handa@m17n.org>
5268
5269 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5270 pattern string (Bug#4209).
86e893e3 5271
8719abec
CY
52722010-01-27 David De La Harpe Golden <david@harpegolden.net>
5273
5274 * fileio.c (Frename_file): Call copy-directory and
5275 delete-directory for directories, in order to handle cross-device
5276 renaming (Bug#3353).
5277
844794c8
JD
52782010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5279
aa3e13b5 5280 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5281 sizes 24 and 10. Bug #3643.
844794c8 5282
bd4b5750
SM
52832010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5284
8dc1adf6 5285 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5286 * keymap.c (shadow_lookup): Add `remap' arg.
5287 (describe_map, describe_vector): Update calls to shadow_lookup.
5288 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5289 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5290 perform remapping during shadow_lookup check of remapped_sequences.
5291
285d07e2
CY
52922010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5293
5294 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5295 png_check_sig, which has been removed in libpng 1.4.
5296
c6d09b8d
CY
52972010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5298
5299 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5300 lacks this header file).
5301
3d782998
YM
53022010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5303
5304 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5305 as in Emacs 22.
5306
2aff7c53
YM
53072010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5308
5309 * lisp.h (make_pure_string): String pointer arg now points to const.
5310
5311 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5312 args now point to const.
5313
74327f7a
EZ
53142010-01-22 Eli Zaretskii <eliz@gnu.org>
5315
5316 * lread.c (Fload): Don't treat files without .elc extension as
5317 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5318 them. (bug#5303)
5319
4d1e6632
KH
53202010-01-20 Kenichi Handa <handa@m17n.org>
5321
5322 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5323 treat the source as actual byte sequence.
5324
1fdede8f
AM
53252010-01-19 Alan Mackenzie <acm@muc.de>
5326
5327 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5328 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5329 `signal_after_change_p' to `coherent_change_p', and make the
5330 invocation of `modify_region' conditional on it.
5331
67477f30
JD
53322010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5333
5334 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5335 for debug purpose.
5336 (syms_of_xsettings): Declare xft-settings.
5337
244b023e
CY
53382010-01-18 Chong Yidong <cyd@stupidchicken.com>
5339
5340 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5341
617364fe
CY
53422010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5343
5344 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5345
4fe22cdf
CY
53462010-01-16 Chong Yidong <cyd@stupidchicken.com>
5347
5348 * emacs.c (standard_args): Adjust arg priorities to reflect how
5349 they are processed in startup.el.
5350
e118d2be
AS
53512010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5352
5353 * Makefile.in (lisp, shortlisp): Update.
5354
523ae620
SM
53552010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5358 code, link the new kboard into all_kboard before running Lisp code,
5359 and protect the new terminal with GCPRO (Bug#5365).
5360 (x_term_init): Remove unused var `atom'.
5361 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5362
f0d13888
JD
53632010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5364
5365 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5366 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5367 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5368 this. Bug #3643.
f0d13888 5369
cc320f07
KH
53702010-01-15 Kenichi Handa <handa@m17n.org>
5371
5372 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5373
7ffdf101
CY
53742010-01-15 Chong Yidong <cyd@stupidchicken.com>
5375
5376 * nsterm.m (Qnone): Define.
5377
5378 * nsfns.m (Qnone): Move definition to nsterm.m.
5379
d12bd917
KH
53802010-01-14 Kenichi Handa <handa@m17n.org>
5381
5382 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5383 systems.
5384
d9a7c140
KH
53852010-01-14 Kenichi Handa <handa@m17n.org>
5386
5387 Make auto-composition work on all buffers even if they are
5388 fundamental mode.
5389
5390 * composite.c (Vauto_composition_mode): New variable.
5391 (composition_compute_stop_pos): Check Vauto_composition_mode
5392 instead of Vauto_composition_function.
5393 (composition_adjust_point, Ffind_composition_internal): Likewise.
5394 (syms_of_composite): Declare Lisp variable
5395 "auto-composition-mode" here.
5396
63286bb2
CY
53972010-01-13 Chong Yidong <cyd@stupidchicken.com>
5398
5399 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5400 during call to vendor-specific-keysyms (Bug#5365).
5401
c2623ee7
YM
54022010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5403
5404 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5405 Call SIGNAL_THREAD_CHECK (Bug#5333).
5406
5407 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5408 Call SIGNAL_THREAD_CHECK.
5409
0b5397c2
SM
54102010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5411
5412 Try to fix bug#5314. This is probably not the final word, tho.
5413 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5414 recent-auto-save-p as a side-effect.
5415 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5416 * buffer.c (Fkill_buffer, reset_buffer):
5417 * editfns.c (Fsubst_char_in_region):
5418 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5419 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5420
dc954cb2
KH
54212010-01-13 Kenichi Handa <handa@m17n.org>
5422
5423 Display buffer name, etc. in mode line by composing correctly.
5424
5425 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5426 STRING is not nil.
0b5397c2 5427 (display_mode_element): Adjust for the change of
dc954cb2
KH
5428 decode_mode_spec and display_line.
5429 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5430 (display_string): Handle the case that STRING is non-null and
5431 LISP_STRING is not nil.
5432
0b5397c2
SM
5433 * xterm.c (x_draw_composite_glyph_string_foreground):
5434 Pay attention to s->face->overstrike.
dc954cb2
KH
5435
5436 * composite.c (composition_reseat_it): Don't check PT if STRING is
5437 non nil.
5438
4a00eaca
YM
54392010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5440
5441 * keyboard.c (read_char): Don't apply previous change when current
5442 buffer is unchanged by command execution.
5443
60abb287
JD
54442010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5445
5446 * keyboard.c (read_char): Return after executing from special map.
5447
893db5bc
GM
54482010-01-12 Glenn Morris <rgm@gnu.org>
5449
5450 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5451 bug-gnu-emacs rather than emacs-pretest-bug.
5452
4d03ece0
CY
54532010-01-11 Chong Yidong <cyd@stupidchicken.com>
5454
5455 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5456 initializing the Lisp variables that depend on them.
5457
1df47e38
YM
54582010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5459
5460 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5461 Clear areas that will not be updated after change of menu bar lines.
5462 Clear the menu bar window's current matrix when the window gets empty.
5463
2f1c6384
CY
54642010-01-09 Chong Yidong <cyd@stupidchicken.com>
5465
e398c61c
CY
5466 * intervals.h, textprop.c (extend_property_ranges): Return value
5467 and args changed. Discard properties that begin at or after the
5468 new end (Bug#5306).
5469
5470 * editfns.c (Fformat): Caller changed.
5471
e5a29a10
CY
5472 * nsterm.m (ns_set_default_prefs): Delete function.
5473 (syms_of_nsterm): Initialize ns_command_modifier,
5474 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5475 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5476
2f1c6384
CY
5477 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5478 position (Bug#4040).
5479
d427a9fa
EZ
54802010-01-09 Eli Zaretskii <eliz@gnu.org>
5481
5482 * editfns.c (Ffloat_time): Doc fix.
5483
21b9df2f
JD
54842010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5485
5486 * xfns.c (Fx_create_frame): Don't create frame larger than display
5487 by default bug#3643.
5488
4b00d3b1
YM
54892010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5490
5491 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5492 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5493 windows above internal border.
5494
5495 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5496 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5497 windows above internal border.
5498
5499 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5500 tool bar windows specially.
5501
5502 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5503
5504 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5505 specially.
5506 (XTflash): Take account of menu bar height.
5507
5508 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5509 specially.
5510
5075d853
JD
55112010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5512
ac146f82 5513 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5514 also be true before we can return early (bug #5339).
5515
474217c8
CY
55162010-01-06 David Reitter <david.reitter@gmail.com>
5517
5518 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5519 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5520 (Bug#3233).
5521
c0e6d47d
JD
55222010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5523
d0cf45b7
JD
5524 * font.c (font_open_entity): Enable chache and call cached_font_ok
5525 for the driver if defined.
5526 (QCuser_spec): New symbol.
5527 (font_spec_from_name): Save name as user-spec.
5528 (font_load_for_lface): Keep user-spec instead of name.
5529 (font_open_by_name): Save name as user-spec.
5530 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5531 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5532
5533 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5534 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5535 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5536
5537 * font.h (struct font_driver): Add cached_font_ok.
5538
c0e6d47d
JD
5539 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5540
7c583cd8
JD
55412010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5542
5543 * xterm.c (x_new_font): Move code for setting rows/cols before
5544 resizing ...
ac146f82 5545 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5546
5547 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5548 (xg_frame_resized, xg_frame_set_char_size):
5549 Call xg_clear_under_internal_border.
7c583cd8 5550 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5551
03f77f0a
CY
55522010-01-05 Chong Yidong <cyd@stupidchicken.com>
5553
5554 * keyboard.c (read_key_sequence): Catch keyboard switch after
5555 making a new tty frame (Bug#5095).
5556
2a1ef5be
KH
55572010-01-05 Kenichi Handa <handa@m17n.org>
5558
5559 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5560
e3eb1dae
SM
55612010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5562
5563 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5564 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5565 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5566
777013f2
MA
55672010-01-03 Michael Albinus <michael.albinus@gmx.de>
5568
5569 * dbusbind.c (xd_add_watch): Improve debug message.
5570 (xd_remove_watch): Improve debug message. If DATA is the session
5571 bus, unset D-Bus session environment.
5572 (Fdbus_init_bus): Pass the bus as argument to
5573 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5574
8932b1c2
CY
55752010-01-01 Chong Yidong <cyd@stupidchicken.com>
5576
87231e2c
CY
5577 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5578
4801c5fa
CY
5579 * lread.c (syms_of_lread): Make it clearer that these are the
5580 names of loaded files (Bug#5068).
5581
8932b1c2
CY
5582 * eval.c (run_hook_with_args): Handle the case where the global
5583 value has the obsolete single-function form (Bug#5026).
5584
11e3c684
CY
55852009-12-27 Chong Yidong <cyd@stupidchicken.com>
5586
5587 * minibuf.c (Fall_completions): Minor optimization.
5588
5b28ce35
EZ
55892009-12-26 Eli Zaretskii <eliz@gnu.org>
5590
5ce6e4f4
JB
5591 * .gdbinit (pgx): Fix display of composite glyphs.
5592 Display cmp.from and cmp.to as well.
5593 (pitx): Fix last change.
5b28ce35 5594
bcffff46
KH
55952009-12-25 Kenichi Handa <handa@m17n.org>
5596
5597 * composite.h (composition_adjust_point): Update prototype.
5598
5599 * composite.c (composition_reseat_it): Don't make a composition
5600 spanning over point.
5601 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5602 composable characters.
5603 (composition_adjust_point): New arg NEW_PT. Callers changed.
5604
5605 * keyboard.c (command_loop_1): Force redisplay if the last point
5606 was within a composition.
5607 (adjust_point_for_property): Don't adjust point for automatic
5608 composition when called after buffer modification.
5609
3f670e9a
EZ
56102009-12-19 Eli Zaretskii <eliz@gnu.org>
5611
5ce6e4f4
JB
5612 * .gdbinit (pitx): Don't use enum names, use their values.
5613 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5614 (pgx): Don't use enum names, use their values.
5615 (pitmethod): New helper command.
5616 (pitx): Use it to display iteration method.
5617 (pgrowit): New command.
5618
ad903955
EZ
5619 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5620
3f670e9a
EZ
5621 Update dependencies in Makefile.in.
5622
5623 * Makefile.in (alloc.o): Depend on termhooks.h.
5624 (atimer.o): Depend on blockinput.h.
5625 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5626 and frame.h.
5627 (callint.o): Depend on systime.h, coding.h, and composite.h.
5628 (callproc.o): Depend on buffer.h.
5629 (casefiddle.o): Don't depend on charset.h.
5630 (casetab.o): Depend on character.h.
5631 (ccl.o): Depend on composite.h.
5632 (chartab.o): Depend on ccl.h.
5633 (cm.o): Depend on dispextern.h.
5634 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5635 (coding.o): Don't depend on $(INTERVALS_H).
5636 (composite.o): Don't depend on dispextern.h explicitly (it's in
5637 $(INTERVALS_H)). Depend on ccl.h.
5638 (data.o): Depend on systime.h, coding.h, composite.h,
5639 dispextern.h, font.h, and ccl.h.
5640 (dired.o): Depend on composite.h.
5641 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5642 composite.h (it's in $(INTERVALS_H)).
5643 (doc.o): Depend on systime.h, coding.h, and composite.h.
5644 (editfns.o): Don't depend explicitly on dispextern.h.
5645 (emacs.o): Depend on frame.h and coding.h.
5646 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5647 (fileio.o): Depend on frame.h and commands.h. Don't depend
5648 explicitly on dispextern.h.
5649 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5650 composite.h.
5651 (fns.o): Don't depend on termhooks.h.
5652 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5653 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5654 coding.h, $(INTERVALS_H), window.h, xterm.h.
5655 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5656 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5657 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5658 fontset.h, ccl.h, and ftfont.h.
5659 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5660 (gtkutil.o): Depend on dispextern.h and composite.h.
5661 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5662 termhooks.h, and ccl.h.
5663 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5664 (intervals.o): Depend on systime.h and coding.h.
5665 (keyboard.o): Depend on composite.h and coding.h.
5666 (keymap.o): Depend on coding.h and frame.h.
5667 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5668 (macros.o): Depend on systime.h, coding.h, and composite.h.
5669 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5670 and atimer.h.
5671 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5672 dispextern.h explicitly.
0b5397c2
SM
5673 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5674 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5675 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5676 (regex.o): Don't depend on charset.h.
5677 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5678 (search.o): Don't depend explicitly on composite.h.
5679 (sound.o): Depend on atimer.h and systime.h.
5680 (syntax.o): Don't depend explicitly on composite.h.
5681 (sysdep.o): Depend on coding.h and composite.h.
5682 (term.o): Depend on xterm.h and buffer.h.
5683 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5684 (textprop.o): Don't depend on dispextern.h explicitly.
5685 (undo.o): Depend on dispextern.h.
5686 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5687 dispextern.h and composite.h explicitly.
5688 (xdisp.o): Depend on ccl.h.
5689 (xfaces.o): Depend on coding.h and ccl.h.
5690 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5691 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5692 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5693 ftfont.h.
5694 (xgselect.o): New dependency.
5695 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5696 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5697 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5698 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5699 (xsmfns.o): Depend on frame.h and dispextern.h.
5700 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5701 sysselect.h.
5702
7a6f7fea
AS
57032009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5704
5705 * font.c (Fclear_font_cache): Pass correct cache argument to
5706 font_clear_cache.
5707
f4c21026
AS
57082009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5709
5710 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5711 twice.
5712
f7ab0997
CY
57132009-12-15 Chong Yidong <cyd@stupidchicken.com>
5714
5715 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5716 calling file-remote-p. Reported by Jim Meyering.
5717
fa8e045a
MA
57182009-12-15 Michael Albinus <michael.albinus@gmx.de>
5719
5720 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5721 avoid compiler warnings. (Bug #5217)
fa8e045a 5722
a63dba42
KH
57232009-12-14 Kenichi Handa <handa@m17n.org>
5724
5725 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5726 in 8-bit encoding.
5727
5ce6e4f4 57282009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5729
5730 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5731 tooltip windows.
5732
223e5fc6
JD
57332009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5734
36acb2a7
JD
5735 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5736 Xatom_net_window_type.
5737
5738 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5739 Xatom_net_window_type.
5740
b8f00677
JD
5741 * xterm.c (my_log_handler): New function.
5742 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5743 so we can filter out buggy messages. (Bug #5120).
b8f00677 5744
e5f0bc9a
JD
5745 * xterm.c (xg_scroll_callback): Parameter list changed,
5746 use parameter GtkScrollType to determine scroll/line/page.
5747 Only allow dragging if a button < 4 is grabbed (bug #5177).
5748 (xg_end_scroll_callback): New function.
5749 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5750 xg_create_scroll_bar.
5751
5752 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5753 (scroll_end_callback): Remove.
5754 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5755 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5756 bug #5177.
e5f0bc9a
JD
5757 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5758 bug #5177.
5759
5760 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5761 (xg_create_scroll_bar): Add GCallback end_callback.
5762
223e5fc6
JD
5763 * xftfont.c (QClcdfilter): New variable.
5764 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5765 (syms_of_xftfont): Initialize QClcdfilter.
5766
3c055b77
JD
57672009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5768
5769 * xsettings.c (struct xsettings): Add member seen.
5770 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5771 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5772 (apply_xft_settings): Only update Xft settings with what member seen
5773 indicates as new.
5774
05fe33ff
EZ
57752009-12-12 Eli Zaretskii <eliz@gnu.org>
5776
c4cc8b9a 5777 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5778 (struct glyph): Use EMACS_INT for charpos.
5779 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5780 region_beg_charpos, region_end_charpos,
5781 redisplay_end_trigger_charpos, and also for
5782 iterator_stack_entry.end_charpos and
5783 iterator_stack_entry.stop_charpos.
5784
e8d7886a
JD
57852009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5786
5ce6e4f4 5787 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5788 (xg_create_scroll_bar): Call scroll_end_callback on button release
5789 event (bug #5177).
5790 (xg_event_is_for_scrollbar): != replaced with ==.
5791
d0db2ec8
KH
57922009-12-12 Kenichi Handa <handa@m17n.org>
5793
5794 * ftfont.c (struct ftfont_info): New member matrix.
5795 (ftfont_open): Setup xftfont_info->matrix.
5796 (MFLTFontFT): New member matrix.
5797 (FLOOR, CEIL, ROUND): New macros.
5798 (ftfont_get_metrics): Handle matrix transformation.
5799 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5800
5801 * xftfont.c (struct xftfont_info): New member matrix.
5802 (xftfont_open): Setup xftfont_info->matrix.
5803
58042009-12-10 Kenichi Handa <handa@m17n.org>
5805
5806 * xdisp.c (append_space_for_newline): Consider face-remapping.
5807
2cc7b62f
AS
58082009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5809
b87dd913
AS
5810 * xsettings.c: Include "keyboard.h".
5811
eba5eb94
AS
5812 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5813
2cc7b62f
AS
5814 Fix implicit function declarations.
5815 * cmds.c: Include "frame.h".
5816 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5817 * frame.h: Move declaration of delete_frame outside of
5818 HAVE_WINDOW_SYSTEM.
5819
a4ef73c8
CY
58202009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5821
5822 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5823
5824 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5825 GTK builds.
5826
944a300c
AS
58272009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5828
5829 * unexelf.c (unexec): Don't search for .data twice.
5830
022eef62
CY
58312009-12-05 Chong Yidong <cyd@stupidchicken.com>
5832
426ac949
CY
5833 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5834 if push failed.
5835 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5836 of push_display_prop (Bug#5000).
5837
022eef62
CY
5838 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5839 value of font_list_entities (Bug#5085).
5840
be95bee9
JB
58412009-12-04 Juanma Barranquero <lekktu@gmail.com>
5842
5843 Fix `string-to-number' to deal consistently with integers and floats.
5844 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5845 trailing characters, not just whitespace.
5846 (read1): Pass new arg 0 to keep old behavior.
5847 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5848 trailing chars, as it is already done for integers. Doc fixes.
5849 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5850
24c2d7ce
EZ
58512009-12-04 Eli Zaretskii <eliz@gnu.org>
5852
0b5397c2
SM
5853 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5854 Delete unused enumeration value.
24c2d7ce 5855
7e694795
EZ
58562009-12-03 Eli Zaretskii <eliz@gnu.org>
5857
5858 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5859
84b31826
SM
58602009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5861
5862 * process.c (Fmake_network_process): Fix up the tests for
5863 "connectionless socket", so they DTRT for seqpacket sockets as well.
5864
f00c449b
SM
58652009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5866
5867 * process.c (Qseqpacket): New symbol.
5868 (HAVE_SEQPACKET): New macro.
5869 (Fmake_network_process): Accept new :type `seqpacket'.
5870 (init_process): Add `seqpacket' feature when applicable.
5871 (syms_of_process): Initialize Qseqpacket.
5872
8096a0ff
YM
58732009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5874
5875 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5876 if entity is Qnil.
5877
3e0de07f
SM
58782009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5879
5880 * print.c (print_preprocess): Preprocess the key_and_value table of
5881 hashtables, even tho they're "hidden" (bug#5082).
5882
abeafb2a
JD
58832009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5884
5885 * frame.c (frame_make_pointer_invisible)
5886 (frame_make_pointer_visible): Declare f before statements.
5887
4bf47195
EZ
58882009-11-28 Eli Zaretskii <eliz@gnu.org>
5889
5890 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5891 omitted dependencies on lisp.h.
5892
c525b3f2
JD
58932009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5894
ece2d4ed
JD
5895 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5896 is NULL.
5897
5898 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5899
5900 * frame.c (frame_make_pointer_invisible)
3e0de07f 5901 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5902 frame.
5903
c525b3f2
JD
5904 * search.c (simple_search): Remove warning by making *p const.
5905
2f00e299
DN
59062009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5907
5908 * xdisp.c (power_letter): Remove duplicate const.
5909
084b049b
JD
59102009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5911
a1fadc6f
JD
5912 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5913
5ce6e4f4 5914 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5915 defaults (bug #5025).
5916
28259cac
SM
59172009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5918
5919 * insdel.c (adjust_markers_for_delete): Move it in the
5920 right direction! (bug#4803)
5921
e8e14166
YM
59222009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5923
5924 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5925
5926 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5927
86677b58
GM
59282009-11-24 Glenn Morris <rgm@gnu.org>
5929
5930 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5931
581e51e8
JD
59322009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5933
cfc86c7a
JD
5934 * Makefile.in: Must create deps for ecrt0.o in its rule.
5935
581e51e8
JD
5936 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5937 because that is what Gtk+ font dialog understands.
5938
5939 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5940 of Fcopy_sequence.
5941 (font_open_by_name): Put name given into QCname for font-object returned.
5942
5943 * frame.c (x_set_font): Save original font name as frame parameter
5944 font-parameter.
5945
5946 * xsettings.c (set_default_xft_settings): New function.
5947 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5948 is found.
5949
8b264ecb
AS
59502009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5951
5952 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5953 searching backwards through multibyte buffer.
5954
872870b2
JD
59552009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5956
5957 * xterm.c: #include xgselect.h.
5958 (x_initialize): Call xgselect_initialize.
5959
5960 * xsettings.c (something_changedCB): C++ comments => C comments.
5961 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5962 does that now.
5963
5964 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5965 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5966 (scroll_bar_button_cb): Remove.
5ce6e4f4 5967 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5968 event.
5969 (xg_create_scroll_bar): Don't bind button-press-event and
5970 button-release-event.
5971
5972 * process.c: Include xgselect.h if defined (USE_GTK) ||
5973 defined (HAVE_GCONF).
5974 (wait_reading_process_output): Call xg_select for the same condition.
5975
5976 * xgselect.c (xg_select): New function to better integrate with
5977 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5978
5979 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5980
5981 * Makefile.in (XOBJ): Add xgselect.o.
5982
62a6e103
AS
59832009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5984
0b5397c2
SM
5985 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5986 Remove ignored second argument. All callers changed.
62a6e103
AS
5987 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5988 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5989 * xdisp.c (string_char_and_length): Likewise.
5990
b0ca0f33
DN
59912009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5992
5993 * xterm.c (x_new_font):
5994 * print.c (print_object):
5995 * cmds.c (Fself_insert_command): Move declarations before statements.
5996
dd5a6279
CY
59972009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5998
5999 * s/cygwin.h: Remove unneeded linker flags.
6000
4a8e097d
JD
60012009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6002
0d1d0d26
JD
6003 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6004
6005 * xsettings.h: Declare xsettings_get_system_font.
6006
6007 * xsettings.c (xsettings_get_system_font): New function.
6008 (init_gconf): No use initiating gconf unless we have Xft also.
6009 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6010 HAVE_GCONF.
6011
4a8e097d
JD
6012 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6013 add a blank entry so it doesn't collapse into nothing.
6014
8ab1650e
SM
60152009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6016
6017 * lread.c (Funintern): Comment out last change.
6018
82c602f0
RS
60192009-11-19 Richard Stallman <rms@gnu.org>
6020
6021 * lread.c (Funintern): Error if symbol is t or nil.
6022
87e32266
SM
60232009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6024
6025 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6026 representation of Lisp integers.
6027 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6028
1b9ac145
AS
60292009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6030
6031 * lisp.h: Remove declaration of Ffont_get_system_font.
6032 * xfns.c: Move include of "xsettings.h".
6033 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6034
dfb3c4c6
JD
60352009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6036
87e32266
SM
6037 * xsettings.c (something_changedCB, Ffont_get_system_font):
6038 Check use_system_font.
dfb3c4c6
JD
6039 (syms_of_xsettings): DEFVAR font-use-system-font.
6040
9370c1d8
AS
60412009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6042
25fe851a
AS
6043 * xfns.c (x_default_font_parameter): Remove dead assignment.
6044
9370c1d8
AS
6045 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6046
637fa988
JD
60472009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6048
87e32266 6049 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6050 not have FC_LCD_*. #define them if not there.
a6eb20d8 6051
87e32266 6052 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6053
637fa988
JD
6054 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6055
6056 * xterm.c (handle_one_xevent): Call xft_settings_event for
6057 ClientMessage, PropertyNotify and DestroyNotify.
6058 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6059 Call xsettings_initialize.
6060
6061 * xftfont.c (xftfont_fix_match): New function.
6062 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6063 Call xftfont_fix_match after XftFontMatch.
6064
6065 * xfont.c (xfont_driver): Initialize all members.
6066
87e32266
SM
6067 * xfns.c (x_default_font_parameter):
6068 Try font from Ffont_get_system_font.
637fa988
JD
6069 Do not get font from x_default_parameter if we got one from
6070 Ffont_get_system_font.
87e32266 6071 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6072
6073 * w32font.c (w32font_driver): Initialize all members.
6074
6075 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6076
6077 * lisp.h: Declare syms_of_xsettings.
6078
87e32266
SM
6079 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6080 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6081
6082 * ftfont.c (ftfont_filter_properties): New function.
6083
6084 * frame.c (x_set_font): Remove unused variable lval.
6085
87e32266 6086 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6087
6088 * font.c (font_put_extra): Don't return if val is nil, it means
6089 boolean option is off.
6090 (font_parse_fcname): Collect all extra properties in extra_props
6091 and call filter_properties for all drivers with extra_props and
6092 font as parameter.
87e32266
SM
6093 (font_open_entity): Do not use cache, it does not pick up new
6094 fontconfig settings like hinting.
637fa988
JD
6095 (font_load_for_lface): If spec had a name in it, store it in entity.
6096
a73f9c9d 6097 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6098
6099 * config.in: HAVE_GCONF is new.
6100
6101 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6102 xsettings.o is new.
6103
5a942932
KH
61042009-11-17 Kenichi Handa <handa@m17n.org>
6105
6106 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6107 back to the default font in case that no suitable font is found.
6108
b7c7a4d1
SM
61092009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6110
6111 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6112 Suggested by Chad Brown <yandros@mit.edu>.
6113 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6114
072f1e39
JD
61152009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6116
6117 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6118
5d1e70a2
AS
61192009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6120
87e32266 6121 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6122
a53cfbe5
JD
61232009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6124
473a99b7
JD
6125 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6126 has a parent.
6127
a53cfbe5 6128 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6129 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6130
6131 * config.in: Generated (AUTO_DEPEND).
6132
f04bb9b2
MA
61332009-11-13 Michael Albinus <michael.albinus@gmx.de>
6134
b7c7a4d1 6135 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6136 Vdbus_registered_functions_table, because it contains also
6137 properties. Fix docstring.
b7c7a4d1 6138 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6139
8f11f7ec
SM
61402009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6141
6142 * alloc.c (mark_object): Don't reprocess marked strings.
6143 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6144 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6145
8a605fe8
KH
61462009-11-13 Kenichi Handa <handa@m17n.org>
6147
8f11f7ec 6148 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6149 semantics of Vword_combining_categories.
6150 (Vword_combining_categories): Describe the slight change of the
6151 semantics.
6152
241c4680
EZ
61532009-11-13 Eli Zaretskii <eliz@gnu.org>
6154
6155 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6156
6157 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6158
5d58e44c
SM
61592009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6160
6161 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6162
5e13f9d3
JB
61632009-11-12 Juanma Barranquero <lekktu@gmail.com>
6164
6165 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6166
cf54c754
DR
61672009-11-11 David Reitter <david.reitter@gmail.com>
6168
6169 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6170 variables to fix 2009-11-09 change.
6171
a4ada374
DN
61722009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6173
91433552
DN
6174 * process.c (ifflag_def): Make flag_sym constant.
6175 (Fnetwork_interface_info): Use a constant pointer.
6176 (ifflag_table):
6177 * xfns.c (cursor_bits):
6178 * xdisp.c (power_letter):
6179 * termcap.c (speeds, esctab):
6180 * sysdep.c (baud_convert):
6181 * keyboard.c (lispy_accent_codes, modifier_names):
6182 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6183 (jpeg_format, tiff_format, gif_format, svg_format)
6184 (interlace_start, interlace_increment, gs_format):
6185 * gtkutil.c (separator_names):
6186 * fringe.c (swap_nibble):
6187 * fns.c (base64_value_to_char, base64_char_to_value):
6188 * fileio.c (make_temp_name_tbl):
6189 * coding.c (suffixes): Make constant.
6190
f4265f6c
DN
6191 * frame.c (make_initial_frame):
6192 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6193 build_string.
6194 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6195
04420943
DN
6196 * s/freebsd.h:
6197 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6198
0a5d24ae
DN
6199 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6200 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6201
a4ada374
DN
6202 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6203 * xterm.c (syms_of_xterm):
6204 * xfaces.c (syms_of_xfaces):
6205 * xdisp.c (syms_of_xdisp):
6206 * lread.c (syms_of_lread):
6207 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6208 build_string.
91433552 6209
a4ada374
DN
6210 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6211
af98fc7f
SM
62122009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6213
8ab1650e 6214 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6215
e90292a9
JD
62162009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6217
6218 * keyboard.h: Declare timer_check.
6219
6220 * keyboard.c (timer_check_2): New function that does what the old
6221 timer_check did.
6222 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6223 returned, i.e. don't return -1 with timers pending.
6224
6225 * process.c: Remove extern declaration of timer_check.
6226
6227 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6228 even if timer_check returned -1.
6229
af98fc7f
SM
6230 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6231 xg_dialog_data.
e90292a9
JD
6232 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6233 the event loop.
6234 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6235 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6236 Destroy the dialog after xg_dialog_run.
6237
045b83c0
SM
62382009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6239
6240 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6241
1fb99a3a
JD
62422009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6243
6244 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6245
04e452cb
JB
62462009-11-09 Juanma Barranquero <lekktu@gmail.com>
6247
6248 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6249
ef7417fd
SM
62502009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6251
6252 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6253 w32menu.c, and nsmenu.m.
6254 Simplify the obsolete case where position is nil.
6255 (cleanup_popup_menu): New function, moved from nsmenu.m.
6256 (struct skp): Remove slot `notreal'.
6257 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6258 adjust callers.
6259 (single_menu_item): Adjust call to parse_menu_item.
6260 (syms_of_menu): Defsubr x-popup-menu.
6261 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6262 (keymap_panes): Don't export any more.
6263 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6264 (xmenu_show): Declare.
6265 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6266 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6267 * keyboard.h (parse_menu_item): Update declaration.
6268 * xmenu.c (Fx_popup_menu): Remove.
6269 (syms_of_xmenu): Don't defsubr x-popup-menu.
6270 * w32menu.c (Fx_popup_menu): Remove.
6271 (syms_of_w32menu): Don't defsubr x-popup-menu.
6272 * nsmenu.m (cleanup_popup_menu): Remove.
6273 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6274 moved to menu.c's Fx_popup_menu.
6275 (Fx_popup_menu): Remove.
6276 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6277 menu_items (it's done in menu.c already).
6278
424d6179
SM
62792009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6280
6281 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6282 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6283
c0df13a6 62842009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6285
6286 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6287 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6288 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6289 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6290
2de9f71c
SM
62912009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6292
6293 Let integers use up 2 tags to give them one extra bit and thus double
6294 their range.
6295 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6296 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6297 New macros.
6298 (enum Lisp_Type): Use them. Give explicit values.
6299 (Lisp_Type_Limit): Remove.
6300 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6301 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6302 Pay attention to USE_2_TAGS_FOR_INTS.
6303 (INTEGERP): Use LISP_INT_TAG_P.
6304 * fns.c (internal_equal): Simplify the default case.
6305 (sxhash): Use case_Lisp_Int.
6306 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6307 any more.
6308 (Ftype_of): Use case_Lisp_Int.
6309 (store_symval_forwarding): Take into account the fact that Ints can
6310 now have more than one tag.
6311 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6312 (buffer_slot_type_mismatch):
2de9f71c
SM
6313 * xfaces.c (face_attr_equal_p):
6314 * print.c (print_object):
6315 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6316 Use case_Lisp_Int.
6317
323637a2
EZ
63182009-11-06 Eli Zaretskii <eliz@gnu.org>
6319
7ac65b38
EZ
6320 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6321
323637a2
EZ
6322 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6323 warning.
6324
e511451f
JD
63252009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6326
6327 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6328
6329 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6330
6331 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6332 ButtonPressRelease and MotionNotify (bug#4870).
6333
5e2327cf
DN
63342009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6335
5adc433e
DN
6336 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6337
d67b4f80
DN
6338 * xterm.c (syms_of_xterm):
6339 * xselect.c (syms_of_xselect):
6340 * xmenu.c (syms_of_xmenu):
6341 * xfns.c (syms_of_xfns):
6342 * xfaces.c (syms_of_xfaces):
6343 * xdisp.c (syms_of_xdisp):
6344 * window.c (syms_of_window):
6345 * w32fns.c (syms_of_w32fns):
6346 * undo.c (syms_of_undo):
6347 * textprop.c (syms_of_textprop):
6348 * terminal.c (syms_of_terminal):
6349 * syntax.c (syms_of_syntax):
6350 * sound.c (syms_of_sound):
6351 * search.c (syms_of_search):
6352 * print.c (syms_of_print):
6353 * minibuf.c (syms_of_minibuf):
6354 * macros.c (syms_of_macros):
6355 * keymap.c (syms_of_keymap, initial_define_key)
6356 (initial_define_lispy_key):
6357 * keyboard.c (syms_of_keyboard):
6358 * insdel.c (syms_of_insdel):
6359 * image.c (syms_of_image):
6360 * fringe.c (syms_of_fringe):
6361 * frame.c (syms_of_frame):
6362 * fontset.c (syms_of_fontset):
6363 * fns.c (syms_of_fns):
6364 * fns.c (syms_of_fns):
6365 * fileio.c (syms_of_fileio):
6366 * fileio.c (syms_of_fileio):
6367 * eval.c (syms_of_eval):
6368 * doc.c (syms_of_doc):
6369 * dispnew.c (syms_of_display):
6370 * dired.c (syms_of_dired):
6371 * dbusbind.c (syms_of_dbusbind):
6372 * data.c (syms_of_data):
6373 * composite.c (syms_of_composite):
6374 * coding.c (syms_of_coding):
6375 * cmds.c (syms_of_cmds):
6376 * charset.c (define_charset_internal, syms_of_character):
6377 * ccl.c (syms_of_ccl):
6378 * category.c (syms_of_category, init_category_once):
6379 * casetab.c (syms_of_casetab):
6380 * casefiddle.c (syms_of_casefiddle):
6381 * callint.c (syms_of_callint):
6382 * bytecode.c (syms_of_bytecode):
6383 * buffer.c (keys_of_buffer, syms_of_buffer):
6384 * alloc.c (syms_of_alloc):
6385 * process.c (syms_of_process, init_process):
6386 * lread.c (syms_of_lread, init_obarray):
6387 * font.c (build_style_table):
6388 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6389 intern_c_string, calls to make_pure_string with
6390 make_pure_c_string. Use pure_cons instead of Fcons.
6391
5e2327cf
DN
6392 * process.c (socket_options): Make it const.
6393 (set_socket_option, init_process): Use a const pointer.
6394
6395 * lread.c (intern_c_string): New function.
6396 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6397 (defvar_int): Uset it. Make the name const char*.
6398
6399 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6400 (defvar_int): Update prototypes.
6401 (DEFUN, EXFUN): Support for prototypes is now required.
6402 (intern_c_string): New prototype.
6403 (struct Lisp_Subr): Make symbol_name constant.
6404
6405 * font.c (struct table_entry): Remove unused member. Make NAMES
6406 constant.
6407 (weight_table, slant_table, width_table): Make constant.
6408
6409 * emacs.c (struct standard_args): Make name and longname constant.
6410
6411 * character.h (DEFSYM): Use intern_c_string.
6412
a56eaaef
DN
64132009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6414
6415 * alloc.c (make_pure_c_string): New function.
6416
6417 * eval.c (Fautoload): Purecopy all arguments.
6418
f6a07420
KH
64192009-11-05 Kenichi Handa <handa@m17n.org>
6420
6421 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6422 the buffer in case of replace.
6423
5d28d4b1
DN
64242009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6425
6426 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6427
b349d111
SM
64282009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6429
d528b1ce
SM
6430 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6431 when applicable (bug#4851).
6432
b349d111
SM
6433 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6434 (P_): Support for prototypes is now required.
6435
c38eb027
CY
64362009-10-31 Chong Yidong <cyd@stupidchicken.com>
6437
6438 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6439 (Bug#4827).
6440
0405f8d9
EZ
64412009-10-30 Eli Zaretskii <eliz@gnu.org>
6442
d528b1ce 6443 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6444
ca0a881a
DN
64452009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6446
6447 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6448
d528b1ce
SM
6449 * lread.c (Fload): Purecopy the file name when building
6450 Vpreloaded_file_list.
ca0a881a 6451
47e0e0e4
JR
64522009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6453
6454 * w32fns.c (syms_of_w32fns): Change default value of
6455 w32-scroll-lock-modifier to nil. (Bug#2827)
6456
057bce6f
JB
64572009-10-26 Juanma Barranquero <lekktu@gmail.com>
6458
782a943e 6459 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6460
242bc74c
AS
64612009-10-26 Andreas Schwab <schwab@redhat.com>
6462
6463 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6464
522d013a
JB
64652009-10-26 Juanma Barranquero <lekktu@gmail.com>
6466
6467 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6468 For delta < 0, skip check that only makes sense when the mini-window
6469 is going to be enlarged. (Bug#4534)
6470
18060980
CY
64712009-10-25 Chong Yidong <cyd@stupidchicken.com>
6472
6473 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6474 string in menu maps (Bug#4471).
6475
fec8f0fe
CY
64762009-10-24 Chong Yidong <cyd@stupidchicken.com>
6477
6478 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6479 FRAME_NS_VIEW on terminal frames (Bug#4765).
6480
10d66ec0
AS
64812009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6482
1cae01f7
AS
6483 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6484 DBUS_TYPE_UINTnn separately to get proper sign extension.
6485
58a12889
AS
6486 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6487 can properly handle unsigned types.
d528b1ce 6488 (make_uid, make_gid): Remove.
58a12889 6489
987c9327
AS
6490 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6491 types again.
6492
522d013a 6493 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6494 (system_process_attributes): Likewise.
6495
905a9ed3
DN
64962009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6497
6498 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6499
6500 * eval.c (Fautoload): Purecopy the filename. Simplify.
6501
6502 * category.c (Fdefine_category): Purecopy docstring.
6503
a599b3e8
AS
65042009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6505
7b792fc9
AS
6506 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6507
a599b3e8
AS
6508 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6509
b35ac83e
CY
65102009-10-23 Chong Yidong <cyd@stupidchicken.com>
6511
6512 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6513 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6514 (Bug#4775).
6515
e8903e00
SM
65162009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6517
6518 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6519 (init_fileio_once):
6520 * lisp.h (init_fileio_once): Remove.
6521 * emacs.c (main): Don't call init_fileio_once.
6522
8f43cbf3
DN
65232009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6524
6525 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6526
26898943
AS
65272009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6528
6529 * doprnt.c (doprnt): Fix overflow check.
6530
5c646d5a
JD
65312009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6532
3132a7ea
JD
6533 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6534
5c646d5a
JD
6535 * xterm.h (x_wait_for_event): Declare it.
6536
6537 * xterm.c (pending_event_wait): New variable.
6538 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6539 see pending_event_wait.eventtype.
6540 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6541 (x_new_font): Call change_frame_size with new rows/columns before we
6542 try to resize the frame.
5c646d5a 6543 (x_wait_for_event): New function.
d528b1ce
SM
6544 (x_set_window_size_1): Don't change gravity unless change_gravity
6545 is set.
5c646d5a
JD
6546 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6547 don't change frame size, instead wait for the ConfigureNotify.
6548 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6549 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6550 (x_initialize): Initialize pending_event_wait.
6551
6552 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6553 size.
6554
6555 * widget.c (EmacsFrameSetValues): Add comment.
6556 (EmacsFrameSetCharSize): Just call x_set_window_size.
6557
6558 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6559 x_wait_for_event.
d528b1ce 6560 (flush_and_sync): Remove again.
5c646d5a
JD
6561 (xg_get_font_name): Suggest monospace if no previous font is known.
6562
e9c1637d
SM
65632009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6564
6565 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6566 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6567
5a72cccb
YM
65682009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6569
6570 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6571 processing pending events when event is filtered for input method.
ab04798f 6572 (Bug#3681)
5a72cccb 6573
2629aa37
JB
65742009-10-20 Juanma Barranquero <lekktu@gmail.com>
6575
6576 * fns.c: Add #endif accidentally removed in previous change.
6577
c3417a74
DN
65782009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6579
6580 * fns.c: Remove code for unsupported system: MAC_OS.
6581 * image.c: Likewise. Include setjmp.h.
6582
9685cef2
JD
65832009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6584
6585 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6586 pixel -1 (bug #4742).
6587
d7306fe6
DN
65882009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6589
019d2c4c
DN
6590 * process.c (create_pty): Remove conditionals for no longer
6591 supported systems: UNIPLUS and RTU.
6592
ee6bacd4
DN
6593 * xterm.c:
6594 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6595
d7306fe6
DN
6596 * alloc.c: Do not define struct catchtag.
6597 * eval.c: Move struct catchtag definition ...
6598 * lisp.h: ... here.
6599
6600 * image.c: Move png.h #include earlier to avoid warnings.
6601
6602 * xterm.c:
6603 * xsmfns.c:
6604 * xselect.c:
6605 * xrdb.c:
6606 * xmenu.c:
6607 * xftfont.c:
6608 * xfont.c:
6609 * xfns.c:
6610 * xfaces.c:
6611 * xdisp.c:
6612 * window.c:
6613 * widget.c:
6614 * w32xfns.c:
6615 * w32uniscribe.c:
6616 * w32term.c:
6617 * w32select.c:
6618 * w32reg.c:
6619 * w32proc.c:
6620 * w32menu.c:
6621 * w32inevt.c:
6622 * w32heap.c:
6623 * w32font.c:
6624 * w32fns.c:
6625 * w32console.c:
6626 * w32.c:
6627 * w16select.c:
6628 * vm-limit.c:
6629 * unexsol.c:
6630 * unexec.c:
6631 * unexcw.c:
6632 * unexaix.c:
6633 * undo.c:
6634 * tparam.c:
6635 * textprop.c:
6636 * terminfo.c:
6637 * terminal.c:
6638 * termcap.c:
6639 * term.c:
6640 * syntax.c:
6641 * sound.c:
6642 * sheap.c:
6643 * search.c:
6644 * scroll.c:
6645 * region-cache.c:
6646 * regex.c:
6647 * ralloc.c:
6648 * process.c:
6649 * print.c:
b024548b
DN
6650 * nsterm.m:
6651 * nsselect.m:
6652 * nsmenu.m:
6653 * nsimage.m:
6654 * nsfont.m:
6655 * nsfns.m:
d7306fe6
DN
6656 * msdos.c:
6657 * minibuf.c:
6658 * menu.c:
6659 * marker.c:
6660 * macros.c:
6661 * keymap.c:
6662 * keyboard.c:
6663 * intervals.c:
6664 * insdel.c:
6665 * indent.c:
6666 * gtkutil.c:
6667 * ftxfont.c:
6668 * ftfont.c:
6669 * fringe.c:
6670 * frame.c:
6671 * fontset.c:
6672 * font.c:
6673 * fns.c:
6674 * floatfns.c:
6675 * filelock.c:
6676 * fileio.c:
6677 * emacs.c:
6678 * editfns.c:
6679 * dosfns.c:
6680 * doprnt.c:
6681 * doc.c:
6682 * dispnew.c:
6683 * dired.c:
6684 * dbusbind.c:
6685 * data.c:
6686 * composite.c:
6687 * coding.c:
6688 * cmds.c:
6689 * cm.c:
6690 * chartab.c:
6691 * charset.c:
6692 * character.c:
6693 * ccl.c:
6694 * category.c:
6695 * casetab.c:
6696 * casefiddle.c:
6697 * callproc.c:
6698 * callint.c:
6699 * bytecode.c:
6700 * buffer.c:
6701 * atimer.c: Include setjmp.h. (Bug#4643)
6702
fd5f21e6
SM
67032009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6704
4c0354d7
SM
6705 Remove leftover table unibyte_to_multibyte_table.
6706 * character.c (unibyte_to_multibyte_table): Remove.
6707 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6708 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6709 * character.h (UNIBYTE_TO_CHAR): New macro.
6710 (MAKE_CHAR_MULTIBYTE): Use it.
6711 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6712 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6713 (message_dolog, set_message_1):
6714 * search.c (Freplace_match):
6715 * editfns.c (Fcompare_buffer_substrings):
6716 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6717 (concat):
6718 * insdel.c (copy_text, count_size_as_multibyte):
6719 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6720 * term.c (produce_glyphs):
6721 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6722 * regex.c (RE_CHAR_TO_MULTIBYTE):
6723 * cmds.c (internal_self_insert):
6724 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6725
fd5f21e6
SM
6726 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6727
4418646e
DN
67282009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6729
6730 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6731
35f5c1d2
JB
67322009-10-16 Juanma Barranquero <lekktu@gmail.com>
6733
6734 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6735
a0cd8f6b
AR
67362009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6737
6738 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6739 still needed under Tiger.
6740
6741 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6742
6743 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6744 __Apple__.
6745
6746 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6747
01a8d3fa
KH
67482009-10-15 Kenichi Handa <handa@m17n.org>
6749
6750 * print.c (print_object): Escape a symbol like "2E10" too.
6751
bf6c75c9 67522009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6753
6754 Cleanups and changes for 64-bit compile under Snow Leopard.
6755 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6756
6757 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6758
c5959062 6759 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6760 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6761 cast argument.
6762 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6763 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6764
6765 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6766
6767 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6768 where appropriate.
6769
6770 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6771 where appropriate.
6e4780c5
JB
6772 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6773 Use stringWithUTF8String.
bf6c75c9
AR
6774 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6775
6e4780c5
JB
6776 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6777 Add formal protocol mention to inheritance.
bf6c75c9
AR
6778 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6779
6e4780c5
JB
6780 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6781 Fix printf format.
bf6c75c9
AR
6782 (ns_query_color): Use CGFloat where appropriate.
6783 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6784 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6785 argument.
6786
3d87f118
AR
6787 * config.in (NS_HAVE_NSINTEGER): Drop.
6788
a95c8102
AR
6789 * dbusbind.c (dbus-method-return-internal)
6790 (dbus-method-error-internal): Use long format in printf, and cast
6791 argument.
6792
6793 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6794 in printf, and cast argument.
6795
6873acca 6796 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6797 cast argument.
6798
9ec6f100
GM
67992009-10-11 Glenn Morris <rgm@gnu.org>
6800
6801 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6802
5be883cd
JD
68032009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6804
6805 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6806 menu bar with a small width so it doesn't enlarge the frame.
6807
d7a39b51
JB
68082009-10-08 Juanma Barranquero <lekktu@gmail.com>
6809
6810 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6811
0c2b6f8e
GM
68122009-10-06 Glenn Morris <rgm@gnu.org>
6813
6814 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6815 SOME_MACHINE_LISP (this enters indirectly via DOC).
6816
e02131a2
EZ
68172009-10-05 Eli Zaretskii <eliz@gnu.org>
6818
6819 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6820
b4744254
EZ
68212009-10-04 Eli Zaretskii <eliz@gnu.org>
6822
6823 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6824 Doc fix.
6825
dbf64827
JB
68262009-10-03 Martin Rudalics <rudalics@gmx.at>
6827
6828 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6829
e9a0aef8
MA
68302009-10-02 Michael Albinus <michael.albinus@gmx.de>
6831
d528b1ce 6832 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6833 used anymore outside fileio.c.
6834
6835 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6836
64eb2b56
JB
68372009-10-01 Juanma Barranquero <lekktu@gmail.com>
6838
6839 * lisp.h (Qdelete_directory_internal):
6840 Declare, instead of Qdelete_directory.
6841
6842 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6843
9d28c33e
SM
68442009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6845
6846 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6847
9d8f3bd9
MA
68482009-10-01 Michael Albinus <michael.albinus@gmx.de>
6849
9d28c33e 6850 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6851 Fdelete_directory. It is not a command anymore. It has no file
6852 name handler.
6853
9694740b
SM
68542009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6855
6856 * xdisp.c (get_next_display_element): Use an enum in last change.
6857
748e162f
KH
68582009-09-28 Kenichi Handa <handa@m17n.org>
6859
9694740b 6860 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6861 unibyte_display_via_language_environment in handling
6862 Vnobreak_char_display.
6863
17efd58d
AR
68642009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6865
6866 * nsterm.h (ns_app_name): New extern variable.
6867
6868 * nsterm.m (ns_app_name): New variable.
6869 (ns_term_init): Set and use it.
6870 (ns_term_shutdown): Use it.
6871
6872 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6873 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6874
6875 * nsfns.m (ns_set_name_iconic, ns_set_name)
6876 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6877 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6878
9694740b
SM
6879 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6880 Remove double-casting in client_data comparison.
31c2d412 6881
3208cb35
YM
68822009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6883
6884 * keyboard.c (make_lispy_event): Remember last wheel direction.
6885 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6886
b7d552d6
GM
68872009-09-26 Glenn Morris <rgm@gnu.org>
6888
6889 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6890 internal.elc. Add term/pc-win.elc.
6891 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6892 term/x-win.elc.
6893 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6894 term/w32-win.elc.
6895 (NS_SUPPORT): New.
6896 (lisp): Add NS_SUPPORT.
6897 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6898
4ff670a8
DR
68992009-09-25 David Reitter <david.reitter@gmail.com>
6900
6901 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6902 on Mac OS X 10.6+ (bug#4513).
6903
feabfb6c
JB
69042009-09-24 Juanma Barranquero <lekktu@gmail.com>
6905
6906 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6907 some parts of Emacs code (like font selection) don't grok them.
6908 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6909
de59072a
AS
69102009-09-24 Andreas Schwab <schwab@redhat.com>
6911
6912 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6913
a489517b
JB
69142009-09-24 Juanma Barranquero <lekktu@gmail.com>
6915
6916 * dired.c (Fdirectory_files): Fix typo in docstring.
6917
0592970c
AR
69182009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6919
6920 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6921 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6922 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6923 under GNUstep.
6924 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6925
6926 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6927 glyph advancement.
6928
48e8a88b
AR
69292009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6930
6931 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6932 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6933
6934 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6935 deleted (bug #4492).
6936
e14f0a78
AR
6937 * nsfont.m (Vns_reg_to_script): New lisp variable.
6938 (syms_of_nsfont): Declare it.
6939 (ns_registry_to_script): New function.
6940 (ns_get_req_script): Call it.
6941 (ns_findfonts): Don't give up on non-unicode registry.
6942
6943 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6944
5b650faa
SM
69452009-09-20 Tom Tromey <tromey@redhat.com>
6946
6947 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6948 batch mode (bug#4228).
6949
a489517b 69502009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6951
6952 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6953 carefully. (Bug #4339)
0bae4e09 6954
fcfe06f3
CY
69552009-09-18 Chong Yidong <cyd@stupidchicken.com>
6956
d798ba87 6957 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6958
31642728
AR
69592009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6960
6961 * emacs.c (inhibit_x_resources): Update doc string for NS.
6962 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6963 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6964
6965 * nsterm.h (ns_no_defaults): Remove.
6966
6967 * nsterm.m (ns_no_defaults): Remove.
6968 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6969 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6970 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6971 don't update the NSWindow itself.
6972 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6973 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6974
6975 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6976 ns_use_qd_smoothing.
6977
6978 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6979 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6980 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6981 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6982
8686ac71
JB
69832009-09-17 Juanma Barranquero <lekktu@gmail.com>
6984
6985 * emacs.c (inhibit_x_resources): New variable.
6986 (main) [HAVE_NS]: Don't process --quick command line option.
6987 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6988
6989 * lisp.h (inhibit_x_resources): Declare it extern.
6990
6991 * w32reg.c (x_get_string_resource):
6992 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6993
e227ba05
EZ
69942009-09-17 Eli Zaretskii <eliz@gnu.org>
6995
362654a6
JB
6996 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6997 Add lisp/term/internal.elc.
e227ba05 6998
742d40e8
SM
69992009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7000
7001 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7002 (bug#4461).
7003
005bd5a2
DN
70042009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7005
7006 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7007
7008 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7009 (OBJECTS_MACHINE): Remove, unused.
7010
f9af9719
SM
70112009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7012
7013 * frame.c (x_get_resource_string): Remove unused.
7014
0307c7d2
JD
70152009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7016
7017 * xterm.c (x_new_font): Call change_frame_size before calling
7018 x_set_window_size, in case frame size won't change.
7019
7020 * frame.c (x_set_font): Remove dead code.
7021
428b13d6
SM
70222009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7023
7024 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7025
5766c380
SM
70262009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7027
7028 * lread.c (Fload): Don't output a message after loading an obsolete
7029 package any more (done in Lisp now).
7030
2fd0161b
CY
70312009-09-12 Chong Yidong <cyd@stupidchicken.com>
7032
7033 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7034
bc5e75b6
SM
70352009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7036
7037 * keymap.c (Fwhere_is_internal): Use nconc2.
7038
c31c985e
AM
70392009-09-11 Alan Mackenzie <acm@muc.de>
7040
7041 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7042 batch mode.
7043
78012bd2
AS
70442009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7045
7046 * xdisp.c (display_mode_element): Detect cycles.
7047
9d889332
SM
70482009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7049
7050 * keymap.c (where_is_internal): Don't erroneously return nil right after
7051 filling the cache.
7052 (where_is_internal_1): Fix up typo.
7053
7ab5d780
GM
70542009-09-11 Glenn Morris <rgm@gnu.org>
7055
7056 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7057 share a common doc-string.
7058
5238a749
SM
70592009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7060
66d77eda
SM
7061 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7062 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7063
5238a749
SM
7064 * keymap.c (QCadvertised_binding): New constant.
7065 (syms_of_keymap): Initialize it.
7066 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7067 if applicable.
7068
19f48442
SM
70692009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7070
50d4ba39
SM
7071 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7072 (parse_menu_item): Streamline since bindings are recomputed all the
7073 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7074 more and don't support lmenu's menu-alias any more either.
7075
a88a5372
SM
7076 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7077 (where_is_internal): Strip it down to only traverse the keymaps.
7078 Move the cache handling from Fwhere_is_internal to here.
7079 (Fwhere_is_internal): Move the handling of remapping and the choice of
7080 the best binding from where_is_internal to here.
7081 Unify the cached/noncached paths, so remapping is also handled
7082 correctly when the cache is used, and so the cache can be used to
7083 speed up remap-handling when applicable.
7084 Give preference to non-remapped bindings.
7085 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7086 non-remapped bindings.
7087 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7088 command remapping.
7089
19f48442
SM
7090 * xdisp.c (display_mode_element): Move list length limit from 50 to
7091 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7092
599498c3 70932009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7094
7095 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7096
f9b7b5ac
SM
70972009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7098
a53af587
JB
7099 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7100 (Bug#4334)
7101
f9b7b5ac
SM
7102 * keymap.c (where_is_internal): Filter out shadowed remappings.
7103 Assume that where_is_internal returns unshadowed bindings to simplify
7104 the code and get rid of the gotos. Use ASIZE.
7105
04f4b72d
JD
71062009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7107
4da146f2
JD
7108 * xterm.c (x_focus_changed): If we get a focusout and pointer
7109 is invisible, make it visible.
7110
04f4b72d
JD
7111 * xterm.h: Remove condition for declaration of
7112 x_*_window_to_frame.
7113
7cef7ce3
SM
71142009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7115
7116 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7117 initial terminal as well.
7118
a54fa5b7
JD
71192009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7120
7121 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7122 x_menubar_window_to_frame.
a54fa5b7 7123
50426a04 7124 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7125 (XTmouse_position): Do not return valid positions
7126 for clicks in the menubar and the toolbar for Gtk+.
7127
7128 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7129 if the widget for the event has the same top level as a frame,
7130 return the frame.
7131 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7132 internal windows, bug #4122.
7133 (x_non_menubar_window_to_frame): Remove.
7134
5a021dd0
GM
71352009-09-02 Glenn Morris <rgm@gnu.org>
7136
7137 * buffer.c (default-major-mode): Move most of the doc from here...
7138 (major-mode): ... to here.
7139
548fe2f3
NR
71402009-08-30 Nick Roberts <nickrob@snap.net.nz>
7141
7142 * process.c (wait_reading_process_output): Keep the descriptor
7143 when pty is used by a non-child process, e.g., in I/O buffer of
7144 GDB this allows inferior to be restarted.
7145
e0840eef
EZ
71462009-08-29 Eli Zaretskii <eliz@gnu.org>
7147
7148 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7149 both branches into one.
7150
82e98df4
SM
71512009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7152
7153 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7154 (main): Use enable-multibyte-characters rather than
7155 default-enable-multibyte-characters. Output a warning message when
7156 running a unibyte session.
7157
890617cb
YM
71582009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7159
7160 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7161 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7162 (copy_data_segment): Also copy __program_vars section.
7163 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7164 (dump_it) [LC_DYLD_INFO]: Use it.
7165
7166 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7167
e7adeadc
EZ
71682009-08-28 Eli Zaretskii <eliz@gnu.org>
7169
7170 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7171 $(SRC)/buildobj.h.
7172 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7173 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7174 $(SRC)/buildobj.h.
7175 (clean): Add buildobj.h.
7176
3ed8bbdc
TZ
71772009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7178
7179 * print.c (print_object): Set escapeflag to 1 when printing
7180 hashtable keys and values.
7181
155a6764
SM
71822009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7183
7184 * lread.c (read_integer): Use doubles (and potentially return a float
7185 number) as we do in string-to-number.
7186 (read1): Use strtol to read integers, signal errors on strtol's
7187 overflow and use floats if strtol's output is too large for
7188 Elisp integers.
7189
877610de
EZ
71902009-08-27 Eli Zaretskii <eliz@gnu.org>
7191
7192 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7193 (make-buildobj-SH): Fix last change.
7194 (SRC): Move to before where it's first used.
7195
ef73e7be
KH
71962009-08-27 Kenichi Handa <handa@m17n.org>
7197
550c8289
KH
7198 * process.c (send_process): Use encode_coding_object instead of
7199 encode_coding_string to perform eol-conversion even if the string
7200 is unibyte.
7201
60afa08d
KH
7202 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7203 character.
7204
ef73e7be 7205 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7206 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7207
7b3a82d7
DN
72082009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7209
5654bf63
DN
7210 * callproc.c (Fcall_process): Remove always true #if.
7211
7b3a82d7
DN
7212 * lisp.h: Replace #if 0 code for checking with text pointing to
7213 the --enable-checking configure flag.
7214
7215 * emacs.c (main): Mention the --enable-profiling configure flag
7216 instead of using CFLAGS.
7217
878bde49
KR
72182009-08-26 Ken Raeburn <raeburn@raeburn.org>
7219
7220 * Makefile.in (buildobj.h): New target.
7221 (doc.o): Depend on it.
7222 (temacs${EXEEXT}): Don't generate buildobj.lst.
7223 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7224 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7225 ($(BLD)/doc.$(O)): Depend on it.
7226 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7227 provided by Eli Zaretskii.)
7228 ($(TEMACS)): Don't generate buildobj.lst.
7229 * doc.c: Include buildobj.h.
7230 (buildobj): New static variable.
7231 (Fsnarf_documentation): Use it, instead of opening and reading
7232 buildobj.lst.
7233
1574224c
MA
72342009-08-25 Michael Albinus <michael.albinus@gmx.de>
7235
7236 * dbusbind.c (Fdbus_call_method)
7237 (Fdbus_call_method_asynchronously): Use English numeric format for
7238 timeout values in doc string.
7239
d9da2f45
KH
72402009-08-25 Kenichi Handa <handa@m17n.org>
7241
ef73e7be
KH
7242 * alloc.c (mark_char_table): New function.
7243 (mark_object): Use mark_char_table for a char-table.
7244
d9da2f45
KH
7245 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7246 (CHAR_TABLE_REF): Use it.
7247
c8edcc01
KR
72482009-08-23 Ken Raeburn <raeburn@raeburn.org>
7249
7250 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7251 before invoking the newly build emacs to check for load-path
7252 shadowing.
7253
7763401b
GM
72542009-08-22 Glenn Morris <rgm@gnu.org>
7255
7256 * Makefile.in (bootstrap_exe): New variable.
7257 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7258 Use ${bootstrap_exe}.
7259
729eadda
EZ
72602009-08-22 Eli Zaretskii <eliz@gnu.org>
7261
7262 * coding.h (encode_coding_string): Don't encode unibyte strings.
7263 (Bug#4047)
7264
eb4c6ace
MA
72652009-08-22 Michael Albinus <michael.albinus@gmx.de>
7266
7267 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7268
7269 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7270 intended as hotfix only.
7271 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7272
36e34d1b
AR
72732009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7274
7275 * nsterm.m (ns_get_color): Update documentation properly for last
7276 change, and clean up loose ends in the code left by it. Fix
7277 longstanding bug with 16-bit hex parsing, and add support for
7278 yet another X11 format (rgb:r/g/b) for compatibility.
7279 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7280 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7281
f983eb8a
SM
72822009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7283
7284 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7285
3f56d3c6
MA
72862009-08-20 Michael Albinus <michael.albinus@gmx.de>
7287
7288 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7289 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7290 (xd_initialize, xd_pending_messages): Check, whether
7291 $DBUS_SESSION_BUS_ADDRESS is set.
7292
fb641d68
YM
72932009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7294
7295 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7296
7297 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7298
cf59a374
GM
72992009-08-20 Glenn Morris <rgm@gnu.org>
7300
7301 * emacs.c (system-type): Doc fix.
7302
1373f3be
SM
73032009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7304
7305 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7306 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7307
058ed861
MA
73082009-08-18 Michael Albinus <michael.albinus@gmx.de>
7309
1373f3be
SM
7310 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7311 New functions.
058ed861
MA
7312 (xd_initialize): Revert change from 2009-08-16.
7313
563a866e 73142009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7315
7316 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7317 font-group vector, return nil.
5fc05db0 7318
e42bdf01
CY
73192009-08-17 Chong Yidong <cyd@stupidchicken.com>
7320
7321 * process.c (status_notify): Don't perform redisplay.
7322 (Fdelete_process, list_processes_1, process_send_signal):
7323 Expliticly perform redisplay.
7324 (wait_reading_process_output): Always check process status, but
7325 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7326
4230ab74
KR
73272009-08-17 Ken Raeburn <raeburn@raeburn.org>
7328
1373f3be 7329 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7330 (XFLOAT_INIT): New macro for storing a float value.
7331 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7332 * fns.c (sxhash): Copy out the value of a float in order to
7333 examine its bytes.
7334 * dbusbind.c (xd_append_arg): Likewise.
7335
4230ab74
KR
7336 * emacs.c (main): Don't call syms_of_data twice.
7337
a0645cdd
MA
73382009-08-16 Michael Albinus <michael.albinus@gmx.de>
7339
7340 * dbusbind.c (xd_initialize): Add connection file descriptor to
7341 input_wait_mask, in order to let select() detect, whether a new
7342 message has been arrived.
ca4f31ea 7343 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7344
485db0ba
MA
73452009-08-15 Michael Albinus <michael.albinus@gmx.de>
7346
1373f3be
SM
7347 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7348 New functions.
485db0ba
MA
7349
7350 * lisp.h (xd_pending_messages): Declare.
7351
7352 * keyboard.c (readable_events): Call xd_pending_messages.
7353
b5b98ff4
CY
73542009-08-15 Chong Yidong <cyd@stupidchicken.com>
7355
1373f3be 7356 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7357
f8354c6e
CY
7358 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7359
b5b98ff4
CY
7360 * buffer.c (set_buffer_internal_1)
7361 (swap_out_buffer_local_variables): Check for unbound local
7362 variables (Bug#4138).
7363
8b9fc636
EZ
73642009-08-14 Eli Zaretskii <eliz@gnu.org>
7365
7366 * process.c (create_pty): Fix last change.
7367
ce959360
CY
73682009-08-13 Chong Yidong <cyd@stupidchicken.com>
7369
7370 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7371 (xbm_load_image): Caller changed.
64b807c9 7372 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7373
c7baf7e9
NR
73742009-08-13 Nick Roberts <nickrob@snap.net.nz>
7375
7376 * process.c (create_pty): New function.
7377 (Fstart_process): Use it to allow Emacs to just associate a pty
7378 with the buffer. See associated change in gdb-mi.el.
7379 (list_processes_1): Deal with no program name.
7380 (start_process_unwind): Use pid == -2 to mean no process.
7381
1ac9108a
SM
73822009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7383
7384 * cmds.c (nonundocount): New global variable.
7385 (keys_of_cmds): Initialize it.
7386 (Fself_insert_command): Use it to combine upto 20 sequential chars
7387 into a single undo entry, just like the Qself_insert_command code in
7388 keyboard.c does.
7389 Call frame_make_pointer_invisible, also like the Qself_insert_command
7390 code in keyboard.c does.
7391 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7392 than its own local replacement for it.
7393
e267324c
KR
73942009-08-10 Ken Raeburn <raeburn@raeburn.org>
7395
1ac9108a 7396 * fns.c (concat): Don't re-set string length to its current value.
77437343 7397
1ac9108a
SM
7398 * coding.h (decode_coding_string, encode_coding_string):
7399 Use SBYTES macro.
f0bed503 7400
1ac9108a 7401 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7402 (doprnt): Merge with doprnt1, discarding lispstrings code.
7403 * lisp.h (doprnt_lisp): Don't declare.
7404
416e006d
JL
74052009-08-07 Juri Linkov <juri@jurta.org>
7406
7407 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7408
6f7d5780
DN
74092009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7410
7411 * print.c (syms_of_print): Undo previous change.
7412
f19a0f5b
TZ
74132009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7414
7415 * lread.c (read1, syms_of_lread): Read hashtables back from the
7416 readable format.
7417
7418 * print.c (print_preprocess, print_object): Print hashtables fully
7419 and readably.
7420 (syms_of_print): Provide 'hashtable-print-readable.
7421
b9173dc2
AR
74222009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7423
7424 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7425 no family set.
7426 (nsfont_open): Handle case when entity has no family.
7427
1586503c
AR
74282009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7429
7430 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7431 element, not a list, for match case.
7432
087048cd
KH
74332009-07-28 Kenichi Handa <handa@m17n.org>
7434
7435 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7436 rigidly.
7437
7438 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7439 font_parse_xlfd. Check font properties more rigidly.
7440
780c2506
DN
74412009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7442
31fd7c5c
JB
7443 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7444 bsd-common.h.
780c2506 7445
a8c0cc18
KH
74462009-07-27 Kenichi Handa <handa@m17n.org>
7447
7448 * xfaces.c (face_with_height): Call font_clear_prop.
7449
4fbe2306
CY
74502009-07-26 Chong Yidong <cyd@stupidchicken.com>
7451
111d9af3
CY
7452 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7453
7454 * xterm.c (x_term_init): Use Qx.
7455
4fbe2306
CY
7456 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7457
1ac9108a 7458 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7459 (ns_get_color): Revert 2009-07-16 change.
7460
beb0b7f9
EZ
74612009-07-25 Eli Zaretskii <eliz@gnu.org>
7462
7463 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7464 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7465
2baf5e76
KR
74662009-07-25 Ken Raeburn <raeburn@raeburn.org>
7467
1ac9108a
SM
7468 * coding.h (decode_coding_string, encode_coding_string):
7469 Use SCHARS macro.
8890e5f5 7470
2baf5e76 7471 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7472 (load_depth): Delete.
2baf5e76
KR
7473 (Qload_in_progress): New variable.
7474 (load_unwind): Don't reference load_depth or load_in_progress.
7475 (Fload): Likewise; specbind Qload_in_progress instead.
7476 (init_lread): Don't initialize load_depth.
7477 (syms_of_lread): Initialize and protect Qload_in_progress.
7478
1395c6f5
AR
74792009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7480
7481 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7482
4e2f36cf
AR
74832009-07-23 Yavor Doganov <yavor@gnu.org>
7484
7485 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7486
5dd9a6f7
AR
74872009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7488
7489 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7490 Bugs 3792, 3720, 2402.
7491 (ns_lookup_indexed_color): Check for bad index.
7492 (ns_index_color): Init unused slot to 0.
7493 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7494 Bug 3714, possibly 3082.
5dd9a6f7 7495
c902b920
JR
74962009-07-22 Jason Rumney <jasonr@gnu.org>
7497
1ac9108a
SM
7498 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7499 Position IME window at cursor (Bug#2570).
c902b920
JR
7500 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7501 (globals_of_w32fns): Dynamically load functions required above.
7502
7503 * w32term.c (w32_draw_window_cursor): Send message to reposition
7504 any IME window.
7505
090101cf
CY
75062009-07-21 Chong Yidong <cyd@stupidchicken.com>
7507
7508 * fileio.c: Revert 2009-07-16 changes.
7509 (Vauto_save_include_big_deletions): New variable.
7510 (Fdo_auto_save): Disable auto-save only if
7511 auto-save-include-big-deletions is nil.
7512
e6583e3d
CY
75132009-07-21 Chong Yidong <cyd@stupidchicken.com>
7514
7515 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7516 the overflowed pixels into account (Bug#3879).
7517
ece435a5
KR
75182009-07-21 Ken Raeburn <raeburn@raeburn.org>
7519
7520 * lread.c (load_depth): New variable.
7521 (Fload, load_unwind, init_lread): Set it to the load recursion
7522 depth; set load_in_progress as a simple boolean based on the
7523 current load_depth. (Bug#3892)
7524
40b2d973
AR
75252009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7526
7527 * nsfont.m (ns_has_attribute): Remove.
7528 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7529
10be7e0d
JL
75302009-07-18 Juri Linkov <juri@jurta.org>
7531
7532 * process.c (Fset_process_query_on_exit_flag): Mention killing
7533 a buffer in docstring.
7534
fa055055
KH
75352009-07-17 Kenichi Handa <handa@m17n.org>
7536
7537 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7538
042f7b69
YM
75392009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7540
7541 * nsfns.m (Fns_set_alpha): Remove function.
7542 (syms_of_nsfns): Don't defsubr it.
7543
7544 * nsterm.m (ns_get_color): Remove incompatible color formats.
7545 (ns_color_to_lisp): Generate #rrggbb color format string.
7546
4be941e3
RS
75472009-07-16 Richard Stallman <rms@gnu.org>
7548
7549 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7550 (Fset_buffer_auto_saved): Handle save_length = -2.
7551
4e6b227d
CY
75522009-07-16 Chong Yidong <cyd@stupidchicken.com>
7553
7554 * xterm.c (Qx_gtk_map_stock): New var.
7555
7556 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7557 of calling intern each time.
7558
a1856973
YM
75592009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7560
7561 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7562 does tiling.
7563
7564 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7565
497e54d8
KH
75662009-07-14 Kenichi Handa <handa@m17n.org>
7567
72d36834
KH
7568 * font.c (font_vconcat_entity_vectors): New function.
7569 (struct font_sort_data): New member font_driver_preference.
7570 (font_compare): Check font_driver_preference.
7571 (font_sort_entities): The format of the first argument changed.
7572 (font_delete_unmatched): Likewise.
7573 (font_list_entities): The return type changed.
7574 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7575 (font_find_for_lface): Adjuste for the above changes.
7576 Don't suppress the checking of C even if the repertory supports it.
7577 (Flist_fonts): Adjust for the above changes.
72d36834 7578
1ac9108a
SM
7579 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7580 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7581 Reject a font who has adstyle property that is different from a
7582 langname derived from registry property.
1ac9108a 7583 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7584
b6046155
EZ
75852009-07-13 Eli Zaretskii <eliz@gnu.org>
7586
7587 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7588 local copy of dirfilename.
7589
fb6b6049
KH
75902009-07-13 Kenichi Handa <handa@m17n.org>
7591
e2402a5e
KH
7592 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7593 against max_char.
7594
fb6b6049
KH
7595 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7596 calling XSYMBOL (sym).
7597
65156807
EZ
75982009-07-11 Eli Zaretskii <eliz@gnu.org>
7599
1ac9108a
SM
7600 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7601 New function.
7602 (directory_files_internal) [WINDOWSNT]:
7603 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7604 the filesystem of the directory is fast or slow.
7605
7606 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7607 file name.
7608 (is_slow_fs): New function.
7609 (stat): Use it to determine whether to issue more system calls to
7610 get accurate file attributes, when w32-get-true-file-attributes is
7611 `local'.
7612
e0ab5fcf
JD
76132009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7614
7615 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7616 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7617 parameter font-parameter as default to the font dialog.
7618
784ceded
KH
76192009-07-10 Kenichi Handa <handa@m17n.org>
7620
7621 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7622
fb8edc0b
EZ
76232009-07-09 Eli Zaretskii <eliz@gnu.org>
7624
1ac9108a 7625 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7626
fb8edc0b
EZ
7627 * w32.c (stat): Treat UNC file names as residing on remote
7628 drives. (Bug#3542)
7629
635c75b1
KH
76302009-07-09 Kenichi Handa <handa@m17n.org>
7631
7632 * fontset.c (fontset_find_font): Fix previous change.
7633
c1d5ce94
MA
76342009-07-08 Michael Albinus <michael.albinus@gmx.de>
7635
7636 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7637 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7638 error flag.
7639
edb61b39
KH
76402009-07-08 Kenichi Handa <handa@m17n.org>
7641
374bf7e4
KH
7642 * fontset.c (fontset_find_font): Fix the logic of handling
7643 charset_matched.
7644 (font_for_char): Delete unused var.
7645 (generate_ascii_font_name): Delete it.
7646
edb61b39
KH
7647 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7648
7649 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7650 (encode_coding_sjis): Fix the code range check.
7651
0f3f018c
CY
76522009-07-07 Chong Yidong <cyd@stupidchicken.com>
7653
7654 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7655 (Fexpand_file_name): Copy string data properly (Bug#3772).
7656
fcaf6f3a
JD
76572009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7658
7659 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7660 first MapNotify.
7661
6809ca75
KH
76622009-07-07 Kenichi Handa <handa@m17n.org>
7663
7664 * character.h (unibyte_has_multibyte_table): Delete extern.
7665 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7666
7667 * charset.c (Fset_charset_priority): Update charset_unibyte.
7668 (syms_of_charset): Initialize charset_unibyte.
7669
7670 * character.c (unibyte_has_multibyte_table): Delete it.
7671 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7672 charset_unibyte.
7673 (multibyte_char_to_unibyte_safe): Likewise.
7674 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7675
1ac9108a 7676 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7677 (x_produce_glyphs): Likewise.
7678
7679 * .gdbinit (xcharset): Fix the treating $arg0.
7680
ad9e2d54
EZ
76812009-07-04 Eli Zaretskii <eliz@gnu.org>
7682
7683 Emulation of `getloadavg' on MS-Windows.
50426a04 7684 * w32.c: Include float.h.
ad9e2d54
EZ
7685 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7686 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7687 (get_native_system_info, get_system_times): New functions.
7688 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7689 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7690 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7691 g_b_init_get_system_times, and num_of_processors.
7692
0a3472c7
JR
76932009-07-03 Jason Rumney <jasonr@gnu.org>
7694
7695 * w32term.c (w32_initialize): Use standard types.
7696
80904120
EZ
76972009-07-03 Eli Zaretskii <eliz@gnu.org>
7698
7699 * dired.c (Ffile_attributes): Decode user and group names by the
7700 locale's encoding. (Bug#3443)
7701
6978862d
DN
77022009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7703
f8d23104
DN
7704 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7705 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7706
7707 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7708
7709 * term.c (init_tty): Remove spurious #ifdef.
7710
6978862d
DN
7711 * m/mips.h: Mention this file is also used for netbsd.
7712 * m/pmax.h: Remove file.
7713
e044e4fc
JD
77142009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7715
7716 * xterm.h (struct x_display_info): Add invisible_cursor.
7717 (struct x_output): Add current_cursor.
7718
7719 * xterm.c (XTtoggle_invisible_pointer): New function.
7720 (x_define_frame_cursor): Don't define cursor if invisible or the
7721 same as before. Set current_cursor.
7722 (x_create_terminal): Set toggle_invisible_pointer_hook.
7723
7724 * xfns.c (make_invisible_cursor): New function.
7725 (x_set_mouse_color): Call make_invisible_cursor.
7726 Set current_cursor.
7727 (x_window): Set current_cursor.
7728
7729 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7730
7731 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7732 inserting a character.
7733 (read_avail_input): Call frame_make_pointer_visible.
7734
7735 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7736 (frame_make_pointer_invisible, frame_make_pointer_visible):
7737 New functions.
e044e4fc
JD
7738 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7739
7740 * frame.h: Declare frame_make_pointer_invisible and
7741 frame_make_pointer_visible.
7742 (struct frame): Add pointer_invisible.
7743
574c8efa
JD
77442009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7745
7b507248
JD
7746 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7747 frame isn't visible.
7748 (xg_frame_resized): If width/height is -1, get size of window
7749 from X server.
7750
7751 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7752 for MapNotify.
7753
835bdaa7 7754 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7755 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7756 (flush_and_sync): Reintroduce.
574c8efa 7757
3f1c6666 77582009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7759
31fd7c5c 7760 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7761
7762 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7763 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7764
7765 * frame.h: Declare Qsticky.
7766
cad9ef74
JD
7767 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7768
7769 * nsfns.m (ns_frame_parm_handlers): Ditto.
7770
7771 * frame.c: Declare Qsticky.
7772 (frame_parms): Add sticky.
7773
7774 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7775
7776 * xterm.h: Declare x_set_sticky.
7777
7778 * xterm.c (x_set_sticky): New function.
7779
69b16610
JD
7780 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7781 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7782 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7783
7784 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7785
7786 * frame.c: Qmaximized is new.
7787 (x_set_frame_parameters): Do not handle fullscreen specially.
7788 Only set width and height if explicitly set.
7789 (x_set_fullscreen): Handle Qmaximized.
7790 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7791 (syms_of_frame): Initialize Qmaximized.
7792
1ac9108a
SM
7793 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7794 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7795
7796 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7797 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7798 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7799 set gravity to NorthWestGravity when USE_GTK.
7800 (set_wm_state): New function.
31fd7c5c 7801 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7802 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7803 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7804 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7805 to x_real_positions and x_fullscreen_adjust.
7806
7807 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7808 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7809 flush_and_sync.
7810 (xg_height_changed): New function.
7811 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7812 and gtk_window_set_policy. Set frame gravity after parsing the
7813 geometry string.
3f1c6666
JD
7814 (xg_update_frame_menubar, free_frame_menubar)
7815 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7816 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7817 Remove calls to xg_frame_set_char_size.
7818
fd503d99
KH
78192009-07-01 Kenichi Handa <handa@m17n.org>
7820
7821 * keyboard.c (decode_keyboard_code): New function.
7822 (tty_read_avail_input): Decode the input bytes if necessary.
7823
1ac9108a
SM
7824 * coding.c (setup_coding_system):
7825 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7826 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7827 use Qno_conversion.
7828
24ed93fb
YM
78292009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7830
7831 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7832
99061dfc
CY
78332009-06-30 Chong Yidong <cyd@stupidchicken.com>
7834
1ac9108a 7835 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7836
ff90fbde
JR
78372009-06-30 Jason Rumney <jasonr@gnu.org>
7838
7839 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7840 is already loaded.
7841 Set user model ID if supported (bug#1849).
7842
5f445726
JM
78432009-06-29 Jim Meyering <meyering@redhat.com>
7844
7845 Remove useless if-before-xfree test.
7846 * nsfont.m (nsfont_close): Remove useless test.
7847 * term.c (delete_tty): Likewise.
7848 * w32.c (system_process_attributes): Likewise.
7849 * w32font.c (w32font_close): Likewise.
7850 * xfaces.c (x_free_gc): Likewise.
7851 * xselect.c (buffer): Likewise.
7852
b9607587
AS
78532009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7854
7855 * process.c (send_process): Keep decoded string in a local
7856 variable and protect it from GC. (Bug#3521)
7857
89ba96f4
EZ
78582009-06-28 Eli Zaretskii <eliz@gnu.org>
7859
7860 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7861 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7862
098a1589
CY
78632009-06-28 Chong Yidong <cyd@stupidchicken.com>
7864
485422be
CY
7865 * xdisp.c (start_display, handle_face_prop)
7866 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7867 (redisplay_window, try_window_id, produce_image_glyph):
7868 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7869
098a1589
CY
7870 * xterm.c (x_update_window_begin, x_new_focus_frame)
7871 (x_scroll_bar_handle_click, handle_one_xevent)
7872 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7873 (x_make_frame_visible, x_make_frame_invisible)
7874 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7875 code chunks that are now obsolete.
7876
78c38319
MA
78772009-06-28 Michael Albinus <michael.albinus@gmx.de>
7878
7879 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7880 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7881 for hours, when optimzation is enabled.
7882 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7883 (xd_read_message): Make them static.
7884
4189ed40
CY
78852009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7886
7887 * term.c (turn_on_face): Allow simultaneously bold and dim
7888 terminal faces (Bug#3530).
7889
cd9b5e16
CY
78902009-06-27 Chong Yidong <cyd@stupidchicken.com>
7891
4e23bedb
CY
7892 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7893
cd9b5e16
CY
7894 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7895 truncation glyphs (Bug#3686).
7896
07cc3c35
GM
78972009-06-27 Glenn Morris <rgm@gnu.org>
7898
7899 * m/pmax.h: Restore file, with only netbsd portions.
7900
31fd7c5c 79012009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7902
cd9b5e16 7903 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7904
42d4a64f
KH
79052009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7906
7907 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7908 the arg FORCE_SYMBOL.
7909
930fe55b 79102009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7911
7912 * fontset.c (fontset_find_font): When a usable rfont_def is found
7913 in a fallback font-group, make it the first element of the group.
7914
57ebc3fd
CY
79152009-06-24 Chong Yidong <cyd@stupidchicken.com>
7916
7917 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7918
f084f942
KH
79192009-06-24 Kenichi Handa <handa@m17n.org>
7920
7921 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7922 set for C.
7923 (fontset_font): Record the availability of a font for C both in
7924 the realized fontsets of the current one and the default one.
7925
2f686c87
DN
79262009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7927
7928 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7929 conditional, it is always defined on AIX.
7930
666e158e
MB
79312009-06-23 Miles Bader <miles@gnu.org>
7932
7933 * window.c (Vrecenter_redisplay): New variable.
7934 (syms_of_window): Initialize it.
7935 (Qtty): New extern declaration.
7936 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7937
c6da7cd2
JM
79382009-06-23 Jim Meyering <meyering@redhat.com>
7939
1ac9108a
SM
7940 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7941 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7942 pointer dereferences are guaranteed to be valid.
c6da7cd2 7943
678dca3d
KH
79442009-06-23 Kenichi Handa <handa@m17n.org>
7945
74d75424
KH
7946 * emacs.c (main): Call init_font ().
7947
7948 * font.h (Vfont_log): Extern it.
7949 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7950
7951 * font.c (font_sort_entities, font_list_entities)
7952 (font_matching_entity, font_open_entity)
7953 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7954 (Vfont_log): Delete static.
7955 (font_log_env_checked): Delete this variable.
7956 (font_add_log): Don't check font_log_env_checked.
7957 (font_deferred_log): Check Vfont_log.
7958 (init_font): New function.
7959
678dca3d
KH
7960 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7961
7962 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7963
7964 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7965
7966 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7967
7968 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7969 (face_for_char): Don't call font_deferred_log here.
7970 (font_for_char): Likewise.
7971
8a668709
CY
79722009-06-22 Chong Yidong <cyd@stupidchicken.com>
7973
9a01ee33
CY
7974 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7975 rather than its background_width for drawing the overline and
7976 underline (Bug#489).
7977
7978 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7979 rather than its background_width for drawing the overline and
7980 underline (Bug#489).
ec7c9926
CY
7981 (xg_default_icon_file): New variable.
7982 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7983 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7984
8a668709
CY
7985 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7986 (load_overlay_strings): Remove externs.
7987 (fast_find_position): Function deleted.
7988 (mouse_face_from_buffer_pos): New function, based on
7989 fast_find_position. Correctly handle before-strings,
7990 display-strings, and after-strings (Bug#1220).
7991 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7992
4d4c02d8
CY
79932009-06-21 Chong Yidong <cyd@stupidchicken.com>
7994
1ac9108a 7995 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7996 (move_it_in_display_line_to, move_it_in_display_line_to)
7997 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7998
70243478
CY
79992009-06-21 Chong Yidong <cyd@stupidchicken.com>
8000
8001 * Branch for 23.1.
8002
13087e59
JR
80032009-06-21 Jason Rumney <jasonr@gnu.org>
8004
8005 * w32term.c (keyboard_codepage): New static variable.
8006 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8007 (w32_read_socket) [WM_CHAR]: Use it to decode character
8008 input (bug#3237).
8009 (w32_initialize): Initialize it.
8010 (codepage_for_locale): New function.
8011
4735b74e
KR
80122009-06-20 Ken Raeburn <raeburn@raeburn.org>
8013
8014 * process.c (status_message): Pass Faset index argument as a lisp
8015 object, so as to work with USE_LISP_UNION_TYPE.
8016
0e727afa
YM
80172009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8018
8019 * coding.c (Ffind_coding_systems_region_internal):
8020 Cache checked characters.
8021
cf299835
KH
80222009-06-18 Kenichi Handa <handa@m17n.org>
8023
1ac9108a 8024 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8025
90f20d94
AS
80262009-06-18 Andreas Schwab <aschwab@redhat.com>
8027
8028 * xdisp.c (redisplay_internal): Check that the frame is still
8029 live after redisplay of its windows.
8030 (redisplay_windows): Check that the window is still live.
8031
7f1faf1c
KH
80322009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8033
8034 * coding.c (detect_coding_utf_16): Fix previous change.
8035
cc13543e
KH
80362009-06-16 Kenichi Handa <handa@m17n.org>
8037
8038 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8039 UTF-16 by checking the dispersion of Eth and Oth bytes.
8040
977b85f4
AS
80412009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8042
8043 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8044
66bd43d1
KH
80452009-06-15 Kenichi Handa <handa@m17n.org>
8046
8047 * process.c (status_message): Fix previous change. Be sure to
8048 decode a localized string.
8049
cb5ca9c5
YM
80502009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8051
8052 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8053 add comment explaining why.
8054
ec7709ba 80552009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8056
ec7709ba 8057 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8058
4b7f335c
AR
80592009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8060
8061 * nsfont.m (ns_attribute_value): Remove.
8062 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8063 (ns_has_attribute): Shrink the normal range.
8064 (ns_findfonts): Don't worry about requested spec in determining
8065 need for synthItal.
e41820ee 8066 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8067
73b26103
SZ
80682009-06-14 Seiji Zenitani <zenitani@mac.com>
8069
8070 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8071
5753e4da
KH
80722009-06-11 Kenichi Handa <handa@m17n.org>
8073
8074 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8075 overhang for the static composition case.
8076
3561b671
KH
80772009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8078
5753e4da
KH
8079 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8080 overhang for the automatic composition case.
8081
3561b671
KH
8082 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8083 composition case.
8084
852bbd41
CY
80852009-06-10 Chong Yidong <cyd@stupidchicken.com>
8086
8087 * xdisp.c (get_next_display_element): When handling wrap-prefix
8088 and line-prefix, treat \n as a control character (bug#3502).
8089
9903d1e6
KH
80902009-06-10 Kenichi Handa <handa@m17n.org>
8091
8092 * font.c (font_parse_family_registry): Fix for one-char foundry.
8093 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8094
0bcbaaaa
CY
80952009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8096
8097 * process.c (status_message): Fix handling of multibyte signal
8098 string (Bug#3499).
8099
40aa3f13
JM
81002009-06-09 Jim Meyering <meyering@redhat.com>
8101
1f80c7e2
CY
8102 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8103 color name is missing.
40aa3f13 8104
72d51285
KH
81052009-06-09 Kenichi Handa <handa@m17n.org>
8106
8107 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8108 FROM-CODE and TO-CODE are codepoints of CHARSET.
8109
c1d04d84
AR
81102009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8111
8112 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8113
81142009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8115
8116 Changes to support :script/:lang/:otf in NS font driver.
8117 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8118 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8119 indicate not part of font driver interface, and change callers.
8120 (ns_get_family): Remove pointless null check.
8121 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8122 ns_spec_to_descriptor, ns_descriptor_to_entity.
8123 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8124 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8125 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8126 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8127 (ns_get_req_script, ns_accumulate_script_ranges)
8128 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8129 New functions.
8130 (nsfont_list, nsfont_match): Use ns_findfonts.
8131 (nsfont_open): Use font descriptor instead of traits.
8132 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8133 (dump_glyphstring): Rename to ns_dump_glyphstring.
8134
c7eb9816
AR
8135 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8136
c1d04d84
AR
8137 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8138
8139 * fontset.c (fontset_from_font): Remove NS-specific code.
8140
ec7709ba 81412009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8142
8143 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8144 nonactive windows.
8145
31fd7c5c 81462009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8147
1ac9108a 8148 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8149
68852c13 81502009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8151
8152 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8153
6756cd1d
CY
81542009-06-07 Chong Yidong <cyd@stupidchicken.com>
8155
8156 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8157 account for the overflowing of newlines into the last glyph on the
8158 display line (Bug#3482).
8159
28bf482a
DR
81602009-06-05 David Reitter <david.reitter@gmail.com>
8161
ec7709ba
JB
8162 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8163 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8164 Fns_selection_exists_p, Fns_selection_owner_p.
8165
fdb55376
JR
81662009-06-03 Jason Rumney <jasonr@gnu.org>
8167
8168 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8169 available. (Bug#3379)
8170
05129fbe
KH
81712009-05-29 Kenichi Handa <handa@m17n.org>
8172
1ac9108a
SM
8173 * coding.c (get_translation_table):
8174 Check Venable_character_translation.
05129fbe 8175
ec7709ba 81762009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8177
ec7709ba
JB
8178 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8179 (x_make_frame_visible): Move frame to front rather than calling
15891144 8180 ns_raise_frame().
ec7709ba 8181 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8182 isn't key window.
ec7709ba 8183 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8184 drawRect may be called by NSView even if the frame is hidden.
8185
ec7709ba
JB
8186 * nsfns.m (Fx_create_frame): Follow other ports in
8187 determining visibility; default to t. Ensure async_visible is set.
15891144 8188
21f73755
EZ
81892009-05-23 Eli Zaretskii <eliz@gnu.org>
8190
8191 * dired.c (Ffile_attributes): Doc fix.
8192
34001e41
CY
81932009-05-22 Chong Yidong <cyd@stupidchicken.com>
8194
8195 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8196
46306a17
SM
81972009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8198
8199 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8200 and xfont_scratch_props.
8201 (syms_of_xfont): Do it here instead.
8202 (xfont_find_ccl_program): Delete, unused.
8203 (xfont_open): Delete unused var `i'.
8204
ef6e0694
KH
82052009-05-21 Kenichi Handa <handa@m17n.org>
8206
8207 * fontset.c (Qlatin): Don't make it static.
8208
46306a17
SM
8209 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8210 New functions.
ef6e0694
KH
8211 (xfont_scripts_cache, xfont_scratch_props): New variables.
8212 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8213 (xfont_list_pattern): Argument changed. Callers changed.
8214 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8215 (xfont_list): Don't reject a font spec with :script property.
8216 (xfont_has_char): Fix setting of encoding.
8217 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8218 xfont_scratch_props.
8219
82202009-05-19 Kenichi Handa <handa@m17n.org>
8221
46306a17 8222 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8223 Callers changed.
8224
82252009-05-18 Kenichi Handa <handa@m17n.org>
8226
8227 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8228
ac71ced7
SM
82292009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8230
8231 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8232 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8233
1c6d1051
YM
82342009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8235
8236 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8237 (x_delete_terminal): Dissociate resource database from display and
8238 then call XrmDestroyDatabase before closing display.
8239
9b9b779c
AR
82402009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8241
8242 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8243 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8244 whether selected frame is viable before raising it (based on patch
8245 by David Reitter), and improve commentary.
8246 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8247
cccd42d5
KH
82482009-05-15 Kenichi Handa <handa@m17n.org>
8249
8250 * font.c (Ffont_spec): Check arguments.
8251
337fbd17
CY
82522009-05-14 Chong Yidong <cyd@stupidchicken.com>
8253
8254 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8255 weight when testing attributes (Bug#3282).
8256
47a6002f
JD
82572009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8258
8259 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8260 what we expect to get in the next ConfigureNotify event.
8261
9cb363db
YM
8262 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8263 before Xft one (Bug#1696).
8264
b9126609
CY
82652009-05-07 David Reitter <david.reitter@gmail.com>
8266
8267 * nsfns.m (Fx_display_planes): Compute bitplanes using
8268 NSBitsPerPixelFromDepth (Bug#3207).
8269
27a69fd9
CY
82702009-05-10 Chong Yidong <cyd@stupidchicken.com>
8271
8272 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8273
00f37552
TTN
82742009-05-10 Ulrich Mueller <ulm@gentoo.org>
8275
8276 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8277
2d82a920
DR
82782009-05-07 David Reitter <david.reitter@gmail.com>
8279
ec7709ba
JB
8280 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8281 Respect mouse face background.
2d82a920 8282
46b0d52d
DR
82832009-05-07 David Reitter <david.reitter@gmail.com>
8284
ec7709ba
JB
8285 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8286 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8287 in ns_update_begin and ns_update_end.
8288
ce1b23bb
SM
82892009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8290
5996e1b7
SM
8291 * nsfns.m (ns_get_screen): Rewrite.
8292 Don't presume selected-frame is of type `ns'.
8293
ba98e3a0
SM
8294 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8295 all drivers.
8296
ce1b23bb
SM
8297 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8298
bcda200f
YM
82992009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8300
8301 * keyboard.h (add_user_signal): Fix typo in extern.
8302
8303 * lisp.h (add_user_signal): Remove extern.
8304
8305 * unexelf.c (unexec): Consider a section to precede the .bss section
8306 if its addresses overlap that of .bss.
8307 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8308 instead of dumping process.
8309
864660a2
SM
83102009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8311
8312 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8313
50da4e56
SM
83142009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8315
8316 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8317
51520a1a
DN
83182009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8319
8320 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8321 any statements.
8322
409ea3a1
AS
83232009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8324
59c4c60f
AS
8325 * process.c (read_process_output): Make sure the current buffer is
8326 always restored.
8327
409ea3a1
AS
8328 * coding.c (record_conversion_result): Don't modify
8329 Vlast_code_conversion_error for successful result.
8330 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8331
56f00ed2
KH
83322009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8333
8334 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8335 (load_charset_map): Remove unnecessary code.
56f00ed2 8336
4491c9d2
DR
83372009-04-30 David Reitter <david.reitter@gmail.com>
8338
35f5b128 8339 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8340 through f24.
8341
6970f632
CY
83422009-04-30 Chong Yidong <cyd@stupidchicken.com>
8343
8344 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8345
8346 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8347 face_at_buffer_position.
8348 (face_before_or_after_it_pos, get_next_display_element)
8349 (note_mouse_highlight): Update face_at_buffer_position call.
8350
8351 * term.c (term_mouse_highlight):
8352 * msdos.c (IT_note_mouse_highlight):
8353 * fontset.c (Finternal_char_font):
35f5b128 8354 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8355
8356 * dispextern.h (face_at_buffer_position): Update prototype.
8357
0c616f63
KH
83582009-04-30 Kenichi Handa <handa@m17n.org>
8359
35f5b128 8360 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8361
ad3aaf33
AS
83622009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8363
8364 * callproc.c (Fcall_process): Fix GC protection. Make sure
8365 current buffer is always restored.
8366
c3c963a0
YM
83672009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8368
8369 * atimer.c (init_atimer): Also clear stopped_atimers.
8370
8371 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8372
7e3386cb
YM
8373 * process.c (create_process): Clean up merger residues of
8374 2008-07-17 change.
8375
91f68422
CY
83762009-04-29 Ulrich Mueller <ulm@gentoo.org>
8377
8378 * lread.c (Vread_circle): New variable.
8379 (read1): Disable recursive read if Vread_circle is nil.
8380
24b34550
KH
83812009-04-29 Kenichi Handa <handa@m17n.org>
8382
8383 * fontset.h (set_default_ascii_font): Delete extern.
8384
8385 * fontset.c (set_default_ascii_font): Delete this unused function.
8386
8387 * frame.c (x_set_font): When ARG is a font-object, check if the
8388 font-object matches with the ASCII font-spec of the frame's
9c358bda 8389 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8390
77bf07e1
AS
83912009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8392
8393 * fns.c (Flocale_info): Protect vector from GC during decoding.
8394
8395 * process.c (Fstart_process): Protect argv strings from GC during
8396 encoding.
8397
2c55aacf
AS
83982009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8399
8400 * sysdep.c: Include <ctype.h>.
8401
b892d3c9
DR
84022009-04-27 David Reitter <david.reitter@gmail.com>
8403
35f5b128 8404 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8405 Remove commented-out code.
8406
9d0644c4
JB
84072009-04-26 Johan Bockgård <bojohan@gnu.org>
8408
8409 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8410
b7053016
JR
84112009-04-25 Jason Rumney <jasonr@gnu.org>
8412
8413 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8414
4e8231f3
YM
84152009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8416
8417 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8418 Swap bytes in short integer if fringe bitmap width > 8.
8419
493dcf2c
KH
84202009-04-23 Kenichi Handa <handa@m17n.org>
8421
8422 * xfaces.c (Fx_list_fonts): If a font size is specified in
8423 PATTERN, set it in returned scalable fonts.
8424
401e9e57
CY
84252009-04-22 Chong Yidong <cyd@stupidchicken.com>
8426
708e05dc
CY
8427 * keyboard.c (Fset_input_meta_mode): Doc fix.
8428
8429 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8430
1ac9108a 8431 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8432
8433 * coding.c (Fterminal_coding_system): Doc fix.
8434
8435 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8436 (Fx_display_pixel_height, Fx_display_planes)
8437 (Fx_display_color_cells, Fx_server_max_request_size)
8438 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8439 (Fx_display_mm_height, Fx_display_mm_width)
8440 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8441 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8442 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8443 (check_x_display_info): Handle terminal objects instead of
8444 terminal ids.
8445
401e9e57
CY
8446 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8447 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8448 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8449 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8450
df80c7f0
KH
84512009-04-21 Kenichi Handa <handa@m17n.org>
8452
5a8f12af 8453 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8454 (font_score): Check AVGWIDTH too.
908567ef 8455
df80c7f0
KH
8456 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8457 worst case.
1ac9108a
SM
8458 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8459 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8460
705af33f
JR
84612009-04-19 Jason Rumney <jasonr@gnu.org>
8462
8463 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8464 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8465
8466 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8467 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8468 get_phys_cursor_geometry.
8469
b71ac3dd 8470 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8471 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8472 using get_phys_cursor_geometry.
8473
8474 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8475 correctly calculated.
8476
dc2933eb
JD
84772009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8478
1ac9108a
SM
8479 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8480 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8481 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8482 is deprecated.
8483
973e7849
AS
84842009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8485
8486 * font.c (font_put_frame_data): Use xfree instead of free.
8487
314d66f4
JB
84882009-04-17 Juanma Barranquero <lekktu@gmail.com>
8489
8490 * w32font.c (Qja, Qko): Remove declarations.
8491 (syms_of_w32font): Don't DEFSYM them.
8492
cf702558
CY
84932009-04-17 Chong Yidong <cyd@stupidchicken.com>
8494
8495 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8496
8497 * font.h (Qja, Qko): Extern them.
8498
8499 * ftfont.c (Qja, Qko): Remove declarations.
8500
8501 * xfont.c (Qja, Qko): Remove declarations.
8502
b50504f5
KH
85032009-04-17 Kenichi Handa <handa@m17n.org>
8504
bde25748
KH
8505 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8506 string from a vector to handle Latin-1 characters correctly.
8507
b50504f5
KH
8508 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8509 entity even if the cache hits.
8510
f4646fff
AS
85112009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8512
8513 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8514 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8515
e7deaab0
AS
8516 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8517 * lisp.h: Adjust prototypes.
8518
0a0e7d49
CY
85192009-04-16 Chong Yidong <cyd@stupidchicken.com>
8520
8521 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8522 change (Bug#3003).
8523
3c908a57
KH
85242009-04-16 Kenichi Handa <handa@m17n.org>
8525
1ac9108a 8526 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8527
8528 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8529 adstyle.
8530
8531 * ftfont.c (Qja, Qko): Don't make them static.
8532 (enum ftfont_cache_for): New enum.
8533 (fc_charset_table): Undo the previous change.
8534 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8535 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8536 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8537 non-scarable font, try to get AVERAGE_WIDTH.
8538 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8539 Change ft_face_cache from a list of a hash-table. Don't check
8540 `ja' and `ko' adstyle here.
8541 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8542 FTFONT_CACHE_FOR_CHARET.
8543 (ftfont_get_charset): Undo the previous change.
1ac9108a 8544 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8545 (ftfont_close): Likewise.
8546 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8547
8548 * font.c (font_sort_entites): Change the meaning of the arg
8549 BEST-ONLY. Don't optimize for VEC of lenght 1.
8550 (font_select_entity): Just return the value of font_sort_entites.
8551
8552 * xfaces.c (merge_face_vectors): Reflect font properties in
8553 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8554 font_clear_prop if a face attribute doesn't change.
8555
3c908a57
KH
8556 * charset.h (charset_ksc5601): Extern it.
8557
8558 * charset.c (charset_ksc5601): New variable.
8559 (Fdefine_charset_internal): Set charset_ksc5601.
8560 (init_charset_once): Initialize charset_ksc5601 to -1.
8561
d65859c3
DN
85622009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8563
8564 * fileio.c (history_delete_duplicates): Remove unused declaration.
8565
8566 * callint.c (history_delete_duplicates): New declaration.
8567 (Fcall_interactively): Remove command history duplicates when
8568 history_delete_duplicates is true.
8569
3ba010e5
EZ
85702009-04-14 Eli Zaretskii <eliz@gnu.org>
8571
8572 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8573
06f19b91
KH
85742009-04-14 Kenichi Handa <handa@m17n.org>
8575
8576 * font.c (Ffont_info): Fix docstring. Fix the second element of
8577 the returned value (bug#2949).
8578
2cce8bfc
CY
85792009-04-14 Chong Yidong <cyd@stupidchicken.com>
8580
8581 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8582
d156542d
KH
85832009-04-14 Kenichi Handa <handa@m17n.org>
8584
8585 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8586 encoding charset is ascii_compatible.
8587
8588 * charset.c (Fdefine_charset_internal): Make charset
8589 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8590 code_offset is 0, and covers all ASCII characters.
8591
86fa089e
SM
85922009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8593
8594 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8595 (ns_string_to_pasteboard_internal):
8596 * nsmenu.m (process_dialog):
8597 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8598 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8599 * lisp.h (Fx_load_color_file): Declare.
8600
a8a3728b
KH
86012009-04-13 Kenichi Handa <handa@m17n.org>
8602
1ac9108a 8603 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8604 (font_select_entity): Suppress the code to optimize for the same
8605 kind of fonts.
8606 (font_load_for_lface): Get a font that supports at least ASCII
8607 characters.
8608
8609 * ftfont.c (Qja, Qko): New variables.
8610 (fc_charset_table): Delete uniquifier data for iso8859-1.
8611 (ftfont_get_latin1_charset): New function.
8612 (get_adstyle_property): New function.
8613 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8614 bitmap fonts.
8615 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8616 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8617 `ko' or `ja'.
8618 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8619 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8620 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8621 property.
8622 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8623 (syms_of_ftfont): DEFSYM Qja and Qko.
8624
483670b5
KH
86252009-04-09 Kenichi Handa <handa@m17n.org>
8626
12b55765
KH
8627 * charset.c (map_charset_chars): For a charset of `superset'
8628 method, fix calculation of code range.
8629
483670b5
KH
8630 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8631 from the list of extra properties.
8632 (font_clear_prop): Be sure to delete `:name' font property.
8633
57d3b93b
KH
86342009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8635
b4b2c2ca
YM
8636 * dispnew.c (redraw_overlapping_rows): Fix detection of
8637 overlapping for topmost and bottommost rows.
8638
1ac9108a 8639 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8640
472c3609
JR
86412009-04-06 Jason Rumney <jasonr@gnu.org>
8642
8643 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8644
ab193662
KH
86452009-04-06 Kenichi Handa <handa@m17n.org>
8646
8647 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8648
8649 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8650
0c26f026
KH
86512009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8652
8653 * ftfont.c (ftfont_open): Fix checking of the return value of
8654 FT_Load_Char. Fix setting font->underline_thickness.
8655
e173bbce
CY
86562009-04-04 Chong Yidong <cyd@stupidchicken.com>
8657
8658 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8659 (Fterminal_parameters, Fterminal_parameter)
8660 (Fset_terminal_parameter): In doc string, refer to terminal
8661 objects rather than terminal ids.
8662
693a2698
EZ
86632009-04-04 Eli Zaretskii <eliz@gnu.org>
8664
8665 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8666 ret_lim_data. (Bug#2867)
8667
d5221487
CY
86682009-04-03 Chong Yidong <cyd@stupidchicken.com>
8669
8670 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8671 so they don't get wider than the window, matching 2006-01-23
8672 change to the partner function in xdisp.c (Bug#2800).
8673
223509a3
KH
86742009-04-03 Kenichi Handa <handa@m17n.org>
8675
8676 * print.c (print_object): Make each lowest sub_char_table start a
8677 new line (Bug#2866).
8678
74fcd0b1
KH
86792009-04-02 Kenichi Handa <handa@m17n.org>
8680
8681 * fontset.c (fontset_font): Record no-font when a fontset
8682 explicitly tells not to try another font-specs.
8683
c542407d
SM
86842009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8685
8686 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8687
e3869731
KH
86882009-03-30 Kenichi Handa <handa@m17n.org>
8689
d8d2f142
KH
8690 * fontset.c (fontset_from_font): Specify only registry in a
8691 font-spec for all characters supported by that registry.
8692
e3869731
KH
8693 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8694 even if HAVE_M17N_FLT is not defined.
8695
5da5f805
CY
86962009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8697
8698 * ftfont.c: Conditionalize prototyping and use of
8699 ftfont_variation_glyphs.
8700
ab226c50
SM
87012009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8702
9628fed7
SM
8703 * frame.c (delete_frame): Work around compiler bug.
8704
8705 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8706 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8707 Some more EMACS_INT.
8708 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8709
8710 * xdisp.c (dump_glyph): Fix typo.
8711
ae19ba7c
SM
8712 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8713 (adjust_markers_gap_motion, adjust_markers_for_delete)
8714 (adjust_markers_for_insert, adjust_point)
8715 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8716 (make_gap, copy_text, count_size_as_multibyte, insert)
8717 (insert_and_inherit, insert_before_markers)
8718 (insert_before_markers_and_inherit, insert_1)
8719 (count_combining_before, count_combining_after, insert_1_both)
8720 (insert_from_string, insert_from_string_before_markers)
8721 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8722 (insert_from_buffer_1, adjust_after_replace)
8723 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8724 (replace_range_2, del_range, del_range_1, del_range_byte)
8725 (del_range_both, del_range_2, modify_region)
8726 (prepare_to_modify_buffer, signal_before_change)
8727 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8728 for buffer positions and sizes.
8729 * lisp.h: Adjust prototypes accordingly.
8730
8731 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8732 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8733 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8734
ab226c50
SM
8735 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8736
46dfb8fb
JD
87372009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8738
8739 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8740 lines and columns so we keep the same pixel height and width.
8741
8742 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8743 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8744 (x_handle_net_wm_state): New function to update frame parameter
8745 fullscreen.
8746 (x_term_init): Initialize atoms for _NET_WM_STATE.
8747
8748 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8749
d347e494
SM
87502009-03-27 Kevin Ryde <user42@zip.com.au>
8751
8752 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8753 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8754 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8755 (Fgpm_mouse_stop): Pass that new parameter.
8756 * termhooks.h (close_gpm): Adjust prototype.
8757
84db11d6
SM
87582009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8759
c95a5008
SM
8760 * lisp.h (Fx_focus_frame): Declare.
8761
84db11d6
SM
8762 * callint.c (Fcall_interactively): For '^' just delegate the work to
8763 handle-shift-selection.
8764 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8765
0a1958d6
CY
87662009-03-24 Chong Yidong <cyd@stupidchicken.com>
8767
0bfdff23
CY
8768 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8769
0a1958d6
CY
8770 * data.c (Qinteractive_form): New variable.
8771 (Finteractive_form): Use it.
8772
8773 * eval.c (Fcommandp): Use Qinteractive_form.
8774
58aec0d6
JR
87752009-03-24 Jason Rumney <jasonr@gnu.org>
8776
8777 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8778 Calculate total size precisely. Decode environment variables
8779 before substituting. (Bug#38)
8780
553dd618
KH
87812009-03-24 Kenichi Handa <handa@m17n.org>
8782
8783 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8784 encoding (Bug#2722).
553dd618 8785
c39ea606
JD
87862009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8787
8788 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8789 that gdpy is set.
8790
bc9b2b5e
AM
87912009-03-22 Alan Mackenzie <acm@muc.de>
8792
8793 * callint.c (Finteractive): Clarify the doc string - even
8794 promptless elements need \n separators.
8795
9f995a76
JR
87962009-03-22 Jason Rumney <jasonr@gnu.org>
8797
8798 * w32term.c (syms_of_w32term): Doc fix for
8799 x-use-underline-position-properties.
8800
22749e9a
EZ
88012009-03-21 Eli Zaretskii <eliz@gnu.org>
8802
8803 * w32.c (getpwuid): Change argument type to unsigned.
8804 (struct w32_id): Change type of `rid' member to unsigned.
8805 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8806 argument ID to unsigned. All callers changed.
8807 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8808
e00553bf
EZ
88092009-03-20 Eli Zaretskii <eliz@gnu.org>
8810
8811 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8812 negative, produce a float value.
8813
8814 * dired.c (make_uid, make_gid): New functions.
8815 (Ffile_attributes): Use them to avoid negative UID and GID.
8816
f761d6b6
JB
88172009-03-20 Juanma Barranquero <lekktu@gmail.com>
8818
8819 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8820 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8821 Fix typos in docstrings.
8822
d507f8d7
KH
88232009-03-19 Kenichi Handa <handa@m17n.org>
8824
8825 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8826 changed, use font_load_for_lface to get a new font object.
8827 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8828
8829 * frame.c (x_set_font): Handle the case that ARG is a cons.
8830
c68845e0
GM
88312009-03-19 Glenn Morris <rgm@gnu.org>
8832
8833 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8834
bfa49dd1
CY
88352009-03-19 Chong Yidong <cyd@stupidchicken.com>
8836
8837 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8838
8458d4c1
KH
88392009-03-19 Kenichi Handa <handa@m17n.org>
8840
8841 * charset.c (load_charset_map_from_file): When a mapfile can't be
8842 loaded, signal an error.
8843
78e7d1fe
EZ
88442009-03-18 Eli Zaretskii <eliz@gnu.org>
8845
8846 * dired.c (Ffile_attributes): Make sure UID and GID are always
8847 positive, even if the value is too large for a positive EMACS_INT.
8848 Doc fix.
8849
8850 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8851
5da9fdfa
YM
88522009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8853
8854 * xmenu.c (xdialog_show): Move Fredisplay call ...
8855 (Fx_popup_dialog): ... here.
8856
7519c40d
SM
88572009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8858
8859 * dired.c (file_name_completion): Disable the first optimization just
8860 installed, since it is not implemented correctly.
8861
2cd298e2
SM
88622009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8863
8864 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8865 only if the entry can affect bestmatch.
2cd298e2
SM
8866 Stop the search early, as Ftry_completion already does.
8867
48d37adf
CY
88682009-03-17 Chong Yidong <cyd@stupidchicken.com>
8869
e10c9c93 8870 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8871
9286b16a
CY
88722009-03-15 Chong Yidong <cyd@stupidchicken.com>
8873
8874 * keyboard.c (parse_menu_item): Don't display remappings as menu
8875 equivalent bindings (Bug#788).
8876
f7b146dc
JR
88772009-03-15 Jason Rumney <jasonr@gnu.org>
8878
8879 * w32term.h (WM_EMACS_PAINT): New message.
8880 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8881 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8882 before passing to lisp thread. (Bug#950)
8883
f761d6b6 88842009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8885
d93f9575
CY
8886 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8887 variable as it was never reset.
8888 (ns_term_init): Remove initialization of Lisp-settable defaults
8889 and ns_expand_space.
8890 (-setPanelFromDefaultValues): Remove ns_expand_space.
8891 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8892 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8893 i.e. no additional spacing, similar to Carbon port.
8894
d93f9575
CY
8895 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8896 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8897
305018ec
JD
88982009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8899
8900 * sound.c (alsa_configure): Remove call to deprecated
8901 snd_pcm_sw_params_set_xfer_align.
8902
f761d6b6 89032009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8904
8905 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8906 after clicking in a detached tool bar.
8907 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8908
46e722a9
SM
89092009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8910
348db3dd
SM
8911 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8912 int/Lisp_Object mixup).
46e722a9 8913
a3d16f39
KH
89142009-03-13 Kenichi Handa <handa@m17n.org>
8915
8916 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8917 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8918 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8919 (set_fontset_font): Change ARG to a vector. Handle range_list in
8920 ARG correctly.
8921 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8922 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8923 the above change.
8924 (fontset_from_font): Fix previous change.
fe24f56a 8925 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8926 entry. If FONTSET is the default fontset, don't set the extra
8927 slot of the returning char-table.
8928
b066e6b6
JB
89292009-03-12 Juanma Barranquero <lekktu@gmail.com>
8930
8931 * nsfns.m (Fx_close_connection): Doc fix.
8932 (Fns_do_applescript): Reflow docstring.
8933 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8934 (Fx_display_pixel_width, Fx_display_pixel_height)
8935 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8936 Fix typos in docstrings.
8937 (Fns_set_alpha): Fix typos in error messages.
8938
d472514e 89392009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8940
d472514e 8941 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8942 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8943 were used for such events.
8944
d472514e
JB
8945 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8946 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8947
d472514e 8948 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8949 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8950
fb930676
KH
89512009-03-11 Kenichi Handa <handa@m17n.org>
8952
ff85581a
KH
8953 * font.h (font_open_by_spec): Extern it.
8954
c50b7e98
KH
8955 * font.c (font_open_by_spec): New function.
8956 (font_open_by_name): Use font_open_by_spec.
8957
fb930676
KH
8958 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8959 fontset of the frame.
8960
8961 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8962 modify the default font of frames that use this fontset.
8963 (num_auto_fontsets): New variable.
8964 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8965 name. Be sure to set FONTSET_ASCII to the correct font name.
8966 (update_auto_fontset_alist): New function.
8967
df4e8455
JB
89682009-03-11 Juanma Barranquero <lekktu@gmail.com>
8969
8970 * makefile.w32-in: Update dependencies.
8971
0a375797
AR
89722009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8973
8974 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8975
61313fa3
SM
89762009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8977
8978 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8979
b55103fb
CY
89802009-03-10 Chong Yidong <cyd@stupidchicken.com>
8981
8982 * lread.c (Feval_buffer): Doc fix.
8983
dde2559c
KH
89842009-03-09 Kenichi Handa <handa@m17n.org>
8985
8986 * charset.c (Qfile_name_handler_alist): Extern it.
8987 (load_charset_map_from_file): Temporarily bind
8988 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8989
df4e8455 89902009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8991
47f588bb
GM
8992 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8993 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8994
4ddf94bd
AR
89952009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8996
4c9bdfc2
AR
8997 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8998 (x_set_window_size): Change back to calculated method of setting
8999 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9000 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9001 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9002
fe41ae9e
AR
9003 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9004
4c9bdfc2
AR
9005 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9006 accelerator in parens under GNUstep.
9007
825d0875
KH
90082009-03-06 Kenichi Handa <handa@m17n.org>
9009
9010 These changes are to detect incorrect composition sequence without
f3b3be74 9011 looking ahead the source. (Bug#2370)
825d0875
KH
9012
9013 * coding.h: Include "composite.h".
9014 (enum compisition_state): New enum.
9015 (struct compisition_status): New struct.
9016 (struct iso_2022_spec): New member cmp_status.
9017 (struct emacs_mule_spec): New struct.
9018 (struct coding_system): New members ctext_extended_segment_len and
9019 embedded_utf_8. Change the union member
9020 spec.emacs_mule_full_support to spec.emacs_mule.
9021
9022 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9023 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9024 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9025 (ADD_COMPOSITION_DATA): New arg nbytes.
9026 (emacs_mule_char): New arg cmp_status.
9027 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9028 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9029 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9030 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9031 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9032 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9033 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9034 (EMACS_MULE_COMPOSITION_END): New macro.
9035 (emacs_mule_finish_composition): New function.
9036 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9037 (decode_coding_emacs_mule): Avoid long looking ahead while
9038 handling composition.
9039 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9040 (ENCODE_COMPOSITION_RULE): New macro.
9041 (finish_composition): New function.
9042 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9043 (DECODE_COMPOSITION_START): New implementation.
9044 (DECODE_COMPOSITION_END): Likewise.
9045 (STORE_COMPOSITION_RULE): New macro.
9046 (decode_coding_iso_2022): Avoid long looking ahead while handling
9047 composition, CTEXT extended segment, and embedded UTF-8.
9048 (setup_coding_system): For a coding of type iso-2022, reset
9049 CODING_ISO_EXTSEGMENT_LEN (coding) and
9050 CODING_ISO_EMBEDDED_UTF_8 (coding).
9051 (get_translation): Delete arguments last_block, from_nchars,
9052 to_nchars. Callers changed.
9053 (produce_chars): Don't modify charbuf. Adjusted for the change of
9054 get_translation.
98a326f7 9055 (produce_composition): Adjust for the new annotation sequence.
825d0875 9056 (handle_composition_annotation): Likewise.
98a326f7 9057 (consume_chars): Adjust for the change of get_translation.
825d0875 9058
ccbc4452
AR
90592009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9060
4ddf94bd 9061 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9062
988a7ddb
KH
90632009-03-05 Kenichi Handa <handa@m17n.org>
9064
9065 * font.c (font_select_entity): New function.
9066 (font_find_for_lface): Use font_select_entity to select a font.
9067
9068 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9069 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9070 font with C restriction.
9071
98a326f7 90722009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9073
be1bce46 9074 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9075
10ea2b82
JR
90762009-03-04 Jason Rumney <jasonr@gnu.org>
9077
2c93b248 9078 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9079 characters that have already been read. (Bug#2569)
2c93b248 9080
10ea2b82
JR
9081 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9082 Log an error message if check_image_size failed.
9083 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9084 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9085
71a0c011
EZ
90862009-03-02 Eli Zaretskii <eliz@gnu.org>
9087
9088 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9089 when decoding process output.
9090
2f63bba8
RS
90912009-03-01 Richard M Stallman <rms@gnu.org>
9092
9093 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9094
9095 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9096
0a9564cb
EZ
90972009-02-28 Eli Zaretskii <eliz@gnu.org>
9098
9099 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9100 (decode_coding_emacs_mule, decode_coding_iso_2022)
9101 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9102 (decode_coding_raw_text, decode_coding_charset)
9103 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9104 Honor inhibit-eol-conversion. (Bug #2186)
9105
449148b3
JR
91062009-02-28 Jason Rumney <jasonr@gnu.org>
9107
9108 * coding.c (detect_coding_charset): If not checking latin extra,
9109 fail on characters between 0x80 and 0xA0. (Bug#2354)
9110
a4aee864
EZ
91112009-02-28 Eli Zaretskii <eliz@gnu.org>
9112
9113 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9114 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9115
d88bee5a
GM
91162009-02-27 Glenn Morris <rgm@gnu.org>
9117
9118 * callint.c (Finteractive): Doc fix.
9119
a808f22d
KH
91202009-02-27 Kenichi Handa <handa@m17n.org>
9121
9122 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9123
caf8d60c
CY
91242009-02-27 Chong Yidong <cyd@stupidchicken.com>
9125
9126 * font.c (font_style_to_value): Set value for unknown symbols to
9127 100 instead of 255.
b61137ea
CY
9128 (weight_table, slant_table, width_table): Treat "unspecified" as
9129 the default value.
caf8d60c 9130
1a0de25c
JB
91312009-02-26 Juanma Barranquero <lekktu@gmail.com>
9132
9133 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9134
8fc45744
JB
91352009-02-25 Juanma Barranquero <lekktu@gmail.com>
9136
107bd7d1
JB
9137 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9138 error as soon as a recursive load is detected.
8fc45744 9139
f097e223
AR
91402009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9141
9142 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9143 before caching.
9144
8810a12f
KH
91452009-02-24 Kenichi Handa <handa@m17n.org>
9146
9147 * fontset.c (fontset_find_font): Fix the condition for checking
9148 unavailable font.
9149
2c7d1565
GM
91502009-02-24 Glenn Morris <rgm@gnu.org>
9151
9152 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9153 whitespace that confuses documentation.
9154
a20878b6
MB
91552009-02-23 Miles Bader <miles@gnu.org>
9156
9157 * process.c (Flist_system_processes, Fprocess_attributes)
9158 (syms_of_process): Rename `system-process-attributes' to
9159 `process-attributes'.
9160
b3b58c01
AS
91612009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9162
1b3b981b
AS
9163 * coding.h (struct coding_system): Make safe_charsets a pointer to
9164 unsigned char.
9165 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9166 being 255.
9167 (SAFE_CHARSET_P): Likewise.
9168 (setup_iso_safe_charsets): Properly setup safe_charsets.
9169 (Fdefine_coding_system_internal): Likewise.
9170 (setup_coding_system): Likewise. Remove unneeded casts.
9171 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9172 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9173 unneeded casts.
9174
b3b58c01
AS
9175 * insdel.c (del_range_2): Don't modify gap contents when called
9176 from decode_coding_object. (Bug#1809)
9177
0b6f228c
CY
91782009-02-21 Chong Yidong <cyd@stupidchicken.com>
9179
9180 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9181 Qfont_object.
9182 (Ftype_of): Recognize font objects.
9183
9184 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9185
9186 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9187 moved to data.c.
9188
52f8870b
AR
91892009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9190
9191 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9192 async_iconified. Based on a patch by Christian Lynbech
9193 <christian.lynbech@tieto.com>.
9194 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9195
7087d5e9
GM
91962009-02-20 Glenn Morris <rgm@gnu.org>
9197
9198 * syntax.c (Fskip_chars_forward): Fix doc typo.
9199
41d2ceef
CY
92002009-02-20 Chong Yidong <cyd@stupidchicken.com>
9201
9202 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9203
1a3b7ca6
CY
92042009-02-19 Chong Yidong <cyd@stupidchicken.com>
9205
9206 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9207
73cce38d
KH
92082009-02-19 Kenichi Handa <handa@m17n.org>
9209
9210 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9211 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9212
a51092ee
DN
92132009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9214
9215 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9216
c423ecca
KH
92172009-02-18 Kenichi Handa <handa@m17n.org>
9218
9219 * font.c (font_check_otf_features): Fix handling of `nil' element.
9220 (Ffont_spec): Describe :lang and :otf in the docstring.
9221
4c1958f4
AS
92222009-02-16 Andreas Schwab <schwab@suse.de>
9223
9224 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9225 string.
9226
5704f39a
KH
92272009-02-16 Kenichi Handa <handa@m17n.org>
9228
9229 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9230 (Bug#1723)
5704f39a 9231
8f0085aa
CY
92322009-02-14 Chong Yidong <cyd@stupidchicken.com>
9233
a057d86a 9234 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9235
9236 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9237 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9238
aff01dd9
EZ
92392009-02-14 Eli Zaretskii <eliz@gnu.org>
9240
9241 * msdos.c (MAX_SCREEN_BUF): New macro.
9242 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9243 Encode the entire run of glyphs sharing the same face, instead of
9244 doing that one glyph at a time (fixes a bug with displaying
9245 double-size characters).
9246
ba301db3
AR
92472009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9248
9249 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9250
9251 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9252 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9253 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9254
9255 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9256 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9257
51d861de
SM
92582009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9259
ac146f82 9260 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9261 invisible areas.
9262
7fed8996
JR
92632009-02-12 Jason Rumney <jasonr@gnu.org>
9264
631ea4fb
JR
9265 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9266 (add_font_entity_to_list): Call check_face_name even when family
9267 is unspecified.
9268
cb4a3e42
JR
9269 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9270 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9271 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9272
7fed8996 9273 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9274 raster fonts. (Bug#2219)
7fed8996 9275
895416e3
KH
92762009-02-12 Kenichi Handa <handa@m17n.org>
9277
9278 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9279 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9280 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9281 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9282 (find_automatic_composition): While looking forward and backward,
9283 check static composition. Fix where to stop looking forward.
9284 (composition_adjust_point): Fix checking of static composition.
9285 (Fcomposition_get_gstring): Pay attention to
1dacf998 9286 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9287
9288 * lisp.h (fast_looking_at): Extern it.
9289
9290 * search.c (fast_looking_at): New function.
9291
51d861de 9292 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9293 <struct glyph>.u.cmp.to.
9294 (append_composite_glyph): Likewise.
9295
51d861de 9296 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9297 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9298 composition.
51d861de 9299 (append_composite_glyph): Adjust for the change of
895416e3
KH
9300 <strcut glyph>.u.cmp.to.
9301
8510724d
JB
93022009-02-11 Juanma Barranquero <lekktu@gmail.com>
9303
9304 * casetab.c (init_casetab_once):
9305 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9306 * font.c (font_update_lface):
9307 * fontset.c (Fnew_fontset):
9308 * ftfont.c (ftfont_drive_otf):
9309 * xfont.c (xfont_open):
9310 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9311
294fa707
SM
93122009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9313
9314 * fileio.c (Fwrite_region): !NILP -> CONSP.
9315
b5bfebec
AS
93162009-02-10 Andreas Schwab <schwab@suse.de>
9317
9318 * process.c (send_process): Properly relocate pointer into data
adab88bd 9319 when using encoded data. (Bug#2272)
b5bfebec 9320
cb84a2be
KH
93212009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9322
9323 * coding.c (detect_coding_charset): Fix previous change.
9324
89e09428
JR
93252009-02-08 Jason Rumney <jasonr@gnu.org>
9326
9327 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9328 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9329
4470a277
AS
93302009-02-07 Andreas Schwab <schwab@suse.de>
9331
9332 * unexelf.c (unexec): Fix error message.
9333
3175b12a
AR
93342009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9335
9336 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9337 when modal window is active. (Bug #2152)
3175b12a
AR
9338 (applicationShouldTerminate:): Remove now-unneeded while loop
9339 around NSRunAlertPanel.
9340
9341 * nsmenu.m (popupSession): New file-global variable.
9342 (pop_down_menu): End the popupSession before closing dialog.
9343 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9344 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9345 don't query NSApp for events (just sleep instead).
9346
8434d0b8
EZ
93472009-02-07 Eli Zaretskii <eliz@gnu.org>
9348
51d861de
SM
9349 * coding.c (syms_of_coding) <translation-table-for-input>:
9350 Modify doc string to discourage use for character code unification.
8434d0b8 9351
aa82edfd
CY
93522009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9353
9354 * atimer.c (run_timers): Update pending_atimers.
9355
2d283c7c
CY
93562009-02-06 Chong Yidong <cyd@stupidchicken.com>
9357
eb306cab
CY
9358 * image.c (svg_load_image): Fix last change.
9359
2d283c7c
CY
9360 * xfns.c (Fx_create_frame): Signal an error if no font is
9361 found (Bug#2147).
9362
4d8e170e
JB
93632009-02-05 Juanma Barranquero <lekktu@gmail.com>
9364
9365 * character.c (syms_of_character) <script-representative-chars>:
9366 Fix typo in docstring.
9367
c96169a0
AR
93682009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9369
9370 * nsmenu.m (pop_down_menu): New function.
9371 (ns_popup_dialog): Call it on unwind.
9372 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9373 call timer_check() (Bug#2154).
9374 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9375 handling_signal is set.
9376 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9377
31fd7c5c 9378 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9379
9380 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9381
9382 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9383
51d861de
SM
9384 * keyboard.c (poll_for_input_1, handle_async_input):
9385 Set handling_signal under HAVE_NS.
c96169a0 9386
aacd8ba1
GM
93872009-02-04 Glenn Morris <rgm@gnu.org>
9388
9389 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9390
4cb75c4b
KH
93912009-02-04 Kenichi Handa <handa@m17n.org>
9392
9393 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9394
9395 * charset.c (Fchar_charset): New optional arg restriction.
9396
9397 * coding.h (coding_system_charset_list): Extern it.
9398
9399 * coding.c (coding_system_charset_list): New function.
9400
9401 * composite.c: Include coding.h and termhooks.h.
9402 (composition_gstring_p): Fix for the terminal case.
9403 (composition_gstring_width): Likewise.
9404 (fill_gstring_body): Likewise.
9405 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9406 the frame.
9407 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9408 is within a composition.
867d4bb3 9409 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9410
9411 * term.c (encode_terminal_code): Fix handling of composition.
9412 (produce_composite_glyph): For static composition, get pixel_width
9413 from struct composition.
9414
826ba17e
AS
94152009-02-02 Andreas Schwab <schwab@suse.de>
9416
9417 * unexelf.c (unexec): Handle unaligned bss offset.
9418
8ad093db
AR
94192009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9420
9421 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9422 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9423
8ad093db
AR
9424 * keyboard.c (handle_interrupt): Don't call
9425 quit_throw_to_read_char() under NS.
d0a76a6e 9426
8ad093db
AR
9427 * blockinput.h: Remove NS-specific code.
9428
4d18a7a2
DN
94292009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9430
db878925
DN
9431 * dispnew.c (window_change_signal): Don't try to get the size of a
9432 suspended tty frame.
9433 * term.c (Fresume_tty): Resize if the size has changed while the
9434 tty was suspended.
9435
4d18a7a2
DN
9436 * alloc.c (mark_stack): Properly conditionalize previous change.
9437
8984df7c
JB
94382009-01-30 Juanma Barranquero <lekktu@gmail.com>
9439
9440 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9441 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9442 Remove; this code is not used on Windows.
9443
75f4f1ac
EZ
94442009-01-30 Eli Zaretskii <eliz@gnu.org>
9445
9446 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9447 EOLs that also has stray ^M characters.
9448
07a1e794
JB
94492009-01-30 Juanma Barranquero <lekktu@gmail.com>
9450
9451 * atimer.c (run_timers, alarm_signal_handler):
9452 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9453 * w32inevt.c (w32_console_read_socket):
9454 * w32term.c (w32_read_socket):
9455 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9456
a8b11cc9
CY
94572009-01-30 Chong Yidong <cyd@stupidchicken.com>
9458
9459 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9460 Initialize it as a relative filename pattern.
9461 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9462 (Fcall_process_region): Simplify temp file creation using
9463 temporary-file-directory.
9464
c279587b
EZ
94652009-01-29 Eli Zaretskii <eliz@gnu.org>
9466
9467 * msdos.c: Rename pending_signals to msdos_pending_signals.
9468 (sig_suspender, sigprocmask): Adjust.
9469
a8fe3242
CY
94702009-01-29 Chong Yidong <cyd@stupidchicken.com>
9471
9472 * keyboard.c (pending_signals): New var.
9473 (poll_for_input, input_available_signal, init_keyboard): Set it.
9474 (process_pending_signals): New function.
9475
9476 * lisp.h (QUIT): Check pending_signals instead of
9477 interrupt_input_pending. Use process_pending_signals.
9478
51d861de 9479 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9480
51d861de 9481 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9482
9483 * sysdep.c (emacs_write): Use process_pending_signals.
9484
9485 * xterm.c (XTread_socket): Update pending_signals.
9486
9487 * w32term.c (w32_read_socket): Update pending_signals.
9488
9489 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9490
6570a1c4
KH
94912009-01-29 Kenichi Handa <handa@m17n.org>
9492
9493 * xftfont.c (xftfont_has_char): New function.
9494 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9495
d72a4afa
AR
94962009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9497
9498 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9499 under GNUstep.
9500 (ns_query_color): New declaration.
9501
9502 * nsterm.m (ns_confirm_quit): New variable.
9503 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9504 (EmacsApp-applicationShouldTerminate:): Use it.
9505 (EmacsPrefsController): Let user set it.
9506 (ns_query_color): New function.
9507 (ns_defined_color): Use it.
9508 (ns_initialize): Drop.
9509 (ns_term_init): Add two lines from ns_initialize(), and set
9510 input_interrupt_mode to nil.
9511
9512 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9513 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9514
9fe78804
KH
95152009-01-28 Kenichi Handa <handa@m17n.org>
9516
9517 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9518 (fontset_get_font_group): Remember that no font-group is specified
9519 for C.
9fe78804 9520
fa57de36
CY
95212009-01-27 Chong Yidong <cyd@stupidchicken.com>
9522
930600e9
CY
9523 * fns.c (concat): Check for string overflow (bug#1787).
9524
fa57de36
CY
9525 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9526 Quadruple undo limits (bug#1501).
9527
7179ce7b
KH
95282009-01-27 Kenichi Handa <handa@m17n.org>
9529
9530 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9531 directly use GT_Get_Char_index.
9532
9533 * xftfont.c (struct xftfont_info): New member `index'.
9534
9535 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9536 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9537
5be8fcc0
CY
95382009-01-26 Kenichi Handa <handa@m17n.org>
9539
9540 * fontset.c (fontset_find_font): Fix handling of non-cons return
9541 value of fontset_get_font_group.
9542 (fontset_font): Revert last change.
9543
19ae3e61
JR
95442009-01-26 Jason Rumney <jasonr@gnu.org>
9545
9546 * w32font.c (w32font_list_internal): Return quickly if registry is
9547 unknown. Simplify final return.
9548 (add_font_entity_to_list): Break complex logic down into more
9549 manageable chunks. Move unknown registry check to
9550 w32font_list_internal.
9551
8612b71a
AR
95522009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9553
9554 Changes to remove Feval calls from GUI under NS.
9555
d8038940
JB
9556 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9557 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9558 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9559
9560 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9561 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9562 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9563 instead of NON_ASCII_KEYSTROKE_EVENT.
9564 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9565 (EmacsApp-applicationShouldTerminate:): Query user.
9566 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9567 instead of Feval.
9568
9569 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9570
9571 * keyboard.c (kbd_buffer_get_event): Check for it.
9572 (keys_of_keyboard): Define lispy keys for
9573 ns-put/unput-working-text.
9574
9575 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9576 versions.
9577 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9578
6288ae55
CY
95792009-01-25 Chong Yidong <cyd@stupidchicken.com>
9580
9581 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9582 setting current_buffer directly. (Bug#2044)
6288ae55 9583
289e7f8f
CY
95842009-01-24 Chong Yidong <cyd@stupidchicken.com>
9585
5ce87308 9586 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9587 any work. (Bug#1952, bug#1990).
5ce87308 9588
64cc3cf6 9589 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9590
b3243e6f
AR
95912009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9592
9593 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9594 (ns_no_defaults): New declaration.
9595 (main): Use it.
e0d2e69a 9596
d900b2af 9597 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9598
d900b2af 9599 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9600
d900b2af
AR
9601 * nsterm.m (ns_no_defaults): New variable.
9602 (ns_initialize): Don't read defaults when ns_no_defaults.
9603 (EmacsView-readSelectionFromPasteboard:)
9604 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9605 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9606 (ns_dumpglyphs_stretch): New function.
9607 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9608 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9609
e0d2e69a
AR
9610 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9611
3ac71f5d
CY
96122009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9613
9614 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9615 call for Sparc64.
9616
3fe53a83
AR
96172009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9618
9619 * nsfns.m:
9620 * nsgui.h:
9621 * nsmenu.m:
9622 * nsselect.m:
9623 * nsterm.h:
9624 * nsterm.m: Remove '23' comments that indicated code added during
9625 update from emacs-20 -> emacs-23.
9626
10f87c6f 96272009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9628
9629 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9630 ns_alternate_modifier. (Bug#1217)
a3b53a85 9631
c7cef62d
AR
9632 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9633 Display all shortcuts, including those w/o super modifier.
9634
575fb8bd
AR
9635 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9636
918b848b
CY
96372009-01-22 Chong Yidong <cyd@stupidchicken.com>
9638
9639 * fileio.c (Vwrite_region_post_annotation_function)
9640 (Vwrite_region_annotation_buffers): New vars.
9641 (build_annotations_unwind): Just reset
9642 Vwrite_region_annotation_buffers.
9643 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9644 Call write-region-post-annotation-function.
9645 (build_annotations): Add to Vwrite_region_annotation_buffers if
9646 buffer changes.
9647
a39e2539
AR
96482009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9649
9650 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9651 Tiger.
51d861de
SM
9652 * nsfns.m (ns_do_applescript):
9653 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9654
35ed44db
AR
96552009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9656
9657 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9658
cbe0b5bf
AR
96592009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9660
9661 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9662
6049d3a0
AR
9663 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9664
9665 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9666 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9667 handle Ctrl-tab. (Bug#1841)
9668 (ns_get_color): Use unsigned long long for scanned hex string value.
9669 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9670 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9671 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9672 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9673 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9674 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9675 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9676
d3810c21 9677 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9678 DPI. (Bug#1316)
d3810c21
AR
9679 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9680 values in onTiger section.
4c7077c3 9681
e301e634
CY
96822009-01-19 Chong Yidong <cyd@stupidchicken.com>
9683
7f82490b
CY
9684 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9685 Check return value of font_spec_from_name.
64cc3cf6 9686 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9687
9688 * font.c (font_spec_from_name): Return Qnil if font name could not
9689 be parsed.
9690 (font_parse_name): Treat a `?' character as part of an XLFD.
9691
e301e634
CY
9692 * fns.c (Fsubstring): Doc fix.
9693
1c0db158
KH
96942009-01-19 Kenichi Handa <handa@m17n.org>
9695
51d861de 9696 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9697 (ftfont_list): Likewise.
9698
acf20901
JB
96992009-01-18 Juanma Barranquero <lekktu@gmail.com>
9700
fff4e459
JB
9701 * dbusbind.c (Fdbus_register_signal):
9702 * process.c (conv_sockaddr_to_lisp):
9703 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9704
acf20901
JB
9705 * callproc.c (Fgetenv_internal): Doc fix.
9706
e7abcdfb
CY
97072009-01-16 Chong Yidong <cyd@stupidchicken.com>
9708
9709 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9710 it is not even used.
9711
b60861e6
GM
97122009-01-16 Glenn Morris <rgm@gnu.org>
9713
9714 * font.c (Ffont_variation_glyphs): Silence compiler.
9715
8db52afe
JB
97162009-01-15 Juanma Barranquero <lekktu@gmail.com>
9717
9718 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9719 Reported by David Robinow <drobinow@gmail.com>.
9720
4cddb209
KH
97212009-01-15 Kenichi Handa <handa@m17n.org>
9722
51d861de 9723 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9724
f247f67b
JR
97252009-01-14 Jason Rumney <jasonr@gnu.org>
9726
9727 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9728 never a fontset. (Bug#1562)
f247f67b 9729
f56a4450
KH
97302009-01-14 Kenichi Handa <handa@m17n.org>
9731
9732 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9733 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9734
4e99855e
CY
97352009-01-13 Chong Yidong <cyd@stupidchicken.com>
9736
9737 * font.c (font_clear_prop): If clearing the family, clear the font
9738 width index too.
9739
fff4e459 9740 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9741
24f01470
JB
97422009-01-12 Juanma Barranquero <lekktu@gmail.com>
9743
9744 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9745 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9746 functions, use sizeof.
9747
a41240a3
MR
97482009-01-12 Martin Rudalics <rudalics@gmx.at>
9749
9750 * keyboard.c (read_char): Fix case where last_nonmenu_event
9751 returned a bad value with submenus. (Bug#447)
9752
944636b8
CY
97532009-01-12 Chong Yidong <cyd@stupidchicken.com>
9754
9755 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9756 family, clear the font width index too.
9757
0dad7c6f
JR
97582009-01-11 Jason Rumney <jasonr@gnu.org>
9759
9760 * keyboard.c (cmd_error_internal): Exit when errors occur before
9761 frame creation and not in daemon mode. (Bug#1836)
9762
7c2363af
CY
97632009-01-10 Chong Yidong <cyd@stupidchicken.com>
9764
9765 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9766 of a display vector, backtrack.
9767 (try_window_reusing_current_matrix): Check glyph type before
9768 referencing charpos member.
9769
97b1b294
EZ
97702009-01-10 Eli Zaretskii <eliz@gnu.org>
9771
9772 Fix Bug #876:
9773
9774 * coding.c (inhibit_null_byte_detection): New variable.
9775 (detect_coding, detect_coding_system): Don't pay attention to null
9776 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9777 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9778 <inhibit-iso-escape-detection>: Doc fix.
9779
4624b6e3
JR
97802009-01-09 Jason Rumney <jasonr@gnu.org>
9781
9782 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9783 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9784 Only report Unicode Plane 2 fonts as unicode-sip.
9785
323b840c
CY
97862009-01-09 Chong Yidong <cyd@stupidchicken.com>
9787
51d861de
SM
9788 * xfaces.c (Fx_font_family_list): Delete function.
9789 Move compatibility version to faces.el.
323b840c 9790
51d861de 9791 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9792
eba7400d
MR
97932009-01-09 Martin Rudalics <rudalics@gmx.at>
9794
9795 * frame.c (x_set_frame_parameters): Remember requested value for
9796 fullscreen before it's reset by the parameter handler.
9797
4b09796d
GM
97982009-01-09 Glenn Morris <rgm@gnu.org>
9799
9800 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9801 (last_command_event): ... and update all users.
4b09796d
GM
9802 (last_input_char): For clarity, rename to...
9803 (last_input_event): ... and update all users.
9804 (last-command-char, last-input-char): Move to subr.el as aliases.
9805 * cmds.c, commands.h: Update for last_command_char rename.
9806
14ccea62
CY
98072009-01-08 Chong Yidong <cyd@stupidchicken.com>
9808
51d861de 9809 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9810
5f004711
JR
98112009-01-08 Jason Rumney <jasonr@gnu.org>
9812
9813 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9814 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9815 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9816 Don't declare.
fff4e459 9817 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9818 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9819
b71f6f73
KH
98202009-01-07 Kenichi Handa <handa@m17n.org>
9821
50b06221 9822 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9823 remember the coding system used for decoding in
50b06221
KH
9824 coding_system (Bug#1039).
9825
b71f6f73 9826 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9827 breaking the loop. (Bug#870)
b71f6f73
KH
9828 (decode_coding_utf_16, decode_coding_emacs_mule)
9829 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9830 (decode_coding_charset): Likewise.
9831
56f668f7
MR
98322009-01-05 Martin Rudalics <rudalics@gmx.at>
9833
9834 * frame.c (x_set_frame_parameters): Make sure height (width) get
9835 applied when fullwidth (fullheight) is set. (Bug#1522)
9836
5da9424d
JB
98372009-01-04 Juanma Barranquero <lekktu@gmail.com>
9838
9839 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9840 (utc_base): Declare as ULONGLONG, not long double.
9841 (convert_time_raw): Delete.
9842 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9843 (initialize_utc_base): New function.
9844 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9845 (convert_from_time_t): Use initialize_utc_base; compute result with
9846 64-bit arithmetic.
9847 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9848
c4605e09
EZ
98492009-01-03 Eli Zaretskii <eliz@gnu.org>
9850
9acef61c 9851 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9852 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9853 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9854 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9855 [!subprocesses]: Define.
9856 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9857 (Flist_system_processes, Fsystem_process_attributes)
9858 [!subprocesses]: Call list_system_processes and
9859 system_process_attributes instead of returning Qnil.
9860
9acef61c
JB
9861 * dosfns.c (system_process_attributes, list_system_processes):
9862 New functions.
c4605e09
EZ
9863
9864 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9865
9866 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9867 Don't use the default (no-op) implementation.
9868
8b7d0a16
JR
98692009-01-03 Jason Rumney <jasonr@gnu.org>
9870
a6d46bc1
JR
9871 * keyboard.c (parse_modifiers_uncached): Wheel events are
9872 clicks (bug#687).
9873
8b7d0a16
JR
9874 * w32term.c (x_query_colors, x_query_color): New functions.
9875
9876 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9877 (svg_load_image): Cast returned pointers from dynamically loaded
9878 functions. Eliminate W32 specific code.
9879
bfe11752
DN
98802009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9881
89e2438a
DN
9882 * nsfns.m (x_set_foreground_color, x_set_background_color)
9883 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9884 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9885 x_ prefix instead of ns_. Update references.
9886 (syms_of_nsfns): Add a FIXME comment.
9887
9888 * nsterm.m (x_set_cursor_type): New prototype.
9889 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9890
bfe11752
DN
9891 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9892 for Solaris instead of incorrectly providing Qutime and Qcutime.
9893
031da700
EZ
98942009-01-02 Eli Zaretskii <eliz@gnu.org>
9895
9896 * w32.c (process_times): Compute sum of utime and stime.
9897 (system_process_attributes): Add Qtime to the alist.
9898
9899 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9900 and add them to the alist.
9901
9902 * process.c (top level) <Qtime, Qctime>: New variables.
9903 (syms_of_process): staticpro them.
9904 (Fsystem_process_attributes): Add their documentation to the doc
9905 string.
9906
9907 * process.h: Declare Qtime and Qctime.
9908
df23bf08
JR
99092009-01-02 Jason Rumney <jasonr@gnu.org>
9910
9acef61c 9911 * image.c (Qgobject): New symbol.
df23bf08
JR
9912 (syms_of_image): Initialize it.
9913 (init_svg_functions): Load some functions from gobject library.
9914
5bbdf7aa
DN
99152009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9916
9917 * frame.c (make_terminal_frame): Remove redundant code and useless
9918 block.
9919
63136da6
AS
99202009-01-01 Andreas Schwab <schwab@suse.de>
9921
9922 * process.c (conv_sockaddr_to_lisp): Add workaround for
9923 getsockname bug on BSD.
9924
9ef69046
CY
99252009-01-01 Chong Yidong <cyd@stupidchicken.com>
9926
d6fafbe0
CY
9927 * xfns.c (x_create_tip_frame): Set border width of the X window.
9928
51d861de 9929 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9930
f9c34147
JR
99312009-01-01 Jason Rumney <jasonr@gnu.org>
9932
9acef61c 9933 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9934 Don't block input, as per earlier xterm.c changes.
9935
f5497e45
AR
99362008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9937
9938 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9939 (ns_appkit_version_int): New function.
9940 (x-server-version): Use ns_appkit_version_int and follow 21+
9941 convention of returning 3 integers.
9942
c19cab20
KH
99432008-12-30 Kenichi Handa <handa@m17n.org>
9944
9945 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9946 (CHAR_SURROGATE_PAIR_P): New macro.
9947
9948 * font.h (struct font_driver): New member get_variation_glyphs.
9949
9acef61c 9950 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9951 (Ffont_variation_glyphs): New function.
9952 (syms_of_font): Defsubr it.
9953
9954 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9955 ftfont_variation_glyphs.
9956 (setup_otf_gstring): New function.
9957 (ftfont_drive_otf): Use it.
9958 (ftfont_shape_by_flt): Handle variation selector.
9959 (ftfont_variation_glyphs): New function.
9960
28cd591f
MR
99612008-12-30 Martin Rudalics <rudalics@gmx.at>
9962
9963 * frame.c (Vemacs_iconified): Remove.
9964
7f714baf
JR
99652008-12-30 Jason Rumney <jasonr@gnu.org>
9966
9967 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9968 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9969
9d2d22ab
CY
99702008-12-30 Chong Yidong <cyd@stupidchicken.com>
9971
9972 * indent.c (Fvertical_motion): Don't advance iterator if we have
9973 reseated to the desired position.
9974
9975 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9976 checking for pos match.
9977
545312c2
KH
99782008-12-30 Kenichi Handa <handa@m17n.org>
9979
1ede3eb6
KH
9980 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9981 just get the low 8-bit of the code.
9982
545312c2
KH
9983 * font.c (font_intern_prop): Validate str as multibyte.
9984
bd7bbf29
DN
99852008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9986
31e0750e
DN
9987 * dispextern.h (struct face): Move lface and hash from the middle
9988 of bitfields.
9989
bd7bbf29
DN
9990 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9991
b5672e7c
DN
99922008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9993
9994 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9995 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9996 instead of intervals.h.
9997
d704470f
AS
99982008-12-26 Andreas Schwab <schwab@suse.de>
9999
10000 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10001 cons.
10002
54b33868
MR
100032008-12-26 Martin Rudalics <rudalics@gmx.at>
10004
10005 * textprop.c (Qminibuffer_prompt): New variable.
10006 (syms_of_textprop): Initialize it.
10007 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10008 in minibuffer-prompt face. (Bug#1662)
10009
40b615d6
JR
100102008-12-25 Jason Rumney <jasonr@gnu.org>
10011
10012 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10013
baae5c2d
JR
100142008-12-24 Jason Rumney <jasonr@gnu.org>
10015
10016 * ralloc.c (r_alloc_reset_variable): New function.
10017
10018 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10019 record of what points where. (Bug#716)
baae5c2d 10020
a9051c88
DN
100212008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10022
10023 * minibuf.c (read_minibuf): Follow the non-interactive case when
10024 running as a daemon, before detaching.
10025
8b146312
AS
100262008-12-22 Andreas Schwab <schwab@suse.de>
10027
10028 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10029 * gtkutil.c (free_widget_value): Use xfree instead of free.
10030
56f2de10
MR
100312008-12-22 Martin Rudalics <rudalics@gmx.at>
10032
10033 * frame.c (delete_frame): New function derived from
10034 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10035 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10036 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10037 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10038 * frame.h: Extern delete_frame.
10039 * window.c (window_loop):
10040 * terminal.c (delete_terminal):
10041 * xterm.c (x_connection_closed):
10042 * xfns.c (Fx_hide_tip):
9acef61c 10043 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10044
1fc200d6
JR
100452008-12-21 Jason Rumney <jasonr@gnu.org>
10046
10047 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10048 when character maps to .notdef character.
10049
5e252df2
SM
100502008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10051
10052 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10053
99b72cc4
JR
100542008-12-20 Jason Rumney <jasonr@gnu.org>
10055
10056 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10057 a graphical frame on Windows. (Bug#1325)
99b72cc4 10058
acc49a52
JD
100592008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10060
10061 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10062
6ea15123
CY
100632008-12-20 Chong Yidong <cyd@stupidchicken.com>
10064
10065 * minibuf.c (Fread_buffer): Doc fix.
10066
b2dab6c8
JR
100672008-12-20 Jason Rumney <jasonr@gnu.org>
10068
54ea0c87 10069 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10070 server name in UNC paths. (Bug#719)
54ea0c87 10071
b2dab6c8 10072 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10073 charbuf. (Bug#1035)
b2dab6c8 10074
6d1921be
DN
100752008-12-19 Daniel Engeler <engeler@gmail.com>
10076
10077 * sysdep.c (serial_configure): Fix typo.
10078
53934c98
DN
100792008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10080
10081 * sysdep.c: Include alloca.h.
f4f634e8
DN
10082 (system_process_attributes): Add implementation for Solaris.
10083
10084 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10085
06e111a6
DN
100862008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10087
10088 Reorganize implementation of Flist_system_processes and
10089 Fsystem_process_attributes. No functional changes.
10090 * process.c: Don't #include pwd.h, grp.h and limits.h.
10091 (Flist_system_processes): Just call list_system_processes.
10092 (Fsystem_process_attributes): Just call system_process_attributes.
10093 (procfs_list_system_processes, time_from_jiffies)
10094 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10095 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10096
10097 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10098 (list_system_processes): Rename from
10099 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10100 Provide a do nothing implementation.
10101 (system_process_attributes): Rename from
10102 procfs_list_system_processes.
10103 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10104 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10105
10106 * w32.c (list_system_processes): Rename from
10107 w32_list_system_processes.
10108 (system_process_attributes): Rename from
10109 w32_system_process_attributes.
10110
10111 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10112
10113 * process.h (w32_list_system_processes)
10114 (w32_system_process_attributes): Remove.
362654a6
JB
10115 (list_system_processes, system_process_attributes):
10116 New prototypes.
06e111a6 10117
6a705b23
KH
101182008-12-19 Kenichi Handa <handa@m17n.org>
10119
10120 * xfont.c (xfont_decode_coding_xlfd): New function.
10121 (xfont_encode_coding_xlfd): New function.
10122 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10123 (xfont_list): Decode and encode XLFD by iso-8859-1.
10124 (xfont_match): Likewise.
10125 (xfont_list_family): Likewise.
10126 (xfont_open): Likewise.
10127
d66c0241 10128 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10129 names are utf-8.
10130
d66c0241 10131 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10132 names are utf-8.
10133
5a130941
JD
101342008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10135
10136 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10137 changed.
bfd20325
JD
10138 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10139 clicked on a detached tool bar button.
5a130941 10140
fd95644b
DN
101412008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10142
10143 * emacs.c (main): Print and error and exit when no data is read
10144 from the pipe.
10145
e6eee6ae
JR
101462008-12-17 Jason Rumney <jasonr@gnu.org>
10147
10148 * w32font.c (w32font_has_char): Always return -1.
10149
a35dd56b
KH
101502008-12-16 Kenichi Handa <handa@m17n.org>
10151
10152 * font.c (font_open_entity): Fix previous change.
10153
0e3635c2
DN
101542008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10155
10156 * process.c: Include <limits.h>.
10157
d4835507 101582008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10159
10160 * font.c (font_update_drivers): Fix mistake in reconstructing the
10161 driver list.
10162
101632008-12-16 Chong Yidong <cyd@stupidchicken.com>
10164
10165 * font.c (font_clear_cache): Fix format of font cache data.
10166
e2cbc401
CY
101672008-12-15 Chong Yidong <cyd@stupidchicken.com>
10168
10169 * xftfont.c (xftfont_open): Free Xft font pattern if
10170 XftFontOpenPattern fails.
10171
10172 * xterm.c (x_free_frame_resources): Remove extraneous call to
10173 free_frame_faces.
10174
b131d535
CY
101752008-12-13 Chong Yidong <cyd@stupidchicken.com>
10176
10177 * xterm.c (x_delete_display): Move xim_close_dpy call to
10178 x_delete_terminal.
10179 (x_delete_terminal): Call xim_close_dpy.
10180
e6df5336
JR
101812008-12-13 Jason Rumney <jasonr@gnu.org>
10182
10183 * w32font.c (intern_font_name): New function.
10184 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10185 (w32font_open_internal, Fx_select_font): Decode font name.
10186 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10187
10188 * w32font.h (intern_font_name): Declare new function.
10189
10190 * w32uniscribe.c (add_opentype_font_name_to_list):
10191 Use intern_font_name.
10192
20d68145
CY
101932008-12-13 Chong Yidong <cyd@stupidchicken.com>
10194
9f2554de
CY
10195 * frame.c (Fdelete_frame): Call free_font_driver_list.
10196
3d9bec9a
CY
10197 * font.c (free_font_driver_list): Implement missing function.
10198
20d68145
CY
10199 * w32term.c (w32_term_init): Don't initialize the image cache
10200 here; it will be done in init_frame_faces.
10201
10202 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10203 (struct x_display_info): Remove unused member null_pixel. New
10204 member xim_callback_data.
10205
10206 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10207 (xim_initialize): Save pointer to callback function data.
10208 (xim_close_dpy): Free callback function data. Call XCloseIM,
10209 reverting 2008-11-04 change by David Smith.
10210 (x_term_init): Don't initialize the image cache here; it will be
10211 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10212 (x_delete_display): Free x_dnd_atoms member.
10213
96f9306b
KH
102142008-12-13 Kenichi Handa <handa@m17n.org>
10215
6dec9044
JB
10216 * font.c (font_rescale_ratio): Moved from xfaces.c.
10217 Argument type changed. Handle a font-spec too.
96f9306b 10218 (font_score): Check Vface_font_rescale_alist.
6dec9044 10219 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10220
10221 * xfaces.c (font_rescale_ratio): Moved to font.c.
10222
8d5b4964
CY
102232008-12-13 Chong Yidong <cyd@stupidchicken.com>
10224
10225 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10226
e6df5336
JR
102272008-12-12 Jason Rumney <jasonr@gnu.org>
10228
10229 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10230 Vwindow_system_version to the real w32 major version.
10231
97c6058a
DN
102322008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10233
10234 * term.c (init_tty): Move setting the terminal name before the
10235 potential user: maybe_fatal.
10236
ec4e88d7
CY
102372008-12-11 Chong Yidong <cyd@stupidchicken.com>
10238
d4835507
JB
10239 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10240 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10241
b4233ec9
JR
102422008-12-11 Jason Rumney <jasonr@gnu.org>
10243
8ec71e23 10244 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10245 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10246
b4233ec9 10247 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10248 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10249
011a0143
JB
102502008-12-11 Juanma Barranquero <lekktu@gmail.com>
10251
10252 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10253
3c309f34
JB
102542008-12-11 Juanma Barranquero <lekktu@gmail.com>
10255
10256 * process.c (Fsystem_process_attributes, syms_of_process):
10257 Fix typo in name of Ssystem_process_attributes.
10258 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10259
fedc6ab5
JB
102602008-12-11 Juanma Barranquero <lekktu@gmail.com>
10261
10262 * syntax.c (Fmodify_syntax_entry): Doc fix.
10263
ba3de0e8
JB
102642008-12-10 Juanma Barranquero <lekktu@gmail.com>
10265
10266 * font.c (Ffont_spec): Move usage to end of docstring.
10267
174f1c74
JR
102682008-12-10 Jason Rumney <jasonr@gnu.org>
10269
10270 * w32font.c (Qcham): New symbol.
10271 (font_supported_scripts): Add cham, and comments for other new
10272 scripts in bitfield from OpenType spec.
9d32f818
JR
10273 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10274 contain characters beyond the bmp.
174f1c74 10275
7b649478
KH
102762008-12-10 Kenichi Handa <handa@m17n.org>
10277
10278 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10279 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10280 Qunicode_sip.
10281
2133e2d1
JB
102822008-12-10 Juanma Barranquero <lekktu@gmail.com>
10283
10284 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10285 (Fcoding_system_put): Use QCdefault_char.
10286 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10287
9af886ee
CY
102882008-12-09 Chong Yidong <cyd@stupidchicken.com>
10289
74d819eb
CY
10290 * xftfont.c (syms_of_xftfont): Fix typo.
10291
4ccfa1c0 10292 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10293
7c19d3ae
DN
102942008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10295
10296 * emacs.c (main): Close daemon_pipe on exec.
10297
567826bb
CY
102982008-12-08 Chong Yidong <cyd@stupidchicken.com>
10299
10300 * termchar.h (struct tty): New members termcap_term_buffer and
10301 termcap_strings_buffer.
10302
10303 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10304 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10305 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10306 All callers changed.
10307 (init_tty): Store termcap data and string buffers in new struct
10308 tty members termcap_term_buffer and termcap_strings_buffer.
10309 (delete_tty): Free them.
4ccfa1c0 10310 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10311
aa96c42b
SZ
103122008-12-07 Seiji Zenitani <zenitani@mac.com>
10313
10314 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10315 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10316
b7e1d896
CY
103172008-12-06 Chong Yidong <cyd@stupidchicken.com>
10318
10319 * coding.c (make_conversion_work_buffer): Disable buffer
10320 modification hooks in the work buffer.
10321
b5ec91a5
EZ
103222008-12-05 Eli Zaretskii <eliz@gnu.org>
10323
10324 * process.c (procfs_system_process_attributes): If `nread' has a
10325 negative value, assign zero to it.
10326
a5d2a52b
CY
103272008-12-05 Chong Yidong <cyd@stupidchicken.com>
10328
68c5540b 10329 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10330
7bf1bb21
KH
103312008-12-05 Kenichi Handa <handa@m17n.org>
10332
10333 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10334 second character is a combining character.
10335
2fdc7d00
EZ
103362008-12-05 Eli Zaretskii <eliz@gnu.org>
10337
10338 * process.c (procfs_system_process_attributes): Don't use cmd,
10339 cmdsize, and q without initializing them first.
10340
bf6bfba8
JR
103412008-12-04 Jason Rumney <jasonr@gnu.org>
10342
10343 * w32font.c (w32font_draw): Initialize orig_clip before getting
10344 it, and delete it when finished.
10345
a3b1a468
DN
103462008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10347
10348 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10349 case when running as a daemon before detaching.
10350
8b8be8eb
JB
103512008-12-03 Juanma Barranquero <lekktu@gmail.com>
10352
805f2638 10353 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10354
b1bde622
KH
103552008-12-03 Kenichi Handa <handa@m17n.org>
10356
e500c47d
KH
10357 * font.c (font_at): Set `multibyte' at first.
10358
ca516334
KH
10359 * coding.c (decode_coding_charset): Check type of an element of
10360 vector VALIDS.
7bf1bb21 10361 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10362
4ccfa1c0 10363 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10364 (font_for_char): Likewise.
10365
1e5ecd37
CY
103662008-12-03 Chong Yidong <cyd@stupidchicken.com>
10367
d5b01609 10368 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10369 (font_update_lface): Handle fonts with corrupted size specs,
10370 i.e. non-int and non-float.
d5b01609 10371
11e3a6e4 10372 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10373 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10374 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10375
ab06788b
CY
10376 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10377
1e5ecd37 10378 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10379 underline_minimum_offset for underline position.
1e5ecd37 10380
63c125ab
DN
103812008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10382
10383 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10384
10385 * character.c (c_string_width): Specify the type for LEN.
10386
3a8406e1
KH
103872008-12-03 Kenichi Handa <handa@m17n.org>
10388
4ccfa1c0 10389 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10390 (decode_coding_utf_8): Likewise.
4ccfa1c0 10391 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10392 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10393
651df7d9
CY
103942008-12-02 Chong Yidong <cyd@stupidchicken.com>
10395
10396 * keyboard.c (make_lispy_position): Only use PT if the selected
10397 window is current.
10398
1f625c6c
AS
103992008-12-02 Andreas Schwab <schwab@suse.de>
10400
f7741ce9
AS
10401 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10402
1f625c6c
AS
10403 * doprnt.c (doprnt1): Fix size of charbuf.
10404
92bc2678
CY
104052008-12-02 Chong Yidong <cyd@stupidchicken.com>
10406
10407 * keyboard.c (timer_check): Revert last change.
10408
93b9e8cc
JB
104092008-12-02 Juanma Barranquero <lekktu@gmail.com>
10410
10411 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10412
fd7a37d5
JB
104132008-12-01 Juanma Barranquero <lekktu@gmail.com>
10414
10415 * makefile.w32-in: Update dependencies.
10416 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10417
c115043b
AS
104182008-12-01 Andreas Schwab <schwab@suse.de>
10419
10420 * font.c (register_font_driver): Use xmalloc.
10421 (font_put_frame_data): Likewise.
10422
f5668d2a
CY
104232008-12-01 Chong Yidong <cyd@stupidchicken.com>
10424
860d96be
CY
10425 * xfaces.c (realize_x_face): Make abort condition clearer.
10426
f5668d2a
CY
10427 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10428
379c17e7
CY
104292008-11-30 Chong Yidong <cyd@stupidchicken.com>
10430
10431 * keyboard.c (timer_check): After a timer runs, ensure that the
10432 selected window's buffer is current.
10433
35f36d65
JB
104342008-11-30 Juanma Barranquero <lekktu@gmail.com>
10435
f952c61c
JB
10436 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10437 It was accidentally restored by the Unicode merge.
10438
35f36d65
JB
10439 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10440
b23077df
JB
104412008-11-29 Juanma Barranquero <lekktu@gmail.com>
10442
10443 * w32proc.c: Include "coding.h".
10444 (Fw32_short_file_name): Encode filename passed to Windows API.
10445 (Fw32_long_file_name): Encode filename passed to Windows API and
10446 decode back the result. (Bug#1433)
10447
b8ebe9dd
KH
104482008-11-29 Kenichi Handa <handa@m17n.org>
10449
8cc53f96
KH
10450 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10451 not before accessing it.
10452
b8ebe9dd
KH
10453 * charset.c (Fdefine_charset_internal): After calculating
10454 min_char, max_char, and fastmap, copy the charset structure again.
10455 (encode_char): Fix the previous change.
10456
59bc82c0
SZ
104572008-11-28 Seiji Zenitani <zenitani@mac.com>
10458
10459 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10460
10461 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10462
10463 * nsterm.m (x_set_frame_alpha): New function.
10464
32247e3d
EZ
104652008-11-27 Eli Zaretskii <eliz@gnu.org>
10466
10467 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10468
b003e5ff
JB
104692008-11-27 Juanma Barranquero <lekktu@gmail.com>
10470
10471 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10472 pointer to check_face_name.
10473
708550f5
KH
104742008-11-27 Kenichi Handa <handa@m17n.org>
10475
10476 * category.h (SET_CATEGORY_SET): Call set_category_set.
10477 (set_category_set): Extern it.
10478
10479 * category.c (hash_get_category_set): New function.
10480 (Fmodify_category_entry): Adjusted for the change of
10481 char_table_ref_and_range. Call hash_get_category_set to get a
10482 category set to store in the table.
10483
10484 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10485 Funify_charset.
10486
2ae37cf0 10487 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10488 (DECODE_CHAR): Check if the decoder vector is ready.
10489 (ENCODE_CHAR): Check if the encoder char-table is ready.
10490 (maybe_unify_char): Extern it.
10491
10492 * charset.c (Vchar_unified_charset_table): Delete it.
10493 (inhibit_load_charset_map): New variable.
10494 (temp_charset_work): New variable.
10495 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10496 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10497 New macros.
10498 (load_charset_map): Meaning of control_flag changed. If
10499 inhibit_load_charset_map is nonzero, setup a table in
10500 temp_charset_work.
10501 (load_charset): New argument control_flag.
10502 (map_charset_for_dump): New function.
10503 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10504 map_charset_for_dump.
10505 (Fdefine_charset_internal): If the charset method is MAP, load
10506 mapping tables by calling load_charset.
10507 (Funify_charset): Don't load a mapping table but directly set
10508 Vchar_unify_table.
10509 (maybe_unify_char): New function.
10510 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10511 Handle the case of inhibit_load_charset_map being nonzero.
10512 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10513 Handle the case of inhibit_load_charset_map being nonzero.
10514 (Fclear_charset_maps): Just free temp_charset_work.
10515 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10516 variable.
10517
10518 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10519 change of char_table_ref_and_range.
10520 (char_table_ref_and_range): Change the meaning of argument FROM
10521 and TO. Now the caller must provide initial values for *FROM
10522 and *TO.
10523
10524 * fontset.c (fontset_add): Adjusted for the change of
10525 char_table_ref_and_range.
10526 (fontset_get_font_group): Likewise.
10527 (Ffontset_info): Likewise.
10528
10529 * keymap.c (describe_vector): Adjusted for the change of
10530 char_table_ref_and_range. For char-table, put boundary between
10531 non-ASCII and 8-bit characters.
10532
10533 * print.c (print_object): For bool-vector, delete unnecessary
10534 check of ASCII_BYTE_P.
10535
9196133b
JR
105362008-11-26 Jason Rumney <jasonr@gnu.org>
10537
10538 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10539 leading in font height. (Bug#879)
9196133b 10540
9f688acf
GM
105412008-11-26 Glenn Morris <rgm@gnu.org>
10542
10543 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10544 redefinition with ifdef. (Bug#1383)
10545
90d19aff
AR
105462008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10547
10548 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10549
4ccfa1c0 105502008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10551
10552 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10553 New EmacsView methods.
10554 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10555 Fixes bug #1048,1357,1414.
10556
105572008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10558
10559 Fix bug #1362.
10560 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10561 is not an indexed color.
10562 * nsterm.m (free_indexed_color): Add argument checking.
10563 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10564
e7d5ecb3
CY
105652008-11-24 Chong Yidong <cyd@stupidchicken.com>
10566
10567 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10568 Document confirm-after-completion value for
10569 minibuffer-completion-confirm.
10570
c285743c
JR
105712008-11-24 Jason Rumney <jasonr@gnu.org>
10572
10573 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10574 warning.
10575
b0857706
JR
105762008-11-23 Jason Rumney <jasonr@gnu.org>
10577
10578 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10579 restored before returning.
10580
10581 * w32font.c (check_face_name): New function.
10582 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10583 fonts. (Bug#642)
b0857706 10584
ee50ff07
MR
105852008-11-22 Martin Rudalics <rudalics@gmx.at>
10586
10587 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10588 confirm-nonexistent-file-or-buffer in doc-string.
10589
b8ff72fa
SM
105902008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10591
10592 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10593 Fix copy/paste typo. Add checks.
10594
cee53ed4
KH
105952008-11-21 Kenichi Handa <handa@m17n.org>
10596
10597 * coding.c (detect_coding_iso_2022): Reject invalid composition
10598 sequence.
10599 (DECODE_COMPOSITION_START): If the current source is the last
10600 block, and the current composition doesn't end, regard this
10601 sequence as invalid.
10602 (decode_coding_iso_2022): Handle invalid composition sequence.
10603
f6ef1e65
MR
106042008-11-20 Martin Rudalics <rudalics@gmx.at>
10605
10606 * window.c (coordinates_in_window): Don't return
10607 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10608 line when the window is not the rightmost one. (Bug#1372)
10609
e08b1705
MR
106102008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10611
10612 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10613
ad98e89f
EZ
106142008-11-15 Eli Zaretskii <eliz@gnu.org>
10615
10616 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10617 and bright_bg if noninteractive is non-zero.
10618
fb098a4b
CY
106192008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10620
10621 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10622 x_draw_glyph_string_background.
10623
10624 * w32term.c (x_draw_glyph_string): Likewise.
10625
ce952b6e
CY
106262008-11-15 Chong Yidong <cyd@stupidchicken.com>
10627
10628 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10629 the next glyph string once past the overhang width.
10630
10631 * nsterm.m (ns_draw_glyph_string): Likewise.
10632
10633 * w32term.c (x_draw_glyph_string): Likewise.
10634
26ea7079
CY
106352008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10636
10637 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10638 double file close.
10639
1c33c906
MR
106402008-11-14 Martin Rudalics <rudalics@gmx.at>
10641
10642 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10643 dedicated status of window before attempting to display another
10644 buffer in it.
10645
8fc29035
JB
106462008-11-14 Juanma Barranquero <lekktu@gmail.com>
10647
10648 * msdos.c (Fmsdos_long_file_names):
10649 (syms_of_msdos) <dos-unsupported-char-glyph>:
10650 * dosfns.c (Fint86): Fix typos in docstrings.
10651
55fb4286
EZ
106522008-11-14 Eli Zaretskii <eliz@gnu.org>
10653
10654 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10655
3fda0315
KY
106562008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10657
10658 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10659
7e849c17
CY
106602008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10661
10662 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10663
10664 * frame.h: Negative alpha means "don't touch".
10665
10666 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10667
10668 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10669
b9fd67bd
DN
106702008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10671
10672 * hftctl.c:
10673 * chpdef.h:
10674 * acldef.h: Remove files used only for systems no longer supported.
10675
10676 * Makefile.in: Fix .o alphabetical ordering.
10677 (hftctl.o): Remove dependency, file removed.
10678 (keymap.o, print.o): Depend on charset.h.
10679
d5998e03
KH
106802008-11-10 Kenichi Handa <handa@m17n.org>
10681
2ae37cf0 10682 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10683
be70e183
CY
106842008-11-08 Chong Yidong <cyd@stupidchicken.com>
10685
10686 * dired.c (file_name_completion): If completion_ignore_case is
10687 enabled, ignore case when checking completion-regexp-list.
10688
7cf94eac
EZ
106892008-11-08 Eli Zaretskii <eliz@gnu.org>
10690
10691 * vm-limit.c (get_lim_data): Fix last change.
10692
ee107a89
KH
106932008-11-08 Kenichi Handa <handa@m17n.org>
10694
10695 * character.c (Fget_byte): New function.
10696 (syms_of_character): Defsubr Fget_byte.
10697
5fd15622
CY
106982008-11-07 Chong Yidong <cyd@stupidchicken.com>
10699
10700 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10701 cursor position is valid after scrolling.
10702
13d62fad
JB
107032008-11-06 Juanma Barranquero <lekktu@gmail.com>
10704
10705 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10706
a1dd2936
GM
107072008-11-06 Glenn Morris <rgm@gnu.org>
10708
10709 * xterm.c (handle_one_xevent): Don't let popup menus cause
10710 mouse-autoselect-window related window switching. (Bug#1261)
10711
860cd236
CY
107122008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10713
10714 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10715
653a3150
AS
107162008-11-04 Andreas Schwab <schwab@suse.de>
10717
10718 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10719
870f5cac
CY
107202008-11-03 Chong Yidong <cyd@stupidchicken.com>
10721
10722 * xfns.c (Fx_wm_set_size_hint): New function.
10723
1e02f3cb
MR
107242008-11-03 Martin Rudalics <rudalics@gmx.at>
10725
10726 * textprop.c (Fprevious_single_char_property_change): Return 0
10727 when there's no change in a string. (Bug#1301)
10728
e630dfc6
MR
107292008-11-02 Martin Rudalics <rudalics@gmx.at>
10730
10731 * frame.c (do_switch_frame): New argument NORECORD passed to
10732 Fselect_window.
10733 (Fselect_frame): New argument NORECORD passed to
10734 do_switch_frame.
10735 (Fset_frame_selected_window): New argument NORECORD passed to
10736 Fselect_frame.
10737 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10738 in call of do_switch_frame.
10739 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10740 Handle NORECORD argument in call of Fselect_frame.
10741 * lisp.h (do_switch_frame, Fselect_frame)
10742 (Fset_frame_selected_window): Adjust declarations.
10743 * window.c (select_frame_norecord): New function.
10744 (run_window_configuration_change_hook): Use it and call
10745 Fselect_frame with NORECORD set.
10746 (Fselect_window): Pass NORECORD to Fselect_frame.
10747 (Fset_window_configuration): Handle NORECORD argument in call of
10748 do_switch_frame.
10749 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10750 Fset_frame_selected_window.
10751 * keyboard.c (command_loop_1): Handle NORECORD in call of
10752 Fselect_frame (currently ifdefd).
10753
9020b223
GM
107542008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10755
10756 * emacs.c (USAGE2): Untabify.
10757
793ffee8
SM
107582008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10759
10760 * composite.c (fill_gstring_header): Fix copy/paste typo.
10761
ab6d1131
MR
107622008-10-31 Martin Rudalics <rudalics@gmx.at>
10763
10764 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10765 (Fother_window): Rename argument and rewrite doc-string.
10766 (select_window_norecord): Fix return value. (Bug#1276)
10767
601a9cf1
JB
107682008-10-30 Juanma Barranquero <lekktu@gmail.com>
10769
10770 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10771 new frames overriding foreground for tooltips. Based on similar patch
10772 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10773
813b0652
CY
107742008-10-29 Chong Yidong <cyd@stupidchicken.com>
10775
10776 * emacs.c (Fdaemon_initialized): Initialize nfd.
10777
4414f58f
MR
107782008-10-29 Martin Rudalics <rudalics@gmx.at>
10779
10780 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10781 (Fwindow_text_height): Clarify doc-strings.
10782 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10783 doc-string of window-scroll-functions.
10784
ecdcaa09
RS
107852008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10786
10787 * category.c (syms_of_category): Fix typo in docstring.
10788
23fe745a
JB
107892008-10-28 Juanma Barranquero <lekktu@gmail.com>
10790
10791 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10792 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10793 Fix typos in docstrings.
10794
ff808935
DN
107952008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10796
10797 * emacs.c (daemon_pipe): Make non-static.
10798 (IS_DAEMON): Move definition ...
10799 * lisp.h (IS_DAEMON): ... here.
10800 (daemon_pipe): Declare.
10801 (is_daemon): Remove.
10802 * dispnew.c (init_display): Use IS_DAEMON.
10803
fc012771
SM
108042008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10805
10806 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10807 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10808
10809 * emacs.c (is_daemon): Remove.
10810 (main): Don't set is_daemon.
10811 (IS_DAEMON): New macro.
10812 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10813 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10814 parent exits.
10815 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10816
d8bdbe6f
CY
108172008-10-27 Chong Yidong <cyd@stupidchicken.com>
10818
d1a072bf
CY
10819 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10820 over-sized glyph, draw it with the default glyph width.
10821
e2e325aa
CY
10822 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10823 glyph, draw it with the default glyph width.
10824
10825 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10826 glyph, draw it with the default glyph width.
10827
d8bdbe6f
CY
10828 * xdisp.c (try_scrolling): When computing the distance from the
10829 scroll margin to PT, try moving some distance past the window
10830 bottom before giving up.
10831
7bfac547
MR
108322008-10-27 Martin Rudalics <rudalics@gmx.at>
10833
10834 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10835 (Fset_window_buffer): Explain in doc-string that a window can be
10836 "strongly" dedicated to its buffer.
10837
4ff029f6
DN
108382008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10839
10840 * emacs.c (daemon_name): New variable.
10841 (main): Deal with --daemon=SERVER_NAME.
10842 (Fdaemonp): Return a name if one was passed to --daemon.
10843
5790ef40
DN
108442008-10-26 Romain Francoise <romain@orebokech.com>
10845
f9bd0df9 10846 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10847 (main): Create a pipe before forking, make the parent exit only after
10848 the child has closed its end of the pipe. Move closing the
10849 descriptors ...
10850 (Fdaemon_initialized): ... here. New function.
10851
f5385255
SM
108522008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10853
4d632321
SM
10854 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10855 the previous unoptimized table.
10856
f5385255
SM
10857 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10858 the distinction between non-nil and non-t value of `dedicated'.
10859
6c56a0f3
CY
108602008-10-25 Chong Yidong <cyd@stupidchicken.com>
10861
10862 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10863 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10864
fec89261
MR
108652008-10-25 Martin Rudalics <rudalics@gmx.at>
10866
10867 * window.c (Fget_buffer_window, Fdelete_windows_on)
10868 (Freplace_buffer_in_windows): Make buffer argument optional and
10869 rename to buffer_or_name.
10870
34fcddd0
CY
108712008-10-24 Chong Yidong <cyd@stupidchicken.com>
10872
f5385255
SM
10873 * xdisp.c (handle_single_display_spec, handle_display_prop):
10874 Undo 2005-05-16 change.
34fcddd0
CY
10875 (handle_stop): Pop iterator if it's loaded with an empty string.
10876 (get_overlay_strings_1): Don't save iterator if it's loaded with
10877 an empty string (bug#1201).
10878
064766f2
KH
108792008-10-24 Kenichi Handa <handa@m17n.org>
10880
10881 * ftfont.c (ftfont_otf_features): Fix previous change.
10882 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10883 calling ftfont_otf_features.
10884
f9bd0df9 108852008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10886
10887 * font.c (font_match_p): Fix for the case that a vector of
10888 characters is in script-representative-chars.
10889
1dae9197
MA
108902008-10-24 Michael Albinus <michael.albinus@gmx.de>
10891
10892 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10893 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10894 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10895 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10896 macro. (Bug#1186)
1dae9197 10897
f9bd0df9 108982008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10899
10900 * s/sol2-10.h: New file.
10901
878a4584
JB
109022008-10-23 Juanma Barranquero <lekktu@gmail.com>
10903
10904 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10905 poor beast has survived 9+ years and the jump from xterm.c!).
10906
cd265ca6
MR
109072008-10-23 Martin Rudalics <rudalics@gmx.at>
10908
10909 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10910 Reword doc-string.
f5385255 10911 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10912
472a4dc9
JB
109132008-10-23 Juanma Barranquero <lekktu@gmail.com>
10914
10915 * character.c (syms_of_character) <script-representative-chars>:
10916 <unicode-category-table>: Doc fixes.
10917
159bd5a2
NF
109182008-10-23 Noah Friedman <friedman@splode.com>
10919
10920 * coding.c (make_conversion_work_buffer): Check that
10921 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10922 Fget_buffer_create.
10923
49f9c344
KH
109242008-10-23 Kenichi Handa <handa@m17n.org>
10925
10926 * font.c (font_add_log): Check the values of extra properties.
10927
12bb3111
MR
109282008-10-22 Martin Rudalics <rudalics@gmx.at>
10929
10930 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10931 Reword doc-string.
10932 (Fset_window_parameter): Use NILP.
10933 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10934 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10935
bbeb4e99
JB
109362008-10-22 Juanma Barranquero <lekktu@gmail.com>
10937
10938 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10939
109402008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10941
10942 * nsfns.m (ns_appkit_version): New function.
10943 (x-server-version): Use it.
10944 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10945 (x-server-vendor): Don't check_ns().
10946
10947 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10948
a9b555d3
JB
109492008-10-22 Juanma Barranquero <lekktu@gmail.com>
10950
10951 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10952 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10953
4626499f
KH
109542008-10-22 Kenichi Handa <handa@m17n.org>
10955
e3681952
KH
10956 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10957 scripts.
10958
4626499f
KH
10959 * category.c (word_boundary_p): Check scripts instead of charset.
10960 Handle nil value in word-separating-categories and
10961 word-combining-categories.
10962 (syms_of_category): Fix docstrings of word-separating-categories
10963 and word-combining-categories.
10964
1560f91a
EZ
109652008-10-21 Eli Zaretskii <eliz@gnu.org>
10966
10967 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10968 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10969
f4668441
MR
109702008-10-21 Martin Rudalics <rudalics@gmx.at>
10971
10972 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10973 Rename arg "buffer" to "buffer_or_name".
10974 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10975 it optional.
10976 (no_switch_window): Remove since the return value is not used.
a9b555d3 10977 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10978 Consider window as dedicated when Fwindow_dedicated_p returns a
10979 non-nil value.
10980 * lisp.h: Remove prototype for no_switch_window.
10981
fd75ddb2
JD
109822008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10983
10984 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10985 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10986
07295713
KH
109872008-10-21 Kenichi Handa <handa@m17n.org>
10988
10989 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10990 check Vlatin_extra_code_table.
10991
712adc82
EZ
109922008-10-20 Eli Zaretskii <eliz@gnu.org>
10993
10994 * fileio.c (Fset_file_modes): Doc fix.
10995
f549eb0b
MA
109962008-10-19 Michael Albinus <michael.albinus@gmx.de>
10997
10998 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10999 in arrays.
11000
aac0c6e3
MR
110012008-10-19 Martin Rudalics <rudalics@gmx.at>
11002
11003 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11004 Mention kill-buffer in doc-string.
11005 (Fset_window_buffer): Reinsert tem check removed in last commit.
11006 (Fenlarge_window, Fshrink_window): Have argument names and
11007 doc-string follow Elisp manual more closely.
11008
110092008-10-18 Eli Zaretskii <eliz@gnu.org>
11010
11011 * fileio.c (Fset_file_modes): Doc fix.
11012
110132008-10-18 Martin Rudalics <rudalics@gmx.at>
11014
11015 * window.c (Fwindow_width, Fset_window_start)
11016 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11017 (Fdelete_windows_on, Freplace_buffer_in_windows):
11018 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11019 (Fwindow_dedicated_p): Make window argument optional.
11020 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11021 (Fset_window_buffer): Respect any non-nil dedicated value for
11022 window. Rename "buffer" argument to "buffer_or_name".
11023
110242008-10-18 Ulrich Mueller <ulm@gentoo.org>
11025
11026 * m/sh3.h: New file, machine description for SuperH.
11027
110282008-10-17 Martin Rudalics <rudalics@gmx.at>
11029
11030 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11031
110322008-10-17 Kenichi Handa <handa@m17n.org>
11033
11034 * ftfont.c (ftfont_otf_features): Fix indexing
11035 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11036
110372008-10-16 Magnus Henoch <mange@freemail.hu>
11038
11039 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11040 (Fdbus_call_method_asynchronously): Ditto.
11041 This change makes C-h f display the argument list.
11042
110432008-10-16 Chong Yidong <cyd@stupidchicken.com>
11044
11045 * fileio.c (Fexpand_file_name): Doc fix.
11046
11047 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11048 of :foreground and :background equivalent to unspecified (20.x
11049 compatibility).
11050
110512008-10-15 Eli Zaretskii <eliz@gnu.org>
11052
11053 * buffer.c (syms_of_buffer): Doc fix.
11054
110552008-10-14 Kenichi Handa <handa@m17n.org>
11056
11057 * font.c (font_clear_prop): When clearing font width, clear the
11058 average width field too.
11059
110602008-10-12 Andreas Schwab <schwab@suse.de>
11061
11062 * ftfont.c (ftfont_shape_by_flt): Make static.
11063 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11064
11065 * font.c: Don't include <m17n-flt.h>.
11066
110672008-10-10 Eli Zaretskii <eliz@gnu.org>
11068
11069 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11070
110712008-10-09 Eli Zaretskii <eliz@gnu.org>
11072
11073 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11074 away code.
11075
110762008-10-09 Chong Yidong <cyd@stupidchicken.com>
11077
11078 * dispnew.c (update_text_area): Avoid looping due to large glyph
11079 overhangs (bug#1070).
11080
110812008-10-09 Kenichi Handa <handa@m17n.org>
11082
11083 * fontset.c (face_for_char): If face->fontset is negative, just
11084 return ascii_face.
11085
f5385255
SM
11086 * font.c (font_delete_unmatched): Fix previous change.
11087 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11088
110892008-10-09 Martin Rudalics <rudalics@gmx.at>
11090
11091 * frame.c (Fraise_frame): On text-only terminals select frame in
11092 order to make it visible. (Bug#1061)
11093
110942008-10-08 Chong Yidong <cyd@stupidchicken.com>
11095
11096 * fontset.c (fontset_find_font): Check frame validity.
11097
110982008-10-07 Chong Yidong <cyd@stupidchicken.com>
11099
a9b555d3 11100 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11101 (xg_display_close): Allow Emacs to close all displays (bug#985).
11102
111032008-10-06 Andreas Schwab <schwab@suse.de>
11104
f5385255 11105 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11106
111072008-10-06 Chong Yidong <cyd@stupidchicken.com>
11108
f5385255 11109 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11110
a9b555d3 11111 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11112
11113 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11114 during initialization.
11115
111162008-10-04 Eli Zaretskii <eliz@gnu.org>
11117
11118 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11119 whole thing on MSDOS frames as well as on a TTY.
11120
11121 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11122 well as for TTY.
11123 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11124 well as on a TTY.
11125
11126 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11127 as well as for TTY.
11128
11129 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11130
11131 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11132 MSDOS frames as well.
11133
111342008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11135
11136 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11137 correct arguments.
b71ac3dd 11138 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11139
111402008-10-03 Glenn Morris <rgm@gnu.org>
11141
11142 * emacs.c (USAGE1): Add --daemon.
11143
111442008-10-02 Eli Zaretskii <eliz@gnu.org>
11145
11146 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11147 100, so it's in percents as advertised.
11148
111492008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11150
11151 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11152 (ns_output.current_cursor, ns_output.desired_cursor)
11153 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11154 (FRAME_NEW_CURSOR_COLOR): Remove.
11155
11156 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11157 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11158 enumeration (HOLLOW_BOX_CURSOR, etc.).
11159
11160 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11161 (draw_window_cursor): Simplify code.
f5385255
SM
11162 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11163 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11164 updates manually.
a9b555d3
JB
11165 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11166 Use core Emacs cursor types.
aac0c6e3 11167
b8ff72fa 11168 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11169
111702008-10-02 Martin Rudalics <rudalics@gmx.at>
11171
11172 * process.c (Faccept_process_output): Fix doc-string.
11173
111742008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11175
11176 * gmalloc.c (__sbrk): Also define for uClibc.
11177
11178 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11179 for uClibc.
11180
111812008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11182
11183 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11184 styles.
11185 (nsfont_open): Reenable the cache.
11186
111872008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11188
11189 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11190 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11191
111922008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11193
11194 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11195 a suspended terminal.
11196
111972008-09-30 Michael Albinus <michael.albinus@gmx.de>
11198
11199 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11200
112012008-09-30 Eli Zaretskii <eliz@gnu.org>
11202
11203 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11204
112052008-09-30 Chong Yidong <cyd@stupidchicken.com>
11206
11207 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11208 in a continued line coincides with a line beginning.
11209
112102008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11211
11212 * nsfont.m (nsfont_trait_distance): Fix bug.
11213 (nsfont_list): Return a list rather than a vector (syncs with Handa
11214 changes of 2008-05-14).
11215 (nsfont_open): Improve logging.
11216
112172008-09-29 Andreas Schwab <schwab@suse.de>
11218
11219 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11220
112212008-09-28 Martin Rudalics <rudalics@gmx.at>
11222
11223 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11224 name as char-resolve-modifiers.
11225 Reported by: Markus Triska <markus.triska@gmx.at>
11226
112272008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11228
11229 * dispnew.c (init_display): Return earlier when running as a daemon.
11230
112312008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11232
11233 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11234
112352008-09-27 Eli Zaretskii <eliz@gnu.org>
11236
11237 * composite.c (Fcomposition_get_gstring)
11238 (Fcompose_region_internal, Fcompose_string_internal)
11239 (Ffind_composition_internal): Doc fix.
11240 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11241 (syms_of_composite) <auto-composition-function>: Doc fix.
11242 (syms_of_composite) <composition-function-table>: Doc fix.
11243
112442008-09-25 Chong Yidong <cyd@stupidchicken.com>
11245
11246 * search.c (wordify): New argument for lax word-ends.
11247 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11248
112492008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11250
11251 * lisp.h (is_daemon): Declare.
11252 * dispnew.c (init_display): Do not try to initialize the terminal
11253 when running as a daemon.
11254
112552008-09-22 Chong Yidong <cyd@stupidchicken.com>
11256
11257 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11258 x_display_pixel_height.
11259
112602008-09-22 Martin Rudalics <rudalics@gmx.at>
11261
11262 * undo.c (record_point): Don't call Fundo_boundary for first
11263 change. (Bug#731)
11264
112652008-09-22 Juanma Barranquero <lekktu@gmail.com>
11266
11267 * emacs.c (Fdaemonp): Doc fix.
11268
112692008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11270
11271 * emacs.c (main): Place #ifdef in the proper place.
11272
112732008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11274
11275 * emacs.c (standard_args): Add --daemon.
11276 (main): Disconnect from the terminal when --daemon is passed.
11277 (is_daemon): New variable.
11278 (Fdaemonp): New function.
11279 (syms_of_emacs): Defsubr it.
11280
112812008-09-20 Chong Yidong <cyd@stupidchicken.com>
11282
11283 * xdisp.c (get_next_display_element): Handle string display
11284 correctly when checking for the end of a box run.
11285
112862008-09-20 Glenn Morris <rgm@gnu.org>
11287
11288 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11289 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11290 (Frename_file): Avoid copying to trash if a rename involves
11291 a delete. (Bug#964).
11292
112932008-09-20 Eli Zaretskii <eliz@gnu.org>
11294
11295 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11296 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11297 frames as well as termcap frames.
11298 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11299 get_named_tty.
11300
113012008-09-19 Eli Zaretskii <eliz@gnu.org>
11302
11303 * process.c (procfs_system_process_attributes): Fix cmdline in
11304 case /proc/PID/cmdline is empty.
11305
11306 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11307 x_display_pixel_height.
11308
113092008-09-19 Juanma Barranquero <lekktu@gmail.com>
11310
11311 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11312
11313 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11314 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11315
113162008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11317
11318 * dispextern.h (struct it): Move line_wrap away from the middle of
11319 bitfields. Move voffset in struct iterator_stack_entry after the
11320 bitfields. Move tab_width near after another short.
11321
113222008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11323
11324 * frame.h (struct frame): Move alpha from the middle of bitfields.
11325
11326 * window.h (struct window): Move frozen_window_start_p after the
11327 rest of the bitfields to reduce padding.
11328
113292008-09-18 Chong Yidong <cyd@stupidchicken.com>
11330
11331 * xterm.h (x_display_info): Remove `height' and `width' members.
11332
11333 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11334
11335 * w32term.h (w32_display_info): Remove `height', `width',
11336 `height_in', and `width_in' members.
11337
b8ff72fa
SM
11338 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11339 New functions.
aac0c6e3
MR
11340 (x_calc_absolute_position): Use them.
11341 (x_term_init): Omit removed `height' and `width' members.
11342
b8ff72fa
SM
11343 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11344 New functions.
aac0c6e3
MR
11345 (w32_read_socket, x_calc_absolute_position): Use them.
11346 (w32_initialize_display_info, w32_term_init): Omit removed members
11347 of w32_display_info.
11348
b8ff72fa
SM
11349 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11350 New functions.
11351 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11352
b8ff72fa
SM
11353 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11354 New functions.
aac0c6e3
MR
11355 (x_calc_absolute_position): Use them.
11356 (x_term_init): Omit removed `height' and `width' members.
11357
11358 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11359 (compute_tip_xy):
11360 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11361 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11362 x_display_pixel_width.
11363
113642008-09-18 Kenichi Handa <handa@m17n.org>
11365
11366 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11367 (composition_compute_stop_pos): Fix handling of static composition.
11368 (Fcomposition_get_gstring): Check FROM and TO at first.
11369
113702008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11371
46e722a9 11372 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11373 mixup (YAILOM).
11374
113752008-09-17 Chong Yidong <cyd@stupidchicken.com>
11376
11377 * indent.c (Fvertical_motion): Use position reported by iterator
11378 instead of PT for determining screen motion (bug#943).
11379
113802008-09-17 Romain Francoise <romain@orebokech.com>
11381
11382 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11383
113842008-09-17 Kenichi Handa <handa@m17n.org>
11385
11386 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11387
11388 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11389 if necessary.
11390
113912008-09-16 Kenichi Handa <handa@m17n.org>
11392
11393 * coding.c (make_conversion_work_buffer): Avoid calling
11394 Fget_buffer_create if it is not necessary.
11395
113962008-09-15 Martin Rudalics <rudalics@gmx.at>
11397
11398 * window.c (Fselect_window): Don't update window_select_count and
11399 use_time when norecord is not nil.
11400
114012008-09-14 Kenichi Handa <handa@m17n.org>
11402
11403 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11404 specpdl_ptr.
11405
114062008-09-12 Kenichi Handa <handa@m17n.org>
11407
11408 * indent.c (scan_for_column): Don't handle automatic composition
11409 if the current buffer is not associated with a window.
11410
11411 * composite.c (composition_reseat_it): If the current buffer is
11412 not associated with a window, ignore the automatic composition.
11413 (find_automatic_composition): Likewise.
11414
114152008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11416
11417 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11418 (Fgpm_mouse_stop): Use it.
11419 * termhooks.h (close_gpm): Declare.
11420 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11421 connection if Gpm_GetEvent fails.
11422
11423 * window.c (set_window_buffer): Always preserve current-buffer.
11424
114252008-09-12 Glenn Morris <rgm@gnu.org>
11426
11427 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11428
114292008-09-11 Glenn Morris <rgm@gnu.org>
11430
11431 * charset.c (charset-map-path): Doc fix.
11432
114332008-09-10 Kenichi Handa <handa@m17n.org>
11434
11435 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11436
11437 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11438 compose a grapheme cluster with the preceding base glyph.
11439
11440 * composite.c (composition_compute_stop_pos): Fix previous change.
11441 Reset cmp_it->id to -1 at first.
11442
114432008-09-10 Glenn Morris <rgm@gnu.org>
11444
11445 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11446
114472008-09-09 Chong Yidong <cyd@stupidchicken.com>
11448
11449 * keyboard.c (read_key_sequence): Reapply translation maps when
11450 switching keyboards.
11451
114522008-09-09 Kenichi Handa <handa@m17n.org>
11453
11454 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11455 characters.
11456
11457 * composite.c (FORWARD_CHAR): Fix calculation
11458 of (POSITION).pos_byte.
11459 (composition_compute_stop_pos): Limit the search of composition to
11460 at most 500 characters ahead. If we reach the limit or find a
11461 newline, set cmp_it->ch to -2 and return 0.
11462 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11463
114642008-09-08 Kenichi Handa <handa@m17n.org>
11465
11466 * indent.c (Fvertical_motion): Be sure to set
11467 it_overshoot_expected if it.cmp_it.id is non-negative.
11468
114692008-09-07 Andreas Schwab <schwab@suse.de>
11470
11471 * callproc.c (Fcall_process): Don't hold references to string data
11472 across garbage collection. Move initialisation of new_argv down
11473 to avoid compiler bug.
11474
114752008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11476
11477 * process.c (Fsystem_process_attributes): Doc fix.
11478
114792008-09-07 Chong Yidong <cyd@stupidchicken.com>
11480
11481 * callproc.c (Fcall_process): Canonicalize current directory name.
11482
11483 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11484 iterator advances to the next line if the current line ends in a
11485 continued tab.
11486
114872008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11488
11489 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11490 member to point to cmp_from.
11491
11492 * xdisp.c: Doc fix for references to gidx data member.
11493
114942008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11495
11496 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11497
114982008-09-07 Kenichi Handa <handa@m17n.org>
11499
11500 * composite.c (FORWARD_CHAR): Check STOP after
11501 incrementing (POSITION).pos.
11502
115032008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11504
11505 * process.c (Fsystem_process_attributes): Doc fix.
11506
115072008-09-06 Chong Yidong <cyd@stupidchicken.com>
11508
11509 * keyboard.c (Ftop_level): Doc fix.
11510
115112008-09-06 Eli Zaretskii <eliz@gnu.org>
11512
11513 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11514 minibuffer, don't let lower part of menu invade the echo area.
11515
11516 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11517 "char *q" to access menu text and advance through it. Revert the
11518 change that displayed ">" instead of ASCII character 0x10.
11519
115202008-09-05 Eli Zaretskii <eliz@gnu.org>
11521
11522 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11523 toggle boxes and radio buttons on MS-DOS as well.
11524
115252008-09-05 Kenichi Handa <handa@m17n.org>
11526
11527 * composite.c (autocmp_chars): Check lookback count.
11528 (composition_compute_stop_pos): Set cmp_it->lookback.
11529 (composition_reseat_it): Check lookback count.
11530 (struct position_record): New struct.
11531 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11532 (find_automatic_composition): New function.
11533 (composition_adjust_point): Use find_automatic_composition.
11534
11535 * dispextern.h (struct composition_it): New member lookback.
11536
115372008-09-02 Chong Yidong <cyd@stupidchicken.com>
11538
11539 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11540 if moving by a single line.
11541
115422008-09-02 Andreas Schwab <schwab@suse.de>
11543
11544 * xterm.c (x_delete_display): Fix merge error.
11545
11546 * fileio.c (Fexpand_file_name): Remove unused variables.
11547
115482008-09-02 Eli Zaretskii <eliz@gnu.org>
11549
11550 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11551 storage on all platforms, not just on DOS_NT.
11552
115532008-09-02 Jason Rumney <jasonr@gnu.org>
11554
b8ff72fa
SM
11555 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11556 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11557
115582008-09-01 Chong Yidong <cyd@stupidchicken.com>
11559
11560 * xfaces.c (Finternal_set_alternative_font_family_alist)
11561 (Finternal_set_alternative_font_registry_alist): Properly copy
11562 entire alist structure.
11563
115642008-09-01 Kenichi Handa <handa@m17n.org>
11565
d66c0241 11566 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11567 representative chars of the script is a vector.
d66c0241
JB
11568 (ftfont_list): Handle the case where the representative chars of
11569 the script is a vector.
aac0c6e3
MR
11570
11571 * character.c (syms_of_character): Docstring of
11572 script-representative-chars fixed.
11573
115742008-08-31 Eli Zaretskii <eliz@gnu.org>
11575
11576 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11577 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11578 the menu. Allocate larger buffer for `text', to account for
11579 possible ^C characters.
11580
115812008-08-31 Martin Rudalics <rudalics@gmx.at>
11582
11583 * xdisp.c (prepare_menu_bars): Don't call
11584 Vwindow_size_change_functions with arg Qt.
11585
115862008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11587
11588 * font.h (font_range):
11589 * fileio.c (report_file_error):
46e722a9
SM
11590 * composite.c (composition_update_it): Yet another int/Lisp_Object
11591 mixup (YAILOM).
aac0c6e3
MR
11592
115932008-08-30 Glenn Morris <rgm@gnu.org>
11594
11595 * data.c (Fmake_variable_frame_local): Doc fix.
11596
11597 * frame.c (Fmodify_frame_parameters): Doc fix.
11598
115992008-08-30 Eli Zaretskii <eliz@gnu.org>
11600
11601 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11602 needed by GetTokenInformation.
11603 (w32_system_process_attributes): Check return values of all system
11604 APIs.
11605
11606 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11607 only when the state changes.
11608 (IT_update_begin, IT_update_end): Add termscript trace.
11609
11610 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11611 clipboard is unavailable. Set dst to NULL if it doesn't point to
11612 malloc'ed data.
11613 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11614 passing random values to xfree.
11615
11616 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11617 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11618
116192008-08-29 Jason Rumney <jasonr@gnu.org>
11620
11621 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11622
116232008-08-29 Eli Zaretskii <eliz@gnu.org>
11624
11625 * composite.c (fill_gstring_body): Avoid compiler warnings.
11626
11627 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11628 LGLYPH_SET_CODE to avoid compiler warnings.
11629
2ae37cf0 11630 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11631
11632 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11633
11634 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11635 LGLYPH_SET_CODE.
11636
116372008-08-29 Kenichi Handa <handa@m17n.org>
11638
11639 * fileio.c (report_file_error): Don't downcase the first character
11640 of errstring if it is still unibyte.
11641
116422008-08-29 Kenichi Handa <handa@m17n.org>
11643
11644 These changes are to re-implement the automatic composition so
11645 that it doesn't use text properties.
11646
11647 * Makefile.in (ftfont.o): Depend on composite.h.
11648 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11649
11650 * character.h (Vunicode_category_table): Extern it.
11651
11652 * character.c (Vunicode_category_table): New variable.
11653 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11654
11655 * chartab.c (optimize_sub_char_table): Perform more greedy
11656 optimization.
11657
b8ff72fa
SM
11658 * composite.h (enum composition_method):
11659 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11660 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11661 (Vcomposition_function_table): Extern it.
11662 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11663 (composition_gstring_put_cache, composition_gstring_from_id)
11664 (composition_gstring_p, composition_gstring_width)
11665 (composition_compute_stop_pos, composition_reseat_it)
11666 (composition_update_it, composition_adjust_point): Extern them.
11667 (Fcomposition_get_gstring): EXFUN it.
11668
d66c0241 11669 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11670 (Vcomposition_function_table)
11671 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11672 (gstring_hash_table, gstring_work, gstring_work_headers):
11673 New variables.
aac0c6e3
MR
11674 (gstring_lookup_cache, composition_gstring_put_cache)
11675 (composition_gstring_from_id, composition_gstring_p)
11676 (composition_gstring_width, fill_gstring_header)
11677 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11678 (composition_reseat_it, composition_update_it)
b8ff72fa 11679 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11680 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11681 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11682 Defsubr composition_get_gstring.
aac0c6e3
MR
11683
11684 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11685 cmp_id.
11686 (struct glyph_string): Delete the member gidx. New members
11687 cmp_id, cmp_from, and cmp_to.
11688 (enum it_method): Delete GET_FROM_COMPOSITION.
11689 (struct composition_it): New struct.
11690 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11691 Delete c, len, cmp_id, cmp_len in u.comp.
11692
11693 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11694 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11695 (enum lglyph_indices): Likewise.
b8ff72fa 11696 (font_range): Adjust extern.
aac0c6e3
MR
11697 (font_fill_lglyph_metrics): Extern it.
11698
11699 * font.c (QCf): New variable.
11700 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11701 (font_prepare_composition): Delete this function.
11702 (font_range): Type and arguments changed.
11703 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11704 (font_fill_lglyph_metrics): New function.
b8ff72fa 11705 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11706 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11707 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11708 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11709
11710 * fontset.h (font_for_char): Extern it.
11711
11712 * fontset.c (font_for_char): New function.
11713
11714 * ftfont.c: Include composite.h.
11715 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11716 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11717
11718 * indent.c: Include composite.h and dispextern.h.
11719 (check_composition): Delete this function.
11720 (scan_for_column): Handle composition by
11721 composition_compute_stop_pos, composition_reseat_it, and
11722 composition_update_it.
11723 (compute_motion): Likewise.
11724 (Fvertical_motion): Fix checking of composition.
11725
11726 * keyboard.c (adjust_point_for_property): Check composition by
11727 composition_adjust_point.
11728
b8ff72fa 11729 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11730 struct glyph_string.
11731
b8ff72fa
SM
11732 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11733 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11734 struct glyph.
11735 (produce_composite_glyph): Likewise.
11736
b8ff72fa
SM
11737 * w32term.c (x_draw_composite_glyph_string_foreground):
11738 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11739 (x_draw_glyph_string): Likewise.
11740
11741 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11742 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11743
11744 * xdisp.c: Include font.h.
11745 (it_props): Delete the entry for Qauto_composed.
11746 (init_iterator): Initialize it->cmp_it.id to -1.
11747 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11748 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11749 (handle_auto_composed_prop): Delete it.
11750 (handle_composition_prop): Handle only static composition.
11751 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11752 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11753 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11754 (pop_it): Likewise.
11755 (get_next_element): Delete next_element_from_composition.
11756 (CHAR_COMPOSED_P): New macro.
11757 (get_next_display_element): For automatic composition, get a face
11758 from the font in the glyph-string.
11759 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11760 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11761 (next_element_from_string): Check if the character at the current
11762 position is composed by CHAR_COMPOSED_P.
11763 (next_element_from_buffer): Likewise.
d66c0241
JB
11764 (next_element_from_composition): Adjust for the change of struct it.
11765 Update it->cmp_it.
b8ff72fa
SM
11766 (dump_glyph): Adjust for the change of struct glyph.
11767 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11768 it and struct glyph. Don't handle automatic composition here.
11769 (fill_gstring_glyph_string): New function.
11770 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11771 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11772 (BUILD_GSTRING_GLYPH_STRING): New macro.
11773 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11774 automatic composition.
b8ff72fa 11775 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11776 struct glyph.
b8ff72fa 11777 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11778
b8ff72fa 11779 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11780 the change of struct glyph_string.
11781 (x_draw_glyph_string): Likewise.
11782
117832008-08-29 Glenn Morris <rgm@gnu.org>
11784
11785 * buffer.c (word-wrap): Doc fix.
11786 * xdisp.c (truncate-partial-width-windows): Doc fix.
11787 Increase default to 50.
11788
117892008-08-29 Chong Yidong <cyd@stupidchicken.com>
11790
11791 * xdisp.c (update_tool_bar_unwind): New function.
11792 (update_tool_bar): Temporarily set selected frame before building
11793 tool-bar items.
11794
117952008-08-28 Michael Albinus <michael.albinus@gmx.de>
11796
11797 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11798 snprintf, respectively.
11799 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11800
118012008-08-28 Chong Yidong <cyd@stupidchicken.com>
11802
11803 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11804 LDFLAGS to GNUstep CC invocation.
11805
118062008-08-27 Chong Yidong <cyd@stupidchicken.com>
11807
11808 * indent.c (Fvertical_motion): Revert last change. Handle the
11809 general case where we are moving forward, and PT spans multiple
11810 screen lines.
11811
11812 * eval.c (find_handler_clause): Temporarily increase
11813 max-lisp-eval-depth while printing the backtrace buffer, to
11814 guarantee that help-mode code can run.
11815
118162008-08-27 Eli Zaretskii <eliz@gnu.org>
11817
11818 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11819 colors under -rv.
11820 (IT_set_frame_parameters): Don't swap foreground and background
11821 colors if `(reverse . t)' is present in the frame properties.
11822 (internal_terminal_init): Call init_frame_faces only for the
11823 initial frame.
11824
118252008-08-27 Andreas Schwab <schwab@suse.de>
11826
11827 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11828
118292008-08-27 Andreas Schwab <schwab@suse.de>
11830
11831 * search.c (search_buffer): Set char_base to zero only at the end.
11832
118332008-08-27 Kenichi Handa <handa@m17n.org>
11834
b8ff72fa 11835 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11836
118372008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11838
11839 * xterm.c (x_term_init): Temporarily hide the partially
11840 initialized terminal while calling vendor-specific-keysyms.
11841
118422008-08-26 Eli Zaretskii <eliz@gnu.org>
11843
11844 * msdos.c (internal_terminal_init): Most initializations done only
11845 once, especially initial_screen_colors[] and termscript open.
11846
118472008-08-26 Chong Yidong <cyd@stupidchicken.com>
11848
11849 * eval.c (Fcondition_case): Doc fix.
11850
11851 * widgetprv.h (EmacsFramePart): Change font member to the new font
11852 struct.
11853
11854 * widget.c: Include character.h and font.h for XSETFONT.
11855 (setup_frame_gcs): Compute X font id from font struct, just once.
11856
118572008-08-26 Eli Zaretskii <eliz@gnu.org>
11858
11859 * term.c (get_named_tty): Fix last change.
11860
118612008-08-26 Chong Yidong <cyd@stupidchicken.com>
11862
11863 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11864 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11865
118662008-08-25 Eli Zaretskii <eliz@gnu.org>
11867
11868 * frame.c (do_switch_frame): Mark previously displayed frame as
11869 obscured for FRAME_MSDOS_P frames as well.
11870
118712008-08-24 Eli Zaretskii <eliz@gnu.org>
11872
11873 * frame.c (make_terminal_frame): Initialize f->terminal,
11874 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11875 Set the top frame to newly created frame.
11876 (Fmake_terminal_frame): Reuse the_only_display_info.
11877
11878 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11879 estimating available memory.
11880
b97439ce 118812008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11882
11883 * nsterm.m (ns_draw_window_cursor): Don't call
11884 NSDisableScreenUpdates and NSEnableScreenUpdates on
11885 non-NS_IMPL_COCOA systems.
11886
118872008-08-23 Andreas Schwab <schwab@suse.de>
11888
11889 * process.c (procfs_system_process_attributes): Fix use of
11890 uninitialized variables.
11891
118922008-08-23 Eli Zaretskii <eliz@gnu.org>
11893
11894 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11895
11896 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11897 calling tty-set-up-initial-frame-faces.
11898
b8ff72fa
SM
11899 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11900 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11901
11902 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11903 addition to output_termcap.
11904
11905 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11906
11907 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11908 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11909 highlight.
11910
11911 * process.c [!subprocesses]: Define QCname.
11912 (syms_of_process): Intern and staticpro it.
11913
11914 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11915 Adjust for changes in encoding/decoding routines.
11916 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11917 encode_coding and decode_coding.
11918
b8ff72fa 11919 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11920
11921 * dosfns.c: Include frame.h before termhooks.h.
11922 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11923 variable termscript.
11924
11925 * s/msdos.h (USER_FULL_NAME): Define.
11926 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11927
11928 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11929 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11930 pw->pw_gecos.
11931
11932 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11933 SELECTED_FRAME as additional (1st) argument.
11934 (tty_read_avail_input): Handle output_msdos_raw in
11935 addition to output_termcap.
11936
11937 * msdos.c: Include frame.h before termhooks.h.
11938 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11939 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11940 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11941 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11942 (IT_set_terminal_modes, IT_reset_terminal_modes)
11943 (IT_set_frame_parameters): Use tty->termscript instead of a global
11944 variable termscript.
11945 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11946 global variable terminal_coding. Don't refer to
11947 Vnonascii_translation_table.
11948 (internal_terminal_init): Set Vwindow_system in current_kboard.
11949 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11950 Announce date and time of session start, if termscript is open.
11951 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11952 term.c:init_tty). Open termscript only of not already open.
11953 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11954 here instead of dos_ttraw. Don't initialize display if this is an
11955 initial tty. Don't set FRAME_FONT.
11956 (Vwindow_system_version): Bump to 23.
11957 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11958 is available, set up mouse_position_hook.
11959 (dos_ttraw, IT_set_terminal_modes): If called with initial
11960 terminal, do nothing.
11961 (IT_set_frame_parameters): Handle the Qtty_type frame
11962 parameter by calling internal_terminal_init.
11963 (dos_set_window_size, show_mouse_face)
11964 (clear_mouse_face, IT_note_mode_line_highlight)
11965 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11966 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11967 (initialize_msdos_display): New function.
11968 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11969 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11970 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11971 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11972 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11973 (request_sigio, unrequest_sigio): Don't define, now defined on
11974 sysdep.c.
11975 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11976
11977 * term.c [MSDOS]: Include msdos.h.
11978 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11979 conditional to DOS_NT. Allow only one call to this function in a
11980 session. Don't allocate a new struct tty_display_info; instead,
11981 reuse the_only_display_info. Call get_tty_size to get screen
11982 dimensions. Call init_baud_rate to set bad_rate.
11983 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11984 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11985 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11986 (get_tty_terminal, get_named_tty, Ftty_type)
11987 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11988 output_termcap.
b8ff72fa
SM
11989 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11990 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11991 only when subprocesses are supported.
aac0c6e3
MR
11992
11993 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11994 f->output_data.x.
11995 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11996 terminal devices.
11997
5582fbc7 11998 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11999 x_output.
12000 (FRAME_FONT): Use output_data.tty.
12001 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12002 (struct x_display_info): Rename from display_info. Update all users in
12003 msdos.c.
aac0c6e3 12004 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12005 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12006 (dos_ttraw): Update prototype.
12007
12008 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12009 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12010
120112008-08-23 Jason Rumney <jasonr@gnu.org>
12012
12013 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12014 (fn_TIFFSetDirectory): New library function used.
12015 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12016 (tiff_load): Use :index to select among multiple images. Set count
12017 property when multiple images exist.
12018 (gif_format): Use :index, not :image.
12019
120202008-08-23 Chong Yidong <cyd@stupidchicken.com>
12021
12022 * xdisp.c (try_scrolling): Check INT_MAX instead of
12023 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12024 to obtain INT_MAX.
12025
120262008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12027
12028 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12029
120302008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12031
12032 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12033 GNUstep library location.
12034
120352008-08-21 Chong Yidong <cyd@stupidchicken.com>
12036
12037 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12038 before using it.
12039
12040 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12041
120422008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12043
12044 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12045 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12046 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12047 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12048 (EmacsApp-cursor_blink_handler): Remove declaration.
12049 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12050 match 01 Feb 2008 changes in xterm.c.
12051 (ns_read_socket): Add cast to avoid warning.
12052 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12053 GNUstep.
12054
120552008-08-20 Chong Yidong <cyd@stupidchicken.com>
12056
12057 * xselect.c (x_get_foreign_selection): Return nil if desired
12058 selection could not be obtained, instead of signalling an error.
12059
120602008-08-20 David Reitter <david.reitter@gmail.com>
12061
12062 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12063 * nsterm.m: Remove ns-specific code for cursor blinking.
12064 (ns_draw_window_cursor): Clear cursor properly rather than
12065 redrawing the area. Respect width of bar cursors.
12066 These changes enable the use of generic blink-cursor-mode and
12067 generic cursor types in NS and support smooth cursor movements (do
12068 not blink off after command).
12069 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12070 Nextstep, too.
12071
120722008-08-19 Kenichi Handa <handa@m17n.org>
12073
12074 * font.c (Vfont_log_deferred): New variable.
12075 (font_add_log): Check Vfont_log_deferred.
12076 (font_deferred_log): New function.
12077
12078 * font.h (font_deferred_log): Extern it.
12079
12080 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12081 for sorting.
12082 (face_for_char): Use deferred log.
12083
120842008-08-18 Kenichi Handa <handa@m17n.org>
12085
12086 * fontset.c (face_for_char): Add font log.
12087
12088 * font.c (font_add_log): Add the font properties :script, :lang,
12089 and :otf in the log.
12090
120912008-08-17 Chong Yidong <cyd@stupidchicken.com>
12092
12093 * xdisp.c: Remove dead code.
12094 (handle_invisible_prop, next_overlay_string): Defer call to
12095 setup_for_ellipsis.
12096 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12097
120982008-08-15 Chong Yidong <cyd@stupidchicken.com>
12099
12100 * xfaces.c (lookup_derived_face): Properly handle possible zero
12101 return value of get_lface_attributes.
12102 (merge_faces): Don't tell lookup_derived_face to signal an error
12103 if face is not found.
12104
12105 * dired.c (Fdirectory_files): Doc fix.
12106
12107 * process.c (make_process): Initialize kill_without_query struct
12108 member.
12109
121102008-08-15 Eli Zaretskii <eliz@gnu.org>
12111
12112 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12113 Alternative calculation of totphys for Visual Studio 6.
12114
12115 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12116
12117 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12118 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12119 All users changed.
12120 (stat): Only root directory passed to GetDriveType. Allow RAM
12121 disk as well as local fixed disk when w32-get-true-file-attributes
12122 is set to `local'.
12123 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12124 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12125 (w32_cached_id, w32_add_to_cache): New functions.
12126 (get_name_and_id): Look account names in the cache before calling
12127 lookup_account_sid.
12128 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12129 New initialization flags.
12130 (globals_of_w32): Initialize them to zero.
12131 (w32_system_process_attributes): Use w32_cached_id and
12132 w32_add_to_cache.
12133
121342008-08-14 Lawrence Mitchell <wence@gmx.li>
12135
12136 * lread.c (Fread_char, Fread_char_exclusive): If no character
12137 event is read before timeout is reached, return nil, rather than
12138 converting to a number.
12139
121402008-08-14 Chong Yidong <cyd@stupidchicken.com>
12141
12142 * fns.c (use_dialog_box): Doc fix.
12143
12144 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12145 on OS X.
12146
121472008-08-13 Chong Yidong <cyd@stupidchicken.com>
12148
12149 * frame.c (Qns_parse_geometry): New var.
12150 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12151
121522008-08-11 Chong Yidong <cyd@stupidchicken.com>
12153
12154 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12155 space character in calculating tabs.
12156
121572008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12158
12159 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12160
121612008-08-10 Glenn Morris <rgm@gnu.org>
12162
12163 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12164 silence gcc "limited range of data type" warnings in some
12165 make_fixnum_or_float calls.
12166
121672008-08-09 Eli Zaretskii <eliz@gnu.org>
12168
12169 * w32.c (w32_system_process_attributes): If the process does not
12170 exist, return nil.
12171
12172 * w32.c: Include thelp32.h, psapi.h and coding.h.
12173 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12174 declarations.
12175 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12176 (Process32Next_Proc): New typedefs.
12177 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12178 (g_b_init_process32_next, g_b_init_open_thread_token)
12179 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12180 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12181 (g_b_init_get_process_working_set_size)
12182 (g_b_init_global_memory_status_ex): New static variables.
12183 (globals_of_w32): Initialize them.
12184 (create_toolhelp32_snapshot, process32_first, process32_next)
12185 (open_thread_token, impersonate_self, revert_to_self)
12186 (get_process_memory_info, get_process_working_set_size)
12187 (global_memory_status, global_memory_status_ex): New wrapper
12188 functions.
12189 (w32_list_system_processes, w32_system_process_attributes)
12190 (enable_privilege, restore_privilege, ltime, process_times):
12191 New functions.
12192 (convert_time_raw): New function.
12193 (convert_time): Remove conversion of FILETIME into time in 100
12194 nsec units, call convert_time_raw instead.
12195
12196 * process.h (w32_list_system_processes, w32_system_process_attributes):
12197 Add prototypes.
12198 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12199 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12200 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12201 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12202
12203 * process.c (Fsystem_process_attributes): Doc fix.
12204
122052008-08-08 Chong Yidong <cyd@stupidchicken.com>
12206
12207 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12208 a continued multi-char glyph; if so, advance to the actual glyph.
12209
122102008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12211
12212 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12213
12214 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12215 (.m.o): Use it.
12216 * config.in: Regenerate.
12217
122182008-08-07 Chong Yidong <cyd@stupidchicken.com>
12219
12220 * xdisp.c (redisplay_window): Revert last change.
12221 (try_window): Check bottom scroll margin too.
12222
122232008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12224
12225 * config.in: Regenerate.
12226
12227 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12228 -list-load-path-shadows'.
12229 (nsgui.h): Reduce number of things depending on it.
12230
122312008-08-06 Chong Yidong <cyd@stupidchicken.com>
12232
12233 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12234 instead of window-end which does the wrong thing at eob.
12235 (try_cursor_movement): Minor optimization.
12236 (redisplay_window): If scroll margin is defined, don't assume
12237 window doesn't need scrolling.
12238
122392008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12240
12241 * config.in: Regenerate.
12242
12243 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12244 (mostlyclean): Don't delete *.d under NS.
12245
12246 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12247
122482008-08-06 Kenichi Handa <handa@m17n.org>
12249
12250 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12251
122522008-08-06 Andreas Schwab <schwab@suse.de>
12253
12254 * config.in: Regenerate.
12255
122562008-08-05 Chong Yidong <cyd@stupidchicken.com>
12257
12258 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12259 forcing a window start.
12260
12261 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12262 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12263
122642008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12265
12266 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12267 argument.
12268
122692008-08-05 Juanma Barranquero <lekktu@gmail.com>
12270
12271 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12272 <scroll-down-aggressively, before-change-functions>:
12273 <after-change-functions>: Reflow docstrings.
12274
122752008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12276 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12277
12278 Dock menu customization, based on a patch by Ken Raeburn, plus some
12279 other fixes.
12280 * nsmenu.m (dockMenu): New variable.
12281 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12282
12283 * nsterm.h (dockMenu): Declare.
12284
12285 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12286 (ns_term_init): Initialize dockMenu.
12287 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12288 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12289 left.
12290
12291 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12292
122932008-08-04 Chong Yidong <cyd@stupidchicken.com>
12294
12295 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12296
12297 * config.in: Regenerate.
12298
122992008-08-04 Seiji Zenitani <zenitani@mac.com>
12300
12301 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12302
123032008-08-04 Chong Yidong <cyd@stupidchicken.com>
12304
12305 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12306
123072008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12308
12309 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12310
12311 * keyboard.h: Comment an #endif.
12312
12313 * lisp.h (have_menus_p): Adjust comment.
12314
12315 * menu.c (find_and_return_menu_selection): Fix comparison with
12316 client_data.
12317
12318 * nsmenu.m (popup_activated_flag): New variable.
12319 (popup_activated): New function.
12320 (menu-or-popup-active-p): New exported lisp definition.
12321 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12322 when popup done.
12323 (ns_popup_dialog): Set popup_activated_flag.
12324
12325 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12326 version for GNUstep (handled by conditional typedef in nsterm.m).
12327 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12328 in rgb.txt).
12329
12330 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12331
12332 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12333
12334 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12335
12336 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12337 shortcircuit if popup_activated like GTK and X toolkit.
12338
12339 * m/inter386.h: Change DARWIN to DARWIN_OS.
12340
12341 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12342 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12343 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12344 comment on NO_SOCK_SIGIO.
12345
123462008-08-03 Chong Yidong <cyd@stupidchicken.com>
12347
12348 * nsterm.m (windowDidResize): Remove stopModal call.
12349
123502008-08-03 Andreas Schwab <schwab@suse.de>
12351
12352 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12353 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12354
123552008-08-02 Chong Yidong <cyd@stupidchicken.com>
12356
12357 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12358 Don't use uninitialized pointer variable when using getrlimit.
12359
123602008-08-02 Jason Rumney <jasonr@gnu.org>
12361
12362 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12363
123642008-08-02 Eli Zaretskii <eliz@gnu.org>
12365
12366 * alloc.c (NSTATICS): Bump to 0x640.
12367
12368 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12369
12370 * lisp.h: Add prototype for directory_files_internal.
12371
12372 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12373 New functions.
12374 (syms_of_process): Defsubr them. Add initializations for various
12375 Q* symbols used in procfs_system_process_attributes.
12376 (procfs_list_system_processes, procfs_system_process_attributes)
12377 [HAVE_PROCFS]: New functions.
12378 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12379 (procfs_get_total_memory): New functions.
12380
123812008-08-01 Juanma Barranquero <lekktu@gmail.com>
12382
12383 * xfaces.c (Fx_load_color_file): Fix previous change;
12384 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12385
123862008-08-01 Michael Albinus <michael.albinus@gmx.de>
12387
12388 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12389
123902008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12391
12392 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12393
123942008-08-01 Chong Yidong <cyd@stupidchicken.com>
12395
12396 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12397
12398 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12399 define NSApplicationDelegateReplySuccess.
12400 (EmacsView -converstationIdentifier): Use long instead of
12401 NSInteger for GNUstep, since it doesn't have NSInteger.
12402
12403 * xmenu.c: Revert last change.
12404
12405 * keyboard.h: Fix last change.
12406
124072008-08-01 Juanma Barranquero <lekktu@gmail.com>
12408
12409 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12410 on Windows.
12411
124122008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12413
12414 Warning clearing and clean-up in NS port.
12415 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12416 Add prototypes.
12417 * nsgui.h (FACE_DEFAULT): Remove, unused.
12418 (XGCValues): Change colors to unsigned long.
12419 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12420 nsterm.m.
12421 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12422 (ns_list_fonts): Remove, unused.
12423 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12424 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12425 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12426 (nsfont_draw): Compare face colors to 0, not nil.
12427 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12428 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12429 (-addSubmenuWithTitle:): Use NSMenuItem class.
12430 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12431 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12432 (ns_clip_to_row): Make gc arg a BOOL.
12433 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12434 ns_clip_to_row() call.
12435 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12436 used). Cast FRAME_FONT assignments.
12437 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12438 (ns_string_to_lispmod): Change arg to const char.
12439 (ns_term_init): Use NSMenuItem class.
12440 (EmacsApp -openFile:): Move to different section of file.
12441 (EmacsApp -application:openFiles:): Don't return a value, call
12442 -replyToOpenOrPrint:.
12443 (EmacsView -keyDown:): Fix up cast.
12444 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12445 (EmacsView -menuDown:): Cast tag in call to
12446 find_and_call_menu_selection().
12447 (ns_list_fonts): Remove, unused.
12448 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12449 (ns_fontname_to_xlfd): Make static.
12450 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12451 Remove prototypes (now in keyboard.h).
12452 (next_menubar_widget_id): Remove, unused.
12453 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12454 Remove prototypes (now in keyboard.h).
12455 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12456
124572008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12458
12459 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12460 (floatfns.o): Depend on syssignal.h.
12461 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12462
12463 * systty.h: Fix previous change that removed BSD_TERMIOS.
12464 Add comments to #ifdefs.
12465
124662008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12467
12468 * w32fns.c (w32-load-color-file): Remove.
12469 (x-open-connection): Use renamed Fx_load_color_file.
12470 * xfaces.c (x-load-color-file): Add.
12471 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12472 Emacs.clr.
12473 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12474
124752008-07-31 Michael Albinus <michael.albinus@gmx.de>
12476
12477 * dbusbind.c (Fdbus_call_method_asynchronously)
12478 (Fdbus_method_error_internal): New defuns.
12479 (xd_read_message): Handle also reply messages.
12480 (Vdbus_registered_functions_table): Extend docstring.
12481
124822008-07-31 Juanma Barranquero <lekktu@gmail.com>
12483
12484 * keyboard.c (gobble_input): Fix previous change.
12485
124862008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12487
12488 * bitmaps/README:
12489 * xfns.c:
12490 * termcap.c:
12491 * term.c:
12492 * syswait.h:
12493 * systty.h:
12494 * systime.h:
12495 * syssignal.h:
12496 * sysdep.c:
12497 * process.h:
12498 * process.c:
12499 * print.c:
12500 * ndir.h:
12501 * lread.c:
12502 * keyboard.c:
12503 * getpagesize.h:
12504 * floatfns.c:
12505 * fileio.c:
12506 * emacs.c:
12507 * doc.c:
12508 * dispnew.c:
12509 * dired.c:
12510 * data.c:
12511 * callproc.c:
12512 * buffer.c:
12513 * README:
12514 * Makefile.in:
12515 * s/template.h:
12516 * s/msdos.h:
12517 * m/vax.h: Remove VMS support.
12518 * s/vms.h:
12519 * vlimit.h:
12520 * uaf.h:
12521 * temacs.opt:
12522 * param.h:
12523 * ioctl.h: Remove file.
12524
125252008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12526
12527 * s/ms-w32.h (MULTI_KBOARD): Remove.
12528 * xterm.c:
12529 * xselect.c:
12530 * xfns.c:
12531 * window.c:
12532 * w32term.c:
12533 * w32fns.c:
12534 * terminal.c:
12535 * termhooks.h:
12536 * term.c:
12537 * sysdep.c:
12538 * keyboard.h:
12539 * keyboard.c:
12540 * frame.h:
12541 * frame.c:
12542 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12543 * config.in: Regenerate.
12544
125452008-07-30 Jason Rumney <jasonr@gnu.org>
12546
12547 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12548
12549 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12550 (w32font_open_internal): Get unicode version of textmetrics.
12551 Don't enable or disable glyph indices here.
12552 (w32font_open): Disable use of glyph indices.
12553
12554 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12555
125562008-07-30 Chong Yidong <cyd@stupidchicken.com>
12557
12558 * minibuf.c (Vread_buffer_function): Doc fix.
12559
125602008-07-30 John Paul Wallington <jpw@pobox.com>
12561
12562 * minibuf.c (read_buffer_completion_ignore_case): New var.
12563 (Fread_buffer): Use it.
12564
125652008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12566
12567 * systty.h (sensemode): Remove empty #if. Remove reference to
12568 BSD_TERMIOS, unused.
12569
12570 * sysdep.c: Remove reference to DGUX.
12571 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12572
12573 * config.in: Regenerate.
12574
125752008-07-30 Jason Rumney <jasonr@gnu.org>
12576
12577 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12578
125792008-07-29 Jason Rumney <jasonr@gnu.org>
12580
12581 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12582 is populated.
12583 (uniscribe_encode_char): Always use uniscribe.
12584 Avoid using context if cache is populated.
12585
125862008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12587
12588 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12589 open menu.
12590
12591 * gtkutil.c (menu_nav_ended): Remove.
12592 (create_menus): Remove signal connect for menu_nav_ended.
12593
125942008-07-28 Chong Yidong <cyd@stupidchicken.com>
12595
12596 * xdisp.c (redisplay_window): Check return value of
12597 compute_window_start_on_continuation_line before forcing a window
12598 start.
12599
126002008-07-28 Jason Rumney <jasonr@gnu.org>
12601
12602 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12603
12604 * w32term.c (w32_enable_unicode_output, cleartype_active):
12605 Remove obsolete display options.
12606 (x_draw_glyph_string_background): Don't use old cleartype_active
12607 workaround.
12608 (w32_initialize): Remove cleartype_active initialization.
12609 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12610
126112008-07-28 Andreas Schwab <schwab@suse.de>
12612
12613 * lisp.h (init_weak_hash_tables, syms_of_font)
12614 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12615 (remove_hash_entry): Don't declare.
12616 * eval.c (maybe_call_debugger): Make static and move before use.
12617 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12618 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12619 * xterm.h (x_set_frame_alpha): Declare.
12620
126212008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12622
12623 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12624 (create_menus): Connect selection-done to menu_nav_ended.
12625
126262008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12627
12628 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12629 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12630 parameter with read of 'alpha' one.
12631 (Qns_frame_parameter): Remove.
5582fbc7 12632 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12633 (next-selection-coding-system, Vselection_coding_system)
12634 (Vnext_selection_coding_system): Drop.
12635
126362008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12637
12638 * nsfns.m (do-applescript, do_applescript): Rename to
12639 ns-do-applescript, ns_do_applescript, and move within file.
12640
126412008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12642
12643 Remove support for Mac Carbon.
12644 * mactoolbox.c:
12645 * macterm.h:
12646 * macterm.c:
12647 * macselect.c:
12648 * macmenu.c:
12649 * macgui.h:
12650 * macfns.c:
12651 * mac.c: Remove file.
12652 * s/darwin.h:
12653 * m/intel386.h:
12654 * xfaces.c:
12655 * xdisp.c:
12656 * window.c:
12657 * tparam.c:
12658 * termhooks.h:
12659 * termcap.c:
12660 * term.c:
12661 * syssignal.h:
12662 * sysselect.h:
12663 * sysdep.c:
12664 * process.c:
12665 * lread.c:
12666 * lisp.h:
12667 * keyboard.c:
12668 * image.c:
12669 * fringe.c:
12670 * frame.h:
12671 * frame.c:
12672 * fontset.c:
12673 * font.h:
12674 * font.c:
12675 * fns.c:
12676 * fileio.c:
12677 * emacs.c:
12678 * dispnew.c:
12679 * dispextern.h:
12680 * config.in:
12681 * atimer.c:
2ae37cf0 12682 * Makefile.in: Remove code for Carbon.
aac0c6e3 12683
f0131492 126842008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12685
12686 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12687
126882008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12689
12690 * macterm.h (kCGBitmapByteOrder32Host): New define for
12691 non-universal SDKs.
12692
12693 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12694 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12695
12696 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12697 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12698
126992008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12700
12701 * w32inevt.c: Include dispextern.h.
12702
127032008-07-26 Andreas Schwab <schwab@suse.de>
12704
12705 * print.c (print_object): Fix off-by-one in last change.
12706
127072008-07-25 Juanma Barranquero <lekktu@gmail.com>
12708
12709 * term.c (syms_of_term): Don't initialize default_orig_pair,
12710 default_set_foreground and default_set_background on Windows.
12711
127122008-07-25 Jason Rumney <jasonr@gnu.org>
12713
12714 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12715 ScriptItemize. Clean up return value checking. Remove unused
12716 variables.
12717 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12718 shaping engine.
12719
12720 * w32font.c (w32font_has_char): Handle the case where we can't
12721 determine the script for a character.
12722
127232008-07-25 Chong Yidong <cyd@stupidchicken.com>
12724
12725 * term.c (syms_of_term): Initialize default_orig_pair,
12726 default_set_foreground, and default_set_background.
12727
12728 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12729 clash (bug#86).
12730 (getloadavg): Callers changed.
12731
12732 * image.c (svg_load_image): Fix last change.
12733 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12734 image size is valid. Use g_object_unref instead of deprecated
12735 rsvg_handle_free to free rsvg handle.
12736 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12737
127382008-07-25 Jason Rumney <jasonr@gnu.org>
12739
12740 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12741 surrogates before looking up glyph index.
12742 (w32font_text_extents): Encode as surrogates if falling back to
12743 functions that need UTF-16 wide chars.
12744
12745 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12746 BMP as surrogates before looking up glyph index.
12747
127482008-07-25 Chong Yidong <cyd@stupidchicken.com>
12749
12750 * image.c (svg_load_image): Check for failure in return value of
12751 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12752
127532008-07-25 Jason Rumney <jasonr@gnu.org>
12754
12755 * w32font.c (Fx_select_font): Reverse sense of second arg.
12756
127572008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12758
12759 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12760 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12761
12762 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12763 (PURESIZE): Use it.
12764
127652008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12766
12767 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12768 * m/alpha.h (TEXT_END):
12769 * m/ibmrs6000.h (TEXT_END):
12770 * m/macppc.h (TEXT_END):
12771 * s/darwin.h (TEXT_END):
12772 * s/msdos.h (TEXT_END): Remove, unused.
12773 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12774 * s/cygwin.h: Remove comment.
12775
12776 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12777 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12778 * m/intel386.h (DOT_GLOBAL_START):
12779 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12780 (USG): Remove, file not used on USG platforms.
12781
12782 * Makefile.in (HAVE_X11): Remove empty #else.
12783
127842008-07-24 Andreas Schwab <schwab@suse.de>
12785
12786 * fileio.c (Finsert_file_contents): Properly adjust undo list
12787 after format conversion.
12788
127892008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12790
12791 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12792 (menu_nav_ended): Remove.
12793 (create_menus): Remove signal connect for menu_nav_ended.
12794 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12795 create_menus.
12796 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12797
127982008-07-23 Jason Rumney <jasonr@gnu.org>
12799
12800 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12801 with opened font.
12802 (w32font_open): Set font type to gdi.
12803
12804 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12805
128062008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12807
12808 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12809 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12810 defines it.
12811 * unexec.c (ADDR_CORRECT): Define unconditionally.
12812
12813 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12814
12815 * unexec.c: Remove code depending on !COFF and USG, the file is
12816 not used for such systems.
12817
12818 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12819 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12820 (LD_SWITCH_SYSTEM_1): Remove, update users.
12821
12822 * s/darwin.h (DATA_END):
12823 * m/intel386.h (DATA_END):
12824 * m/ibmrs6000.h (DATA_END):
12825 * m/alpha.h (DATA_END): Remove, unused.
12826
12827 * config.in: Regenerate.
12828 * s/ms-w32.h (subprocesses): Define unconditionally.
12829 * s/template.h (subprocesses): Update comment.
12830 * s/vms.h (subprocesses):
12831 * s/usg5-4.h (subprocesses):
12832 * s/hpux10-20.h (subprocesses):
12833 * s/gnu-linux.h (subprocesses):
12834 * s/cygwin.h (subprocesses):
12835 * s/bsd-common.h (subprocesses):
12836 * s/aix4-2.h (subprocesses):
12837 * s/darwin.h (subprocesses): Do not define, defined by default now.
12838
12839 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12840 Remove all references.
12841 (temacs): Add GNUstep specific ld flags.
12842
12843 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12844 similarly to what X does.
12845
128462008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12847
12848 * nsfns.m (x-list-fonts): Remove.
12849 (syms_of_nsfns): Drop the x-list-fonts declaration.
12850 * nsterm.m: Get rid of remaining "//" comments.
12851
128522008-07-22 Chong Yidong <cyd@stupidchicken.com>
12853
12854 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12855
12856 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12857 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12858 (Fns_own_selection_internal, Fx_disown_selection_internal)
12859 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12860
12861 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12862 ... */' style of docstrings. Doc fixes.
12863
128642008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12865
12866 * terminfo.c (UP, BC, PC): Undo previous change.
12867
12868 * nsfns.m: Rename ns prefixed functions/variables to the
12869 corresponding x versions. Update references.
12870
128712008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12872
12873 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12874
128752008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12876
12877 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12878 Remove forwarding functions.
12879 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12880 non-static.
12881 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12882 non-static.
12883 (ns_frame_parm_handlers): Use the new names.
12884 (syms_of_nsfns): Move to the end of file.
12885
12886 * nsterm.m (syms_of_nsterm): Move to the end of file.
12887
12888 * dispnew.c (init_display): Remove code for X10.
12889
128902008-07-22 Jason Rumney <jasonr@gnu.org>
12891
12892 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12893 bare drive.
12894
128952008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12896
12897 * nsterm.m (syms_of_nsterm): Remove debugging println.
12898
128992008-07-22 David Reitter <david.reitter@gmail.com>
12900
12901 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12902 Carbon implementation of the same functionality: execute arbitrary
12903 AppleScript code.
12904
129052008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12906
12907 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12908 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12909 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12910 (Fx_display_mm_height, Fx_display_mm_width)
12911 (Fx_display_backing_store, Fx_display_visual_class)
12912 (Fx_display_save_under, Fx_open_connection)
12913 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12914 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12915 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12916 (Fx_display_pixel_width, Fx_display_pixel_height)
12917 (Fx_display_usable_bounds, Fx_display_planes)
12918 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12919 ... */' style of docstrings.
12920
129212008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12922
12923 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12924 on this platform.
12925 (mips):
12926 * m/iris4d.h (mips): Do not define.
12927 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12928
12929 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12930
12931 * image.c:
12932 * nsfns.m:
12933 * nsselect.m:
12934 * nsterm.h:
12935 * nsterm.m: Rename ns prefixed functions/variables to the
12936 corresponding x versions. Update references.
12937
12938 * m/ibms390x.h (NO_REMAP): Do not undefine.
12939
12940 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12941
129422008-07-21 Chong Yidong <cyd@stupidchicken.com>
12943
12944 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12945 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12946 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12947 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12948 (Fns_display_mm_height, Fns_display_mm_width)
12949 (Fns_display_backing_store, Fns_display_visual_class)
12950 (Fns_display_save_under, Fns_open_connection)
12951 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12952 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12953 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12954 (Fns_display_pixel_width, Fns_display_pixel_height)
12955 (Fns_display_usable_bounds, Fx_display_planes)
12956 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12957
129582008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12959
12960 * print.c (print_object): Check print_depth before searching for
12961 circularities.
12962
129632008-07-21 Michael Albinus <michael.albinus@gmx.de>
12964
12965 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12966 only sprintf.
12967
129682008-07-21 Kenichi Handa <handa@m17n.org>
12969
12970 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12971
129722008-07-20 Andreas Schwab <schwab@suse.de>
12973
12974 * syntax.c (find_start_pos, find_start_value)
12975 (find_start_value_byte, find_start_begv, find_defun_start)
12976 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12977
129782008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12979
12980 * s/sol2-3.h: Insert contents of s/sol2.h.
12981 (LD_SWITCH_SYSTEM): Remove redundant definition.
12982 * s/sol2.h: Remove, unused.
12983
129842008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12985
12986 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12987
129882008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12989
12990 * Makefile.in (ns_appdir): Fix typo in find command.
12991
129922008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12993
12994 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12995
12996 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12997 added not supported anymore.
12998
12999 * s/usg5-4-2.h (LIBS_SYSTEM):
13000 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13001
13002 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13003 * s/lynxos.h (GETPGRP_NO_ARG):
13004 * s/hpux10-20.h (NO_SIOCTL_H):
13005 * s/gnu.h (GETPGRP_NO_ARG):
13006 * s/gnu-linux.h (NO_SIOCTL_H):
13007 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13008 * s/cygwin.h (GETPGRP_NO_ARG):
13009 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13010 (C_DEBUG_SWITCH): Remove duplicate definition.
13011
13012 * m/ibms390.h: Remove boilerplate comments.
13013
13014 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13015
13016 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13017 (wait_reading_process_output): Remove code for SunOS, platform not
13018 supported anymore. Use SOLARIS2 instead of sun.
13019
130202008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13021
13022 * font.c (font_open_by_name): Under NS, default lface height to zero.
13023 (font_open_for_lface): Under NS, set size based on frame fontsize.
13024 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13025 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13026
130272008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13028
13029 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13030 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13031 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13032 YES/NO.
13033 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13034 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13035 * Makefile.in (clean): Clear out build destination dir.
13036
130372008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13038
13039 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13040 xterm, xselect.
13041 * lisp.h: Remove declaration of hash_remove.
13042 * nsgui.h: Remove redefinitions of hash_remove.
13043 * fns.c (hash_remove): Rename to hash_remove_from_table.
13044
130452008-07-19 Seiji Zenitani <zenitani@mac.com>
13046
13047 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13048 strdup() the family UTF8String before modifying it.
13049
130502008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13051
13052 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13053 NS_FACE_BACKGROUND with 0 instead of nil.
13054 * nsfont.m (nsfont_draw): Same.
13055
130562008-07-19 Chong Yidong <cyd@stupidchicken.com>
13057
13058 * nsfns.m (ns_set_background_color): Fix crash.
13059
130602008-07-18 Chong Yidong <cyd@stupidchicken.com>
13061
13062 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13063
130642008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13065
13066 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13067
130682008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13069
13070 * gtkutil.c: Include <config.h> instead of "config.h".
13071
13072 * lisp.h (Foverlay_buffer): Add EXFUN.
13073
13074 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13075 child process to complete child_setup. Undo 2005-09-21 change.
13076
13077 * s/darwin.h: Mention setsid after vfork.
13078
130792008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13080
13081 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13082 Depend on macgui.h.
13083
13084 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13085 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13086
13087 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13088 and f19.
13089 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13090
13091 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13092 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13093 Remove enumerators.
13094
13095 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13096 Check if FACE_FROM_ID returns NULL.
13097
130982008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13099
13100 * w32inevt.c (change_frame_size): Remove extern declaration.
13101 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13102 change_frame_size.
13103
131042008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13105
13106 * getloadavg.c: Revert last change (2008-07-15).
13107
131082008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13109
13110 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13111 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13112 from configure.
13113
131142008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13115
13116 * s/sol2.h:
13117 * s/sol2-4.h: Reorganize conditionals.
13118
13119 * ecrt0.c: Remove code depending on m68000, not used anymore.
13120
13121 * fns.c (hash_remove): Make static.
13122 * lisp.h (hash_remove): Don't prototype.
13123
13124 * m/ibmrs6000.h:
13125 * m/ibms390x.h:
13126 * m/macppc.h: Remove boilerplate comments.
13127
13128 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13129 Solaris, which does not need them.
13130
13131 * m/vax.h: Remove comments about unsupported systems.
13132
13133 * s/darwin.h: Reorganize ifdefs.
13134
131352008-07-17 Andreas Schwab <schwab@suse.de>
13136
13137 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13138
131392008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13140
13141 Use SDATA. Follow coding convention of placing operators at
13142 beginning of next line rather than end of previous line, and placing
13143 spaces around infix operators.
13144
13145 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13146 in case it was defined already.
13147 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13148 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13149 ns_default.
13150 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13151 Lisp_Objects.
13152 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13153 (ns_defined_color, ns_color_to_lisp): Declare.
13154 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13155 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13156 it's accepted even with USE_LISP_UNION_TYPE.
13157 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13158 (update_frame_tool_bar): Remove apparently obsolete tests for
13159 non-integerness of f->tool_bar_lines.
13160 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13161 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13162 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13163 (nsfont_open): Don't confuse NULL for Qnil.
13164 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13165 * menu.h (find_and_call_menu_selection):
13166 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13167 (find_and_return_menu_selection): Always return something.
13168 * frame.h: Include dispextern.h for Display_Info.
13169 (display_x_get_resource): Declare.
13170
131712008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13172
13173 * syntax.c: Remove stdio.h include accidentally introduced in
13174 Emacs.app commit.
13175 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13176 NS_IMPL_COCOA.
13177 * keyboard.c (handle_async_input, input_available_signal): Remove
13178 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13179
131802008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13181
13182 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13183 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13184 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13185 Use SDATA.
13186
13187 * keymap.c: Remove all NS-specific code.
13188 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13189 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13190 where_is_preferred_modifier, return a different value depending on how
13191 preferred is the binding.
13192 (where_is_internal): Adjust accordingly.
13193 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13194 Adjust to new preferred_sequence_p.
13195 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13196 * keyboard.c (parse_solitary_modifier): Not static any more.
13197 * keyboard.h (parse_solitary_modifier): Declare.
13198
131992008-07-16 Andreas Schwab <schwab@suse.de>
13200
13201 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13202 of easymenu.
13203
132042008-07-16 Chong Yidong <cyd@stupidchicken.com>
13205
13206 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13207 that we don't move off the line.
13208
132092008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13210
13211 * keyboard.c (Qsuper): Remove.
13212 (parse_menu_item): Don't call where_is_internal specially for NS.
13213
132142008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13215
13216 * s/gnu-linux.h: Remove boilerplate comments.
13217
13218 * m/alpha.h (__ELF__): Consolidate conditions.
13219
13220 * m/m68k.h (linux): Use GNU_LINUX instead.
13221 Remove boilerplate comments.
13222
13223 * m/intel386.h: Undo refactoring from previous change.
13224 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13225 too, remove dead code.
13226 (linux): Use GNU_LINUX instead.
13227
132282008-07-16 Jason Rumney <jasonr@gnu.org>
13229
13230 * w32gui.h: Repeat 26 June changes lost by last change.
13231
132322008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13233
13234 * systty.h: Remove code for Aix on 386, unsupported platform.
13235
13236 * s/ms-w32.h: Remove boilerplate comments.
13237 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13238
13239 * s/gnu-linux.h (TERM): Remove support.
13240 (HAVE_SYSVIPC): Remove, unused.
13241 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13242 for this system.
13243
13244 * process.c: Remove support for IRIS, unused.
13245 Remove support for TERM, not relevant anymore.
13246
13247 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13248 used with the definition.
13249
13250 * s/aix4-2.h (static): Do not undef.
13251
13252 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13253 only used on Aix.
13254 (HAVE_SYSVIPC): Remove, unused.
13255
13256 * m/hp800.h (CANNOT_DUMP): Do not undef.
13257
13258 * m/alpha.h: Fix comment.
13259
13260 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13261 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13262 used by this configuration.
13263 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13264 * unexec.c: Remove code depending on HPUX and
13265 USG_SHARED_LIBRARIES, not used with this file. Remove code
13266 depending on IRIS, unused. Remove if 0-ed code.
13267
13268 * s/template.h: Remove comments about static.
13269
13270 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13271 Remove if 0-ed code.
13272 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13273 were the same as the default.
13274 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13275 Remove boilerplate comments.
13276 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13277 (HAVE_SYSVIPC): Remove, unused.
13278 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13279
13280 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13281 Remove boilerplate comments.
13282 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13283 Remove boilerplate comments.
13284 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13285 Remove boilerplate comments.
13286 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13287
13288 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13289 USG systems which do not use DATA_SEG_BITS.
13290 Refactor code. Remove boilerplate comments.
13291
13292 * m/ibms390.h:
13293 * m/m68k.h:
13294 * s/bsd-common.h:
13295 * s/cygwin.h:
13296 * s/darwin.h:
13297 * s/freebsd.h:
13298 * s/gnu.h:
13299 * s/msdos.h: Remove boilerplate comments.
13300
13301 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13302 do not use this file.
aac0c6e3
MR
13303 (IRIS_4D): Remove, unused.
13304
13305 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13306 do not use this file.
aac0c6e3
MR
13307 (SIGN_EXTEND_CHAR):
13308 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13309 * unexmips.c: Remove file, unused.
13310
13311 * editfns.c (Fuser_full_name): Replace the only use of
13312 USER_FULL_NAME with its value.
13313 * config.in: Regenerate.
13314
133152008-07-16 David Reitter <david.reitter@gmail.com>
13316
13317 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13318 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13319
133202008-07-16 Glenn Morris <rgm@gnu.org>
13321
13322 * emacs.c (system-type): Doc fix.
13323
133242008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13325
13326 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13327 If the cache doesn't work, let's fix it, rather than work around it.
13328
133292008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13330
13331 * Makefile.in: Correct additions for nsfont.o in last commit.
13332 * nsfont.m: New file (forgot last commit).
13333
133342008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13335
13336 * callproc.c (set_initial_environment): Initialize
13337 Vprocess_environment under CANNOT_DUMP (fixes crash when
13338 batch-compiling for bootstrap).
13339
133402008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13341 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13342
c4cc8b9a
JB
13343 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13344 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13345
133462008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13347
13348 Changes and additions for NeXTstep windowing system (Cocoa and
13349 GNUstep) support.
13350
13351 * Makefile.in:
13352 * config.in: Support defines and build commands for NS port.
13353 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13354 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13355 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13356 windowing.
13357 (struct face): Add synth_ital field.
13358 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13359 (init_display): Initialize Vinitial_window_system to "ns" when so
13360 compiled.
13361 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13362 (display_arg): Use under NS.
13363 (main): Under NS, allocate autorelease pool and handle command line
13364 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13365 (standard_args): Add NS-specific args.
13366 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13367 * font.c (DEFAULT_ENCODING): New variable.
13368 (font_find_for_lface): Use it.
13369 (syms_of_font): Load syms_of_nsfont under NS.
13370 * font.h: Declare nsfont_driver when compiled under NS.
13371 * fontset.c: When compiling under NS, include nsterm.h.
13372 (fontset_from_font): Autoconstruct fontset under NS.
13373 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13374 symbol, document and use it.
13375 (do_switch_frame): When for_deletion under Cocoa, add
13376 Fraise_frame(Qnil).
13377 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13378 (x_get_arg): Allow "yes" and "no" as boolean values.
13379 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13380 Qright under Cocoa.
13381 (focus-follows-mouse): Default to 0 under NS.
13382 * frame.h (enum output_method): Add output_ns.
13383 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13384 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13385 (FRAME_WINDOW_P): NS-specific definition.
13386 * fringe.c (max_used_fringe_bitmap): Make public.
13387 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13388 (getloadavg): Use NeXT code under descendant OS's.
13389 * image.c (includes and header section, x_create_bitmap_from_data)
13390 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13391 (image_background_transparent, x_clear_image_1)
13392 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13393 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13394 (x_to_xcolors, x_from_xcolors, x_disable_image)
13395 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13396 other GUIs, including XPM support using code originally written for
13397 Carbon GUI.
13398 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13399 using NS API.
13400 (image_ascent): Use font metrics macros instead of direct struct field
13401 access.
13402 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13403 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13404 Also, handle NS as GTK for menu bar purposes.
13405 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13406 toolkit where they differ.
13407 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13408 use cachelist, still needed under NS.
13409 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13410 (struct widget_value): Define it here for menu.c.
13411 * keymap.c (includes): Include modifier internals.
13412 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13413 NS.
13414 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13415 support for preferring sequences using certain modifiers, specified by
13416 the FIRSTONLY argument.
13417 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13418 under NS GNUstep implementation.
13419 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13420 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13421 * menu.c: Include nsterm.h under NS.
13422 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13423 (free_menubar_widget_tree_value, update_submenu_strings)
13424 (find_and_call_menu_selection): Treat NS as X and NT.
13425 (find_and_return_menu_selection): New function, used for popup menus.
13426 * nsgui.h:
13427 * nsterm.h:
13428 * nsfns.m:
13429 * nsimage.m:
13430 * nsmenu.m:
13431 * nsselect.m:
13432 * nsterm.m: New files.
13433 * process.c (wait_reading_process_output): Under NS, call ns_select()
13434 instead of plain select().
13435 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13436 beginning of buffer.
13437 * sysselect.h (init_process): Rename when compiling under Cocoa to
13438 avoid name conflict.
13439 * termhooks.h (display_info): Add ns_display_info to union.
13440 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13441 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13442 COCOA environment.
13443 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13444 unexec() signature. (Note, this will dump, but the resulting file
13445 crashes; unexosx is used instead; keeping around for reference and
13446 possible aid in getting dump working under GNUstep.)
13447 * w32gui.h (button_type, widget_value): Remove definitions (now in
13448 keyboard.h).
13449 * window.c: Include nsterm.h when compiling under NS.
13450 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13451 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13452 other GUI windowing systems.
13453 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13454 GTK.
13455 (x_consider_frame_title): Under NS, set icon type and frame
13456 modified-state indicator; use ns_set_name_as_filename() when using
13457 formatted title.
13458 (update_window_cursor): Make public when compiling under NS.
13459 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13460 (hourglass_atimer, Vhourglass_delay
13461 * xfaces.c (header section, init_frame_faces, clear_font_table)
13462 (defined_color, unload_color, x_face_list_fonts)
13463 (prepare_face_for_display): Add NS support parallel to other GUIs.
13464 Emulate GCs like other non-X GUIs.
13465 (split_font_name): Don't lowercase font name under NS.
13466 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13467 under NS.
13468 * s/darwin.h: Add support for compilation under NS.
13469
134702008-07-15 Jason Rumney <jasonr@gnu.org>
13471
13472 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13473 (w32_show_hourglass): Rename from show_hourglass.
13474 (w32_hide_hourglass): Rename from hide_hourglass.
13475 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13476 (Vhourglass_delay): Declare extern.
13477 (hourglass_started): Remove.
13478
13479 * xdisp.c (Vhourglass_delay): Remove static.
13480 (hourglass_started, start_hourglass, cancel_hourglass):
13481 Don't include these versions on WINDOWSNT.
13482
134832008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13484
13485 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13486 variables (formerly in xfns.c).
13487 (show_hourglass, hide_hourglass): New prototypes (same).
13488 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13489 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13490 in xfns.c).
13491 (syms_of_xdisp): Declare/initialize display-hourglass,
13492 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13493 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13494 formerly in xfns.c.
13495 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13496 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13497 (start_hourglass, cancel_hourglass): Remove.
13498 (show_hourglass, hide_hourglass): Remove prototypes and static
13499 modifiers.
13500 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13501 hourglass_atimer, hourglass_shown_p declaration/initialization.
13502 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13503 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13504 (start_hourglass, cancel_hourglass): Remove.
13505 (show_hourglass, hide_hourglass): Remove prototypes and static
13506 modifiers.
13507 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13508 hourglass_atimer, hourglass_shown_p declaration/initialization.
13509 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13510 (DEFAULT_HOURGLASS_DELAY): Remove.
13511 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13512 hourglass_shown_p declaration/initialization.
13513
135142008-07-14 Jason Rumney <jasonr@gnu.org>
13515
13516 * w32fns.c (w32_get_arg): Remove wrapper function.
13517 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13518 directly.
13519 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13520
135212008-07-14 Kenichi Handa <handa@m17n.org>
13522
13523 * xfont.c (xfont_open): Add workaround for X's bug.
13524
135252008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13526
13527 * fontset.c: Include <stdio.h> unconditionally.
13528
135292008-07-13 Michael Albinus <michael.albinus@gmx.de>
13530
13531 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13532 for filtering.
13533
135342008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13535
13536 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13537
13538 * m/macppc.h:
13539 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13540
c4cc8b9a 13541 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13542 (SPECIAL_EMACS_INT):
13543 * m/ia64.h (SPECIAL_EMACS_INT):
13544 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13545 * s/gnu.h (NLIST_STRUCT):
13546 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13547 * s/gnu-linux.h (LINUX):
13548 * s/msdos.h (HAVE_FACES):
13549 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13550
13551 * systty.h:
13552 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13553 anymore.
13554
135552008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13556
13557 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13558 always defined as int.
13559
13560 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13561 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13562 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13563 * s/freebsd.h (HAVE_WAIT_HEADER):
13564 * s/bsd-common.h (HAVE_UNION_WAIT):
13565 * s/aix4-2.h (HAVE_WAIT_HEADER):
13566 * m/mips.h (HAVE_UNION_WAIT):
13567 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13568 (COFF, static): Do not define, they are undefined later in the file.
13569
13570 * process.c (update_status): Don't use a union.
13571 (status_convert):
13572 (sigchld_handler): Use int instead of WAITTYPE.
13573
135742008-07-12 Chong Yidong <cyd@stupidchicken.com>
13575
13576 * indent.c (Fvertical_motion): Restore hscroll before moving to
13577 goal column.
13578
135792008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13580
13581 * lisp.h: Remove left over code.
13582
135832008-07-11 Andreas Schwab <schwab@suse.de>
13584
13585 * lisp.h: Fix logic in last change.
13586
13587 * menu.h: New file.
13588 * menu.c: Include it.
13589 * xmenu.c: Likewise.
13590 * Makefile.in: Update dependencies.
13591
135922008-07-11 Kenichi Handa <handa@m17n.org>
13593
13594 * fontset.c (fontset_from_font): Cancel the previous change.
13595
135962008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13597
13598 * lisp.h:
13599 * w32heap.c:
13600 * emacs.c:
13601 * alloc.c: Replace all references of NO_UNION_TYPE with
13602 USE_LISP_UNION_TYPE.
13603
13604 * m/xtensa.h (NO_UNION_TYPE):
13605 * m/vax.h (NO_UNION_TYPE):
13606 * m/template.h (NO_UNION_TYPE):
13607 * m/sparc.h (NO_UNION_TYPE):
13608 * m/mips.h (NO_UNION_TYPE):
13609 * m/macppc.h (NO_UNION_TYPE):
13610 * m/m68k.h (NO_UNION_TYPE):
13611 * m/iris4d.h (NO_UNION_TYPE):
13612 * m/intel386.h (NO_UNION_TYPE):
13613 * m/ibms390x.h (NO_UNION_TYPE):
13614 * m/ibms390.h (NO_UNION_TYPE):
13615 * m/ibmrs6000.h (NO_UNION_TYPE):
13616 * m/ia64.h (NO_UNION_TYPE):
13617 * m/hp800.h (NO_UNION_TYPE):
13618 * m/arm.h (NO_UNION_TYPE):
13619 * m/amdx86-64.h (NO_UNION_TYPE):
13620 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13621 defining it the same.
13622
136232008-07-10 Chong Yidong <cyd@stupidchicken.com>
13624
13625 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13626
136272008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13628
13629 * fileio.c:
50426a04 13630 * sysdep.c:
aac0c6e3
MR
13631 * systty.h:
13632 * m/ibmrs6000.h:
13633 * m/iris4d.h:
13634 * s/aix4-2.h:
13635 * s/freebsd.h:
13636 * s/gnu-linux.h:
13637 * s/hpux10-20.h:
13638 * s/hpux11.h:
13639 * s/netbsd.h:
13640 * s/sol2-3.h:
13641 * s/sol2-4.h:
13642 * s/sol2.h:
13643 * s/usg5-4.h:
13644 * s/vms.h: Remove references to unused variables.
13645
136462008-07-10 Andreas Schwab <schwab@suse.de>
13647
13648 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13649 pattern before matching the generic family.
13650
136512008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13652
13653 * unexec.c:
13654 * s/vms.h:
13655 * s/usg5-4-2.h:
13656 * s/sol2-5.h:
13657 * s/freebsd.h:
13658 * s/darwin.h: Remove dead code.
13659
13660 * m/template.h:
13661 * m/sparc.h:
13662 * m/mips.h:
13663 * m/m68k.h:
13664 * m/iris4d.h:
13665 * m/intel386.h:
13666 * m/ibms390x.h:
13667 * m/ibms390.h:
13668 * m/ia64.h:
13669 * m/hp800.h:
13670 * m/arm.h:
13671 * m/amdx86-64.h: Remove dead code and references to unused
13672 and compiler defined symbols.
13673
13674 * unexmips.c:
13675 * unexelf.c: Remove references to desupported systems.
13676
13677 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13678
13679 * m/powermac.h: Remove boilerplate comments.
13680 (NO_REMAP): Remove unused definition.
13681
13682 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13683 define them.
13684
136852008-07-10 Kenichi Handa <handa@m17n.org>
13686
13687 * xfont.c (xfont_open): Log the reason of failure.
13688
136892008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13690
13691 * fontset.c (fontset_get_font_group):
13692 * font.c (font_check_otf): Specify argument types.
13693
136942008-07-09 Kenichi Handa <handa@m17n.org>
13695
13696 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13697 non-ASCII char is found.
13698
13699 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13700 (reorder_font_vector): Change the arg preferred_family to font.
13701 Prefer the spec matching with font.
13702 (fontset_get_font_group): New function.
13703 (fontset_find_font): Change the format of an element of a realized
13704 fontset. Use fontset_get_font_group.
13705 (fontset_font): Try the current fontset, the default fontset, the
13706 fallbacks of the current fontset, and the fallbacks of the default
13707 fontset in this order.
13708 (face_for_char): Delete the shortcut to use the current font.
13709 (fontset_from_font): Don't set fonts for Latin in the fontset.
13710
13711 * font.h (font_make_object, font_match_p): Adjust prototypes.
13712
13713 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13714
13715 * font.c (font_make_object): New arg entity and pixelsize.
13716 (font_check_otf_features, font_check_otf): New functions.
13717 (font_match_p): Check :lang, :script, and :otf properties.
13718
13719 * xfont.c (xfont_open): Adjust it for the change of
13720 font_make_object.
13721 (xfont_text_extents): Fix initial setting of metrics.
13722
13723 * ftfont.c (struct ftfont_info): New member index, delete member
13724 fc_charset_idx. Make the member order compatible with struct
13725 xftfont_info.
13726 (fc_charset_table): Change charset names to registry names.
13727 (ftfont_pattern_entity): Delete the args registry and
13728 fc_charset_idx. Change the value of :font-entity property
13729 to (FONTNAME . INDEX). Always set :registry property to
13730 `iso10646-1'.
13731 (struct ftfont_cache_data): New struct.
13732 (ftfont_lookup_cache): New arg for_face.
13733 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13734 (ftfont_driver): Set the member otf_capability.
13735 (ftfont_get_charset): Adjust it for the change of
13736 fc_charset_table.
13737 (OTF_TAG_SYM): New macro.
13738 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13739 for the change of fc_charset_table.
13740 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13741 ftfont_pattern_entity. Add FC_INDEX to objset.
13742 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13743 and ftfont_pattern_entity.
13744 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13745 font_make_object, struct ftfont_info.
13746 (ftfont_has_char): Use ftfont_get_fc_charset.
13747 (ftfont_otf_features, ftfont_otf_capability): New functions.
13748 (ftfont_shape): Use ftfont_get_otf.
13749 (ftfont_text_extents): Fix initial setting of metrics.
13750
13751 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13752 member order compatible with struct ftfont_info.
13753 (xftfont_open): Add FC_CHARSET to the pattern. Set
13754 xftfont_info->ft_size. Don't unlock the face. Check BDF
13755 properties if appropriate.
13756 (xftfont_close): Unlock the face.
13757 (xftfont_anchor_point, xftfont_shape): Deleted.
13758 (syms_of_xftfont): Don't set members anchor_point and shape of
13759 xftfont_driver.
13760
13761 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13762 font_make_object.
13763
13764 * w32font.c (w32font_open): Adjust it for the change of
13765 font_make_object.
13766 (w32font_open_internal): Don't set properties of font_object here.
13767
137682008-07-08 Chong Yidong <cyd@stupidchicken.com>
13769
13770 * macfns.c (x_create_tip_frame):
13771 * w32fns.c (x_create_tip_frame):
13772 * xfns.c (x_create_tip_frame): Pass parameter argument to
13773 face-set-after-frame-default.
13774
13775 * xfaces.c (Finternal_merge_in_global_face): Save merged
13776 attributes for the default face back into the face vector.
13777
137782008-07-08 Andreas Schwab <schwab@suse.de>
13779
13780 * fontset.h: Declare fontset_from_font. Don't declare
13781 new_fontset_from_font and fontset_from_font_name.
13782 * xterm.c: Include "fontset.h".
13783 * Makefile.in (xterm.o): Update dependencies.
13784
137852008-07-08 Glenn Morris <rgm@gnu.org>
13786
13787 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13788 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13789
137902008-07-07 Chong Yidong <cyd@stupidchicken.com>
13791
13792 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13793 (x_set_frame_parameters): Don't bind it.
13794
137952008-07-07 Juanma Barranquero <lekktu@gmail.com>
13796
13797 * w32fns.c (map_w32_filename): Declare extern.
13798
137992008-07-07 Jason Rumney <jasonr@gnu.org>
13800
13801 * w32term.c (WS_EX_LAYERED): Define if not already.
13802
138032008-07-06 Chong Yidong <cyd@stupidchicken.com>
13804
13805 * xfaces.c (set_font_frame_param): Don't try to set the font
13806 parameter if it is still unspecified in the lface.
13807
138082008-07-05 Chong Yidong <cyd@stupidchicken.com>
13809
13810 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13811 face if it didn't already exist.
13812
13813 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13814
138152008-07-05 Andreas Schwab <schwab@suse.de>
13816
13817 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13818
138192008-07-05 Chong Yidong <cyd@stupidchicken.com>
13820
13821 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13822 word-wrapping.
13823 (IT_DISPLAYING_WHITESPACE): New macro.
13824 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13825 when word-wrapping. Simplify word-wrapping logic. Use correct
13826 pixel positions when saving copies of the iterator.
13827 (display_line): Use proper wrap point if the last character on a
13828 line was preceded by whitespace.
13829
138302008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13831
13832 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13833
138342008-07-04 Kenichi Handa <handa@m17n.org>
13835
13836 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13837
13838 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13839
138402008-07-02 Jason Rumney <jasonr@gnu.org>
13841
13842 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13843 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13844
13845 * xdisp.c (next_element_from_display_vector): Move assignment out
13846 of if statement.
13847
138482008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13849
13850 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13851
13852 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13853 (syms_of_fileio): Initialize and export them.
13854 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13855
13856 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13857 (Fsystem_move_file_to_trash): New function.
13858 (syms_of_w32fns): Export it to lisp.
13859
138602008-07-01 Jason Rumney <jasonr@gnu.org>
13861
13862 * w32font.c (w32font_text_extents): Don't count overhang as part
13863 of width.
13864
138652008-06-30 Miles Bader <miles@gnu.org>
13866
13867 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13868 Add `avoid_cursor_p' field.
13869
13870 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13871 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13872 (append_glyph, append_composite_glyph, produce_image_glyph)
13873 (append_stretch_glyph): Initialize avoid_cursor_p.
13874 (get_it_property): Rename from `get_line_height_property'.
13875 (x_produce_glyphs): Use get_it_property.
13876 (handle_line_prefix, push_display_prop): New functions.
13877 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13878 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13879 New variables.
13880 (syms_of_xdisp): Initialize them.
13881
138822008-06-30 Kenichi Handa <handa@m17n.org>
13883
13884 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13885 XftDefaultSubstitute (they are called in XftFontMatch).
13886 (xftfont_open): Fix args to ftfont_font_format.
13887
13888 * ftfont.c (fc_charset_table): New member lang.
13889 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13890 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13891 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13892 (ftfont_open): Fix args to ftfont_font_format.
13893 (ftfont_font_format): New arg filename.
13894
138952008-06-30 Chong Yidong <cyd@stupidchicken.com>
13896
13897 * xfaces.c (Finternal_merge_in_global_face): If default face was
13898 modified, realize it again. Update the font face attribute.
13899
139002008-06-29 Jason Rumney <jasonr@gnu.org>
13901
13902 * w32term.c (x_set_frame_alpha): Fix logic.
13903
139042008-06-29 Kenichi Handa <handa@m17n.org>
13905
13906 * fontset.c (Finternal_char_font): Return font-object instead of
13907 font-name.
13908
13909 * composite.c (get_composition_id): Fix the width calculation for TAB.
13910
139112008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13912
13913 * indent.c (Fvertical_motion): Properly handle float column arg.
13914
139152008-06-28 Jason Rumney <jasonr@gnu.org>
13916
13917 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13918 (pfnSetLayeredWindowAttributes): New function pointer.
13919 (w32_initialize): Initialize it when supported.
13920 (x_set_frame_alpha): New function.
13921
13922 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13923 (w32_frame_parm_handlers): Set alpha handler.
13924
13925 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13926
139272008-06-27 Jason Rumney <jasonr@gnu.org>
13928
13929 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13930 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13931 (w32_to_x_charset, x_to_w32_charset)
13932 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13933 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13934 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13935 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13936 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13937 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13938 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13939 (Qw32_charset_unicode): Remove.
13940 (syms_of_w32fns): Update for above changes.
13941
13942 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13943 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13944 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13945 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13946 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13947 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13948 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13949 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13950 (syms_of_w32font): Update for above changes.
13951
139522008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13953
13954 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13955 removed #if.
13956 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13957
139582008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13959 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13960
13961 * makefile.w32-in (LOCAL_FLAGS):
13962 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13963
13964 * sysdep.c (_spawnlp, _getpid):
13965 Declare with explicit _cdecl instead of _CRTAPI1.
13966
13967 * editfns.c (Fget_internal_run_time):
13968 Check for WINDOWSNT with #ifdef, not #if.
13969
139702008-06-26 Jason Rumney <jasonr@gnu.org>
13971
13972 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13973
13974 * w32term.c (x_draw_glyph_string_foreground)
13975 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13976 Use FONT_HANDLE macro.
13977 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13978
13979 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13980 (uniscribe_encode_char): Use FONT_HANDLE macro.
13981
13982 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13983 (w32font_text_extents): Use precast w32_font.
13984 (w32font_close): Free cached metrics.
13985 (w32font_open_internal): Allocate space for name on stack.
13986
139872008-06-26 Chong Yidong <cyd@stupidchicken.com>
13988
13989 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13990
139912008-06-26 Jason Rumney <jasonr@gnu.org>
13992
13993 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13994 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13995
139962008-06-26 Juanma Barranquero <lekktu@gmail.com>
13997
13998 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13999
140002008-06-26 Jason Rumney <jasonr@gnu.org>
14001
14002 * w32bdf.c, w32bdf.h: Remove obsolete files.
14003
14004 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14005
14006 * w32gui.h: Don't include w32bdf.h.
14007 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14008 Remove obsolete font support.
14009
14010 * w32font.h (struct w32font_info): Remove compat_w32_font.
14011 Add hfont member.
14012 (FONT_COMPAT): Remove obsolete macro.
14013
14014 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14015 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14016 (w32font_open_internal): Remove compat code. Set new hfont member.
14017 (Fx_select_font): Use new hfont member.
14018
14019 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14020 (uniscribe_encode_char): Use new hfont member.
14021
14022 * w32term.c (x_draw_glyph_string_foreground)
14023 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14024 (x_draw_glyph_string): Use metrics in w32font_info.
14025
140262008-06-26 Kenichi Handa <handa@m17n.org>
14027
14028 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14029
140302008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14031
14032 * unexnext.c:
14033 * m/ews4800.h:
14034 * m/hp9000s300.h:
14035 * m/ibm370aix.h:
14036 * m/mips-siemens.h:
14037 * m/ncr386.h:
14038 * m/next.h:
14039 * m/pmax.h:
14040 * m/powerpcle.h:
14041 * m/tandem-s2.h:
14042 * s/386bsd.h:
14043 * s/bsd386.h:
14044 * s/bsd4-1.h:
14045 * s/bsd4-2.h:
14046 * s/bsdos2-1.h:
14047 * s/bsdos2.h:
14048 * s/bsdos3.h:
14049 * s/bsdos4.h:
14050 * s/nextstep.h:
14051 * s/ultrix4-3.h:
14052 * s/usg5-0.h:
14053 * s/usg5-2-2.h:
14054 * s/usg5-2.h:
14055 * s/usg5-4-3.h:
14056 * s/ux4800.h:
14057 * s/uxpds.h:
14058 * s/uxpv.h: Remove support for obsolete systems.
14059 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14060 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14061 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14062 Remove, insert contents in s/aix4-2.h.
14063 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14064 * s/bsd4-3.h: Rename to ...
14065 * s/bsd-common.h: ... this.
14066 * data.c:
14067 * doc.c:
14068 * ecrt0.c:
14069 * emacs.c:
14070 * fileio.c:
14071 * floatfns.c:
14072 * keyboard.c:
14073 * mem-limits.h:
14074 * print.c:
14075 * process.c:
14076 * sysdep.c:
14077 * syssignal.h:
14078 * systty.h:
14079 * syswait.h:
14080 * term.c:
14081 * unexec.c:
14082 * unexelf.c:
14083 * unexhp9k800.c:
14084 * m/hp800.h:
14085 * m/ibmrs6000.h:
14086 * m/mips.h:
14087 * m/vax.h:
14088 * s/darwin.h:
14089 * s/freebsd.h:
14090 * s/gnu.h:
14091 * s/ms-w32.h:
14092 * s/msdos.h:
14093 * s/netbsd.h:
14094 * s/template.h: Remove references to obsolete variables.
14095
14096 * Makefile.in: Add dependencies for all unexec files.
14097 (admindir): Remove unused variable.
14098 (UNEXEC_SRC): Remove references.
14099
141002008-06-25 Chong Yidong <cyd@stupidchicken.com>
14101
14102 * xfns.c (x_default_font_parameter): If Xft is available, first
14103 try Monospace-12 for the default font.
14104
141052008-06-25 Jason Rumney <jasonr@gnu.org>
14106
14107 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14108
141092008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14110
14111 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14112
14113 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14114
141152008-06-25 Juanma Barranquero <lekktu@gmail.com>
14116
14117 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14118 <scroll-conservatively>: Fix typo in docstring.
14119
14120 * xselect.c (Fx_send_client_event): Doc fix.
14121
141222008-06-25 Kenichi Handa <handa@m17n.org>
14123
14124 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14125
14126 * font.c (font_parse_fcname): Remove unused variables.
14127 (font_sort_entites): Delete the arg SPEC. Caller changed.
14128 Fix for the case of ! best_only.
14129 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14130
14131 * lisp.h (Fstring_to_unibyte): EXFUN it.
14132
14133 * character.h (str_to_unibyte): Extern it.
14134
14135 * character.c (str_to_unibyte): New function.
14136
14137 * fns.c (Fstring_to_unibyte): New function.
14138 (syms_of_fns): Defsubr it.
14139
141402008-06-24 Kenichi Handa <handa@m17n.org>
14141
14142 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14143 DPI too.
14144 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14145
141462008-06-24 Andreas Schwab <schwab@suse.de>
14147
14148 * Makefile.in (${lispsource}loaddefs.el): Rename from
14149 ../lisp/loaddefs.el.
14150 (bootstrap-clean): Do what distclean does but don't remove
14151 Makefile.
14152 (distclean): Depend on bootstrap-clean and remove Makefile.
14153
141542008-06-24 Chong Yidong <cyd@stupidchicken.com>
14155
14156 * buffer.h (struct buffer): New member word_wrap.
14157
14158 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14159 word-wrap.
14160 (init_buffer_once): Initialize them.
14161
14162 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14163 line_wrap enum possessing three possible values.
14164
14165 * termopts.h: Replace truncate_partial_width_windows with
14166 Vtruncate_partial_width_windows.
14167
14168 * dispnew.c (direct_output_for_insert): Avoid direct output when
14169 inserting a space with word wrap on.
14170
14171 * indent.c (compute_motion): Obey integer values of
14172 truncate-partial-width-windows.
14173
14174 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14175 replacing truncate_partial_width_windows.
14176 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14177 truncate only if the window width is below that integer.
14178 (start_display, resize_mini_window, produce_stretch_glyph)
14179 (display_string, move_it_in_display_line_to): Use line_wrap.
14180 (back_to_previous_visible_line_start, reseat_1): Reset
14181 string_from_display_prop_p.
14182 (display_line): Extend default face to end of line when wrapping.
14183
141842008-06-24 Kim F. Storm <storm@cua.dk>
14185
14186 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14187 to wrap continued lines at word boundaries.
14188
141892008-06-24 Jason Rumney <jasonr@gnu.org>
14190
14191 * font.c (Ffont_face_attributes): Multiply pixel size before point
14192 conversion to avoid multiplying rounding error.
14193
141942008-06-23 Jason Rumney <jasonr@gnu.org>
14195
14196 * w32term.c (x_draw_glyph_string_background)
14197 (x_draw_glyph_string): Remove old bdf font code.
14198
14199 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14200
142012008-06-22 Kenichi Handa <handa@m17n.org>
14202
14203 * font.c (font_find_for_lface): Try the adstyle specified in
14204 the property of LFACE_FONT of LFACE (if any).
14205
142062008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14207 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14208
14209 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14210
142112008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14212
14213 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14214 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14215 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14216 (witness-emacs): Remove.
14217 (lisp, shortlisp): Move loaddefs.el earlier.
14218 (mostlyclean): Forget about witness-emacs.
14219
142202008-06-22 Glenn Morris <rgm@gnu.org>
14221
14222 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14223 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14224
142252008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14226
14227 * Makefile.in (PRECOMP): Remove.
14228 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14229 (witness-emacs): Run `compile-first'.
14230 (.el.elc): Use the new compile-onefile target.
14231
142322008-06-21 Kenichi Handa <handa@m17n.org>
14233
14234 * xftfont.c (xftfont_open): Handle QCembolden only when
14235 FC_EMBOLDEN is defined.
14236
142372008-06-21 Andreas Schwab <schwab@suse.de>
14238
14239 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14240 (.el.elc): Likewise.
14241
142422008-06-21 Miles Bader <miles@gnu.org>
14243
14244 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14245 build dir, not the lisp source dir.
14246
142472008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14248
14249 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14250 (bootstrapclean): Remove.
14251 (.el.elc): New rule.
14252 (PRECOMP): New var.
14253 (../lisp/subdirs.el): Remove.
14254 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14255 (witness-emacs): New target.
14256 (mostlyclean): Remove witness-emacs as well.
14257 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14258 Add witness-emacs dependency.
14259
142602008-06-20 Chong Yidong <cyd@stupidchicken.com>
14261
14262 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14263 defined by the font.
14264
142652008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14266
14267 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14268 (bootstrap-clean): New target that keeps TAGS around.
14269 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14270 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14271
142722008-06-20 Jason Rumney <jasonr@gnu.org>
14273
14274 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14275 Remove obsolete font code.
14276
14277 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14278 to determine language support.
14279
142802008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14281
14282 * sysdep.c (cfsetspeed): New fun extracted from the code.
14283 (cfmakeraw): Move before first use.
14284
142852008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14286
14287 * sysdep.c (cfmakeraw): Provide fallback implementation.
14288 (serial_configure): Provide fallback implementation of cfsetspeed.
14289
142902008-06-20 Kenichi Handa <handa@m17n.org>
14291
14292 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14293 the pattern.
14294
14295 * fontset.c (fontset_from_font): Copy font_spec before changing
14296 the elements.
14297
14298 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14299
143002008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14301
14302 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14303 for explicit `font' parameters.
14304
14305 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14306
143072008-06-19 Kenichi Handa <handa@m17n.org>
14308
14309 * frame.c: Include <ctype.h>.
14310 (x_set_font_backend): Allow spacing characters in the X resource
14311 for FontBackend.
14312
143132008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14314
14315 * w32fns.c, xfns.c (Qfont_param): New var.
14316 (syms_of_w32fns): Initialize it.
14317 (x_default_font_parameter): Record explicit `font' into
14318 `font-parameter'.
14319
143202008-06-18 Kenichi Handa <handa@m17n.org>
14321
14322 * font.c (font_parse_xlfd): Fix previous change.
14323 (font_parse_fcname): Don't use :fc-unknown-spec.
14324 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14325 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14326 (font_add_log): Prepend the driver name to the resulting fonts.
14327
14328 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14329 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14330 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14331
14332 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14333 (QCembolden): New variables.
14334 (syms_of_xftfont): DEFSYM them.
14335 (xftfont_open): Call XftFontMatch. Don't trust the result of
14336 XftTextExtents8 if the pixel_size is less than 5.
14337
143382008-06-18 Andreas Schwab <schwab@suse.de>
14339
14340 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14341 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14342
143432008-06-18 Jason Rumney <jasonr@gnu.org>
14344
14345 * w32font.c (w32font_list, w32font_match): Add logging.
14346
14347 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14348
143492008-06-17 Chong Yidong <cyd@stupidchicken.com>
14350
14351 * font.c (font_parse_fcname): Store divider characters for
14352 unknown-spec list. For known key symbols, intern using correct
14353 symbol name.
14354
143552008-06-17 Kenichi Handa <handa@m17n.org>
14356
14357 * xfaces.c (realize_default_face): If the frame is not on window
14358 system, set the fontset of face to nil.
14359
143602008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14361
14362 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14363
143642008-06-16 Juanma Barranquero <lekktu@gmail.com>
14365
14366 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14367 (build_font_name_from_vector): Delete externs.
14368
14369 * xfaces.c (struct font_name): Don't declare.
14370
143712008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14372
14373 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14374
143752008-06-16 Chong Yidong <cyd@stupidchicken.com>
14376
14377 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14378
143792008-06-16 Juanma Barranquero <lekktu@gmail.com>
14380
14381 * font.c (Ffont_spec): Fix usage in docstring.
14382 (Ffont_face_attributes): Doc fix.
14383
143842008-06-16 Andreas Schwab <schwab@suse.de>
14385
14386 * font.c (Ffont_face_attributes): Fix definition.
14387
143882008-06-16 Jason Rumney <jasonr@gnu.org>
14389
14390 * font.h (font_style_symbolic_from_value): Remove.
14391
14392 * font.c (font_style_symbolic_from_value): Remove.
14393 (font_style_symbolic): Revert to pre 2008-06-13 version.
14394
14395 * w32font.c (w32_to_fc_weight): New function.
14396 (w32font_full_name, logfont_to_fcname): Use it.
14397
143982008-06-16 Kenichi Handa <handa@m17n.org>
14399
14400 * font.c (font_check_object): Delete it.
14401 (font_clear_cache): Check if a font-object is alive.
14402 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14403 font-object to nil.
14404 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14405 (font_at): Don't call font_check_object.
14406 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14407
144082008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14409
14410 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14411
144122008-06-16 Chong Yidong <cyd@stupidchicken.com>
14413
14414 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14415
144162008-06-15 Chong Yidong <cyd@stupidchicken.com>
14417
14418 * font.c (font_parse_fcname): Only one decimal point.
14419 (font_unparse_fcname): Handle data in family and foundry indices
14420 as symbols, not strings.
14421 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14422
14423 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14424
14425 * font.h (font_unparse_gtkname): Add prototype.
14426
144272008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14428
14429 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14430
144312008-06-15 Andreas Schwab <schwab@suse.de>
14432
14433 * font.c (font_update_drivers): Fix crash when no drivers match.
14434
144352008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14436
14437 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14438 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14439
144402008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14441
14442 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14443
144442008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14445
14446 * process.c (Fserial_process_configure, Fprocess_send_eof):
14447 Use EQ to compare Lisp_Objects.
14448
144492008-06-13 Jason Rumney <jasonr@gnu.org>
14450
14451 * w32fns.c (Fw32_select_font): Remove old font API function.
14452
14453 * w32font.c (logfont_to_fcname): New function.
14454 (Fx_select_font): New font dialog function compatible with
14455 GTK/fontconfig version.
14456
14457 * font.c (font_style_symbolic_from_value): New function.
14458 (font_style_symbolic): Use it.
14459
14460 * font.h (font_style_symbolic_from_value): Declare new function.
14461
144622008-06-13 Juanma Barranquero <lekktu@gmail.com>
14463
14464 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14465 <font-width-table>: Fix typos in docstrings.
14466
144672008-06-13 Daniel Engeler <engeler@gmail.com>
14468
14469 These changes add serial port access.
14470 * process.c: Add HAVE_SERIAL.
14471 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14472 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14473 (list_processes_1, select_wrapper, Fstop_process)
14474 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14475 (status_notify): Modify to handle serial processes.
14476 [HAVE_SERIAL] (Fserial_process_configure)
14477 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14478 New functions.
14479 * process.h (struct Lisp_Process): Add `type'.
14480 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14481 New functions.
14482 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14483 serial ports.
b71ac3dd 14484 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14485 * w32.h: Add FILE_SERIAL.
14486 (struct _child_process): Add ovl_read, ovl_write.
14487
144882008-06-13 Kenichi Handa <handa@m17n.org>
14489
14490 * dispextern.h (enum lface_attribute_index): New member
14491 LFACE_FOUNDRY_INDEX.
14492
14493 * font.c (font_score): Delete arg alternate_families. Check only
14494 weight, slant, width, and size. Ignore the difference of alias
14495 style symbols.
14496 (font_sort_entites): Adjust for the above change. Reflect the
14497 order of font-driver to scores.
14498 (font_list_entities): Don't check alternate_familes here.
14499 (font_clear_prop): Handle foundry.
14500 (font_update_lface): Don't parse "foundry-family" form here.
14501 Handle FONT_FOUNDRY_INDEX.
14502 (font_find_for_lface): Likewise. Handle alternate families here.
14503 If registry is nil, try iso8859-1 and ascii-0.
14504 (font_open_for_lface): Pay attention to size in ENTITY.
14505 (font_open_by_name): Simplify by calling font_load_for_lface.
14506 (free_font_driver_list): Delete it.
14507 (font_update_drivers): Preserve the order of backends.
14508 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14509 of font_score and font_sort_entites.
14510 (font_update_sort_order): Likewise.
14511
14512 * xfaces.c (LFACE_FOUNDRY): New macro.
14513 (check_lface_attrs): Check foundry.
14514 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14515 (merge_face_vectors): Check foundry.
14516 (merge_face_ref): Likewise.
14517 (Finternal_set_lisp_face_attribute): Likewise.
14518 (x_update_menu_appearance): Likewise.
14519 (Finternal_get_lisp_face_attribute): Likewise.
14520 (lface_hash): Likewise.
14521 (lface_same_font_attributes_p): Likewise.
14522 (x_supports_face_attributes_p): Likewise.
14523 (tty_supports_face_attributes_p): Likewise.
14524 (Finternal_set_alternative_font_family_alist): Intern strings.
14525 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14526 (realize_default_face): Set LFACE_FOUNDRY (lface).
14527
14528 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14529 font-driver at first.
14530
14531 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14532
145332008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14534
14535 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14536
145372008-06-12 Jim Meyering <meyering@redhat.com>
14538
14539 Make unexec_free handle NULL the same way free does.
14540 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14541
145422008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14543
14544 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14545 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14546 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14547 (WEAK_ALIAS): Simplify.
14548 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14549 when searching a unibyte buffer.
14550
145512008-06-12 Chong Yidong <cyd@stupidchicken.com>
14552
14553 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14554
145552008-06-12 Juanma Barranquero <lekktu@gmail.com>
14556
14557 * w32font.c: Include ctype.h.
14558
145592008-06-11 Jason Rumney <jasonr@gnu.org>
14560
14561 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14562 misreported as space.
14563 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14564 as aliases for registry iso10646-1.
14565
145662008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14567
14568 * buffer.c (clone_per_buffer_values): Skip `name'.
14569
145702008-06-11 Chong Yidong <cyd@stupidchicken.com>
14571
14572 * font.c (font_parse_fcname): Fix last change; accept decimal
14573 points in font size.
14574
145752008-06-10 Jason Rumney <jasonr@gnu.org>
14576
14577 * w32uniscribe.c (add_opentype_font_name_to_list):
14578 Skip non unicode fonts.
14579
145802008-06-10 Chong Yidong <cyd@stupidchicken.com>
14581
14582 * xfns.c (Fx_font_dialog): New function.
14583
14584 * gtkutil.c (xg_dialog_response_cb): Rename from
14585 xg_file_response_callback.
14586 (pop_down_dialog): Rename from pop_down_file_dialog.
14587 (xg_get_file_name): Callers changed.
14588 (xg_get_font_name): New function.
14589
14590 * gtkutil.h (xg_get_font_name): Insert prototype.
14591
145922008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14593
14594 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14595 x_underline_minimum_display_offset.
14596 (syms_of_xdisp): Declare it here rather than in xterm.c.
14597 * dispextern.h (underline_minimum_offset): Declare it.
14598 * w32term.c (x_draw_glyph_string): Use it.
14599 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14600 (syms_of_xterm): Don't declare it any more.
14601 (x_draw_glyph_string): Adjust to the new name.
14602
8719abec 146032008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14604
14605 * xterm.c (x_underline_minimum_display_offset): New var.
14606 (x_draw_glyph_string): Use it.
14607 (syms_of_xterm): Declare it.
14608
146092008-06-10 Chong Yidong <cyd@stupidchicken.com>
14610
14611 * font.c (font_parse_fcname): Accept GTK-style font names too.
14612
146132008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14614
14615 * dired.c (file_name_completion): Don't return t if the match is exact
14616 but with different capitalization.
14617 * minibuf.c (Ftry_completion): Simplify.
14618
14619 * window.c (Vwindow_point_insertion_type): New var.
14620 (set_window_buffer): Use it.
14621 (syms_of_window): Init and export it to Lisp.
14622
146232008-06-10 Kenichi Handa <handa@m17n.org>
14624
14625 * font.h (font_intern_prop): Prototype adjusted.
14626
14627 * font.c (font_intern_prop): New arg force_symbol.
14628 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14629 Adjust for the change of font_intern_prop.
14630
14631 * ftfont.c (ftfont_pattern_entity):
14632 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14633 (w32_registry):
14634 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14635 the change of font_intern_prop.
14636
146372008-06-09 Juanma Barranquero <lekktu@gmail.com>
14638
14639 * w32menu.c (digest_single_submenu): Declare extern.
14640
146412008-06-09 Jason Rumney <jasonr@gnu.org>
14642
14643 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14644
14645 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14646 (parse_single_submenu): Remove.
14647 (digest_single_submenu): Remove.
14648 (syms_of_w32menu): Don't initialise variables that have moved
14649 to menu.c.
14650 (set_frame_menubar): Sync with version in xmenu.c.
14651 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14652
14653 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14654 Make static again.
14655
146562008-06-09 Jason Rumney <jasonr@gnu.org>
14657
14658 Changes to w32 files related to the move of common menu code
14659 to menu.c on 2008-06-08 by Chong Yidong.
14660
14661 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14662 defs to w32gui.h.
14663 (single_keymap_panes, push_menu_item, push_menu_pane):
14664 Make globally visible.
14665
14666 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14667 (local_free, malloc_widget_value, free_widget_value)
14668 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14669 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14670 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14671 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14672 (menu_items, menu_items_allocated, menu_items_used)
14673 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14674 (init_menu_items, finish_menu_items, discard_menu_items)
14675 (grow_menu_items, push_submenu_start, push_submenu_end)
14676 (push_left_right_boundary, push_menu_pane, push_menu_item)
14677 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14678 (free_menubar_widget_tree_value, parse_single_submenu)
14679 (update_submenu_strings): Remove functions.
14680 (xmalloc_widget_value): Remove and declare extern.
14681
14682 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14683 (OBJ1): Build it.
14684
14685 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14686 (local_heap, local_alloc, local_free, malloc_widget_value)
14687 (free_widget_value): Define here.
14688
146892008-06-09 Kenichi Handa <handa@m17n.org>
14690
14691 * font.h (Qascii_0): Extern it.
14692
14693 * font.c (Qascii_0): New variable.
14694 (syms_of_font): DEFSYM it.
14695 (font_open_by_name): If the registry "iso8859-1" fails, try also
14696 "ascii-0".
14697
14698 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14699
147002008-06-08 Kenichi Handa <handa@m17n.org>
14701
14702 * .gdbinit (xfont): New command.
14703
147042008-06-08 Andreas Schwab <schwab@suse.de>
14705
14706 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14707 * Makefile.in (menu.o): Update dependencies.
14708
14709 * Makefile.in (obj): Always add menu.o.
14710 * emacs.c (main): Always call syms_of_menu.
14711 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14712
147132008-06-08 Chong Yidong <cyd@stupidchicken.com>
14714
14715 * Makefile.in: Compile menu.c.
14716
14717 * lisp.h: Declare syms_of_menu.
14718
14719 * emacs.c (main): Call syms_of_menu.
14720
14721 * keyboard.h: Relocate platform-independent menu definitions from
14722 xmenu.c.
14723
14724 * menu.c: New file. Relocate platform-independent menu
14725 definitions from xmenu.c. Suggested by Adrian Robert.
14726
14727 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14728 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14729 (menu_items_used, menu_items_n_panes)
14730 (menu_items_submenu_depth): Move to keyboard.h.
14731 (init_menu_items, finish_menu_items, unuse_menu_items)
14732 (discard_menu_items, restore_menu_items, save_menu_items)
14733 (grow_menu_items, push_submenu_start, push_submenu_end)
14734 (push_left_right_boundary, push_menu_pane, push_menu_item)
14735 (keymap_panes, single_keymap_panes, single_menu_item)
14736 (list_of_panes, list_of_items, find_and_call_menu_selection)
14737 (xmalloc_widget_value, free_menubar_widget_value_tree)
14738 (parse_single_submenu, digest_single_submenu)
14739 (update_submenu_strings): Move to menu.c.
14740
147412008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14742
14743 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14744
147452008-06-06 Miles Bader <miles@gnu.org>
14746
14747 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14748 face, not frame default.
14749
147502008-06-05 Martin Rudalics <rudalics@gmx.at>
14751
14752 * window.c (pop_up_windows, pop_up_frames)
14753 (display_buffer_reuse_frames, Vpop_up_frame_function)
14754 (Vdisplay_buffer_function, Veven_window_heights)
14755 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14756 (Vspecial_display_function, Vsame_window_buffer_names)
14757 (Vsame_window_regexps, split_height_threshold)
14758 (Vsplit_window_preferred_function): Move those vars to window.el.
14759 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14760 (Fdisplay_buffer): Move those functions to window.el.
14761 (syms_of_window): Remove corresponding declarations.
14762 (display_buffer): New function.
14763 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14764 * dispnew.c (Flast_nonminibuf_frame): New function.
14765 * buffer.c (Fpop_to_buffer): Move to window.el.
14766
147672008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14768
14769 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14770
147712008-06-05 Kenichi Handa <handa@m17n.org>
14772
14773 * coding.c (detect_coding): Fix previous change.
14774 (detect_coding_system): Likewise.
14775
147762008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14777
14778 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14779
14780 * keymap.c (Vminibuffer_local_filename_must_match_map):
14781 Rename from Vminibuffer_local_must_match_filename_map.
14782 (syms_of_keymap):
14783 * minibuf.c (Fcompleting_read): Adjust accordingly.
14784 * commands.h: Rename declaration as well.
14785
147862008-06-05 Kenichi Handa <handa@m17n.org>
14787
14788 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14789 family name.
14790 (Ffont_put): Likewise.
14791
14792 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14793 current font-spec.
14794
14795 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14796 is unspecified.
14797
14798 * xfaces.c (realize_x_face): If the font-related face attributes
14799 are the same as those of default face, realize a new fontset from
14800 default->fontset.
14801 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14802
148032008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14804
14805 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14806 (move_it_in_display_line): New wrapper.
14807
14808 * window.c (window_scroll_pixel_based_preserve_x)
14809 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14810 (window_scroll_pixel_based, window_scroll_line_based):
14811 Use them to preserve column positions.
14812 (syms_of_window): Initialize them.
14813
14814 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14815 (HPOS . VPOS) pair.
14816
14817 * dispextern.h (move_it_in_display_line): Declare.
14818
148192008-06-05 Juanma Barranquero <lekktu@gmail.com>
14820
14821 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14822 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14823 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14824
148252008-06-04 Juanma Barranquero <lekktu@gmail.com>
14826
14827 * window.c (Fset_window_parameter): Doc fix.
14828 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14829
148302008-06-04 Joakim Verona <joakim@verona.se>
14831
14832 * window.h (struct window): Add new member window_parameters.
14833
14834 * window.c (Fwindow_parameters, Fwindow_parameter)
14835 (Fset_window_parameter): New defuns.
14836 (syms_of_window): Defsubr the new defuns.
14837 (make_window): Initialize window_parameters to nil.
14838
148392008-06-04 John Paul Wallington <jpw@pobox.com>
14840
14841 * eval.c (Fdefmacro): Doc fix.
14842
148432008-06-04 Kenichi Handa <handa@m17n.org>
14844
14845 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14846 Be sure to call setup_coding_system when we find a proper coding system.
14847 (detect_coding_system): Fix handling of coding->head_ascii.
14848
148492008-06-03 Andreas Schwab <schwab@suse.de>
14850
14851 * font.c (font_prop_validate_spacing): Fix last change.
14852
148532008-06-03 Kenichi Handa <handa@m17n.org>
14854
14855 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14856 (font_parse_fcname): Fix handling of unknown key.
14857
14858 * xfont.c (xfont_list): Try an alias.
14859
14860 * charset.c (char_charset): Return NULL if the arg charset_list is
14861 specified and C doesn't belong to any of them.
14862
148632008-06-02 Chip Coldwell <coldwell@redhat.com>
14864
14865 * font.c (font_pixel_size): Don't take cdr of an integer.
14866
148672008-06-02 Jim Meyering <meyering@redhat.com>
14868
14869 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14870 * alloc.c (xfree): Return right away for a NULL arg.
14871 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14872 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14873 * mac.c (create_apple_event_from_event_ref): Likewise.
14874 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14875 Likewise.
14876 * doprnt.c (doprnt1): Likewise.
14877 * frame.c (frame): Likewise.
14878 * keyboard.c (wipe_kboard): Likewise.
14879 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14880 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14881 * term.c (tty_default_color_capabilities, maybe_fatal)
14882 (delete_tty): Likewise.
14883 * w16select.c (string): Likewise.
14884 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14885 * w32bdf.c (w32_free_bdf_font): Likewise.
14886 * w32fns.c (w32_unload_font): Likewise.
14887 * w32font.c (w32font_close): Likewise.
14888 * window.c (size_window): Likewise.
14889 * xselect.c (receive_incremental_selection): Likewise.
14890 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14891 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14892 * w32.c (stat): Likewise.
14893
14894 Remove useless if-before-free tests.
14895 * editfns.c (Fset_time_zone_rule): Likewise.
14896 * lread.c (nosuffix): Likewise.
14897 * ralloc.c (get_bloc): Likewise.
14898 * regex.c (reg_free): Likewise.
14899 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14900 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14901 * xsmfns.c (smc_save_yourself_CB): Likewise.
14902
149032008-06-02 Kenichi Handa <handa@m17n.org>
14904
14905 * font.c (font_find_for_lface): Handle float font size.
14906 (font_open_for_lface): Likewise.
14907
14908 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14909 comparing the properties.
14910
149112008-06-01 Jason Rumney <jasonr@gnu.org>
14912
14913 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14914 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14915 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14916 Don't add empty script list.
14917 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14918
149192008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14920
14921 * Makefile.in (dot, dotdot): Remove, update users.
14922 ".." has been used elsewhere in the file for a long time.
14923 (LIBXT_STATIC): Remove conditional based on unused variable.
14924
149252008-06-01 Miles Bader <miles@gnu.org>
14926
14927 * xfaces.c (Vface_remapping_alist): New variable.
14928 (syms_of_xfaces): Initialize it.
14929 (enum named_merge_point_kind): New type.
14930 (struct named_merge_point): Add `named_merge_point_kind' field.
14931 (push_named_merge_point): Make cycle detection respect different
14932 named-merge-point kinds.
14933 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14934 Remove face-name alias resolution.
14935 (lface_from_face_name): New definition using
14936 `lface_from_face_name_no_resolve'.
14937 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14938 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14939 (get_lface_attributes): New definition that layers face-remapping on
14940 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14941 (lookup_basic_face): New function.
14942 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14943 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14944 `get_lface_attributes'.
14945 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14946 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14947 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14948
14949 * xdisp.c (init_iterator): Pass base_face_id through
14950 `lookup_basic_face' when we actually use it as a face-id.
14951 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14952 DEFAULT_FACE_ID.
14953
14954 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14955 lookup the initial face-id.
14956
14957 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14958
149592008-06-01 Juanma Barranquero <lekktu@gmail.com>
14960
14961 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14962 (Fremove_text_properties): Fix typos in docstrings.
14963
149642008-05-31 Kenichi Handa <handa@m17n.org>
14965
14966 * font.c (font_list_entities): Fix the car part of data to be
14967 stored in the cache.
14968
14969 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14970
149712008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14972
14973 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14974 Add a `test' argument so another predicate than `equal' can be used.
14975 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14976 (map_char_table): Remove unused vars `c' and `i'.
14977 * lisp.h (Foptimize_char_table): Adjust declaration.
14978 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14979
149802008-05-30 Kenichi Handa <handa@m17n.org>
14981
14982 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14983 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14984 defined.
14985
149862008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14987
14988 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14989 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14990 frame-local settings for the same variable.
14991
149922008-05-30 Kenichi Handa <handa@m17n.org>
14993
14994 * fontset.c (Ffont_info): Move to font.c.
14995 (syms_of_fontset): Delete defsubr of Sfont_info.
14996
14997 * font.c (font_style_to_value, font_score): Delete casting of the
14998 args to xstcasecmp.
14999 (register_font_driver): Increment num_font_drivers only when
15000 registering the driver globally.
15001 (Ffont_info): Move from fontset.c. Handle a font object too.
15002 (syms_of_font): Defsubr Sfont_info.
15003
150042008-05-29 Kenichi Handa <handa@m17n.org>
15005
15006 * coding.h (enum define_coding_utf8_arg_index): New enum.
15007 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15008 coding_attr_utf_bom.
15009 (enum utf_bom_type): Rename from utf_16_bom_type.
15010 (struct utf_16_spec): Adjust for the above change.
15011 (struct coding_system): Add utf_8_bom in `spec' union.
15012
15013 * coding.c (CODING_UTF_8_BOM): New macro.
15014 (enum coding_category): Delete coding_category_utf_8, add
15015 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15016 coding_category_utf_8_sig.
15017 (CATEGORY_MASK_UTF_8): Delete it.
15018 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15019 (CATEGORY_MASK_UTF_8_SIG): New macros.
15020 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15021 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15022 CATEGORY_MASK_UTF_8_SIG.
15023 (CATEGORY_MASK_UTF_8): New macro.
15024 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15025 (detect_coding_utf_8): Check BOM.
15026 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15027 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15028 (encode_coding_utf_16): Likewise.
15029 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15030 (detect_coding, detect_coding_system): Handle utf-8-auto.
15031 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15032 (syms_of_coding): Fix setting up of Vcoding_category_table.
15033
150342008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15035
15036 * process.c (Faccept_process_output): If `millisec' is non-nil,
15037 `seconds' default to 0.
15038 (wait_reading_process_output): Also return non-nil if we read output
15039 from a non-running process.
15040
150412008-05-29 Jason Rumney <jasonr@gnu.org>
15042
15043 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15044 `raster' specified.
15045 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15046 in the uniscribe backend, but disallow any font that has no
15047 unicode subrange support.
15048
150492008-05-29 Juanma Barranquero <lekktu@gmail.com>
15050
15051 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15052 Fix typos in docstrings.
15053
150542008-05-29 Kenichi Handa <handa@m17n.org>
15055
15056 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15057 (Fx_family_fonts): Set frame correctly.
15058
150592008-05-28 Jason Rumney <jasonr@gnu.org>
15060
15061 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15062
150632008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15064
15065 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15066 calling build_annotations.
15067
150682008-05-28 Juanma Barranquero <lekktu@gmail.com>
15069
15070 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15071 (Fencode_coding_string):
15072 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15073 <latin-extra-code-table>: Fix typos in docstrings.
15074 (syms_of_coding) <coding-system-alist>: Doc fix.
15075 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15076
150772008-05-28 Kenichi Handa <handa@m17n.org>
15078
15079 * fontset.c (Ffont_info): Don't call font_close_object.
15080
15081 * font.c (font_parse_family_registry): Use Ffont_put to validate
15082 foundry and family.
15083 (font_delete_unmatched): Don't check spacing.
15084 (font_list_entities): Add spacing to the spec to list fonts.
15085
15086 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15087 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15088
15089 * coding.c (encode_coding_raw_text): Fix previous change.
15090 (encode_coding_object): When the dst_object is a buffer and is
15091 different from src_object, move gap to PT.
15092
150932008-05-27 Chong Yidong <cyd@stupidchicken.com>
15094
15095 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15096
150972008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15098
15099 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15100 all branches. Compute it differently.
15101
15102 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15103
151042008-05-27 Juanma Barranquero <lekktu@gmail.com>
15105
15106 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15107 into "else if () ... else ...".
15108
151092008-05-27 Jason Rumney <jasonr@gnu.org>
15110
15111 * w32font.c (w32font_open_internal): Determine if glyph indices
15112 are likely to work here.
15113
151142008-05-27 Chong Yidong <cyd@stupidchicken.com>
15115
15116 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15117 draw overlap glyphs with appropriate highlighting.
15118
151192008-05-27 Kenichi Handa <handa@m17n.org>
15120
15121 * xfont.c (xfont_open): Fix calculation of font->average_width.
15122
151232008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15124
15125 * casefiddle.c (casify_object): Try to guess better whether the
15126 argument is a byte or a char.
15127
151282008-05-26 Andreas Schwab <schwab@suse.de>
15129
15130 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15131 Always send multiples of format size.
15132
15133 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15134
151352008-05-26 Jason Rumney <jasonr@gnu.org>
15136
15137 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15138 (compute_metrics): Don't set failure if we just cleared the cache.
15139 (w32_weight_table): Remove unused variable.
15140 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15141 backwards compatibility.
15142
151432008-05-25 Kenichi Handa <handa@m17n.org>
15144
15145 * w32term.c (x_draw_glyph_string):
15146 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15147
15148 * xfaces.c: Delete unused function prototypes.
15149 (xstrlwr, font_frame): Delete them.
15150 (clear_face_cache): Delete unused variable.
15151
15152 * xftfont.c (xftfont_open): Delete unused variable.
15153 If underline_thickness is not 1, adjust underline_position.
15154
15155 * ftxfont.c (ftxfont_open): Delete unused variable.
15156
15157 * fontset.c (face_for_char): Optimize for the case of no charset
15158 property.
15159
15160 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15161 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15162 (otf_open, font_otf_capability, generate_otf_features)
15163 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15164 Comment out by surrounding "#if 0" and "#endif" for the moment.
15165 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15166 (syms_of_font): Codes for accessing above commented out.
15167
151682008-05-24 Eli Zaretskii <eliz@gnu.org>
15169
15170 * w32proc.c: Include dispextern.h.
15171
15172 * w32.c: Include dispextern.h.
15173
151742008-05-23 Juanma Barranquero <lekktu@gmail.com>
15175
15176 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15177 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15178 Fix typos in docstrings.
15179
151802008-05-23 Jason Rumney <jasonr@gnu.org>
15181
15182 * xsmfns.c: Remove includes that are already included by config.h.
15183
151842008-05-23 Kenichi Handa <handa@m17n.org>
15185
15186 * charset.c (Qemacs, charset_emacs): New variables.
15187 (char_charset): Fix for non-Unicode characters.
15188 (syms_of_charset): Define charset_emacs.
15189
15190 * w32term.c (x_draw_glyph_string): Be sure to update
15191 s->underline_thickness and s->underline_position. Be sure to draw
15192 underline within the current line area.
15193
15194 * xterm.c (x_draw_glyph_string): Be sure to update
15195 s->underline_thickness and s->underline_position. Be sure to draw
15196 underline within the current line area.
15197
15198 * fontset.c: Delete unused variables and add casting for char *
15199 throughout the file.
15200 (fontset_font): Try the fallback fonts of the current fontset
15201 before consulting the default fontset.
15202
15203 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15204
15205 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15206
152072008-05-22 Jason Rumney <jasonr@gnu.org>
15208
15209 * font.c: Don't include strings.h.
15210
15211 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15212
15213 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15214 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15215 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15216 to call xstrcasecmp.
15217
15218 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15219
15220 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15221
15222 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15223
15224 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15225
152262008-05-22 Kenichi Handa <handa@m17n.org>
15227
15228 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15229
15230 * font.c (font_prop_validate_style): Adjust for the format
15231 change of font_style_table.
15232
15233 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15234 two args.
15235
15236 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15237 two args.
15238
152392008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15240
15241 * minibuf.c (keys_of_minibuf): Delete.
15242 * lisp.h (keys_of_minibuf): Delete.
15243 * emacs.c (main): Don't call keys_of_minibuf.
15244
152452008-05-22 Kenichi Handa <handa@m17n.org>
15246
15247 * ftfont.c (ftfont_resolve_generic_family): Rename from
15248 ftfont_list_generic_family. Return a single family for each
15249 generic family.
15250 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15251 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15252 Call font_add_log.
15253 (ftfont_match): Call font_add_log.
15254
15255 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15256 (FONT_DEBUG): Define it.
15257 (font_add_log): Extern it.
15258 (font_assert): Rename from xassert.
15259
15260 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15261 (xfont_list_family): Call font_add_log.
15262 (xfont_match): Likewise.
15263 (memq_no_quit): Delete.
15264
15265 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15266 call of Ffont_xlfd_name.
15267
15268 * xfaces.c (struct table_entry, slant_table, weight_table)
15269 (swidth_table): Move to font.c.
15270
15271 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15272 xassert are changed to font_assert. Delete many unused variables.
15273 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15274 New variables.
15275 (struct table_entry): Move from xfaces.c and modified.
15276 (weight_table, slant_table, width_table): Move from xfaces.c and
15277 contents adjusted for the change of struct table_entry.
15278 (font_style_to_value, font_style_symbolic): Adjust for the
15279 format change of font_style_table.
15280 (font_parse_family_registry): Don't overwrite existing foundry and
15281 family of font_spec.
15282 (font_score): Fix calculation of diff for sizes.
15283 (font_sort_entites): Call font_add_log.
15284 (font_delete_unmatched): Return a newly created list.
15285 (font_list_entities): Fix previous change. Call font_add_log.
15286 (font_matching_entity, font_open_entity, font_close_entity):
15287 Call font_add_log.
15288 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15289 (Finternal_set_font_style_table): Delete.
15290 (BUILD_STYLE_TABLE): New macro.
15291 (build_style_table): New function.
15292 (Vfont_log, font_log_env_checked): New variables.
15293 (font_add_log): New function.
15294 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15295 Declare Lisp variables "font-weight-table", "font-slant-table",
15296 "font-width-table", and "font-log". Initialize font_style_table.
15297
152982008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15299
15300 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15301
153022008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15303 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15304
15305 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15306 (Vframe_alpha_lower_limit): New variable.
15307 (x_set_alpha): New function.
15308
15309 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15310
15311 * xfns.c (x-create-frame, Qalpha):
15312 Initialize the frame parameter `alpha'.
15313 * xterm.c (OPAQUE, OPACITY): New.
15314 (x_set_frame_alpha): New function.
15315 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15316
15317 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15318 * w32fns.c (w32_frame_parm_handlers): Likewise.
15319
153202008-05-20 Jason Rumney <jasonr@gnu.org>
15321
15322 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15323 truetype fonts to opentype list.
15324
153252008-05-20 Juanma Barranquero <lekktu@gmail.com>
15326
15327 * fontset.c (Ffontset_info): Doc fix.
15328 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15329 <ignore-relative-composition>: Fix typos in docstrings.
15330
15331 * font.c (syms-of-font) <font-encoding-alist>:
15332 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15333 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15334 (Ffont_otf_alternates): Doc fixes.
15335
153362008-05-20 Kenichi Handa <handa@m17n.org>
15337
15338 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15339 font.h through out the file.
15340 (FONT_DRIVERS): Rename from FONTOBJ.
15341 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15342 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15343
15344 * emacs.c (main): Call syms_of_font unconditionally.
15345
15346 * font.h (find_font_encoding): Extern it.
15347
15348 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15349 fontset.c.
194d44e7 15350 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15351 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15352 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15353 only when HAVE_WINDOW_SYSTEM is defined.
15354 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15355 when HAVE_WINDOW_SYSTEM is defined.
15356
15357 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15358 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15359
15360 * xfaces.c: Include font.h unconditionally.
15361 (merge_face_ref, merge_face_vectors)
15362 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15363
153642008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15365
15366 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15367 indirect_variable.
15368 * eval.c (lisp_indirect_variable): New fun.
15369 (Fuser_variable_p): Use it.
15370
153712008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15372
15373 * lisp.h (indirect_variable):
15374 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15375 Use Lisp_Symbol pointers rather than Lisp_Object.
15376 Adjust callers.
15377 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15378 To this end, change calling-convention.
15379
15380 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15381 if some non-hidden buffers are selected by string&pred.
15382
153832008-05-19 Chong Yidong <cyd@stupidchicken.com>
15384
15385 * process.c (wait_reading_process_output): Always check status
15386 when in batch mode.
15387
153882008-05-19 Kenichi Handa <handa@m17n.org>
15389
15390 * font.c (font_list_entities): Fix handling of cache.
15391 (font_matching_entity): Likewise.
15392
15393 * ftfont.c (cs_iso8859_1): Delete.
15394 (ft_face_cache): New variable.
15395 (struct ftfont_info): New member fc_charset_idx.
15396 (ftfont_build_basic_charsets): Delete.
15397 (fc_charset_table): New variable.
15398 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15399 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15400 Callers changed.
15401 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15402 (ftfont_spec_pattern): New argument fc_charset_idx.
15403 Check registry more rigidly. Change callers.
15404 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15405 change of :font-entity property of the font.
15406
15407 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15408 property of the font.
15409
154102008-05-18 Juanma Barranquero <lekktu@gmail.com>
15411
15412 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15413 (Funencodable_char_position, Fcheck_coding_systems_region)
15414 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15415 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15416 (Ffind_operation_coding_system, Fset_coding_system_priority)
15417 (Fcoding_system_eol_type): Doc fixes.
15418
154192008-05-17 Glenn Morris <rgm@gnu.org>
15420
15421 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15422
154232008-05-16 Eli Zaretskii <eliz@gnu.org>
15424
15425 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15426 and st_gid.
15427
15428 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15429 HAVE_WINDOW_SYSTEM is not defined.
15430
15431 * xfaces.c (merge_face_ref, merge_face_vectors)
15432 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15433 HAVE_WINDOW_SYSTEM is defined.
15434 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15435
154362008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15437
15438 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15439
154402008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15441
15442 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15443
154442008-05-15 Kenichi Handa <handa@m17n.org>
15445
15446 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15447 preference.
15448
154492008-05-15 Glenn Morris <rgm@gnu.org>
15450
15451 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15452
154532008-05-15 Chong Yidong <cyd@stupidchicken.com>
15454
15455 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15456 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15457
15458 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15459
154602008-05-15 Kenichi Handa <handa@m17n.org>
15461
15462 * ftfont.c (ftfont_list): Downcase family name to check generic
15463 families.
15464
15465 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15466 font-spec for QCfont value.
15467
15468 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15469 buffer. Check the return value of it.
15470
154712008-05-14 Jason Rumney <jasonr@gnu.org>
15472
15473 * w32term.c (w32_get_glyph_overhangs): Remove.
15474 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15475
154762008-05-14 Kenichi Handa <handa@m17n.org>
15477
15478 * font.c (font_prop_validate): Make nil a valid value.
15479 (font_clear_cache): Check if the cached vector of entities is nil
15480 or not.
15481
154822008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15483
15484 * emacs.c (main_thread): Conditionalize on
15485 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15486 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15487
15488 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15489 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15490 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15491
154922008-05-14 Kenichi Handa <handa@m17n.org>
15493
15494 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15495 has no corresponding coding system.
15496
154972008-05-14 Jason Rumney <jasonr@gnu.org>
15498
15499 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15500
15501 * w32font.h (w32font_open_internal): Update declaration.
15502
15503 * w32font.c (w32font_open_internal): Change last argument from
15504 w32font_info struct to font object. Fill in font object from
15505 font_entity. Get Outline metrics if possible. Use them to
15506 calculate underline position and thickness. Use xlfd name as name
15507 property. Don't set codepage.
15508 (w32font_open): Pass font_object to w32font_open_internal. Don't
15509 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15510 (w32font_draw): Use s->font.
15511 (clear_cached_metrics): Don't clear non-existent blocks.
15512
15513 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15514 font was not found.
15515 (x_draw_glyph_string): Use underline position and thickness from font.
15516
15517 * w32uniscribe.c (uniscribe_open): Pass font_object to
15518 w32font_open_internal.
15519
155202008-05-14 Kenichi Handa <handa@m17n.org>
15521
15522 These changes are to delete all legacy font-handling codes, and
15523 make Emacs use only font-backends.
15524
15525 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15526 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15527
15528 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15529
15530 * charset.h (Vcharset_non_preferred_head)
15531 (Vcurrent_iso639_language): Extern them.
15532
15533 * charset.c (Vcharset_non_preferred_head): New variable.
15534 (Vcurrent_iso639_language): New variable.
15535 (syms_of_charset): Declare it as a Lisp variable.
15536 (char_charset): Don't check non preferred charsets. As a last
15537 resort, return charset_unicode.
15538 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15539
15540 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15541 conditionals. Don't check enable_font_backend. Delete all codes
15542 used only when USE_FONT_BACKEND is not defined.
15543
15544 * dispextern.h (struct glyph_string): Change type of `font' to
15545 `struct font *'.
15546 (struct glyph_string): New member underline_position and
15547 underline_thickness.
15548 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15549 (struct face): Change type of `font' to `struct font *'. Remove
15550 members `font_name', `font_info_id'.
15551 (per_char_metric, encode_char): Delete externs.
15552 (calc_pixel_width_or_height): Adjust the prototype.
15553
15554 * emacs.c (enable_font_backend): Delete extern.
15555 (main): Don't set enable_font_backend. Don't check the command
15556 line argument "-disable-font-backend".
15557
15558 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15559 (enum font_property_index): New members FONT_DPI_INDEX,
15560 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15561 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15562 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15563 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15564 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15565 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15566 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15567 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15568 (struct font_spec, struct font_entity): New structs.
15569 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15570 (struct font): Many members from old "struct font_info" moved to
15571 here. Members font and entity deleted.
15572 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15573 the new font-related objects.
15574 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15575 (CHECK_FONT_GET_OBJECT): Likewise.
15576 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15577 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15578 (struct font_driver): New members case_sensitive anc check. Type
15579 of the member list and open changed.
15580 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15581 (font_symbolic_width, font_find_object, font_get_spec)
15582 (font_set_lface_from_name): Delete extern.
15583 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15584
15585 * font.c: Include <strings.h>.
15586 (enable_font_backend): Delete it.
15587 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15588 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15589 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15590 (null_string): Delete it.
15591 (null_vector): Make it static.
15592 (font_family_alist): Delete it.
15593 (Qnormal): Extern it.
15594 (QCextra, QClanguage): Delete it.
15595 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15596 (font_make_spec, font_make_entity, font_make_object)
15597 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15598 the string. Callers changed.
15599 (font_pixel_size): Adjusted for the format change of font-related
15600 objects.
15601 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15602 (font_style_to_value, font_style_symbolic): New function.
15603 (build_font_family_alist): Delete it.
15604 (font_registry_charsets): Use Fassoc_string instead of
15605 assq_no_quit.
15606 (font_prop_validate_symbol): Don't return null_string.
15607 (font_prop_validate_style): Adjusted for the change of
15608 style-related values in a font vector.
15609 (font_property_table): Delete entries for QClanguage and
15610 QCantialias, add entries for QCavgwidth.
15611 (get_font_prop_index): Delete the 2nd argument FROM.
15612 (font_prop_validate): Arguments changed.
15613 (font_put_extra): Adjusted for the change of font-related objects.
15614 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15615 (font_parse_fcname, font_unparse_fcname)
15616 (font_prepare_composition): Likewise.
15617 (font_parse_family_registry): Renamed from font_merge_old_spec.
15618 (otf_open): Delete the 1st arg entity.
15619 (font_otf_capability): Adjusted for the above change.
15620 (font_score): New arg alternate_families. Adjusted for the change
15621 of font-related objects.
15622 (font_sort_entites): New arg best_only.
15623 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15624 Delete them.
15625 (font_match_p): Check alternate families.
15626 (font_find_object): Delete it.
15627 (font_check_object): New function.
15628 (font_clear_cache): Adjusted for the change of font-related objects.
15629 (font_delete_unmatched): New arg.
15630 (font_list_entities): Call font_driver->list with a spec that
15631 doesn't specify style-related properties.
15632 (font_matching_entity): Arguments changed. Caller changed.
15633 (font_open_entity): Adjusted for the change of font-related objects.
15634 (font_close_object, font_has_char, font_encode_char)
15635 (font_get_name, font_get_spec): Likewise.
15636 (font_spec_from_name, font_clear_prop, font_update_lface):
15637 New functions.
15638 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15639 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15640 (font_at): Adjusted for the change of font-related objects.
15641 (font_range): New function.
15642 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15643 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15644 (Fcopy_font_spec, Fmerge_font_spec): New function.
15645 (Ffont_family_list): Renamed from list-families.
15646 (Finternal_set_font_style_table): Arguments changed.
15647 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15648 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15649 change of font-related objects.
15650 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15651
15652 * fontset.h (struct font_info): Delete it. Most members go to
15653 struct font.
15654 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15655 (enum FONT_SPEC_INDEX): Delete it.
15656 (font_info, list_fonts_func, load_font_func, query_font_func)
15657 (set_frame_fontset_func, find_ccl_program_func)
15658 (get_font_repertory_func, new_fontset_from_font_name): Delete
15659 externs.
15660 (fontset_from_font_name): Extern it.
15661 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15662 (FONT_INFO_FROM_FACE): Deleted.
15663 (face_for_font): Adjust prototype.
15664
15665 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15666 conditionals. Don't check enable_font_backend. Delete all codes
15667 used only when USE_FONT_BACKEND is not defined.
15668 (get_font_info_func, list_font_func, load_font_func)
15669 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15670 (get_font_repertory_func): Delete them.
15671 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15672 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15673 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15674 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15675 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15676 (fontset_compare_rfontdef): New function.
15677 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15678 rfont-defs by qsort. Adjusted for the change of font-group vector.
15679 (load_font_get_repertory): Deleted.
15680 (fontset_find_font): Use new macros to ref/set elements of
15681 font-def and rfont-def.
15682 (fontset_font): Fix the timing of remembering that no font for C.
15683 (free_face_fontset): Do nothing if the face has no fontset.
15684 (face_suitable_for_char_p): Use new macros to ref/set elements of
15685 rfont-def.
15686 (face_for_char): Likewise. Call face_for_char with font_object.
15687 (fs_load_font): Delete. Delete #pragma surrounding it.
15688 (fs_query_fontset): Use strcasecmp instead of strcmp.
15689 (generate_ascii_font_name): Adjusted for the format change of
15690 font-spec.
15691 (Fset_fontset_font): Likewise. Use new macros to set elements of
15692 font-def.
15693 (Fnew_fontset): Use font_unparse_xlfd to generate
15694 FONTSET_ASCII (fontset).
15695 (new_fontset_from_font_name): Deleted.
15696 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15697 a fontset is already created for the font. FIx updating of
15698 Vfontset_alias_alist.
15699 (fontset_ascii_font): Deleted.
15700 (Ffont_info): Adjusted for the format change of font-spec.
15701 (Finternal_char_font): Likewise.
15702 (Ffontset_info): Likewise.
15703 (syms_of_fontset): Don't check load_font_func.
15704
15705 * fns.c (internal_equal): Handle PREV_FONT.
15706
15707 * frame.h: Delete USE_FONT_BACKEND conditional.
15708
15709 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15710 conditionals. Don't check enable_font_backend. Delete all codes
15711 used only when USE_FONT_BACKEND is not defined.
15712 (x_set_font): Call x_new_font, not x_new_fontset2.
15713 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15714 already set for the frame.
15715
15716 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15717 a font-entity by font_make_entity. Use font_intern_prop instead
15718 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15719 font property. If a font is scalable, set avgwidth property to 0.
15720 Set font-entity property by font_put_extra.
15721 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15722 (ffont_driver): Adjusted for the change of struct font_driver.
15723 (ftfont_spec_pattern): New function.
15724 (ftfont_list): Return a list, not vector.
15725 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15726 (ftfont_list_family): Don't downcase names.
15727 (ftfont_free_entity): Deleted.
15728 (ftfont_open): Return a font-object. Adjusted for the change of
15729 struct font. Get underline_thickness and underline_position from
15730 font property. Don't update dpyinfo->smallest_font_height and
15731 dpyinfo->smallest_char_width.
15732 (ftfont_close): Don't free `struct font'.
15733 (ftfont_has_char): Adjusted for the format change of font-entity.
15734 (ftfont_encode_char, ftfont_text_extents): Likewise.
15735
15736 * ftxfont.c (ftxfont_list): Return a list, not vector.
15737 (ftxfont_open): Return a font-object. Adjusted for the change of
15738 struct font. Get underline_thickness and underline_position from
15739 font property. Don't update dpyinfo->smallest_font_height and
15740 dpyinfo->smallest_char_width.
15741 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15742 (ftxfont_draw): Adjusted for the change of struct font.
15743
15744 * image.c (image_ascent): Don't include "charset.h". Include
15745 "character.h" and "font.h".
15746
15747 * lisp.h (enum pvec_type): New member PREV_FONT.
15748 (Fassoc_string): EXFUN it.
15749
15750 * print.c: Include font.h.
15751 (print_object): Handle font-related objects.
15752
15753 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15754 conditionals. Don't check enable_font_backend. Delete all codes
15755 used only when USE_FONT_BACKEND is not defined.
15756 (handle_auto_composed_prop): Do nothing if it->f is not on a
15757 window system. Check how many following characters can be
15758 displayed by the same font.
15759 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15760 'struct font *'.
15761 (get_char_face_and_encoding): Assign the whole encoding task to
15762 the `encode-char' method of a font driver.
15763 (fill_composite_glyph_string): Adjusted for the change of `struct
15764 face' and `struct glyph_string'.
15765 (fill_glyph_string): Likewise.
15766 (get_per_char_metric): Arguments changed.
15767 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15768 and `struct glyph_string'.
15769 (produce_stretch_glyph, calc_line_height_property)
15770 (x_produce_glyphs): Likewise.
15771
15772 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15773 conditionals. Don't check enable_font_backend. Delete all codes
15774 used only when USE_FONT_BACKEND is not defined. Use
15775 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15776 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15777 (Qp): Extern them.
15778 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15779 Deleted.
15780 (struct font_name): Deleted.
15781 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15782 (compare_fonts_by_sort_order): New function.
15783 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15784 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15785 Deleted.
15786 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15787 compare_fonts_by_sort_order.
15788 (Fx_font_family_list): Call Ffont_family_list.
15789 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15790 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15791 (face_symbolic_slant, face_symbolic_swidth)
15792 (split_font_name_into_vector, build_font_name_from_vector)
15793 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15794 (font_rescale_ratio, split_font_name, build_font_name)
15795 (free_font_names, sort_fonts, x_face_list_fonts)
15796 (face_font_available_p, sorted_font_list, cmp_font_names)
15797 (font_list_1, concat_font_list, font_list, remove_duplicates):
15798 Deleted.
15799 (Fx_list_fonts): Use Ffont_list.
15800 (LFACE_AVGWIDTH): Deleted.
15801 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15802 by FONTP.
15803 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15804 (set_lface_from_font_name): Delete it.
15805 (set_lface_from_font): Renamed from
15806 set_lface_from_font_and_fontset. Caller changed. Don't set
15807 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15808 for face.
15809 (merge_face_vectors): Copy font-spec if necessary.
15810 Clear properties of the font-spec if necessary.
15811 (merge_face_ref): Clear properties of the font-spec if necessary.
15812 (Finternal_set_lisp_face_attribute): Likewise.
15813 (set_font_frame_param): Use font_load_for_lface to load a
15814 font-object, and call Fmodify_frame_parameters with it.
15815 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15816 font name by Ffont_xlfd_name.
15817 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15818 QCslant, and QCwidth.
15819 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15820 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15821 Compare fonts by EQ.
15822 (lookup_non_ascii_face): Deleted.
15823 (face_for_font): The 2nd argument changed.
15824 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15825 Check atomic font properties by case insensitive.
15826 (realize_non_ascii_face): Set face->overstrike correctly.
15827 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15828 (dump_realized_face): Get font name from
15829 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15830
15831 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15832 conditionals. Don't check enable_font_backend. Delete all codes
15833 used only when USE_FONT_BACKEND is not defined.
15834 (xic_create_xfontset): Original code deleted and renamed from
15835 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15836 (x_make_gc): Don't set GCFont in GCs.
15837 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15838 opened by "fixed".
15839 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15840 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15841 get_font_repertory_func.
15842
15843 * xfont.c: Include <stdlib.h> and "ccl.h".
15844 (struct xfont_info): New structure.
15845 (xfont_query_font): Deleted.
15846 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15847 moved from xterm.c.
15848 (xfont_driver): Adjusted for the change of struct font_driver.
15849 (compare_font_names): New function.
15850 (xfont_list_pattern): Sort font names case insensitively. Make
15851 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15852 (xfont_list): Return a list, not vector.
15853 (xfont_match): If the font doesn't have QCname property, generate
15854 a name from the other font properties.
15855 (xfont_open): Return a font-object. Adjusted for the change of
15856 struct font. Get underline_thickness and underline_position from
15857 font property. Don't update dpyinfo->smallest_font_height and
15858 dpyinfo->smallest_char_width.
15859 (xfont_close): Don't free struct font.
15860 (xfont_prepare_face): Adjusted for the change of struct font.
15861 (xfont_done_face): Deleted.
15862 (xfont_has_char): Adjusted for the change of struct font.
15863 (xfont_encode_char, xfont_draw): Likewise.
15864 (xfont_check): New function.
15865
15866 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15867 callback function.
15868 (xftfont_match): Adjusted for the format change of font-entity.
15869 (xftfont_open): Adjusted for the format change of font-entity and
15870 font-object. Adjusted for the change of struct font. Return a
15871 font-object. Don't update dpyinfo->smallest_font_height and
15872 dpyinfo->smallest_char_width.
15873 (xftfont_close): Block input while calling XftFontClose.
15874 (xftfont_prepare_face): Don't block input while calling
15875 xftfont_get_colors. Adjusted for the change of struct font.
15876 (xftfont_shape): Return value of error case fixed.
15877
15878 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15879
15880 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15881 conditionals.
15882 (FONT_WIDTH): Return (f)->max_width.
15883 (struct x_display_info): Delete member `font'.
15884 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15885 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15886 (struct x_output): Change type of `font' to `struct font *'.
15887
15888 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15889 conditionals. Don't check enable_font_backend. Delete all codes
15890 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15891 (x_per_char_metric, x_encode_char): Deleted.
15892 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15893 (x_compute_glyph_string_overhangs): Adjusted for the change of
15894 `struct face'.
15895 (x_draw_glyph_string_foreground)
15896 (x_draw_composite_glyph_string_foreground): Likewise.
15897 (x_draw_glyph_string): Likewise. Use font->underline_position and
15898 font->underline_thickness.
15899 (x_new_font): Renamed from x_new_fontset2.
15900 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15901 (x_check_font): Call `check' method of a font driver.
15902 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15903 (x_query_font, x_get_font_repertory): Deleted.
15904 (x_find_ccl_program): Renamed and moved to xfont.c.
15905 (x_redisplay_interface): Adjusted for the change of `struct
15906 redisplay_interface'.
15907
15908 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15909 conditionals. Don't check enable_font_backend. Delete all codes
15910 used only when USE_FONT_BACKEND is not defined. Surround non-used
15911 code by "#ifdef OLD_FONT" and "endif".
15912 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15913
15914 * w32font.h (struct w32font_info): New member.
15915 (FONT_COMPAT): New macro.
15916 (w32font_open_internal): Prototype adjusted.
15917
15918 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15919 OLD_FONT" and "endif".
15920
15921 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15922 conditionals. Don't check enable_font_backend. Delete all codes
15923 used only when USE_FONT_BACKEND is not defined.
15924 (w32font_open): Return a font-object. Make a font-object by
15925 font_make_object. Adjusted for the change of struct w32font_info.
15926 (w32font_close): Don't free struct font. Adjusted for the change
15927 of struct w32font_info.
15928 (w32font_encode_char, w32font_text_extents, w32font_draw):
15929 Adjusted for the change of struct w32font_info.
15930 (w32font_draw): Likewise.
15931 (w32font_list_internal): Return a list, not vector.
15932 (w32font_open_internal): Change the 4th arg to font-object.
15933 Adjusted for the change of struct w32font_info and font-object format.
15934 (add_font_name_to_list): Don't downcase names.
15935 (w32_enumfont_pattern_entity): Make a font-entity by
15936 font_make_entity. Adjusted for the format change of font-entity.
15937 Use FONT_SET_STYLE to set a style-related font property. If a
15938 font is scalable, set avgwidth property to 0. Set font-entity
15939 property by font_put_extra.
15940 (font_matches_spec): Adjusted for the format change of font-entity.
15941 (w32_weight_table, w32_decode_weight): New variables.
15942 (w32_encode_weight): New function.
15943 (fill_in_logfont): Adjusted for the format change of font-spec.
15944 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15945 weight value.
15946 (w32font_driver): Adjusted for the change of struct font_driver.
15947
15948 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15949 conditionals. Don't check enable_font_backend. Surround non-used
15950 code by "#ifdef OLD_FONT" and "endif".
15951 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15952 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15953
15954 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15955 conditionals. Don't check enable_font_backend. Delete all codes
15956 used only when USE_FONT_BACKEND is not defined. Surround non-used
15957 code by "#ifdef OLD_FONT" and "endif".
15958
15959 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15960 (uniscribe_open): Return value changed to font-object.
15961 Adjusted for the format change of font-object.
15962 (uniscribe_otf_capability): Adjusted for the change of struct font.
15963 (add_opentype_font_name_to_list): Don't downcase names.
15964 (uniscribe_font_driver): Adjusted for the change of struct
15965 font_driver.
15966
159672008-05-13 Chong Yidong <cyd@stupidchicken.com>
15968
15969 * dispnew.c (update_frame_1): Check if tty output is still valid
15970 before flushing it.
15971
159722008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15973
15974 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15975 to Gtk+ menus.
15976
159772008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15978
15979 * dired.c (file_name_completion): Tweak the code so as to always do it
15980 in a single pass. Tighten the scope of some variables.
15981
15982 * dired.c (Qdefault_directory): New var.
15983 (file_name_completion): Use it instead of Fexpand_file_name.
15984 (syms_of_dired): Initialize it.
15985
159862008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15987
15988 * fileio.c (double_dollars): Remove dead code.
15989
159902008-05-10 Eli Zaretskii <eliz@gnu.org>
15991
15992 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15993 Mention w32-get-true-file-attributes in doc string.
15994
15995 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15996
159972008-05-09 Glenn Morris <rgm@gnu.org>
15998
15999 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16000 2008-04-23.
16001
160022008-05-09 Eli Zaretskii <eliz@gnu.org>
16003
16004 Support for reporting owner and group of each file on MS-Windows:
16005 * dired.c (stat_uname, stat_gname): New functions, with special
16006 implementation for w32.
16007 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16008
16009 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16010 (dflt_group_name): New static variable.
16011 (dflt_group): Rename from the_group.
16012 (init_user_info): Init dflt_group fields. Get user's group name
16013 from LookupAccountSid.
16014 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16015 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16016 New initialization states.
16017 (globals_of_w32): Initialize them to zero. Initialize the default
16018 group name to "None".
16019 (GetFileSecurity_Name): New global var, the name of the function
16020 to call for GetFileSecurity.
16021 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16022 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16023 (get_file_security, get_security_descriptor_owner)
16024 (get_security_descriptor_group, is_valid_sid)
16025 (get_file_security_desc, get_rid, get_name_and_id)
16026 (get_file_owner_and_group): New functions.
16027 (stat): Use get_file_security_desc and get_file_owner_and_group to
16028 report the owner and primary group of each file. Don't ignore the
16029 high 32 bits of file's size, now that st_size is 64-bit wide.
16030 Fix test when to get true file attributes.
16031 (init_user_info): Use get_rid instead of equivalent inline code.
16032 (fstat): Don't ignore the high 32 bits of file's size.
16033
160342008-05-09 Chong Yidong <cyd@stupidchicken.com>
16035
16036 * image.c (png_load): Use correct bit-depth for setting background
16037 color.
16038
160392008-05-08 Eli Zaretskii <eliz@gnu.org>
16040
16041 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16042 epa-hook.elc.
16043
160442008-05-08 Juanma Barranquero <lekktu@gmail.com>
16045
16046 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16047
160482008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16049
16050 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16051 because the original parameters are in pure storage now.
16052 (mac_window): Remove unused params. Update callers.
16053
160542008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16055
16056 * lread.c (substitute_object_recurse): Use lower-level primitives.
16057 Don't signal errors when traversing sub-char-tables.
16058 Don't loop over all the possible characters when traversing char-tables.
16059
16060 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16061 just like we do in print.c.
16062
160632008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16064
16065 * minibuf.c (Ftry_completion): Remove code left over from when we used
16066 scmp instead of Fcompare_strings.
16067
160682008-05-04 Juanma Barranquero <lekktu@gmail.com>
16069
16070 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16071
160722008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16073
16074 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16075 Create bitmap context in native byte order.
16076
16077 * macterm.c (XDrawLine)
16078 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16079 context in native byte order.
16080
160812008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16082
16083 * config.in: Regenerate.
16084
16085 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16086 New definitions for Image I/O support.
16087 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16088 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16089 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16090 (mac_data_provider_release_data, image_load_image_io)
16091 [USE_MAC_IMAGE_IO]: New functions.
16092 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16093 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16094 (init_image_func_pointer) [MAC_OSX]: Remove function.
16095 (image_load_quartz2d) [MAC_OSX]: Check availability of
16096 CGImageCreateWithPNGDataProvider at compile time.
16097 Use lowercase `false' for boolean constant.
16098 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16099 Use image_load_image_io.
16100 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16101 Don't check MyCGImageCreateWithPNGDataProvider.
16102 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16103 Don't call init_image_func_pointer.
16104
16105 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16106
16107 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16108 Make variable non-static.
16109 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16110 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16111
16112 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16113 (RED_FROM_ULONG): Mask off higher bits.
16114 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16115
16116 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16117 Include AvailabilityMacros.h.
16118 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16119 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16120
161212008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16122
16123 * chartab.c (Fset_char_table_range): If range is t, really set all
16124 chars to that value.
16125
161262008-05-03 Eli Zaretskii <eliz@gnu.org>
16127
16128 * dired.c (Ffile_attributes): Don't allow the device number become
16129 negative.
16130
161312008-05-02 Daiki Ueno <ueno@unixuser.org>
16132
16133 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16134
161352008-05-02 Juri Linkov <juri@jurta.org>
16136
16137 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16138 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16139 DEFAULT argument as a list of default values in docstrings.
16140
161412008-05-01 Chong Yidong <cyd@stupidchicken.com>
16142
16143 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16144
161452008-05-01 Martin Rudalics <rudalics@gmx.at>
16146
16147 * dispnew.c (change_frame_size_1): Preserve small windows when
16148 shrinking frames by calling set_window_height|width with third
16149 arg 2.
16150
16151 * window.h (struct window): Replace field too_small_ok by field
16152 resize_proportionally.
16153
16154 * window.c (make_window): Initialize resize_proportionally.
16155 (enlarge_window): Temporarily set resize_proportionally to make
16156 sure that shrink_windows does scale the window proportionally.
16157 (shrink_windows): When window has resize_proportionally set try
16158 to shrink it proportionally by stealing from other windows.
16159 (struct saved_window, Fset_window_configuration)
16160 (compare_window_configurations): Handle resize_proportionally.
16161 (WINDOW_TOTAL_SIZE): New macro.
16162 (window_min_size, shrink_windows, size_window): Use it.
16163 (check_min_window_sizes): Remove. Invalid values of
16164 window-min-height|width are handled by window_min_size_2 now.
16165 (size_window, Fsplit_window, enlarge_window)
16166 (adjust_window_trailing_edge, grow_mini_window): Don't call
16167 check_min_window_sizes.
16168 (window_min_size_2, window_min_size_1, window_min_size):
16169 New argument safe_p for retrieving "safe" minimum sizes.
16170 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16171 (adjust_window_trailing_edge, grow_mini_window):
16172 Adjust arguments of window_min_size... functions.
16173 (shrink_windows): Argument min_size removed. New argument
16174 safe_p allows shrinking windows to their safe minimum sizes.
16175 Calculate minimum size and decide whether a window shall be
16176 deleted for each window individually.
16177 (size_window): When nodelete_p equals 2, tell shrink_windows to
16178 delete windows only if their new minimum size is no more safe.
16179 (shrink_window_lowest_first): Call window_min_size_1 to make
16180 sure to preserve modeline of bottom-most window when resizing
16181 the minibuffer.
16182 (Fset_window_configuration, Fcurrent_window_configuration)
16183 (compare_window_configurations): Do not handle
16184 window-min-height|width any more.
16185 (syms_of_window): Clarify window-min-height|width doc-strings.
16186
161872008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16188
16189 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16190 some more. Copy some of the code from Ftry_completions.
16191 Remove special case code that dates back to initial revision when the
16192 slash was only added when necessary and that can't trigger nowadays.
16193
161942008-04-27 Kenichi Handa <handa@m17n.org>
16195
16196 * font.c (font_prop_validate): Signal `error' instead of `font'.
16197
161982008-04-29 Jason Rumney <jasonr@gnu.org>
16199
16200 * w32fns.c (Fw32_battery_status): New defun.
16201 (syms_of_w32fns): Defsubr it.
16202
162032008-04-28 Andreas Schwab <schwab@suse.de>
16204
16205 * dired.c (file_name_completion): Fix another mixing of encoded
16206 and decoded names.
16207
162082008-04-28 Juanma Barranquero <lekktu@gmail.com>
16209
16210 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16211
162122008-04-27 Juanma Barranquero <lekktu@gmail.com>
16213
16214 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16215
162162008-04-27 Andreas Schwab <schwab@suse.de>
16217
16218 * dired.c (file_name_completion): Fix inappropriate mixing of
16219 encoded and decoded names.
16220
16221 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16222
16223 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16224
162252008-04-26 Eli Zaretskii <eliz@gnu.org>
16226
16227 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16228 2008-03-31, it's not needed anymore with `struct stat' definition
16229 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16230 for the same reasons.
16231
162322008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16233
16234 * m/sparc.h: Additional redefinitions for GNU/Linux.
16235
162362008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16237
16238 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16239 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16240 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16241 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16242 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16243 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16244 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16245 Likewise.
16246
16247 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16248 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16249 (mac_ax_number_of_characters): Add externs.
16250 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16251 [USE_MAC_TSM]: Likewise.
16252 (mac_handle_text_input_event) [MAC_OSX]:
16253 Handle kEventTextInputOffsetToPos for no active input area case.
16254 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16255 (mac_handle_document_access_event)
16256 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16257 (install_application_handler) [MAC_OSX]: Register handlers for
16258 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16259 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16260 Register mac_handle_document_access_event.
16261
16262 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16263 Make functions non-static.
16264
162652008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16266
16267 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16268 (read_file_name_completion_ignore_case, insert_default_directory)
16269 (Qdefault_directory): Move to minibuffer.el.
16270 (Fread_file_name): Call the new `read-file-name' instead.
16271
162722008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16273
16274 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16275 Make function non-static.
16276 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16277 Remove function.
16278 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16279 Move to mactoolbox.c.
16280 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16281
16282 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16283 (mac_rect_make): New macro.
16284
16285 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16286 instead of float.
16287 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16288 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16289 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16290 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16291 CGRectMake.
16292 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16293 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16294 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16295 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16296 instead of WindowRef in argument type.
16297 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16298 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16299 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16300 instead of DISPLAY. All uses changed.
16301 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16302 (x_calc_absolute_position): Simplify so as not to use
16303 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16304
16305 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16306 instead of WindowRef in argument type.
16307 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16308 [TARGET_API_MAC_CARBON]: Remove externs.
16309 (create_apple_event, mac_event_parameters_to_lisp)
16310 [TARGET_API_MAC_CARBON]: Add externs.
16311
16312 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16313 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16314 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16315 is clicked.
16316 (x_activate_menubar): Remove extern for saved_menu_event_location.
16317 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16318 Move from mac.c.
16319
163202008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16321
16322 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16323 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16324
163252008-04-23 Jason Rumney <jasonr@gnu.org>
16326
16327 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16328 attributes only for local files.
16329
16330 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16331 default to Qlocal.
16332
163332008-04-22 Juri Linkov <juri@jurta.org>
16334
16335 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16336 read-buffer-to-switch instead of using the letter "B".
16337
163382008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16339
16340 * fileio.c (Qdefault_directory): New variable.
16341 (Fread_file_name): Use it to pass `dir' to the completion functions.
16342
163432008-04-20 Chong Yidong <cyd@stupidchicken.com>
16344
16345 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16346
163472008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16348
16349 * keyboard.c (Vpre_help_message): Remove.
16350 (show_help_echo): Remove default C code.
16351
16352 * dired.c (directory_files_internal, file_name_completion):
16353 Only call ENCODE_FILE if the string is indeed decoded.
16354
163552008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16356
16357 * Makefile.in (TOOLKIT_DEFINES): Remove.
16358 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16359
163602008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16361
16362 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16363 (mactoolbox.o): New target.
16364
16365 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16366 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16367
16368 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16369 Use mac_set_frame_window_background instead of XSetWindowBackground.
16370 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16371 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16372 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16373 instead of SetWindowTitleWithCFString.
16374 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16375 Move function to mactoolbox.c.
16376 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16377 Use mac_set_window_modified instead of SetWindowModified.
16378 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16379 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16380 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16381 FrontNonFloatingWindow. Use mac_activate_window instead of
16382 ActivateWindow. Use mac_active_non_floating_window instead of
16383 ActiveNonFloatingWindow.
16384 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16385 Use mac_show_hourglass and mac_hide_hourglass.
16386 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16387 instead of GetGlobalMouse.
16388 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16389 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16390 Use mac_bring_window_to_front instead of BringToFront.
16391 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16392 mactoolbox.c.
16393 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16394 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16395 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16396 mactoolbox.c.
16397
16398 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16399 (XtPointer): Move typedef from macmenu.c.
16400 (enum button_type): Move enum from macmenu.c.
16401 (widget_value): Move typedef from macmenu.c.
16402 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16403 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16404 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16405 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16406 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16407 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16408 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16409 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16410 (Selection): Move typedef from macselect.c.
16411 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16412 macterm.c.
16413 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16414 (mac_is_window_collapsed, mac_bring_window_to_front)
16415 (mac_send_window_behind, mac_hide_window, mac_show_window)
16416 (mac_collapse_window, mac_front_non_floating_window)
16417 (mac_active_non_floating_window, mac_activate_window)
16418 (mac_move_window_structure, mac_move_window, mac_size_window)
16419 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16420
16421 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16422 (enum mac_menu_kind): Move enum to mactoolbox.c.
16423 (min_menu_id): Move variable to mactoolbox.c.
16424 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16425 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16426 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16427 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16428 [TARGET_API_MAC_CARBON]: Likewise.
16429 (XtPointer): Move typedef to macgui.h.
16430 (enum button_type): Move enum to macgui.h.
16431 (widget_value): Move typedef to macgui.h.
16432 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16433 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16434 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16435 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16436 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16437 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16438 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16439 (popup_activated_flag): Make variable non-static.
16440 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16441 (add_menu_item, fill_menu, dispose_menus):
16442 Move functions to mactoolbox.c.
16443 (restore_show_help_function, menu_target_item_handler)
16444 (install_menu_target_item_handler, mac_handle_dialog_event)
16445 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16446 [TARGET_API_MAC_CARBON]: Likewise.
16447 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16448 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16449 (find_and_call_menu_selection, name_is_separator): Make function
16450 non-static.
16451 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16452 to mactoolbox.c.
16453 (set_frame_menubar): Don't call install_menu_quit_handler.
16454 (menu_item_selection): New variable.
16455 (mac_menu_show): Use create_and_show_popup_menu.
16456 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16457 selection but set variable menu_item_selection. All uses changed.
16458 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16459 Call install_menu_quit_handler. Move to mactoolbox.c.
16460
16461 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16462 (Selection): Move typedef to macgui.h.
16463 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16464 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16465 Make variables non-static.
16466 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16467 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16468 Make functions non-static.
16469 (Vmac_service_selection) [MAC_OSX]: Likewise.
16470 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16471 (mac_valid_selection_target_p, mac_clear_selection)
16472 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16473 (mac_put_selection_value, mac_selection_has_target_p)
16474 (mac_get_selection_value, mac_get_selection_target_list)
16475 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16476 Move functions to mactoolbox.c.
16477 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16478 Likewise.
16479 (copy_scrap_flavor_data, mac_handle_service_event)
16480 (install_service_handler) [MAC_OSX]: Likewise.
16481 (syms_of_macselect) <Vmac_dnd_known_types>:
16482 Use mac_dnd_default_known_types.
16483
16484 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16485 Move to mactoolbox.c.
16486 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16487 (Fx_selection_owner_p): Add EXFUN.
16488 (install_window_handler, remove_window_handler, XSetWindowBackground):
16489 Remove externs.
16490 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16491 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16492 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16493 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16494 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16495 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16496 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16497 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16498 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16499 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16500 (mac_valid_selection_target_p, mac_clear_selection)
16501 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16502 (mac_put_selection_value, mac_selection_has_target_p)
16503 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16504 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16505 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16506 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16507 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16508 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16509 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16510 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16511 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16512
16513 * mactoolbox.c: New file.
16514
165152008-04-18 Jason Rumney <jasonr@gnu.org>
16516
16517 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16518
165192008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16520
16521 * character.c (Fmultibyte_char_to_unibyte):
16522 Return latin1 chars unchanged.
16523
16524 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16525 relocated if it points to `name'.
16526
165272008-04-17 Kenichi Handa <handa@m17n.org>
16528
16529 * data.c (Faset): Allow setting a multibyte character in an
16530 ASCII-only unibyte string.
16531
16532 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16533
165342008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16535
16536 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16537 done in config.h.
16538
165392008-04-16 Juanma Barranquero <lekktu@gmail.com>
16540
16541 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16542 (Fchar_direction): Add usage in the docstring.
16543
165442008-04-15 Chong Yidong <cyd@stupidchicken.com>
16545
16546 * keyboard.c (read_key_sequence): Remove always-true checks.
16547
165482008-04-14 Jason Rumney <jasonr@gnu.org>
16549
16550 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16551 compatibility struct, for better underline positioning.
16552
165532008-04-13 David Hansen <david.hansen@gmx.net>
16554
16555 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16556 string.
16557
165582008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16559
16560 * m/hp800.h (XUINT, XSET): Remove.
16561
165622008-04-12 Juanma Barranquero <lekktu@gmail.com>
16563
16564 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16565 previous change.
16566
165672008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16568
16569 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16570 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16571
165722008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16573
16574 * keymap.h (map_keymap_canonical): Declare.
16575 * xmenu.c (single_keymap_panes): Use it.
16576
165772008-04-11 Glenn Morris <rgm@gnu.org>
16578
16579 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16580 set the target's value to that of the alias.
16581
165822008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16583
16584 * term.c (set_tty_color_mode): Left over typo.
16585
165862008-04-10 Michael Albinus <michael.albinus@gmx.de>
16587
16588 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16589 only after check for file name handler functions. Signal, when
16590 native functionality is not supported.
16591 (syms_of_fileio): Declare it unconditionally.
16592
165932008-04-10 Jason Rumney <jasonr@gnu.org>
16594
16595 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16596 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16597
16598 * w32.c (logon_network_drive): Also logon to remote drives that
16599 are mapped to drive letters.
16600
166012008-04-10 Glenn Morris <rgm@gnu.org>
16602
16603 * xdisp.c (truncate-partial-width-windows): Doc fix.
16604
166052008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16606
16607 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16608 Move functions to minibuffer.el.
16609 (syms_of_fileio): Don't declare them.
16610
166112008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16612
16613 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16614 (syms_of_minibuf): Remove its initialization.
16615
16616 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16617
166182008-04-09 Juanma Barranquero <lekktu@gmail.com>
16619
16620 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16621
166222008-04-09 Jason Rumney <jasonr@gnu.org>
16623
16624 * makefile.w32-in (distclean): Delete makefile too.
16625 (maintainer-clean): New target.
16626
16627 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16628
16629 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16630 for new font backend and composite cases.
16631
166322008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16633
16634 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16635 Most of the code moved to run_timers.
16636 (do_pending_atimers): Call run_timers.
16637 (run_timers): New function.
16638
16639 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16640 run atimers.
16641
16642 * process.c (wait_reading_process_output): The same as above.
16643
166442008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16645
16646 * minibuf.c (last_exact_completion): Remove variable.
16647 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16648 (complete_and_exit_1, complete_and_exit_2)
16649 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16650 (Fdisplay_completion_list, display_completion_list_1)
16651 (Fminibuffer_completion_help, Fself_insert_and_exit)
16652 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16653 minibuffer.el.
16654 (syms_of_minibuf): Remove corresponding initializations.
16655
16656 * keyboard.c (Qdeactivate_mark): New var.
16657 (command_loop_1): Use it to call `deactivate-mark'.
16658 (syms_of_keyboard): Initialize it.
16659
16660 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16661 to another frame.
16662 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16663 Don't call set_tty_color_mode.
16664 (store_frame_param): Reset previous_frame rather than call
16665 set_tty_color_mode.
16666 * term.c (set_tty_color_mode): Rewrite.
16667 * dispextern.h (set_tty_color_mode): New type.
16668 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16669
166702008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16671
16672 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16673 for generic chars, which do not exist any more in emacs-unicode.
16674
166752008-04-08 Michael Albinus <michael.albinus@gmx.de>
16676
16677 * coding.c (detect_coding_emacs_mule)
16678 (Ffind_operation_coding_system): Fix typo.
16679
166802008-04-08 Jason Rumney <jasonr@gnu.org>
16681
16682 * w32uniscribe.c (SNAME): Extract only symbol name.
16683
16684 * w32font.h (struct w32_metric_cache): New struct.
16685 (w32font_info): Use it.
16686 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16687 (CACHE_BLOCKSIZE): New constants.
16688
16689 * w32font.c (Qja, Qko, Qzh): New symbols.
16690 (syms_of_w32font): Initialise them.
16691 (font_matches_spec): Use them to filter by language.
16692 (recompute_cached_metrics): Remove function.
16693 (compute_metrics, clear_cached_metrics): New functions.
16694 (w32font_encode_char): Use them to manage metric cache.
16695 (w32font_text_extents): Cache metrics for all glyphs on demand.
16696 Delay converting glyph indices to WORD until needed.
16697 (w32font_open_internal): Initialize metric cache to empty.
16698 (registry_to_w32_charset): Charset should always be a symbol.
16699 (fill_in_logfont, list_all_matching_fonts): Family should
16700 always be a symbol.
16701
167022008-04-06 Jason Rumney <jasonr@gnu.org>
16703
16704 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16705 Give up if glyph indices not supported. Use uniscribe obtained
16706 ABC widths for individual metrics. Map glyph clusters back to
16707 characters using fClusterStart flag. Return number of glyphs
16708 produced, not chars processed.
16709 (uniscribe_shape): Map char at FROM to current glyph.
16710
167112008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16712
16713 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16714 Use SetMenuItemHierarchicalMenu.
16715
167162008-04-05 Jason Rumney <jasonr@gnu.org>
16717
16718 * image.c (pbm_load): Allow color values up to 65535.
16719 Throw an error if max_color_idx is outside the supported range.
16720 Report an error when image size is invalid.
16721 Read two bytes at a time when raw images have max_color_idx above 255.
16722
aac0c6e3
MR
167232008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16724
16725 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16726 append "CCL: Quitted" when the CCL program is quitted.
16727 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16728
16729 * ccl.h (struct ccl_program): New member quit_silently.
16730
167312008-04-05 Chong Yidong <cyd@stupidchicken.com>
16732
16733 * search.c (compile_pattern_1): Treat non-nil and non-string of
16734 search-spaces-regexp as nil.
16735
16736 * minibuf.c (Fassoc_string): Tweak docstring.
16737
167382008-04-05 Eli Zaretskii <eliz@gnu.org>
16739
16740 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16741 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16742 2008-03-14 to force inode be positive.
16743
16744 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16745 _S_* ones, since we now use our own sys/stat.h.
16746 (stat, fstat): Don't mangle the inode number.
16747 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16748
167492008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16750
16751 * frame.h (struct frame): Give one more bit to `visible' since we use
16752 values larger than 1 to indicate obscured frames on ttys.
16753
16754 * keymap.c (Qkeymap_canonicalize): New var.
16755 (Fmap_keymap_internal): New fun.
16756 (describe_map): Use keymap-canonicalize.
16757
16758 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16759 (Fundo_boundary): Set them.
16760 (syms_of_undo): Initialize them.
16761 (record_point): Use them instead of last_point_position*.
16762 (last_undo_buffer): Change type.
16763
167642008-04-04 Jason Rumney <jasonr@gnu.org>
16765
16766 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16767 (recompute_cached_metrics): Don't set ascent and descent per char.
16768
16769 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16770 (uniscribe_check_otf): Add GC protection before consing.
16771 Rearrange loop for counting features.
16772
167732008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16774
16775 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16776 buffer with byte-size of source buffer.
16777
167782008-04-03 Chong Yidong <cyd@stupidchicken.com>
16779
16780 * callint.c (Fcall_interactively): Handle temporary region even
16781 when shift-select-mode is off.
16782
167832008-04-03 Jason Rumney <jasonr@gnu.org>
16784
16785 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16786
167872008-04-03 Kenichi Handa <handa@m17n.org>
16788
16789 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16790 (CATEGORY_MASK_UTF_16): Likewise.
16791 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16792 binary file.
16793 (detect_coding): Add null-byte detection for a binary file.
16794 (detect_coding_system): Likewise.
16795
167962008-04-03 Jason Rumney <jasonr@gnu.org>
16797
16798 * w32uniscribe.c: New file.
16799
16800 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16801
16802 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16803
16804 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16805 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16806 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16807 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16808 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16809 (Qphonetic): New symbols.
16810 (syms_of_w32font): Initialize them.
16811 (font_supported_scripts): Use them.
16812 (w32font_list_family): List all charsets.
16813 (w32font_text_extents, recompute_cached_metrics): Fix metric
16814 calculations.
16815 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16816 Give opentype fonts their own format.
16817 (font_matches_spec): New arguments backend and logfont.
16818 Handle :otf spec for uniscribe backend.
16819 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16820 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16821
16822 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16823 font backend.
16824 (globals_of_w32fns): Initialize uniscribe font backend.
16825
16826 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16827 dependencies.
16828 (w32uniscribe.$(O)): New file to build.
16829 (FONT_OBJ): Include w32uniscribe.$(O).
16830 (LIBS): Add uniscribe libraries.
16831
16832 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16833
168342008-04-02 Chong Yidong <cyd@stupidchicken.com>
16835
16836 * callint.c (Vshift_select_mode): New var.
16837 (Finteractive): Document new ^ spec.
16838 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16839 is present.
16840
16841 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16842 (command_loop_1): Avoid running the direct display versions of
16843 forward-char and backward-char if shift-selection may occur.
16844 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16845 shift-translation takes place.
16846
16847 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16848 avoid clobbering by define-minor-mode.
16849
16850 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16851 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16852
16853 * syntax.c (Fforward_word): Add ^ interactive spec.
16854
16855 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16856 (Fscroll_right): Add ^ interactive spec.
16857
168582008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16859
16860 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16861
16862 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16863
16864 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16865
168662008-03-31 Juri Linkov <juri@jurta.org>
16867
16868 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16869
168702008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16871
16872 * gtkutil.c (xg_set_geometry): Fix indentation.
16873 (xg_resize_outer_widget): Remove.
16874 (x_wm_size_hint_off): Fix indentation.
16875 (xg_frame_set_char_size): Call flush_and_sync after
16876 gtk_window_resize.
16877 (x_wm_set_size_hint): Pass NULL as geometry window to
16878 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16879 Add menu bar and tool bar height to base height.
16880 (xg_update_frame_menubar, free_frame_menubar)
16881 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16882 (update_frame_tool_bar, free_frame_tool_bar):
16883 Change xg_resize_outer_widget to xg_frame_set_char_size.
16884
168852008-03-30 Michael Albinus <michael.albinus@gmx.de>
16886
16887 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16888 (Fdbus_call_method): New parameter TIMEOUT.
16889 (dbus-send-signal): Optimize UNGCPRO call.
16890
168912008-03-29 Juri Linkov <juri@jurta.org>
16892
16893 * window.c (Fdisplay_buffer): Move call to
16894 Vsplit_window_preferred_function out of conditions that check
16895 if window is eligible for vertical splitting.
16896 When Vsplit_window_preferred_function is non-nil, call it and use
16897 its non-nil return value as window. Otherwise, continue doing
16898 vertical splitting using Fsplit_window with arg horflag=nil.
16899 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16900 default value from `split-window' to nil.
16901
169022008-03-29 Juri Linkov <juri@jurta.org>
16903
16904 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16905 for interactive code letters 'b' and 'B'.
16906
169072008-03-29 Eli Zaretskii <eliz@gnu.org>
16908
16909 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16910 multibyte string.
16911
169122008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16913
16914 * keyboard.c (pending_funcalls): New var.
16915 (timer_check): Run it.
16916 (syms_of_keyboard): Initialize it.
16917 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16918 (Vdelete_terminal_functions): New vars.
16919 (syms_of_terminal): Initialize them.
16920 (Fdelete_terminal): Run delete-terminal-functions.
16921 * xdisp.c (safe_eval): Rewrite.
16922 (safe_call2): New fun.
16923 * frame.c (Qdelete_frame_functions): New var.
16924 (syms_of_frame): Initialize it.
16925 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16926 * lisp.h (safe_call2, pending_funcalls): Declare.
16927
169282008-03-28 Andreas Schwab <schwab@suse.de>
16929
16930 * indent.c (Fmove_to_column): Move declaration before statements.
16931
169322008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16933
16934 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16935 (struct frame): Use bit fields for boolean vars.
16936
16937 * process.c (server_accept_connection): Simplify naming.
16938 (emacs_get_tty_pgrp): Use SDATA.
16939
16940 * coding.c (decode_coding_object): Fix last change.
16941
169422008-03-27 Jason Rumney <jasonr@gnu.org>
16943
16944 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16945
169462008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16947
16948 * charset.c (Fdefine_charset_internal): Change the way of
16949 registering charsets in Vcharset_order_list.
16950 (syms_of_charset): Make the charset `eight-bit' supplementary.
16951
169522008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16953
16954 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16955 operations, to avoid having the difference between pointers
16956 overflow.
16957
169582008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16959
16960 * indent.c (check_display_width): New fun.
16961 (scan_for_column): Use it.
16962
16963 * data.c (syms_of_data): Mark most-positive-fixnum and
16964 most-negative-fixnum as constants.
16965
16966 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16967
16968 * indent.c (scan_for_column): Extract from current_column_1.
16969 Merge with the same code from Fmove_to_column.
16970 (current_column_1, Fmove_to_column): Use it.
16971
169722008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16973
16974 * keymap.c (map_keymap_internal): New fun.
16975 (map_keymap): Use it.
16976 (Fmap_keymap_internal): New fun.
16977 (Fmap_keymap): Remove left-out test from before make_save_value.
16978
16979 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16980
16981 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16982 Use XCAR/XCDR.
16983
16984 * process.h (struct Lisp_Process): Remove filter_multibyte.
16985 * process.c (QCfilter_multibyte): Remove.
16986 (setup_process_coding_systems): Don't use filter_multibyte.
16987 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16988 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16989 (Fset_process_filter_multibyte): Change the coding-system to
16990 approximate the previous behavior.
16991 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16992 coding-system.
16993
16994 * coding.c (decode_coding_object): When not decoding into a buffer,
16995 obey the coding system's preference of (uni|multi)byte.
16996
169972008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16998
16999 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17000 every char is changed and has a different byte-length.
17001 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17002 Fix int -> EMACS_INT.
17003
170042008-03-23 David Hansen <david.hansen@gmx.net>
17005
17006 * dbusbind.c (xd_read_message): Remove extra copying of message
17007 strings. Check for NULL `interface' or `member'.
17008
170092008-03-22 Eli Zaretskii <eliz@gnu.org>
17010
17011 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17012 cFileName a file name that includes `?' characters, use the 8+3
17013 alias in cAlternateFileName instead.
17014
170152008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17016
17017 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17018
170192008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17020
17021 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17022 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17023 work on current_buffer only instead (that was already the case
17024 for some of the code anyway).
17025 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17026 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17027 (SET_PT, SET_PT_BOTH): Adjust.
17028 * intervals.h (set_point, temp_set_point, set_point_both)
17029 (temp_set_point_both): Remove redundant declarations.
17030
170312008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17032
17033 * fileio.c (Finsert_file_contents):
17034 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17035 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17036 when buffer != current_buffer anyway.
17037
170382008-03-20 Andreas Schwab <schwab@suse.de>
17039
17040 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17041 as default.
17042
170432008-03-19 Jason Rumney <jasonr@gnu.org>
17044
17045 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17046 (syms_of_w32fns): Initialize them.
17047 (HOURGLASS_ID): New constant.
17048 (x_window_to_frame): Don't check hourglass_window.
17049 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17050 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17051 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17052 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17053 Only change the cursor if hourglass is not active.
17054 (Fx_create_frame): Initialize frame's current_cursor.
17055 (hourglass_atimer): Remove.
17056 (hourglass_started): New function.
17057 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17058 (show_hourglass): Adapt to w32, changing argument to frame.
17059
17060 * w32term.h (struct w32_output): Remove hourglass_window.
17061 Add current_cursor.
17062
17063 * eval.c (call_debugger, Fsignal):
17064 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17065 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17066 (Fexecute_extended_command, cancel_hourglass_unwind):
17067 * minibuf.c (read_minibuf):
17068 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17069
170702008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17071
17072 * window.c (run_funs): New fun.
17073 (run_window_configuration_change_hook): Use it to run the buffer-local
17074 and the global part of the hook.
17075
17076 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17077 (unwind_format_mode_line): Restore selected window.
17078 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17079
170802008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17081
17082 * editfns.c (Fchar_equal): Check they are valid characters.
17083
17084 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17085
170862008-03-17 Andreas Schwab <schwab@suse.de>
17087
17088 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17089 against a charset.
17090
17091 * lisp.h (Fbuffer_list): Declare.
17092
170932008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17094
aac0c6e3
MR
17095 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17096 handlebox_widget is != 0.
17097
170982008-03-16 Juri Linkov <juri@jurta.org>
17099
17100 * callint.c (Fcall_interactively): For interactive code letters
17101 'b' and 'B' put the buffer list into the list of default "future"
17102 values of the minibuffer.
17103
171042008-03-16 Andreas Schwab <schwab@suse.de>
17105
17106 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17107 modifiers.
17108
17109 * regex.c (re_match_2_internal): Correct matching of a charset
17110 against latin-1 characters.
17111
171122008-03-16 Kenichi Handa <handa@m17n.org>
17113
17114 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17115 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17116 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17117 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17118 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17119 CHAR_STRING_ADVANCE.
17120 (produce_chars): Fix for the case that the source and the
17121 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17122 instead of CHAR_STRING_ADVANCE.
17123 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17124 STRING_CHAR_ADVANCE.
17125
171262008-03-15 Andreas Schwab <schwab@suse.de>
17127
17128 * regex.c (re_match_2_internal): Correct matching of eight bit
17129 characters in unibyte strings.
17130
171312008-03-15 Martin Rudalics <rudalics@gmx.at>
17132
17133 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17134 at end of range when it coincides with the end of the buffer.
17135
171362008-03-14 Eli Zaretskii <eliz@gnu.org>
17137
17138 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17139
17140 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17141
171422008-03-14 Jason Rumney <jasonr@gnu.org>
17143
17144 * editfns.c (initial_tz): New variable.
17145 (syms_of_editfns): Initialize it.
17146 (Fset_time_zone_rule): Set it when first called.
17147 Use it when TZSTRING is nil.
17148
17149 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17150 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17151 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17152 (globals_of_w32fns): Initialize them.
17153 (compute_tip_xy): Use them to position tooltips.
17154
171552008-03-14 Glenn Morris <rgm@gnu.org>
17156
17157 * emacs.c (main): Revert previous change.
17158 (standard_args): Revert -internal-script back to -scriptload,
17159 and remove the long-option form.
17160
171612008-03-13 Glenn Morris <rgm@gnu.org>
17162
17163 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17164 Remove option -enable-font-backend.
17165
171662008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17167
17168 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17169
171702008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17171
17172 * xterm.c (x_connection_closed): For GTK: If this is the last
17173 terminal just exit without closing the display.
17174
171752008-03-11 Jason Rumney <jasonr@gnu.org>
17176
17177 * w32font.c (w32font_full_name): Use floor to round.
17178
f0131492 171792008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17180
17181 * sound.c (alsa_configure): Declare vol at beginning of block.
17182
17183 * fontset.c (Ffontset_info): Remove extra semicolon.
17184
171852008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17186
17187 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17188 size of resulting string.
17189
171902008-03-10 Jason Rumney <jasonr@gnu.org>
17191
17192 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17193
171942008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17195
17196 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17197 Don't pretend as if characters with display property haven't been
17198 consumed for string-replacing-string case.
17199
172002008-03-08 Kim F. Storm <storm@cua.dk>
17201
17202 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17203 (get_next_display_element, next_element_from_string)
17204 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17205
172062008-03-08 Andreas Schwab <schwab@suse.de>
17207
17208 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17209
172102008-03-06 Jason Rumney <jasonr@gnu.org>
17211
17212 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17213 when charset not specified. Only translate ANSI to unicode when
17214 font_type is truetype.
17215 (w32font_coverage_ok): New function.
17216 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17217
172182008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17219
17220 * lread.c (Fread_char): Resolve modifiers.
17221 (Fread_char_exclusive): Likewise.
17222
17223 * character.c (char_resolve_modifier_mask): New function.
17224 (char_string): Use char_resolve_modifier_mask.
17225 (Fchar_resolve_modifiers): New function.
17226 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17227 function.
17228
172292008-03-04 Jason Rumney <jasonr@gnu.org>
17230
17231 * makefile.w32-in: Always include w32font.c in the build.
17232 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17233
172342008-03-04 Andreas Schwab <schwab@suse.de>
17235
17236 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17237 (versionclean): Likewise.
17238
172392008-03-04 Juanma Barranquero <lekktu@gmail.com>
17240
17241 * .cvsignore: Add oo.
17242
172432008-03-03 Andreas Schwab <schwab@suse.de>
17244
17245 * coding.c (decode_coding_object): Inhibit gap shrinking while
17246 decoding in place.
17247
172482008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17249
17250 * w32term.c: Remove unused include "gnu.h".
17251 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17252
17253 * gnu.h: Rename to ...
17254 * emacs-icon.h: ... this.
17255 * xterm.c: Use emacs-icon.h instead of gnu.h.
17256 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17257
172582008-03-03 Juanma Barranquero <lekktu@gmail.com>
17259
17260 * w32font.c: Include math.h.
17261
172622008-03-03 Jason Rumney <jasonr@gnu.org>
17263
17264 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17265 Compute options separately.
17266 (w32font_open_internal): Set glyph_idx before caching metrics.
17267
17268 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17269 Define if system headers don't.
17270 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17271 (w32font_encode_char): Don't declare here.
17272
17273 * w32font.c (Quniscribe, QCformat): New symbols.
17274 (syms_of_w32font): Define them.
17275 (w32font_has_char): Indicate uncertainty.
17276 (w32font_encode_char): Encode as glyph point. Make static.
17277 (recompute_cached_metrics): New function.
17278 (w32font_open_internal): Use it. Set font to use glyph points
17279 initially. Set format based on type of font.
17280 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17281 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17282 on it. Set format based on information available here.
17283 (add_font_entity_to_list): Identify backend based on opentype_only.
17284
172852008-03-02 Andreas Schwab <schwab@suse.de>
17286
17287 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17288
17289 * coding.c (decode_coding_big5, produce_chars):
17290 Fix typos in last change.
17291
172922008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17293
17294 * gnu.h: New icon.
17295
172962008-03-02 Kenichi Handa <handa@m17n.org>
17297
17298 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17299 `dos', don't decode '\r' if that is the last in the source.
17300 (decode_coding_utf_16, decode_coding_emacs_mule)
17301 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17302 (decode_coding_raw_text, decode_coding_charset): Likewise.
17303 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17304
173052008-03-01 Jason Rumney <jasonr@gnu.org>
17306
17307 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17308
173092008-03-01 Kim F. Storm <storm@cua.dk>
17310
17311 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17312
173132008-03-01 Jason Rumney <jasonr@gnu.org>
17314
17315 * w32font.c (w32font_full_name): New function.
17316 (w32font_open_internal): Use it.
17317
173182008-03-01 Kim F. Storm <storm@cua.dk>
17319
17320 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17321
173222008-03-01 Jason Rumney <jasonr@gnu.org>
17323
17324 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17325
173262008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17327
17328 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17329 xg_frame_resized when the event is for the edit widget.
17330
17331 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17332
17333 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17334 set_char_size.
17335 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17336 operations on widgets here. Just set frame size if needed.
17337 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17338 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17339 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17340 the whole frame.
17341 (xg_create_tool_bar): Move attachment of the tool bar to
17342 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17343 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17344
173452008-03-01 Jason Rumney <jasonr@gnu.org>
17346
17347 * w32fns.c (w32_msg_pump): Disable debug code.
17348
173492008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17350
17351 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17352
173532008-02-29 Chong Yidong <cyd@stupidchicken.com>
17354
17355 * xdisp.c (next_overlay_string): Don't set
17356 overlay_strings_at_end_processed_p if we're currently reading from
17357 a display string.
17358
173592008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17360
17361 * xdisp.c (get_overlay_strings_1): Fix typo.
17362
173632008-02-29 Chong Yidong <cyd@stupidchicken.com>
17364
17365 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17366
173672008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17368
17369 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17370
17371 * xdisp.c (display_mode_element): Cancel the previous change.
17372 (decode_mode_spec): Likewise.
17373 (handle_auto_composed_prop): Don't make composition if it->string
17374 is a string.
17375
173762008-02-27 Kim F. Storm <storm@cua.dk>
17377
17378 * lisp.h (GLYPH): Change type from int to struct with separate char
17379 and face_id members.
17380 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17381 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17382 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17383 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17384 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17385 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17386 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17387 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17388 handle new Lisp glyph code encoding, either an integer or a cons.
17389
17390 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17391 (GLYPH_ALIAS): Delete.
17392 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17393 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17394 (GLYPH_FROM_CHAR): Replace macro by ...
17395 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17396
17397 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17398 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17399 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17400 (GLYPH_INVALID_P): New macro.
17401 (spec_glyph_lookup_face): Update prototype.
17402
17403 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17404 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17405 new glyph code encoding.
17406 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17407 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17408
17409 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17410 Adapt to new glyph type and new glyph code encoding.
17411
17412 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17413
17414 * indent.c (current_column, current_column_1, Fmove_to_column)
17415 (compute_motion): Adapt to new glyph code encoding.
17416
17417 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17418
174192008-02-27 Chong Yidong <cyd@stupidchicken.com>
17420
17421 * process.c (wait_reading_process_output): Check for window
17422 changes caused by timers.
17423 Suggested by Johan Bockgård.
17424
174252008-02-27 Glenn Morris <rgm@gnu.org>
17426
17427 * emacs.c (USAGE1): Add `--disable-font-backend'.
17428
174292008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17430
17431 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17432 is made to the buffer.
17433
174342008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17435
17436 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17437 (face_at_string_position):
17438 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17439 (face_at_string_position):
17440 * xdisp.c (display_string, next_overlay_change):
17441 * buffer.h (overlays_at):
17442 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17443 Update callers.
17444
174452008-02-26 Chong Yidong <cyd@stupidchicken.com>
17446
17447 * editfns.c (Fformat): Doc fix.
17448
174492008-02-26 Juanma Barranquero <lekktu@gmail.com>
17450
17451 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17452 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17453 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17454
174552008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17456
17457 * buffer.c (Fbuffer_swap_text): New function.
17458 (syms_of_buffer): Defsubr it.
17459
174602008-02-25 Chong Yidong <cyd@stupidchicken.com>
17461
17462 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17463
174642008-02-25 Jason Rumney <jasonr@gnu.org>
17465
17466 * w32font.c (w32font_draw): Draw one character at a time when padding.
17467
174682008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17469
17470 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17471 Handle a nil arg. Use run_window_configuration_change_hook.
17472 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17473 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17474 Use run_window_configuration_change_hook.
17475
174762008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17477
17478 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17479 1-pixel width.
17480
174812008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17482
17483 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17484 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17485 if the glyph in the font is zero pixel with.
17486
17487 * dispextern.h (struct glyph_string): New member padding_p.
17488
17489 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17490
17491 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17492
17493 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17494
17495 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17496
17497 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17498
174992008-02-25 Jason Rumney <jasonr@gnu.org>
17500
17501 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17502
175032008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17504
17505 Allow fine-grained image-cache flushing.
17506 * dispextern.h (struct image): Add `dependencies' field.
17507 (clear_image_caches): Change arg to Lisp_Object.
17508 * image.c (make_image): Initialize `dependencies' field.
17509 (clear_image_cache): Change arg to allow fine-grained flushing.
17510 Perform the flush even if image-cache-eviction-delay is nil.
17511 (clear_image_caches): Change arg to Lisp_Object.
17512 (Fclear_image_cache): Expand meaning of the argument.
17513 (mark_image): Mark `dependencies' field.
17514 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17515 (lface_hash): Use XHASH rather than XFASTINT.
17516 (face_at_buffer_position): Fix int -> EMACS_INT position.
17517 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17518 (select_frame_for_redisplay): Remove code duplication.
17519 (redisplay_internal): Adapt arg to call to clear_image_caches.
17520
175212008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17522
17523 * s/vms4-0.h:
17524 * s/vms4-2.h:
17525 * s/vms4-4.h:
17526 * s/vms5-5.h: Remove, unused.
17527
17528 * s/irix5-2.h:
17529 * s/irix6-0.h:
17530 * s/riscos5.h:
17531 * s/mach-bsd4-3.h:
17532 * m/mips4.h: Remove files for obsolete systems.
17533
17534 * Makefile.in:
17535 * filelock.c:
17536 * unexmips.c:
17537 * m/hp9000s300.h:
17538 * m/iris4d.h:
17539 * s/aix3-1.h:
17540 * s/hpux.h:
17541 * s/msdos.h:
17542 * s/usg5-0.h:
17543 * s/usg5-2-2.h:
17544 * s/usg5-2.h:
17545 * s/usg5-3.h: Remove references to obsolete variables.
17546
17547 * s/irix5-0.h: Remove, move all the contents ...
17548 * s/irix6-5.h: ... here. Simplify.
17549 * config.in: Regenerate.
17550
175512008-02-24 Jason Rumney <jasonr@gnu.org>
17552
17553 * w32term.c (x_draw_glyph_string_background): Clear the background
17554 manually when cleartype is in use.
17555 (x_draw_glyph_string_foreground): Draw text transparently when
17556 cleartype is in use.
17557
17558 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17559 a font into it unless we have to.
17560
175612008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17562
17563 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17564 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17565
aac0c6e3
MR
175662008-02-18 Jason Rumney <jasonr@gnu.org>
17567
17568 * w32fns.c (Fw32_shell_execute): Encode parameters.
17569
175702008-02-09 Eli Zaretskii <eliz@gnu.org>
17571
17572 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17573
175742008-02-05 Juanma Barranquero <lekktu@gmail.com>
17575
17576 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17577
175782008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17579
17580 * xterm.c (x_set_offset): Don't change the gravity if
17581 CHANGE_GRAVITY is -1.
17582
175832008-02-23 Chong Yidong <cyd@stupidchicken.com>
17584
17585 * fileio.c (auto_save_error_occurred): New var.
17586 (auto_save_error): Set it.
17587 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17588 error occurred.
17589
175902008-02-23 Eli Zaretskii <eliz@gnu.org>
17591
17592 * w32.c (globals_of_w32): Add initializations for
17593 g_b_init_get_sid_sub_authority and
17594 g_b_init_get_sid_sub_authority_count.
17595
175962008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17597
17598 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17599 (font_parse_xlfd): Use them for sanity check.
17600 (Finternal_set_font_style_table): Make sure the table is bijective.
17601
17602 Consolidate the image_cache to the terminal struct.
17603 * termhooks.h (P_): Remove redundant def.
17604 (struct terminal): New field `image_cache'.
17605 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17606 of FRAME_X_IMAGE_CACHE.
17607 * xterm.h (struct x_display_info): Remove image_cache field.
17608 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17609 * w32term.h (struct w32_display_info): Remove image_cache field.
17610 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17611 * macterm.h (struct mac_display_info): Remove image_cache field.
17612 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17613 * xterm.c (x_term_init):
17614 * w32term.c (w32_term_init):
17615 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17616 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17617 Remove declarations.
17618 (clear_image_caches, mark_image_cache): New declarations.
17619 * xfaces.c (clear_face_cache):
17620 * xdisp.c (redisplay_internal): Use clear_image_caches.
17621 * image.c (clear_image_cache): Don't check that a frame is on
17622 a window-system before checking if it shares the same cache.
17623 (clear_image_caches): New function.
17624 (Fclear_image_cache): Use it.
17625 (mark_image): Move from allo.c.
17626 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17627 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17628 (mark_object): Don't call mark_image_cache for frames.
17629 (mark_terminals): Call mark_image_cache.
17630
17631 * lisp.h (Fdelete_terminal): Declare.
17632
17633 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17634 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17635 wrong_type_argument.
17636
176372008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17638
17639 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17640 malayalam.el, and tamil.el. Add sinhala.el.
17641
176422008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17643
17644 * xterm.c (x_connection_closed): Consolidate identical tests.
17645 (x_delete_terminal): Don't crash if called via x_connection_closed.
17646
176472008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17648
17649 * xdisp.c (decode_mode_spec): New arg string.
17650 (display_mode_element): Adjust for the above change.
17651
176522008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17653
17654 * callint.c (Fcall_interactively): Use AREF.
17655
176562008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17657
17658 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17659
176602008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17661
17662 * xfns.c (Fx_show_tip): Set string to " " if empty.
17663
176642008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17665
17666 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17667 with Qt.
17668
176692008-02-17 Kenichi Handa <handa@m17n.org>
17670
17671 * ftfont.c (ftfont_shape): Return Lispy number.
17672
17673 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17674 for GCs.
17675 (Finternal_set_font_selection_order): Call font_update_sort_order
17676 only when enable_font_backend is set.
17677 (realize_x_face): Set face->font_info to that of default face only
17678 when enable_font_backend is set.
17679
17680 * xdisp.c (handle_composition_prop): Set it->c to the fist
17681 character of the composed region.
17682 (fill_composite_glyph_string): Set base_face->font_info to
17683 s->font_info. Get a face for ascii from base_face->ascii_face.
17684 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17685 with a face already decided.
17686 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17687 non-negative.
17688 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17689 call font_prepare_composition unconditionally.
17690
17691 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17692
17693 * xterm.h (struct x_display_info): New member font.
17694
17695 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17696 (x_set_mouse_face_gc, x_new_font): Likewise.
17697 (x_term_init): Setup display_info->font.
17698 (x_delete_terminal): Free display_info->font.
17699
17700 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17701
17702 * ftxfont.c (ftxfont_default_fid): Delete it.
17703 (ftxfont_open): Set xfont->fid to 0.
17704 (ftxfont_end_for_frame): Clear data specific to the frame and the
17705 font-driver.
17706
17707 * xftfont.c (xftfont_default_fid): Delete it.
17708 (xftfont_open): Set xfont->fid to 0.
17709
17710 * fontset.c (FONTSET_OBJLIST): New macro.
17711 (fontset_find_font): Update font-object list of the fontset.
17712 (free_realized_fontset): New function.
17713 (free_face_fontset): Call free_realized_fontset.
17714 (Ffont_info): Call font_close_object only when enable_font_backend
17715 is set.
17716
17717 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17718 [HAVE_NTGUI]: Include w32term.h.
17719 [MAC_OS]: Include macterm.ch.
17720 (font_otf_ValueRecord): Use make_number.
17721 (font_finish_cache): Fix handling of reference count.
17722 (font_clear_cache): Update num_fonts.
17723 (font_open_entity): Update smallest_char_width and
17724 smallest_font_height of the frame.
17725 (font_close_object): Update num_fonts.
17726 (Fclear_font_cache): Fix finding the target cache data.
17727
177282008-02-16 Glenn Morris <rgm@gnu.org>
17729
17730 * fontset.c (Finternal_char_font): Fix compilation warning.
17731
177322008-02-16 Eli Zaretskii <eliz@gnu.org>
17733
17734 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17735 instead of char arrays. Enlarge the size of array passed to
17736 get_token_information.
17737
17738 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17739 warnings.
17740
177412008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17742
17743 * .gdbinit: Don't set `args', it breaks gdb --args.
17744
177452008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17746
17747 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17748 within a narrowed buffer.
17749
177502008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17751
17752 * coding.c (decode_coding_object, encode_coding_object):
17753 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17754
177552008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17756
17757 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17758 hardcoding 1.
17759 (detect_coding_system):
17760 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17761 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17762 * insdel.c (insert_from_gap):
17763 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17764 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17765 (string_to_multibyte):
17766 * character.c (chars_in_text, multibyte_chars_in_text):
17767 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17768
17769 * character.h (FETCH_STRING_CHAR_ADVANCE)
17770 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17771 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17772 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17773
17774 * casefiddle.c (casify_region): Only call after-change and composition
17775 functions on the part of the region that was changed.
17776
17777 * keyboard.c (read_avail_input):
17778 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17779
177802008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17781
17782 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17783 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17784
177852008-02-11 Juanma Barranquero <lekktu@gmail.com>
17786
17787 * w32menu.c (push_submenu_start, push_submenu_end)
17788 (push_left_right_boundary, push_menu_pane, push_menu_item):
17789 * keyboard.c (read_key_sequence): Don't pass args with side effects
17790 to AREF, it fails when compiling with -DENABLE_CHECKING.
17791
177922008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17793
17794 * Makefile.in (${lispsource}international/charprop.el):
17795 Delete this target.
17796
17797 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17798 emacs-unicode-2.
17799
178002008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17801
17802 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17803
178042008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17805
17806 * frame.c (Qnoelisp): New symbol.
17807 (syms_of_frame): Initialize it.
17808 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17809 harmless Elisp code, from a strong `force' from x_connection_closed.
17810 * frame.h (Qnoelisp): Declare.
17811 * xterm.c (x_connection_closed): Pass `noelisp'.
17812
17813 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17814 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17815 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17816 rather than `int' for the type of `type'.
17817
178182008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17819
17820 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17821
17822 * Makefile.in (GNUC): Remove support for gcc-1.x.
17823
178242008-02-10 Richard Stallman <rms@gnu.org>
17825
17826 * lisp.h (ASET): Use AREF, not ASLOT.
17827
178282008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17829
17830 * lisp.h (ASET): Check bounds.
17831
178322008-02-10 Glenn Morris <rgm@gnu.org>
17833
17834 * buffer.c (mode-name): Doc fix.
17835
178362008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17837
17838 * Makefile.in:
17839 * emacs.c:
17840 * gmalloc.c:
17841 * keyboard.c:
17842 * lisp.h:
17843 * m/ibm370aix.h:
17844 * process.c:
17845 * regex.c:
17846 * s/hpux.h:
17847 * sysdep.c:
17848 * sysselect.h:
17849 * systty.h:
17850 * unexec.c:
17851 * w32term.c:
17852 * xsmfns.c:
17853 * xterm.c: Remove code that deals with obsolete variables.
17854
17855 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17856
17857 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17858 nothing else needs it anymore.
17859
178602008-02-09 Eli Zaretskii <eliz@gnu.org>
17861
17862 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17863 instead of unibyte_char_to_multibyte.
17864
178652008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17866
17867 * s/gnu-linux.h: Remove commented out code.
17868
17869 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17870
17871 * Makefile.in: Update what RMS says about using autoconf.
17872 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17873 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17874 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17875 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17876
178772008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17878
17879 * keymap.c (Fkey_description): Move side effect outside of macro call.
17880
17881 * xfaces.c (Finternal_make_lisp_face):
17882 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17883
17884 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17885 (syms_of_fontset): Use ASET.
17886
17887 * fns.c (concat): Move side effect outside of macro call.
17888 (hash_clear): Use ASET.
17889
178902008-02-08 Richard Stallman <rms@gnu.org>
17891
17892 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17893 If FORCE, and frame has a surrogate minibuffer for another frame,
17894 delete the other frame first.
17895
178962008-02-07 Timo Savola <timo.savola@iki.fi>
17897
17898 * xterm.c (x_detect_focus_change): Handle embed client message.
17899 (handle_one_xevent): Ditto.
17900 (handle_one_xevent): If embedded and we get a button press/release,
17901 request focus.
17902 (xembed_set_info, xembed_send_message): New functions.
17903 (x_make_frame_visible): Call xembed_set_info if embedded.
17904 (x_make_frame_invisible): Call xembed_set_info if embedded.
17905 (x_term_init): Initialize Xatom_XEMBED.
17906 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17907 (x_iconify_frame): Ditto.
17908
17909 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17910 (enum xembed_info, enum xembed_message, enum xembed_focus)
17911 (enum xembed_modifier, enum xembed_accelerator): New.
17912 (xembed_set_info, xembed_send_message): Declare.
17913 (FRAME_X_EMBEDDED_P): New.
17914
17915 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17916 gtk_plug_new.
17917
17918 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17919 window ID of a frame.
17920 (x_window): Reparent frame if embedded.
17921 (Fx_create_frame): Don't set border width if embedded.
17922
17923 * emacs.c (USAGE3): Add --parent-id.
17924 (standard_args): Ditto.
17925
179262008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17927
17928 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17929
179302008-02-07 Jim Meyering <meyering@redhat.com>
17931
17932 Use "do...while (0)", not "if (1)...else" in macro definitions.
17933 The latter provokes a warning from gcc about the empty else, when
17934 followed by ";". Also, without that trailing semicolon, it would
17935 silently swallow up any following statement.
17936 * syntax.h (SETUP_SYNTAX_TABLE)
17937 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17938 * buffer.h (DECODE_POSITION): Likewise.
17939 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17940 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17941 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17942 (FETCH_CHAR_ADVANCE): Likewise.
17943 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17944
179452008-02-07 Jim Meyering <meyering@redhat.com>
17946
17947 * lread.c [lint]: Don't include <sys/inode.h>.
17948
179492008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17950
17951 * xselect.c (x_handle_dnd_message):
17952 * xmenu.c (digest_single_submenu, xmenu_show):
17953 * xdisp.c (with_echo_area_buffer_unwind_data)
17954 (format_mode_line_unwind_data, unwind_format_mode_line)
17955 (display_menu_bar):
17956 * eval.c (Ffetch_bytecode):
17957 * doc.c (store_function_docstring):
17958 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17959 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17960 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17961
179622008-02-07 Kenichi Handa <handa@m17n.org>
17963
17964 * ftxfont.c (ftxfont_open): Don't set
17965 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17966
17967 * ftfont.c (ftfont_open): Fix previous change.
17968
179692008-02-06 Jason Rumney <jasonr@gnu.org>
17970
17971 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17972 Use cached metrics for ASCII characters.
17973 (w32font_open_internal): Don't set font's owning_frame.
17974 Cache metrics for ASCII characters.
17975
17976 * w32font.h (struct w32font_info): Add ascii_metrics.
17977 Remove owning_frame.
17978
179792008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17980
17981 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17982 to negative value.
17983
17984 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17985
17986 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17987
17988 * charset.c (syms_of_charset): Set QCtest and Qeq.
17989
179902008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17991
17992 * process.c (Fstart_process):
17993 * callproc.c (Fcall_process): Handle the case where
17994 Funhandled_file_name_directory returns nil.
17995
17996 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17997 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17998 * font.c (check_gstring): Use them and AREF to access the vector before
17999 we know it's really a gstring.
18000 (Ffont_shape_text): Fix typo.
46e722a9 18001 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18002
18003 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18004 Declare.
18005
18006 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18007
180082008-02-05 Jason Rumney <jasonr@gnu.org>
18009
18010 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18011 Set smallest_font_height and smallest_char_width in display info.
18012
180132008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18014
18015 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18016
180172008-02-05 Miles Bader <miles@gnu.org>
18018
18019 * xfaces.c (get_lface_attributes, merge_named_face)
18020 (lookup_named_face, lookup_derived_face, realize_named_face):
18021 Revert 2008-02-01 change by cyd@stupidchicken.com.
18022
180232008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18024
18025 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18026 fallback fonts.
18027 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18028
180292008-02-04 Jason Rumney <jasonr@gnu.org>
18030
18031 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18032 set full_name.
18033 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18034
180352008-02-03 Jason Rumney <jasonr@gnu.org>
18036
18037 * makefile.w32-in (OBJ1): Include font.o here.
18038 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18039
180402008-02-02 Jason Rumney <jasonr@gnu.org>
18041
18042 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18043
180442008-02-01 Jason Rumney <jasonr@gnu.org>
18045
18046 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18047
18048 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18049
180502008-02-01 Andreas Schwab <schwab@suse.de>
18051
18052 * Makefile.in (shortlisp, lisp): Update for rename of
18053 ../lisp/language/myanmar.el.
18054
180552008-02-01 Chong Yidong <cyd@stupidchicken.com>
18056
18057 * xfaces.c (get_lface_attributes): Delete function.
18058 (merge_named_face, lookup_named_face, lookup_derived_face)
18059 (realize_named_face): Call lface_from_face_name directly, and use
18060 the fact that merge_face_vectors does not alter its FROM argument.
18061
180622008-02-01 Jason Rumney <jasonr@gnu.org>
18063
18064 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18065 input in the default locale. Handle non-Unicode multibyte input.
18066
180672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18068
18069 * fontset.c (reorder_font_vector): Exclude nil elements from the
18070 font group. Don't try multiple fonts.
18071 (fontset_font): Adjust for the above change.
18072 (Finternal_char_font): Return nil if the found font doesn't
18073 contain the character ch.
18074
18075 * Makefile.in (lisp, shortlisp): Add cham.el.
18076
180772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18078
18079 * font.h (FONTP): Make it return 1 also for a font-object.
18080
18081 * .gdbinit (xfontset): New function.
18082
18083 * font.c (font_find_for_lface): Check if the character C is
18084 supported or not only for the first font.
18085
18086 * fontset.c (reorder_font_vector): Fix typo.
18087 (fontset_find_font): Don't add a font-spec specifying a script.
18088 Use 0 (not Qt) for the indication of empty font-group. Change the
18089 format of RFONT-DEF. Return Qt if no font in the font-group
18090 support the character.
18091 (fontset_font): Adjust for the above change. If no font was
18092 found the character, remember that.
18093 (face_for_char): Adjust for the change of RFONT-DEF.
18094 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18095 no font for the target.
18096 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18097
180982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18099
18100 * font.c (font_load_for_face): Handle the case that the font in
18101 face->lface is a string.
18102
181032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18104
18105 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18106
181072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18108
18109 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18110 Fix previous change. If the frame is not on a window system,
18111 signal an error.
18112
181132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18114
18115 * coding.c (decode_coding_object, encode_coding_object): Adjust
18116 marker positions after conversion.
18117
18118 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18119
181202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18121
18122 * font.c (font_find_for_lface): Fix the handling of the return
18123 value of font_has_char.
18124 (Ffont_shape_text): Fix previous change.
18125
18126 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18127 (fontset_ref_and_range): Delete it.
18128 (fontset_find_font): Call char_table_ref_and_range instead of
18129 FONTSET_REF_AND_RANGE.
18130 (make_fontset): Don't setup font groups of Latin here.
18131 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18132 (new_fontset_from_font): Make the specified font the default for
18133 all Latin characters.
18134
181352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18136
18137 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18138 is on a window system before accessing the fontset of the frame.
18139
181402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18141
18142 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18143
18144 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18145 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18146
18147 * font.c (Ffont_shape_text): If the font driver doesn't have a
18148 shaper function, make zero-width glyphs to have at least one-pixel
18149 width. Fix setting of `to' field of glyphs.
18150
181512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18152
18153 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18154 glyphs.
18155
18156 * font.h (struct font_driver): Improve docstring of member `shape'.
18157
181582008-02-01 Kenichi Handa <handa@m17n.org>
18159
18160 * composite.c (syms_of_composite): Fix docstring of
18161 auto-composition-function.
18162
18163 * font.h (LGLYPH_SIZE): New macro.
18164
18165 * font.c (Ffont_fill_gstring): Stop filling when a character not
18166 supported by the font is found.
18167 (Ffont_shape_text): When a shape callback function returns nil,
18168 try at most two more times with larger gstring.
18169 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18170
18171 * xdisp.c (handle_auto_composed_prop): Change the argument to
18172 auto-composition-function.
18173
18174 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18175 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18176 Lispy glyph and store it in the lgstring.
18177
18178 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18179
18180 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18181
181822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18183
18184 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18185
18186 * fontset.c (Vfont_encoding_charset_alist): New variable.
18187 (syms_of_fontset): DEFVAR it.
18188 (reorder_font_vector, fontset_find_font): Optimize for the case of
18189 no need of reordering.
18190 (face_for_char): Map the charset property by
18191 Vfont_encoding_charset_alist.
18192
181932008-02-01 Jason Rumney <jasonr@gnu.org>
18194
18195 * w32font.c (logfonts_match): Don't check adstyle here.
18196 (font_matches_spec): Check here against physical font instead.
18197 (add_font_entity_to_list): Avoid some substitutions.
18198
18199 * font.c (font_parse_fcname): Default weight and slant to normal.
18200 (font_score): Prefer normal fonts if weight or slant unspecified.
18201 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18202 match freetype scores.
18203
182042008-02-01 Jason Rumney <jasonr@gnu.org>
18205
18206 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18207 font, as it may have been deleted.
18208 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18209 most common hyphenless variation.
18210 (logfonts_match): Check generic family.
18211 (font_matches_spec): Don't check generic family here.
18212 (fill_in_logfont): Set generic family based on adstyle.
18213
18214 * w32font.h (w32font_get_cache): Update declaration.
18215
182162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18217
18218 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18219
18220 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18221 If none of the new drivers are available, call font_update_drivers
18222 with the old drivers.
18223
18224 * w32font.c (w32font_get_cache): Adjust the argument type.
18225
18226 * xfont.c (xfont_get_cache): Adjust the argument type.
18227
18228 * font.h (struct font_driver): Change argument type of get_cache.
18229
18230 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18231
18232 * font.c (Ffont_get): Fix arguments to Fassoc.
18233 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18234 (font_clear_cache): New function.
18235 (font_list_entities, font_matching_entity): Use font_get_cache.
18236 (font_update_drivers): Call font_clear_cache when finishing a driver.
18237
18238 * fontset.c (fontset_find_font): Fix previous change.
18239
182402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18241
18242 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18243 dpyinfo->font_table.
18244 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18245 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18246
18247 * font.c (font_at): Handle the case that the arg C is negative.
18248 Handle the unibyte case.
18249 (Ffont_at): Call font_at with the arg C -1.
18250
18251 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18252 the position here, and call font_at with the arg C -1.
18253 Don't check the range of the existing composition at the point.
18254
182552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18256
18257 * fontset.c (fontset_add): New args charset_id and family.
18258 Change caller.
18259 (load_font_get_repertory, fontset_find_font): Assume that
18260 font_spec is always a font-spec object.
18261 (Fset_fontset_font): Always store a font-spec object in a fontset.
18262
18263 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18264 instead of get_property_and_range.
18265
182662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18267
18268 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18269 (xftfont_open): Don't keep locking face.
18270 (xftfont_close): Don't unlock face.
18271 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18272
18273 * fontset.c (fontset_find_font): Don't prefer a font of
18274 supplementary charset.
18275
182762008-02-01 Kenichi Handa <handa@m17n.org>
18277
18278 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18279 script, langsys_tag to langsys, new member script.
18280 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18281 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18282 listing to the script specified in that property. Fix arg to
18283 OTF_check_features.
18284
182852008-02-01 Jason Rumney <jasonr@gnu.org>
18286
18287 * w32font.h: New file.
18288
18289 * w32font.c: Include it.
18290 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18291 (w32font_open): Set owning_frame.
18292 (w32font_text_extents): Use owning_frame.
18293 (struct font_callback_data): Add opentype_only field.
18294 (add_font_entity_to_list): Use it to filter fonts.
18295 Don't check against full name.
18296 (w32font_list_internal): New function.
18297 (w32font_list): Use it.
18298 (w32font_match_internal): New function.
18299 (w32font_match): Use it.
18300 (w32font_open_internal): New function.
18301 (w32font_open): Use it.
18302 (w32font_get_cache, w32font_close, w32font_has_char)
18303 (w32font_encode_char, w32font_text_extents, w32font_draw):
18304 Make non-static.
18305
18306 * makefile.w32-in (w32font.o): Depend on w32font.h.
18307
183082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18309
18310 * charset.c (Fdefine_charset_internal): Record a supplementary
18311 charset at the tail of Vcharset_order_list.
18312
18313 * font.c (Ffont_shape_text): Fix the return value.
18314
18315 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18316
18317 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18318
183192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18320
18321 * ftfont.c (struct OpenTypeSpec): New struct.
18322 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18323 (ftfont_get_open_type_spec): New function.
18324 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18325
18326 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18327
183282008-02-01 Jason Rumney <jasonr@gnu.org>
18329
18330 * w32font.c (add_font_entity_to_list): Compare only the beginning
18331 of full name.
18332
183332008-02-01 Kenichi Handa <handa@m17n.org>
18334
18335 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18336 Never return HANDLED_RECOMPUTE_PROPS.
18337
183382008-02-01 Kenichi Handa <handa@m17n.org>
18339
18340 * font.c (font_gstring_produce): Delete it.
18341
18342 * composite.h (COMPOSITION_METHOD):
18343 Handle COMPOSITION_WITH_GLYPH_STRING.
18344
183452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18346
18347 * xfont.c (Qx): Delete.
18348 (syms_of_xfont): Don't initialize Qx.
18349
18350 * composite.h (enum composition_method):
18351 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18352
183532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18354
18355 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18356 (choose_face_font): Accept new form of font-spec.
18357
18358 * frame.h (font_driver_list): Declare it unconditionally.
18359 (struct frame): Define members font_driver_list and font_data_list
18360 unconditionally.
18361
18362 * fontset.c: Include "font.h" unconditionally.
18363 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18364 (Fset_fontset_font): Accept a font-spec object.
18365
18366 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18367 PIXEL_SIZE part a wild card.
18368
18369 * dispextern.h (struct glyph_string): Define members clip and
18370 num_clips unconditionally.
18371 (struct face): Define members font_info and extra unconditionally.
18372
18373 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18374 ftfont_info only when HAVE_LIBOTF is defined.
18375
183762008-02-01 Andreas Schwab <schwab@suse.de>
18377
18378 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18379 and end.
18380
183812008-02-01 Jason Rumney <jasonr@gnu.org>
18382
18383 * w32font.c (w32font_driver): Add new fields.
18384
183852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18386
18387 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18388 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18389 (LIBES): Add @M17N_FLT_CFLAGS@.
18390
18391 * composite.c (compose_text): Don't treat the new style
18392 composition specially.
18393
18394 * emacs.c (main): Call syms_of_font unconditionally.
18395
18396 * font.h (FONT_ENTITY_NOT_LOADABLE)
18397 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18398 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18399 (struct font_driver): New member shape.
18400 (font_registry_charsets): Extern it.
18401 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18402 (font_otf_capability, font_drive_otf): Delete their externs.
18403
18404 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18405 (font_charset_alist, font_registry_charsets): Move from xfont.c
18406 and rename.
18407 (font_prop_validate_otf): New function.
18408 (font_property_table): Register it for QCotf.
18409 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18410 (font_drive_otf): Delete.
18411 (font_prepare_composition): New arg F. Adjust for the change of
18412 lispy gstring.
18413 (font_find_for_lface): New arg C.
18414 (font_load_for_face): Adjust for the change of font_find_for_lface.
18415 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18416 lispy gstring.
18417 (Ffont_shape_text): New function.
18418 (Fopen_font): If the font size is not given, use 12-pixel.
18419 (Ffont_at): New arg STRING.
18420 (syms_of_font): Initalize font_charset_alist.
18421 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18422 conditionally.
18423
18424 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18425 fonts of the same font-spec. Change the format of RFONT-DEF.
18426 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18427 Adjust for the change of RFONT-DEF.
18428 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18429
18430 * ftfont.h: New file.
18431
18432 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18433 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18434 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18435 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18436 font_otf_capability and font_drive_otf, set ftfont_shape.
18437 (ftfont_list): Adjust for the change of :otf property value.
18438 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18439 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18440 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18441 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18442 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18443 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18444
18445 * w32term.c (x_draw_composite_glyph_string_foreground):
18446 Adjust for the change of lispy gstring.
18447
18448 * xdisp.c (handle_composition_prop): Adjust for the change of
18449 lispy gstring. Call a function for auto-composition with the
18450 third arg it->window.
18451 (fill_composite_glyph_string): Adjust for the change of lispy string.
18452 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18453
18454 * xfaces.c (set_font_frame_param): Adjust for the change of
18455 font_find_for_lface.
18456
18457 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18458 (xfont_registry_charsets): Likewise. Change caller.
18459 (syms_of_xfont): Don't handle x_font_charset_alist.
18460
18461 * xftfont.c: Include "ftfont.h".
18462 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18463 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18464 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18465 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18466 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18467 Set xftfont_driver.shape to xftfont_shape.
18468
18469 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18470 the change of lispy gstring.
18471
184722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18473
18474 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18475
184762008-02-01 Jason Rumney <jasonr@gnu.org>
18477
18478 * w32font.c (w32font_draw): Fill background manually.
18479
184802008-02-01 Jason Rumney <jasonr@gnu.org>
18481
18482 * font.c (Qfontp): Remove unused symbol.
18483 (QCantialias): New symbol.
18484 (syms_of_font): Define it.
18485 (font_property_table): Set a validator for QCantialias.
18486
18487 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18488 Define if not already.
18489 (QCfamily): Share with xfaces.c.
18490 (Qstandard, Qsubpixel, Qnatural): New symbols.
18491 (syms_of_w32font): Define them. Don't define QCfamily here.
18492 (w32_antialias_type, lispy_antialias_type): New functions.
18493 (w32_enumfont_pattern_entity): New arg requested_font.
18494 Set antialias parameter if non-default was requested.
18495 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18496
184972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18498
18499 * lread.c (read1): Undo the previous change.
18500
185012008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18502
18503 * frame.c (Fdelete_frame): Call font_update_drivers only when
18504 USE_FONT_BACKEND is defined.
18505
185062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18507
18508 * font.h (struct font_bitmap): New member bits_per_pixel.
18509 (struct font_driver): New members start_for_frame and end_for_frame.
18510 (struct font_data_list): New struct.
18511 (font_put_frame_data, font_get_frame_data): Extern them.
18512
18513 * frame.h (struct frame): New member font_data_list.
18514
18515 * font.c (font_update_drivers): Call driver->start_for_frame and
18516 driver->end_for_frame at proper timings.
18517 (font_put_frame_data, font_get_frame_data): New functions.
18518 (Ffont_spec): Add usage in the docstring.
18519
18520 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18521 (Fdelete_frame): Call font_update_drivers.
18522
18523 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18524 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18525 (xftfont_get_xft_draw): New function.
18526 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18527 (xftfont_end_for_frame): New function.
18528 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18529
18530 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18531 Change argument. Cache GCs in the per-frame data.
18532 (struct ftxfont_frame_data): New struct.
18533 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18534 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18535 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18536 (ftxfont_end_for_frame): New function.
18537 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18538
18539 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18540
185412008-02-01 Kenichi Handa <handa@m17n.org>
18542
18543 * xselect.c (Vselection_coding_system)
18544 (Vnext_selection_coding_system): Delete them.
18545 (syms_of_xselect): Don't declare selection-coding-system and
18546 next-selection-coding-system. They are declared in select.el.
18547
185482008-02-01 Jason Rumney <jasonr@gnu.org>
18549
18550 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18551
18552 * w32fns.c: Include imm.h.
18553 (get_composition_string_fn, get_ime_context_fn): New optional
18554 system functions.
18555 (globals_of_w32fns): Load them from imm32.dll.
18556 (ignore_ime_char): New flag.
18557 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18558 WM_IME_ENDCOMPOSITION messages.
18559
18560 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18561 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18562
185632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18564
18565 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18566 (READCHAR_REPORT_MULTIBYTE): New macro.
18567 (readchar): New 2nd arg MULTIBYTE.
18568 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18569 Make symbol's name multibyte according to the multibyteness of the
18570 source.
18571
185722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18573
18574 * xfaces.c (face_for_overlay_string): Call lookup_face with
18575 correct arguments (fix of synching with the trunk).
18576
185772008-02-01 Kenichi Handa <handa@m17n.org>
18578
18579 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18580 (font_prop_validate_non_neg, font_prop_validate_spacing):
18581 Delete argument prop_index.
18582 (font_property_table): Change arguments to validater. Change Callers.
18583 (font_lispy_object): Delete.
18584 (font_at): Use font_find_object instead fo font_lispy_object.
18585
185862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18587
18588 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18589 and file names.
18590
185912008-02-01 Jason Rumney <jasonr@gnu.org>
18592
18593 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18594 (font_matches_spec): Remove debug output.
18595 (add_font_entity_to_list): Avoid using substituted fonts.
18596
185972008-02-01 Jason Rumney <jasonr@gnu.org>
18598
18599 * doc.c (Fsnarf_documentation):
18600 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18601
186022008-02-01 Miles Bader <miles@gnu.org>
18603
18604 * dispextern.h (struct glyph_row): Only define "clip" field if
18605 HAVE_WINDOW_SYSTEM is defined.
18606
186072008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18608
18609 Fix up multi-tty merge.
18610
18611 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18612 and indentation.
18613
18614 * xfaces.c (free_realized_face, clear_face_gcs):
18615 Include font_done_for_face in the input_blocked section, just in case.
18616
18617 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18618 (get_char_face_and_encoding): Undo last change and remove the *other*
18619 duplicate definition (i.e. keep the one that's better scoped and that
18620 includes code for the font-backend).
18621
18622 * terminal.c (create_terminal): Default keyboard_coding to
18623 `no-conversion' and terminal_coding to `undecided'.
18624
18625 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18626
18627 * fontset.c (free_realized_fontsets): Check that the table entry does
18628 contain a fontset before trying to compare it to `base'.
18629
18630 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18631 syms_of_charset, and syms_of_coding earlier because init_window_once
18632 now needs Vcoding_system_hash_table to be setup.
18633
18634 * coding.h (default_buffer_file_coding): Remove.
18635
18636 * coding.c (default_buffer_file_coding): Remove.
18637 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18638 than ->symbol, and use the terminal-local coding system.
18639 (syms_of_coding): Don't setup the coding-systems that are not
18640 terminal-local.
18641 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18642
18643 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18644 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18645
18646 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18647 in chartab.c and were re-added here by mistake.
18648 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18649
18650 * doc.c (Fsnarf_documentation):
18651 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18652 src to etc.
18653
18654 * ChangeLog.10: Add mistakenly removed entry.
18655
186562008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18657
18658 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18659
186602008-02-01 Miles Bader <miles@gnu.org>
18661
18662 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18663 Add extra args to FACE_FOR_CHAR.
18664
186652008-02-01 Kenichi Handa <handa@m17n.org>
18666
18667 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18668 in sequence.
18669
18670 * chartab.c (map_sub_char_table, map_char_table): If the range
18671 contains just one character, call the function with that character
18672 even if the depth is not 3.
18673
186742008-02-01 Jason Rumney <jasonr@gnu.org>
18675
18676 * w32font.c (w32font_text_extents): Calculate metrics for the
18677 whole string.
18678
186792008-02-01 Jason Rumney <jasonr@gnu.org>
18680
18681 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18682
186832008-02-01 Jason Rumney <jasonr@gnu.org>
18684
18685 * w32term.c (x_set_glyph_string_clipping): Use
18686 get_glyph_string_clip_rects.
18687 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18688 Adjust for the change of struct glyph_string.
18689
18690 * w32font.c (w32font_draw): Do clipping here.
18691
186922008-02-01 Kenichi Handa <handa@m17n.org>
18693
18694 * xftfont.c (xftfont_draw): Adjust for the change of struct
18695 glyph_string.
18696
18697 * xterm.c (x_set_glyph_string_clipping): Use
18698 get_glyph_string_clip_rects.
18699 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18700 Adjust for the change of struct glyph_string.
18701
18702 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18703 the resulting clip(s}.
18704 (expose_overlaps): Add arg r. Change callers. Set it to
18705 row->clip temporarily.
18706 (expose_window): Redraw rows overlapping the exposed area.
18707
18708 * dispextern.h (struct glyph_row): New member clip.
18709 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18710 clip_height, new member clip, and num_clips.
18711
187122008-02-01 Kenichi Handa <handa@m17n.org>
18713
18714 * data.c (Fchar_or_string_p): Fix docstring.
18715
187162008-02-01 Kenichi Handa <handa@m17n.org>
18717
18718 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18719 create a temporary XftDraw object.
18720
187212008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * font.c (Ffontp): Fix docstring.
18724
18725 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18726 strong evidence of ISO-2022.
18727
187282008-02-01 Kenichi Handa <handa@m17n.org>
18729
18730 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18731 SYNTAX_ENTRY_FOLLOW_PARENT.
18732
187332008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18734
18735 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18736 its type.
18737 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18738 Update to the new type of weak_hash_tables and next_weak.
18739
18740 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18741 a plain C pointer to Lisp_Hash_Table.
18742
18743 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18744 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18745 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18746 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18747 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18748 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18749 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18750 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18751 (GC_EQ): Remove since they've been identical to their non-GC_
18752 alter-egos ever since the markbit was eradicated.
18753
18754 * alloc.c:
18755 * buffer.c:
18756 * buffer.h:
18757 * data.c:
18758 * fileio.c:
18759 * filelock.c:
18760 * fns.c:
18761 * frame.h:
18762 * lisp.h:
18763 * macterm.c:
18764 * print.c:
18765 * process.c:
18766 * w32fns.c:
18767 * w32menu.c:
18768 * w32term.c:
18769 * xfns.c:
18770 * xmenu.c:
18771 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18772
187732008-02-01 Kenichi Handa <handa@m17n.org>
18774
18775 * chartab.c (map_sub_char_table): Make it work for the top-level
18776 char-table. Fix handling of parent char-table.
18777 (map_char_table): Adjust for the above change.
18778
187792008-02-01 Jason Rumney <jasonr@gnu.org>
18780
18781 * w32font.c (Qgdi): Rename from Qw32.
18782
187832008-02-01 Jason Rumney <jasonr@gnu.org>
18784
18785 * w32bdf.c (get_quoted_string): Make function static.
18786
187872008-02-01 Kenichi Handa <handa@m17n.org>
18788
18789 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18790 bigger ascent and descent than those of the font, use them as
18791 font's ascent and descent.
18792
187932008-02-01 Kenichi Handa <handa@m17n.org>
18794
18795 * Makefile.in (${lispsource}international/charprop.el): Move this
18796 target within "#ifdef HAVE_UNIDATA" and "#endif".
18797
187982008-02-01 Kenichi Handa <handa@m17n.org>
18799
18800 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18801 (shortlisp): Add ../lisp/language/tai-viet.el.
18802
188032008-02-01 Ulrich Mueller <ulm@gentoo.org>
18804
18805 * Makefile.in (${lispsource}international/charprop.el): Depend on
18806 temacs${EXEEXT}.
18807
188082008-02-01 Jason Rumney <jasonr@gnu.org>
18809
18810 * w32font.c (w32font_close): Delete the GDI font object.
18811
18812 * w32menu.c: Include character.h.
18813
18814 * w32proc.c: Likewise.
18815
18816 * w32select.c: Likewise.
18817
18818 * makefile.w32-in (w32proc.o): Depend on character.h.
18819
188202008-02-01 Jason Rumney <jasonr@gnu.org>
18821
18822 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18823
18824 * w32menu.c (syms_of_w32menu): Likewise.
18825
18826 * w32proc.c (syms_of_ntproc): Likewise.
18827
18828 * w32select.c (syms_of_w32select): Likewise.
18829
18830 * w32term.c (syms_of_w32term): Likewise.
18831
188322008-02-01 Jason Rumney <jasonr@gnu.org>
18833
18834 * w32font.c (w32font_draw): Delete brush after using it.
18835
188362008-02-01 Jason Rumney <jasonr@gnu.org>
18837
18838 * w32font.c (w32font_open): Don't set font_idx.
18839 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18840 to font settings.
18841 (w32font_draw): Fill background explicitly.
18842
188432008-02-01 Jason Rumney <jasonr@gnu.org>
18844
18845 * w32term.c (w32_initialize): Don't call w32font_initialize.
18846
18847 * w32font.c (w32font_info): Remove subranges.
18848 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18849 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18850 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18851 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18852 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18853 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18854 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18855 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18856 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18857 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18858 New symbols.
18859 (font_callback_data): New struct.
18860 (w32font_list, w32font_match): Use it.
18861 (w32font_open): Don't populate subranges.
18862 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18863 (w32font_encode_char): Always return unicode code-point as-is.
18864 (w32font_text_extents): Supply a transformation matrix to
18865 GetGlyphOutline. Never look up by glyph index. Avoid looping
18866 twice. Use unicode version of GetTexExtentPoint32 instead of
18867 glyph index version.
18868 (set_fonts_frame): Remove.
18869 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18870 set frame parameter. Use backward compatible fake foundries.
18871 Save generic family in extra slot under QCfamily. Make width slot
18872 constant. Save QCspacing value. Save list of scripts instead of
18873 binary subranges.
18874 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18875 (add_font_entity_to_list): Use font_callback_data struct. Filter
18876 unwanted fonts.
18877 (add_one_font_entity_to_list): Use font_callback_data struct.
18878 (w32_registry): Default to iso10646_1.
18879 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18880 string font registries. Don't fill in font name if it is a generic
18881 family name, fill family instead. Use spacing, family and script
18882 extra info to fill pitch, family and charset fields.
18883 (list_all_matching_fonts): Use font_callback_data struct.
18884 (unicode_range_for_char): Remove.
18885 (font_supported_scripts): New function.
18886 (w32font_initialize): Remove.
18887 (syms_of_w32font): Update which symbols are defined.
18888
188892008-02-01 Jason Rumney <jasonr@gnu.org>
18890
18891 * font.c (font_pixel_size): Reverse assq_no_quit args.
18892
18893 * w32term.h (FONT_WIDTH): Report max width, not average.
18894 (FONT_MAX_WIDTH): Remove.
18895 (FONT_AVG_WIDTH): New macro.
18896
18897 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18898 redefinition of FONT_WIDTH.
18899
18900 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18901 (w32_cache_char_metrics): Use FONT_WIDTH.
18902
18903 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18904
189052008-02-01 Jason Rumney <jasonr@gnu.org>
18906
18907 * w32font.c (w32font_open): Make lfHeight negative.
18908
18909 * w32fns.c (x_default_font_parameter): Use new style font name.
18910 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18911
189122008-02-01 Jason Rumney <jasonr@gnu.org>
18913
18914 * w32font.c (QCsubranges): New symbol.
18915 (w32font_open, w32font_has_char): Get subranges from subproperty
18916 of extra.
18917 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18918 (syms_of_w32font): Define :subranges symbol.
18919
18920 * font.c (font_put_extra): Expose externally.
18921
18922 * font.h (font_put_extra): Move declaration from font.c.
18923
18924 * font.c (Ffont_get): Use font driver to determine otf capability.
18925 (adjust_anchor): Check if driver defines anchor_point before using.
18926
18927 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18928 (w32font_draw): Use options.
18929 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18930 Fix detection of truetype fonts.
18931 (registry_to_w32_charset): Handle charsets other than iso8859-1
18932 expressed as lisp symbols.
18933 (w32_registry): Express charset as lisp symbol.
18934 (fill_in_logfont): Reverse pixel and point height logic.
18935 Don't set width here. Set quality to default.
18936
18937 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18938 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18939
18940 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18941 Remove redundant loop and allocation.
18942
18943 * makefile.w32-in (font.o, w32font.o): New objects.
18944 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18945 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18946
18947 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18948 STORE_XCHARB a valid l-value.
18949
18950 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18951 calculations for non-Truetype fonts.
18952 (x_draw_glyph_string): Sync with xterm.c.
18953 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18954 Remove redundant code.
18955 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18956
18957 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18958 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18959
18960 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18961 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18962
18963 * w32font.c: New file for w32 font backend.
18964
189652008-02-01 Kenichi Handa <handa@m17n.org>
18966
18967 * term.c: Don't include "buffer.h" twice.
18968
189692008-02-01 Kenichi Handa <handa@m17n.org>
18970
18971 * character.c (Funibyte_string): New function.
18972 (syms_of_character): Defsubr it.
18973
189742008-02-01 Jason Rumney <jasonr@gnu.org>
18975
18976 * w32term.c [USE_FONT_BACKEND]:
18977 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18978 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18979 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18980 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18981 (x_free_frame_resources): Sync with xterm.c.
18982
189832008-02-01 Andreas Schwab <schwab@suse.de>
18984
18985 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18986 char-table size.
18987
189882008-02-01 Kenichi Handa <handa@m17n.org>
18989
18990 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18991
189922008-02-01 Kenichi Handa <handa@m17n.org>
18993
18994 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18995 font_otf_gpos, add font_drive_otf.
18996
18997 * fontset.c (fontset_find_font): Pay attention to font size
18998 specified for a font.
18999 (reorder_font_vector): Check contents of font_def.
19000
19001 * font.c (struct otf_list): Delete it.
19002 (otf_list): Make it a lisp variable.
19003 (otf_open): Use lispy otf_list.
19004 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19005 (check_otf_features): New function.
19006 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19007 New functions.
19008 (font_drive_otf): New function merging font_otf_gsub and
19009 font_otf_gpos.
19010 (font_open_for_lface): New arg spec. Change argument order.
19011 (font_load_for_face): Adjust for the change of font_open_for_lface.
19012 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19013 Ffont_otf_gpos.
19014 (syms_of_font): Staticpro otf_list. Delete defsubr of
19015 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19016
19017 * xfaces.c (set_font_frame_param): Adjust for the change of
19018 font_open_for_lface.
19019
19020 * font.h (font_open_for_lface): Adjust prototype.
19021 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19022 member otf_drive.
19023 (font_otf_gsub, font_otf_gpos): Delete externs.
19024 (font_drive_otf): Extern it.
19025
190262008-02-01 Kenichi Handa <handa@m17n.org>
19027
19028 * font.c (font_at): If the window W is not on a window system,
19029 return Qnil.
19030
19031 * coding.c (produce_chars, encode_coding): Don't call
19032 insert_from_gap if no characters to produce.
19033
190342008-02-01 Kenichi Handa <handa@m17n.org>
19035
19036 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19037 Fclear_face_cache.
19038
19039 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19040
190412008-02-01 Miles Bader <miles@gnu.org>
19042
19043 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19044 Parse "--disable-font-backend" option.
19045 (standard_args): Add "--disable-font-backend" option.
19046
190472008-02-01 Kenichi Handa <handa@m17n.org>
19048
19049 * fontset.c (fontset_find_font): New function.
19050 (fontset_font): Use fontset_find_font.
19051 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19052 Register the specified font for all Latin characters.
19053 (new_fontset_from_font): Register the specified font for all Latin
19054 characters.
19055 (dump_fontset): For a realized fontset, include the base fontset
19056 name in the returned vector.
19057
190582008-02-01 Kenichi Handa <handa@m17n.org>
19059
19060 * character.h (CHAR_STRING): Cast C to unsigned on calling
19061 char_string.
19062
19063 * character.c (char_string): Type of arg C changed to unsigned.
19064 Signal an error if C is an invalid character code.
19065
19066 * editfns.c (general_insert_function, Fchar_to_string):
19067 Use CHARACTERP, not INTEGERP.
19068
190692008-02-01 Kenichi Handa <handa@m17n.org>
19070
19071 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19072 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19073
19074 * regex.c (analyse_first): Fix for multibyte characters in "case
19075 charset:" and "case categoryspec:".
19076
190772008-02-01 Andreas Schwab <schwab@suse.de>
19078
19079 * Makefile.in (LIBES): Move standard libraries to the end.
19080
190812008-02-01 Kenichi Handa <handa@m17n.org>
19082
19083 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19084 nonzero, don't shrink the buffer nextb.
19085
19086 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19087
19088 * coding.c (coding_alloc_by_making_gap): New arg offset.
19089 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19090 offset.
19091 (decode_coding_iso_2022): Update coding->safe_charsets.
19092 (decode_coding_gap): Temporarily set
19093 current_buffer->text->inhibit_shrinking to 1.
19094
190952008-02-01 Kenichi Handa <handa@m17n.org>
19096
19097 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19098 indexing into elements of s->cmp and s->char2b.
19099
191002008-02-01 Juanma Barranquero <lekktu@gmail.com>
19101
19102 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19103
191042008-02-01 Kenichi Handa <handa@m17n.org>
19105
19106 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19107 target_multibyte instead of multibyte.
19108 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19109 (bcmp_translate): Change the argument name from multibyte to
19110 target_multibyte.
19111
191122008-02-01 Kenichi Handa <handa@m17n.org>
19113
19114 These changes are to compile a regexp into a pattern that can be
19115 used both for multibyte and unibyte targets.
19116
19117 * Makefile.in (search.o): Depend on charset.h.
19118
19119 * character.c (multibyte_char_to_unibyte_safe): New function.
19120
19121 * search.c: Include "charset.h".
19122 (compile_pattern_1): Delete argument multibyte. Don't set
19123 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19124 (compile_pattern): Don't compare cp->buf.target_multibyte.
19125 Compare cp->buf.charset_unibyte.
19126 (compile_pattern): Set cp->buf.target_multibyte.
19127
19128 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19129
19130 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19131
19132 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19133 multibyte. Change callers.
19134 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19135 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19136 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19137 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19138 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19139 (regex_compile): Make the compiled pattern usable both for
19140 multibyte and unibyte targets.
19141 (analyse_first): Make the fastmap usable both for multibyte and
19142 unibyte targets.
19143 (TRANSLATE_VIA_MULTIBYTE): Delete.
19144 (re_match_2_internal): Pay attention to the case that the
19145 multibyteness of bufp and target may be different.
19146
191472008-02-01 Kenichi Handa <handa@m17n.org>
19148
19149 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19150 empty box occupy at least one column width.
19151
191522008-02-01 Miles Bader <miles@gnu.org>
19153
19154 * Makefile.in: Remove redundant HAVE_XFT clause.
19155
191562008-02-01 Kenichi Handa <handa@m17n.org>
19157
19158 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19159
191602008-02-01 Kenichi Handa <handa@m17n.org>
19161
19162 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19163 being nil.
19164
191652008-02-01 Kenichi Handa <handa@m17n.org>
19166
19167 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19168
191692008-02-01 Kenichi Handa <handa@m17n.org>
19170
19171 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19172
191732008-02-01 Kenichi Handa <handa@m17n.org>
19174
19175 * search.c (simple_search): Fix previous change.
19176
191772008-02-01 Kenichi Handa <handa@m17n.org>
19178
19179 * xftfont.c (ftfont_font_format): Extern declaration.
19180
19181 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19182
19183 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19184 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19185
19186 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19187 (ftfont_font_format): Fix previous change.
19188
19189 * font.h (Ffont_xlfd_name): EXFUN it.
19190
19191 * font.c (font_parse_xlfd): Fix the array size of `f'.
19192 (register_font_driver): Use EQ to compare driver->type.
19193
19194 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19195 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19196 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19197
191982008-02-01 Kenichi Handa <handa@m17n.org>
19199
19200 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19201 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19202
192032008-02-01 Kenichi Handa <handa@m17n.org>
19204
19205 * xfont.c (xfont_open): Set font->format.
19206
19207 * xftfont.c (xftfont_open): Set font->format.
19208
19209 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19210 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19211 (ftfont_open): Set font->format.
19212 (ftfont_font_format): New function.
19213
19214 * font.h (struct font): New member format.
19215
19216 * font.c (Qopentype): New variable.
19217 (syms_of_font): Defsym it.
19218 (Fquery_font): Change the format of the last element of the return
19219 value.
19220
192212008-02-01 Kenichi Handa <handa@m17n.org>
19222
19223 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19224 last resort.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * coding.c (detect_coding_charset): Fix detection of multi-byte
19229 charset.
19230
192312008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19232
19233 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19234
192352008-02-01 Kenichi Handa <handa@m17n.org>
19236
19237 * xdisp.c (get_next_display_element): Set it->face_id for the
19238 first component of a composition.
19239 (x_produce_glyphs): Check if the font is changed or not for composition.
19240
192412008-02-01 Kenichi Handa <handa@m17n.org>
19242
19243 * fontset.c (Qlatin): New variable.
19244 (syms_of_fontset): Define it as a lisp symbol.
19245 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19246
192472008-02-01 Kenichi Handa <handa@m17n.org>
19248
19249 * font.c (font_unparse_fcname): Pay attention to the case that
19250 some of font property is a null string.
19251
192522008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * term.c: Include "composite.h".
19255 (encode_terminal_code): Output all components of composition.
19256 Check the size of encode_terminal_src.
19257 (produce_glyphs): For composition, call produce_composite_glyph.
19258 (append_composite_glyph, produce_composite_glyph): New functions.
19259
19260 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19261 is not found, get font_info from the current ascii face.
19262
192632008-02-01 Kenichi Handa <handa@m17n.org>
19264
19265 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19266 buffer-file-name to Qnil before calling insert_from_buffer.
19267
19268 * font.c (font_unparse_fcname): Pay attention to the case that
19269 foundry is a null string.
19270
192712008-02-01 Kenichi Handa <handa@m17n.org>
19272
19273 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19274
19275 * font.c (Qunicode_sip): New variable.
19276 (syms_of_font): Declare it as a Lisp symbol.
19277
19278 * font.h (Qunicode_sip): Extern it.
19279
192802008-02-01 Kenichi Handa <handa@m17n.org>
19281
19282 * composite.c (get_composition_id): Pay attention to TAB component.
19283
19284 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19285 TAB. Adjust for the change of s->char2b which always points to
19286 the first element of allocated memory.
19287
19288 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19289
19290 * xdisp.c (handle_composition_prop): Set it->c to the first
19291 non-TAB component.
19292 (fill_composite_glyph_string): Change argument.
19293 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19294 (x_produce_glyphs): Fix handling of left/right padding.
19295
192962008-02-01 Kenichi Handa <handa@m17n.org>
19297
19298 * coding.c (detect_coding_system): Fix for handling off
19299 inhibit_iso_escape_detection. Fix for the case that no coding
19300 system is defined for a specific coding category.
19301
193022008-02-01 Kenichi Handa <handa@m17n.org>
19303
19304 * font.c (font_matching_entity): Delete unused local var.
19305
19306 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19307 opening a font.
19308
19309 * fileio.c (Finsert_file_contents): On recovering a file, assume
19310 Unix-like eol.
19311 (choose_write_coding_system): On auto-saving a file, force
19312 Unix-like eol.
19313
19314 * coding.c (setup_coding_system): Fix setting of
19315 coding->common_flags based on eol_type.
19316 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19317 inherit from it.
19318
193192008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * alloc.c (NSTATICS): Increas to 0x600.
19322
193232008-02-01 Kenichi Handa <handa@m17n.org>
19324
19325 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19326 (ftfont_list): Don't check :name property.
19327 (ftfont_match): New function.
19328 (ftfont_pattern_entity): If the pattern doesn't contain
19329 FC_SPACING, don't assume FC_MONO.
19330
19331 * font.h (struct font_driver): New member `match'.
19332 (font_update_drivers): Adjust prototype.
19333
19334 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19335 property of FONT.
19336 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19337 them unconditionally.
19338 (font_matching_entity): New function.
19339 (font_open_by_name): Try font_matching_entity if exact match is
19340 not found.
19341 (font_update_drivers): Delete the arg FONT. Return a list of
19342 actually used backends. Don't free faces, font caches here.
19343 Don't store data in frame parameters. Don't call x_set_font.
19344 (Ffont_spec): Store :name property as is.
19345 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19346 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19347 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19348 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19349 Call font->driver->otf_gsub instead of font_otf_gsub.
19350
19351 * frame.c (x_set_font_backend): Do more works that were done in
19352 font_update_drivers before.
19353
19354 * xfont.c (xfont_match): New function.
19355 (xfont_driver): Set xfont_driver.match to xfont_match.
19356 (xfont_draw): Set font in GC if necessary.
19357
19358 * ftxfont.c (ftxfont_match): New function.
19359 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19360
19361 * xftfont.c (xftfont_match): New function.
19362 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19363
193642008-02-01 Kenichi Handa <handa@m17n.org>
19365
19366 * font.h (struct font): New member scalable.
19367 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19368 (font_otf_gsub): Adjust prototype.
19369
19370 * font.c (font_otf_capability): Fix handling of the default langsys.
19371 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19372 Check the contents of SPEC.
19373 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19374 (check_gstring): New function.
19375 (REPLACEMENT_CHARACTER): New macro.
19376 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19377 glyph codes of GSTRING.
19378 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19379 (font_prepare_composition): Set cmp->glyph_len.
19380 (font_open_entity): Set font->scalable.
19381 (Ffont_get): Handle :otf property.
19382 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19383 functions.
19384 (Fquery_font): Use font->font.full_name.
19385 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19386 Sfont_otf_alternates.
19387
19388 * ftfont.c (ftfont_open): Set font->font.full_name and
19389 font->font.name properly. Fix calculation of font->font.height
19390 and font->min_width.
19391
19392 * ftxfont.c (ftxfont_create_gcs): New function.
19393 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19394 (ftxfont_draw_backgrond): Fix filling region.
19395 (ftxfont_default_fid): New function.
19396 (ftxfont_open): Set xfont->fid to the return value of
19397 ftxfont_default_fid.
19398 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19399 (ftxfont_done_face): Free only GCs that are created by
19400 ftxfont_create_gcs.
19401 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19402
19403 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19404 Clip to src->width, etc (not src->clip_XXX).
19405
19406 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19407 FontBackend frame parameter.
19408
194092008-02-01 Kenichi Handa <handa@m17n.org>
19410
19411 * font.h (struct font_driver_list): New member `on'.
19412 (Fclear_font_cache): EXFUN it.
19413 (font_update_drivers): Extern it.
19414
19415 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19416 (font_list_entities): Check driver_list->on.
19417 (register_font_driver): Initalize `on' member to 0.
19418 (font_update_drivers): New function.
19419 (Fclear_font_cache): Check driver_list->on.
19420
19421 * frame.h (Qfont_backend): Extern it.
19422 (x_set_font_backend): Extern it.
19423
19424 * frame.c (Qfont_backend): New variable.
19425 (frame_parms): New element for font-backend.
19426 (x_set_font_backend): New function.
19427
19428 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19429 FontBackend frame parameter.
19430 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19431 x_set_font_backend.
19432
19433 * xfont.c (xfont_list): Don't try listing by :name property if the
19434 name is not for XLFD.
19435
194362008-02-01 Kenichi Handa <handa@m17n.org>
19437
19438 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19439 (LGLYPH_SET_TO): New macros.
19440 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19441 element of G is vector or not.
19442 (font_at): Extern it.
19443
19444 * font.c: Include window.h.
19445 (font_lispy_object): New function.
19446 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19447 end of valid glyph.
19448 (font_close_object): Fix getting (struct font *).
19449 (font_at): New function.
19450 (Ffont_get): If FONT is a font-object, get entity from it.
19451 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19452 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19453 range check.
19454 (Ffont_at): New function.
19455 (syms_of_font): Defsubr Sfont_at.
19456
19457 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19458 before the entry for Qcomposition.
19459 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19460 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19461 the font in gstring.
19462 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19463 LGLYPH_FORM (g) to detect the end of valid glyph.
19464 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19465 we are composing with gstring.
19466
19467 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19468 Check if adjustment is vector or not.
19469
19470 * Makefile.in (font.o): Make it depends on window.h.
19471
194722008-02-01 Kenichi Handa <handa@m17n.org>
19473
19474 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19475 adjustment is vector or not.
19476
194772008-02-01 Miles Bader <miles@gnu.org>
19478
19479 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19480
194812008-02-01 Kenichi Handa <handa@m17n.org>
19482
19483 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19484 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19485 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19486
19487 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19488 (DEVICE_DELTA): Fix typo.
19489 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19490 LGLYPH format.
19491
19492 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19493 the change of LGLYPH format.
19494
194952008-02-01 Kenichi Handa <handa@m17n.org>
19496
19497 * ftfont.c (ftfont_list): Fix typo.
19498 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19499
195002008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19501
19502 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19503
19504 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19505 xftface_info is non-NULL.
19506
195072008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19508
19509 * ftfont.c (ftfont_list): Move misplaced #endif.
19510
195112008-02-01 Kenichi Handa <handa@m17n.org>
19512
19513 * ftfont.c (ftfont_list): Pay attention to the case that
19514 FC_CAPABILITY is not defined.
19515
195162008-02-01 Kenichi Handa <handa@m17n.org>
19517
19518 * xftfont.c (xftfont_open): Set charset related members to -1.
19519
19520 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19521 QCname.
19522 (ftfont_open): Set charset related members to -1.
19523
19524 * fontset.c (Votf_script_alist): New variable.
19525 (syms_of_fontset): Initialize it.
19526 (fontset_font): Delete unused variable.
19527
19528 * fontset.h (Votf_script_alist): Extern it.
19529
19530 * font.c (font_find_for_lface): Optimize code.
19531
19532 * font.h (font_close_object, font_merge_old_spec): Extern them.
19533
195342008-02-01 Kenichi Handa <handa@m17n.org>
19535
19536 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19537 (syms_of_font): Initialize them.
19538 (font_pixel_size): Allow float value in dpi.
19539 (font_prop_validate_type): Delete.
19540 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19541 Change caller.
19542 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19543 (font_prop_validate_extra): Delete.
19544 (font_prop_validate_spacing): New function.
19545 (font_property_table): Add elements for all known properties.
19546 (get_font_prop_index): Rename from check_font_prop_name. New
19547 argument FROM. Change caller.
19548 (font_prop_validate): Validate all known properties.
19549 (font_put_extra): Delete argument force. Change caller.
19550 (font_expand_wildcards): Make it static. Fix the way of shrinking
19551 the possible range.
19552 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19553 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19554 Change caller.
19555 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19556 (font_parse_fcname): Delete argument merge. Fix parsing of point
19557 size. Don't validate properties values here. Change caller.
19558 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19559 (font_open_by_name): Delete unused variable.
19560 (Ffont_spec): Likewise. Validate property values.
19561 (Ffont_match_p): New function.
19562
19563 * font.h (QCscalable): Extern it.
19564 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19565
19566 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19567
19568 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19569 (xfont_list_pattern): New function.
19570 (xfont_list): Use xfont_list_pattern.
19571
195722008-02-01 Kenichi Handa <handa@m17n.org>
19573
19574 * font.h (Flist_fonts): EXFUN it.
19575
195762008-02-01 Jason Rumney <jasonr@gnu.org>
19577
19578 * w32term.c (w32_initialize): Add back smoothing_type and
19579 smoothing_enabled definitions.
19580
195812008-02-01 Kenichi Handa <handa@m17n.org>
19582
19583 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19584 s->face->font on determining underline position.
19585
195862008-02-01 Kenichi Handa <handa@m17n.org>
19587
19588 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19589 (font_has_char): Accept font-object too.
19590 (font_find_for_lface): Try at first with a size specified in face.
19591
195922008-02-01 Kenichi Handa <handa@m17n.org>
19593
19594 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19595 font_open_by_name.
19596
195972008-02-01 Kenichi Handa <handa@m17n.org>
19598
19599 * font.h (QCspacing, QCdpi): Extern them.
19600 (enum font_spacing): New enum.
19601 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19602
19603 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19604 (QCspacing, QCdpi): New variables.
19605 (syms_of_font): Initialize them.
19606 (font_pixel_size): New function.
19607 (font_put_extra): New function.
19608 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19609 in FONT_EXTRA.
19610 (font_parse_fcname): Handle enumerated values (e.g. bold).
19611 Fix handling font size. Add QCname property that contains only
19612 unknown properties.
19613 (font_score): Change argument. Change caller. Pay attention to
19614 FONT_PIXEL_SIZE_QUANTUM.
19615 (font_sort_entites, font_list_entities, font_find_for_lface)
19616 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19617 (Ffont_spec): Add QCname property that contains only unknown properties.
19618
19619 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19620 include weight in listing pattern, instead check weight of each
19621 listed font. Don't include scalable in pattern. Pay attention to
19622 FONT_PIXEL_SIZE_QUANTUM.
19623
196242008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * font.c (font_parse_fcname): Fix parsing of point-size.
19627 (font_unparse_fcname): Produce symbolic names for style properties.
19628 (font_list_entities): Handle float size correctly.
19629 (font_open_by_name): Prefer `normal' property values if the name
19630 doesn't specify them.
19631
19632 * fontset.c (Finternal_char_font): Use font_get_name, not
19633 Ffont_xlfd_name.
19634
19635 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19636 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19637 pattern. Don't force scalable.
19638
19639 * xftfont.c (xftfont_open): For generating a name, start from
19640 96-byte buffer.
19641
196422008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19643
19644 * frame.h (x_new_fontset2): Fix prototype.
19645
196462008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * font.h (struct font_driver): Delete member parse_name.
19649 (font_match_p, font_get_spec, font_parse_fcname)
19650 (font_unparse_fcname): Extern them.
19651 (font_get_name): Adjust prototype.
19652
19653 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19654 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19655 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19656 unnecessary checks for weight, slant, and swidth.
19657 (font_parse_fcname): New function.
19658 (font_unparse_fcname): New function.
19659 (font_parse_name): New function.
19660 (font_match_p): New function.
19661 (font_get_name): Change return value to Lisp string.
19662 (font_get_spec): New function.
19663 (Qunspecified, Qignore_defface): Don't extern them.
19664 (font_find_for_lface): Assume that LFACE is fully specified.
19665 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19666 object, use it for FACE.
19667 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19668 driver->parse_name.
19669 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19670
19671 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19672 prototype.
19673
19674 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19675 argument F. Don't call Fnew_fontset. Instead, directly call
19676 make_fontset.
19677
19678 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19679
19680 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19681 of x_new_fontset2.
19682
19683 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19684 (Qsans__serif): New variables.
19685 (ftfont_generic_family_list): New variable.
19686 (syms_of_ftfont): Initialize the above variables.
19687 (ftfont_pattern_entity): Delete argument NAME.
19688 (ftfont_list_generic_family): New function.
19689 (ftfont_parse_name): Delete this function.
19690 (ftfont_list): Try generic family only when FcFontList found no font.
19691 (ftfont_list_family): Fix args to FcObjectSetBuild.
19692
19693 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19694 object in attrs[LFACE_FONT_INDEX].
19695 (set_lface_from_font_name): Cancel all changes for font-backend.
19696 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19697 function.
19698 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19699 font object in QCfont attribute.
19700 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19701 (realize_default_face) [USE_FONT_BACKEND]: Call
19702 set_lface_from_font_and_fontset.
19703
19704 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19705 "fixed", and signal error here if no suitable font was found.
19706
19707 * xfont.c (xfont_parse_name): Delete this function.
19708
19709 * xftfont.c (xftfont_open): Change coding style of error
19710 handling. Generate fontconfig's fontname pattern.
19711
19712 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19713 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19714
19715 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19716 Both args FONTSET and FONT_OBJECT must be existing ones.
19717
197182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19719
19720 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19721
197222008-02-01 Kenichi Handa <handa@m17n.org>
19723
19724 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19725
19726 * font.h (struct font): Fix typo.
19727
19728 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19729 XLFD_XXX_INDEX.
19730 (enum xlfd_field_mask): New enum.
19731 (intern_font_field): Changed argument. Change caller. If digits
19732 are followed by non-digits, return a symbol.
19733 (font_expand_wildcards): New function.
19734 (font_parse_xlfd): Fix wildcard handling.
19735 (Ffont_spec): If :name is specified, reflect the info in the other
19736 properties.
19737
19738 * ftfont.c (ftfont_pattern_entity): Fix typo.
19739 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19740 locale.
19741
197422008-02-01 Kenichi Handa <handa@m17n.org>
19743
19744 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19745
19746 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19747 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19748 registry doesn't specify encoding part.
19749 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19750 (font_open_by_name): At first try parsing the name.
19751 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19752 as Lisp symbols.
19753
19754 * fontset.c (reorder_font_vector): Pay attention to the case that
19755 the 3rd element of font_def is nil.
19756 (fontset_font): For the default fontset, append one more fontset
19757 elements for a script-based font specification. Don't add script
19758 attribute on finding a font.
19759 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19760 font name.
19761 (fontset_ascii_font): If a font can't be opened, return nil.
19762
19763 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19764 (ftfont_pattern_entity): New function.
19765 (ftfont_get_cache): Assume that freetype_font_cache is already
19766 initialized.
19767 (ftfont_list): Handle the case that a file is specified in font
19768 name. Use ftfont_pattern_entity to generate entities.
19769 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19770 (syms_of_ftfont): Initialize freetype_font_cache.
19771
19772 * xftfont.c (xftfont_open): Make the font name fontconfig's
19773 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19774 (xftfont_close): Free font->font.name if not NULL.
19775
19776 * xfont.c (xfont_list): If script is specified for a font, return
19777 null_vector.
19778 (xfont_list_family): Declare argument type.
19779
19780 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19781 name, set LFACE_FONT (lface) to nil.
19782
19783 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19784 return Qnil.
19785
197862008-02-01 Kenichi Handa <handa@m17n.org>
19787
19788 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19789 (standard_args): Add "-enable-font-backend".
19790
197912008-02-01 Kenichi Handa <handa@m17n.org>
19792
19793 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19794 (struct xftdraw_list, xftdraw_list): Delete them.
19795 (register_xftdraw, check_xftdraw): Delete them.
19796 (xftfont_prepare_face): Don't call register_xftdraw.
19797 (xftfont_done_face): Don't call check_xftdraw.
19798 (xftfont_draw): Get background color only when with_background is
19799 nonzero.
19800
19801 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19802
198032008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 These changes are for the new font handling codes.
19806
19807 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19808 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19809 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19810 (FONTSRC, FONTOBJ): New variables.
19811 (obj): Add $(FONTOBJ).
19812 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19813 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19814 @LIBOTF_LIBS@.
19815 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19816 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19817
19818 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19819
19820 * character.h (Vscript_representative_chars): Extern it.
19821
19822 * character.c (Vscript_representative_chars): New variable.
19823 (syms_of_character): Declare it as a Lisp variable.
19824
19825 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19826 enable_font_backend is nonzero, accept the composition method
19827 COMPOSITION_WITH_GLYPH_STRING.
19828
19829 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19830 enumeration COMPOSITION_WITH_GLYPH_STRING.
19831
19832 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19833 members clip_x, clip_y, clip_width, and clip_height.
19834 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19835
19836 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19837 --enable-font-backend. Call syms_of_font.
19838
19839 * fns.c (assoc_no_quit): New function.
19840
19841 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19842 (face_for_font, new_fontset_from_font)
19843 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19844
19845 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19846 (fontset_font, fontset_ascii, face_for_char)
19847 (make_fontset_for_ascii_face, Ffont_info)
19848 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19849 is nonzero, use font-backend mechanism.
19850 (find_font_encoding): Make it non-static.
19851 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19852 New functions.
19853
19854 * frame.h (struct frame): New members resx and resy.
19855 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19856 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19857
19858 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19859 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19860
19861 * lisp.h (assoc_no_quit): Extern it.
19862
19863 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19864 Through out the file, use FONT_INFO_FROM_FACE instead of
19865 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19866 rif->per_char_metric.
19867 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19868 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19869 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19870 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19871 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19872 nonzero, use font-backend mechanism.
19873 (get_per_char_metric): New function.
19874
19875 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19876 (set_lface_from_font_name)
19877 (set_font_frame_param, free_realized_face)
19878 (prepare_face_for_display, clear_face_gcs)
19879 (Finternal_set_font_selection_order, realize_x_face)
19880 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19881 font-backend mechanism.
19882 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19883 (load_face_font) [USE_FONT_BACKEND]: Abort.
19884 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19885 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19886
19887 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19888 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19889 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19890 nonzero, register all available font drivers. Call
19891 x_default_font_parameter for deciding a font.
19892 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19893
19894 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19895 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19896 (x_set_glyph_string_clipping_exactly)
19897 (x_compute_glyph_string_overhangs)
19898 (x_draw_glyph_string_foreground)
19899 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19900 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19901 enable_font_backend is nonzero, use font-backend mechanism.
19902 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19903
199042008-02-01 Kenichi Handa <handa@m17n.org>
19905
19906 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19907 system_eol_type.
19908 (syms_of_coding): Initialize system_eol_type.
19909
19910 * process.c (Fset_process_coding_system): Inherit system's eol
19911 format if necessary.
19912
199132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19914
19915 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19916
199172008-02-01 Kenichi Handa <handa@m17n.org>
19918
19919 * coding.c (decode_eol): Pay attention to buffer relocation in
19920 del_range_2.
19921 (decode_coding): Call decode_eol before restoring undo_list.
19922
199232008-02-01 Kenichi Handa <handa@m17n.org>
19924
19925 * charset.c (Fdefine_charset_internal): Fix setting of
19926 emacs_mule_bytes.
19927
199282008-02-01 Kenichi Handa <handa@m17n.org>
19929
19930 * keyboard.c (read_char): Check if C is a character or not before
19931 looking up Vkeyboard_translate_table.
19932
199332008-02-01 Kenichi Handa <handa@m17n.org>
19934
19935 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19936 condition to terminate the loop.
19937
199382008-02-01 Kenichi Handa <handa@m17n.org>
19939
19940 * coding.c (produce_composition): Compare charbuf[i] instead of
19941 args[i] against 0.
19942 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19943
199442008-02-01 Kenichi Handa <handa@m17n.org>
19945
19946 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19947 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19948 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19949 detect_coding.
19950 (emacs_mule_char): Handle old style (Emacs 20) component character
19951 of a composition.
19952 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19953 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19954 composition rule.
19955 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19956
199572008-02-01 Kenichi Handa <handa@m17n.org>
19958
19959 * coding.c (encode_coding_ccl): Allocate destination dynamically
19960 when necessary.
19961
199622008-02-01 Kenichi Handa <handa@m17n.org>
19963
19964 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19965 the loop. When quitted, show a proper error message.
19966
199672008-02-01 Kenichi Handa <handa@m17n.org>
19968
19969 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19970 src->clip_head and src->clip_tail temporarily instead of src->hl.
19971
19972 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19973 character sequence.
19974 (Fccl_execute_on_string): Use ASET, not XSET.
19975
199762008-02-01 Kenichi Handa <handa@m17n.org>
19977
19978 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19979
199802008-02-01 Kenichi Handa <handa@m17n.org>
19981
19982 * coding.c (decode_coding): Fix the condition of terminating the
19983 decoding loop.
19984
199852008-02-01 Kenichi Handa <handa@m17n.org>
19986
19987 * data.c (Faset): On setting a character bigger than 255 in a
19988 unibyte string, signal an error instead of make the string multibyte.
19989
199902008-02-01 Kenichi Handa <handa@m17n.org>
19991
19992 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19993 made by a mapping table.
19994
199952008-02-01 Kenichi Handa <handa@m17n.org>
19996
19997 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19998 not.
19999 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20000 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20001
20002 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20003 s->face is NULL or not.
20004
200052008-02-01 Kenichi Handa <handa@m17n.org>
20006
20007 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20008 (x_draw_glyph_string): Fix drawing of right_overhang and
20009 left_overhang around/on cursor.
20010
20011 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20012
200132008-02-01 Kenichi Handa <handa@m17n.org>
20014
20015 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20016
200172008-02-01 Kenichi Handa <handa@m17n.org>
20018
20019 * coding.c (Fdefine_coding_system_internal)
20020 (Fdefine_coding_system_alias): Avoid a duplicated element in
20021 Vcoding_system_alist.
20022
200232008-02-01 Kenichi Handa <handa@m17n.org>
20024
20025 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20026
20027 * coding.c (Qcoding_system_define_form): New variable.
20028 (syms_of_coding): Intern and staticpro it.
20029 (Fcoding_system_p): Check Qcoding_system_define_form.
20030 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20031
20032 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20033 Fcoding_system_p.
20034 (CHECK_CODING_SYSTEM): If ID is not available, call
20035 Fcheck_coding_system.
20036 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20037 Try also Fcheck_coding_system.
20038
200392008-02-01 Kenichi Handa <handa@m17n.org>
20040
20041 * coding.c (code_conversion_restore): GCPRO arg.
20042
200432008-02-01 Kenichi Handa <handa@m17n.org>
20044
20045 * character.c (lisp_string_width): Check multibyteness of STRING.
20046
200472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20048
20049 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20050 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20051 (decode_mac_font_name): Use decode_coding_c_string instead of
20052 decode_coding.
20053 (x_load_font): Initialize fontp->fontset to -1. Set
20054 fontp->encoding_type.
20055
200562008-02-01 Kenichi Handa <handa@m17n.org>
20057
20058 * search.c (search_buffer): Give up BM search on case-fold-search
20059 if one of a target character has a case-equivalence of different
20060 byte length even if that target charcter is an ASCII.
20061 (simple_search): Fix calculation of byte length of matched text.
20062 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20063
200642008-02-01 Kenichi Handa <handa@m17n.org>
20065
20066 * coding.c (decode_coding): Fix handling of invalid bytes.
20067
200682008-02-01 Kenichi Handa <handa@m17n.org>
20069
20070 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20071 Unicode characters.
20072
200732008-02-01 Kenichi Handa <handa@m17n.org>
20074
20075 * coding.c (encode_coding_object): If a pre-write-conversion
20076 function makes a new buffer, kill it.
20077
200782008-02-01 Kenichi Handa <handa@m17n.org>
20079
20080 * coding.c (QCascii_compatible_p): New variable.
20081 (syms_of_coding): Initialize it.
20082 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20083 calling string_char.
20084 (record_conversion_result): Add `default:' case.
20085 (coding_charset_list): Delete unused variable `coding_type'.
20086 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20087 property in the plist of the coding system.
20088 (Fcoding_system_put): Check QCascii_compatible_p.
20089
200902008-02-01 Miles Bader <miles@gnu.org>
20091
20092 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20093 removed calculation of frame `f', as it's now used.
20094
200952008-02-01 Kenichi Handa <handa@m17n.org>
20096
20097 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20098 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20099 (UNIDATA): New variable.
20100 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20101 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20102 $(RUN_TEMACS) unconditionally.
20103
201042008-02-01 Kenichi Handa <handa@m17n.org>
20105
20106 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20107 (admindir): New variable.
20108 ($(lispsource)international/charprop.el): New target.
20109
201102008-02-01 Miles Bader <miles@gnu.org>
20111
20112 * character.c (chars-in-region): Remove obsolete function.
20113 (syms_of_character): Remove its initialization.
20114
201152008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20116
20117 * w32select.c (validate_coding_system)
20118 (setup_windows_coding_system): New functions.
20119 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20120 setup_windows_coding_system.
20121 (setup_config, Fw32_get_clipboard_data): Use
20122 validate_coding_system.
20123 (Fx_selection_exists): Move call to setup_config to a place
20124 where signals are allowed.
20125
20126 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20127 (Fcheck_coding_system): Add declarations.
20128
201292008-02-01 Kenichi Handa <handa@m17n.org>
20130
20131 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20132
201332008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20134
20135 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20136 string as the second argument for x_new_fontset.
20137
201382008-02-01 Kenichi Handa <handa@m17n.org>
20139
20140 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20141 (encode_coding_object): Use safe_call instead of call2.
20142
201432008-02-01 Kenichi Handa <handa@m17n.org>
20144
20145 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20146
20147 * Makefile.in (lisp): Include charprop.el.
20148
201492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20150
20151 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20152 Not sure if it's unnecessary.
20153
201542008-02-01 Steven Tamm <steventamm@mac.com>
20155
20156 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20157 some possibly unnecessary fontset checking code that crashed
20158 when creating a new frame.
20159
201602008-02-01 Kenichi Handa <handa@m17n.org>
20161
20162 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20163 lookup_face.
20164
20165 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20166
20167 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20168
201692008-02-01 Kenichi Handa <handa@m17n.org>
20170
20171 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20172 (coding_charset_list): New function.
20173
20174 * coding.h (coding_charset_list): Extern it.
20175
201762008-02-01 Kenichi Handa <handa@m17n.org>
20177
20178 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20179 concatenation of family and registry.
20180
201812008-02-01 Kenichi Handa <handa@m17n.org>
20182
20183 * character.h (BYTE8_STRING): Fix typo.
20184
20185 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20186 string to multibyte (sync to HEAD).
20187
20188 * casefiddle.c (casify_region): Handle changes in byte-length
20189 using replace_range_2 (sync to HEAD).
20190
201912008-02-01 Andreas Schwab <schwab@suse.de>
20192
20193 * chartab.c (map_char_table): GCPRO table and arg.
20194
201952008-02-01 Kenichi Handa <handa@m17n.org>
20196
20197 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20198 already at limit.
20199
202002008-02-01 Kenichi Handa <handa@m17n.org>
20201
20202 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20203 instead of fast_c_string_match_ignore_case.
20204 (find_font_encoding): Change argument to Lisp_Object. Use
20205 fast_string_match_ignore_case instead of
20206 fast_c_string_match_ignore_case. Change caller.
20207
202082008-02-01 Kenichi Handa <handa@m17n.org>
20209
20210 * xdisp.c (get_next_display_element): In unibyte case, decide to
20211 display in octal form by checking a character by
20212 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20213
20214 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20215
20216 * character.c (unibyte_has_multibyte_table): New variable.
20217
20218 * character.h (unibyte_has_multibyte_table): Extern it.
20219 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20220
202212008-02-01 Kenichi Handa <handa@m17n.org>
20222
20223 * coding.c (encode_coding_iso_2022): Fix handling of charset
20224 annotation.
20225
202262008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * coding.c (setup_coding_system): If coding_system is nil, use
20229 Qundecided.
20230 (Fterminal_coding_system): Return nil if terminal coding system is
20231 `undecided'.
20232 (syms_of_coding): Define coding-system `undecided' here. Setup
20233 terminal_coding as `undecided'.
20234
202352008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * xdisp.c (message_dolog, set_message_1): Call
20238 unibyte_char_to_multibyte with arg type int.
20239
20240 * lread.c (read1): Fix reading of a char-table.
20241
20242 * print.c (print_object): Include sub char-table in circularities
20243 detection.
20244
202452008-02-01 Kenichi Handa <handa@m17n.org>
20246
20247 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20248 Append the found sequences in car of ARGS instead of prepending.
20249
202502008-02-01 Kenichi Handa <handa@m17n.org>
20251
20252 * fileio.c (report_file_error): Make a unibyte string from
20253 strerror (errorno).
20254 (Fsubstitute_in_file_name): Fix the arg to
20255 unibyte_char_to_multibyte. It is evaluated twice.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20260
202612008-02-01 Kenichi Handa <handa@m17n.org>
20262
20263 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20264 BOM is not found.
20265 (detect_coding, detect_coding_system): Optimization for ISO-2022
20266 when no 8-bit data is found.
20267
202682008-02-01 Jason Rumney <jasonr@gnu.org>
20269
20270 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20271
202722008-02-01 Kenichi Handa <handa@m17n.org>
20273
20274 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20275 CHARS.
20276
202772008-02-01 Steven Tamm <steventamm@mac.com>
20278
20279 * macterm.c (mac_encode_char): Add charset argument and update
20280 to use encoding_type.
20281 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20282 switch to pure fontset.
20283 (decode_mac_font_name): Temporarily remove decoding.
20284 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20285 (x_load_font): Temporarily remove encoding.
20286
202872008-02-01 Kenichi Handa <handa@m17n.org>
20288
20289 * xfaces.c (Fface_font): If frame is not on a window system,
20290 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20291 refer to face->font.
20292 (split_font_name_into_vector, build_font_name_from_vector)
20293 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20294 when HAVE_WINDOW_SYSTEM is defined.
20295
202962008-02-01 Kenichi Handa <handa@m17n.org>
20297
20298 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20299 (x_produce_glyphs): Fix setting of members of cmp in case
20300 cmp->glyph_len is zero.
20301
20302 * fontset.c (Fset_fontset_font): Fix docstring.
20303 (Ffontset_info): Make it backward compatible. New arg ALL.
20304
203052008-02-01 Kim F. Storm <storm@cua.dk>
20306
20307 * process.c (read_process_output): Grow decoding_buf when needed;
20308 this could cause a crash in allocate_string and compact_small_strings.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20313
203142008-02-01 Kenichi Handa <handa@m17n.org>
20315
20316 * coding.c (setup_coding_system): Set coding->common_flags
20317 correctly for raw-text.
20318 (consume_chars): On encoding unibyte text by raw-text, don't check
20319 multibyte form.
20320 (encode_coding): On encoding by raw-text, never use translation tables.
20321
20322 * fileio.c (e_write): Short cut for the case of no encoding.
20323
203242008-02-01 Kenichi Handa <handa@m17n.org>
20325
20326 * coding.c (detect_coding, detect_coding_system): Delete unused
20327 variables.
20328
203292008-02-01 Kenichi Handa <handa@m17n.org>
20330
20331 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20332 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20333
203342008-02-01 Kenichi Handa <handa@m17n.org>
20335
20336 * coding.c (Ffind_coding_systems_region_internal): Include
20337 raw-text and no-conversion in the result.
20338
203392008-02-01 Kenichi Handa <handa@m17n.org>
20340
20341 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20342 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20343 FONT_DEF.
20344 (font_def_arg, add_arg, from_arg, to_arg): New args.
20345 (set_fontset_font): Change argument.
20346 (Fset_fontset_font): Fix for the case that TARGET is a script
20347 name and charset name.
20348 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20349
203502008-02-01 Kenichi Handa <handa@m17n.org>
20351
20352 * fontset.c (fontset_font): Rename from fontset_face. Change return
20353 value.
20354 (face_suitable_for_char_p, face_for_char): Adjust for the change
20355 of fontset_font.
20356 (make_fontset_for_ascii_face): Fix setting of the fontset element
20357 for ASCII.
20358 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20359 to get a font name.
20360 (Ffontset_info): Adjust for the change of fontset_font.
20361
20362 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20363
20364 * character.h (LEADING_CODE_LATIN_1_MIN)
20365 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20366
203672008-02-01 Kenichi Handa <handa@m17n.org>
20368
20369 * editfns.c (check_translation): New function.
20370 (Ftranslate_region_internal): Handle M:N mapping.
20371
203722008-02-01 Kenichi Handa <handa@m17n.org>
20373
20374 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20375
203762008-02-01 Kenichi Handa <handa@m17n.org>
20377
20378 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20379 goto invalid_code.
20380 (decode_coding_iso_2022): Fix handling of invalid designation.
20381
20382 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20383 after calling code_conversion_save.
20384
203852008-02-01 Kenichi Handa <handa@m17n.org>
20386
20387 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20388
20389 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20390
20391 * fontset.c: Include "intervals.h".
20392 (fontset_face): Fix comparing of Lisp_Objects.
20393 (free_face_fontset, new_fontset_from_font_name): Fix
20394 Lisp_Object/int mixup.
20395
20396 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20397
20398 * coding.c: Add many prototypes for static functions.
20399 (get_translation_table): Allow max_lookup to be NULL.
20400 (decode_coding, Ffind_coding_systems_region_internal)
20401 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20402 get_translation_table with max_lookup NULL.
20403
204042008-02-01 Kenichi Handa <handa@m17n.org>
20405
20406 * coding.c (get_translation_table): Declare it as Lisp_Object.
20407 (LOOKUP_TRANSLATION_TABLE): New macro.
20408 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20409 instead of CHAR_TABLE_REF.
20410
204112008-02-01 Kenichi Handa <handa@m17n.org>
20412
20413 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20414 annotation data format.
20415 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20416 Change arguments FROM and TO to single argument NCHARS. Change caller.
20417 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20418 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20419 (decode_coding_ccl, decode_coding_charset): Pay attention to
20420 coding->charbuf_used.
20421 (get_translation): New function.
20422 (produce_chars): New arguments translation_table and last_block.
20423 Translate characters here. Return number of carryover chars.
20424 Change caller.
20425 (produce_composition): New argument pos. Change caller.
20426 Adjust for the change of annotation data format.
20427 (produce_charset, produce_annotation): Likewise.
20428 (decode_coding, encode_coding): Don't call translate_chars.
20429 (consume_chars): New arg translation_table. Change caller.
20430 (translate_chars): Delete.
20431 (syms_of_coding): Make translation-table's number of extra slots 2.
20432
204332008-02-01 Kenichi Handa <handa@m17n.org>
20434
20435 * search.c (simple_search): Fix setting this_pos_byte in backward
20436 search.
20437
20438 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20439 byte sequence.
20440 (detect_coding_ccl): Fix setting of the variable valids.
20441
204422008-02-01 Kenichi Handa <handa@m17n.org>
20443
20444 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20445
20446 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20447
20448 * editfns.c (Ftranslate_region_internal): Rename from
20449 Ftranslate_region. Accept a char-table in TABLE.
20450 (syms_of_editfns): Defsubr Stranslate_region_internal.
20451
20452 * xfaces.c (set_lface_from_font_name): If a font is specified for
20453 a frame, generate a fontset from the font.
20454 (build_scalable_font_name): If the scalable font is requested for
20455 a specific size, don't change that size.
20456 (try_font_list): Try a scalable font also in the case that a
20457 pattern string is specified.
20458
204592008-02-01 Kenichi Handa <handa@m17n.org>
20460
20461 * xfaces.c (Fface_font): New optional arg CHARACTER.
20462
204632008-02-01 Kenichi Handa <handa@m17n.org>
20464
20465 * charset.h (CHARSET_OFFSET): New macro.
20466
204672008-02-01 Kenichi Handa <handa@m17n.org>
20468
20469 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20470
20471 * fontset.c (fontset_face): Handle the case that repertory is a
20472 char-table.
20473 (find_font_encoding): Return nil for unknown encoding.
20474 (Fset_fontset_font): Ignore a font of unknown encoding.
20475
204762008-02-01 Kenichi Handa <handa@m17n.org>
20477
20478 * keymap.c (describe_vector): Handle default value of a char table.
20479
20480 * fontset.c (fontset_face): Handle fallback fonts correctly.
20481 (Ffontset_info): Return infomation about fallback fonts.
20482
204832008-02-01 Kenichi Handa <handa@m17n.org>
20484
20485 * fontset.c (FONTSET_DEFAULT): New macro.
20486 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20487 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20488 the case that it is nil.
20489 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20490 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20491
20492 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20493 subset or superset.
20494
204952008-02-01 Kenichi Handa <handa@m17n.org>
20496
20497 * emacs.c (main): Call init_charset after syms_of_XXX.
20498
20499 * charset.c (Vcharset_map_directory): Delete.
20500 (Vcharset_map_path): New variable.
20501 (load_charset_map_from_file): Use Vcharset_map_path instead.
20502 (init_charset): Initialize Vcharset_map_path.
20503 (syms_of_charset): Delete declaration of "charset-map-directory",
20504 add declaration of "charset-map-path".
20505
205062008-02-01 Kenichi Handa <handa@m17n.org>
20507
20508 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20509 ASCII only string.
20510
20511 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20512
20513 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20514 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20515
205162008-02-01 Kenichi Handa <handa@m17n.org>
20517
20518 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20519
20520 * coding.c (QCmnemonic, QCdefalut_char)
20521 (QCdecode_translation_table, QCencode_translation_table)
20522 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20523 (get_translation_table): Return a list of translation tables if
20524 necessary.
20525 (decode_coding): Call get_translation_table with ENCODEP 0.
20526 (char_encodable_p): If translation_table is non-nil, always call
20527 translate_char.
20528 (Fdefine_coding_system_internal): Accept list of translation
20529 tables as :encode-translation-table and :decode-translation-table.
20530 (Fcoding_system_put): New function.
20531 (syms_of_coding): Declare new symbols. Defsubr
20532 Scoding_system_put.
20533 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20534 typically JISX0212.
20535
20536 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20537 when the charset is superset type.
20538
20539 * character.c (translate_char): Accept list of translation tables.
20540
205412008-02-01 Kenichi Handa <handa@m17n.org>
20542
20543 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20544 (CODING_ATTR_TRANS_TBL): New macro.
20545
20546 * coding.c (get_translation_table): New function.
20547 (translate_chars): Fix the bug of skipping annotation data.
20548 (decode_coding, encode_coding): Utilize get_translation_table.
20549 (char_encodable_p, Funencodable_char_position): Translate char if
20550 necessary.
20551 (Ffind_coding_systems_region_internal)
20552 (Fcheck_coding_systems_region): Setup translation table for encode
20553 in a coding system attribute vector in advance.
20554 (Fdefine_coding_system_internal): Allow a symbol as translation
20555 table. For shift-jis type coding system, allow 4th charset.
20556
205572008-02-01 Kenichi Handa <handa@m17n.org>
20558
20559 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20560
20561 * xdisp.c (get_next_display_element): Pass -1 as POS to
20562 FACE_FOR_CHAR if displaying a C-string.
20563
205642008-02-01 Kenichi Handa <handa@m17n.org>
20565
20566 * composite.c (get_composition_id): Handle xoff and yoff in a
20567 composition rule.
20568
20569 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20570 (struct composition): New member lbearing and rbearing.
20571
20572 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20573 (x_get_glyph_overhangs): Handle a composition glyph.
20574 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20575
20576 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20577 composition glyph.
20578
205792008-02-01 Kenichi Handa <handa@m17n.org>
20580
20581 * print.c: Include charset.h.
20582 (Vprint_charset_text_property): New variable.
20583 (Qdefault): Extern it.
20584 (PRINT_STRING_NON_CHARSET_FOUND)
20585 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20586 (print_check_string_result): New variable.
20587 (print_check_string_charset_prop): New function.
20588 (print_prune_charset_plist): New variable.
20589 (print_prune_string_charset): New function.
20590 (print_object): Call print_prune_string_charset if
20591 Vprint_charset_text_property is not t.
20592 (print_interval): Print nothing if interval->plist is nil.
20593 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20594 variable. Init and staticpro print_prune_charset_plist.
20595
205962008-02-01 Kenichi Handa <handa@m17n.org>
20597
20598 * fontset.c (new_fontset_from_font_name): Use the specified font
20599 for all characters in the new fontset.
20600
20601 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20602 OBJECT args.
20603
20604 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20605 OBJECT args for composition too.
20606
20607 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20608 OBJECT args.
20609
206102008-02-01 Kenichi Handa <handa@m17n.org>
20611
20612 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20613
20614 * fontset.c (reorder_font_vector): Adjust for the change of
20615 FONT_DEF format.
20616 (fontset_face): New arg id. Change caller.
20617 (face_for_char): New args pos and object.
20618 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20619 (fs_query_fontset): Check NAME by Fassoc too.
20620 (Fset_fontset_font): Allow non-XLFD font name.
20621 (Ffontset_info): Adjust for the change of FONT_DEF format.
20622
20623 * fontset.h (face_for_char): Adjust prototype.
20624
20625 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20626 (append_space, extend_face_to_end_of_line)
20627 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20628 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20629
20630 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20631 POS and OBJECT args.
20632
20633 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20634 POS and OBJECT args.
20635
206362008-02-01 Jason Rumney <jasonr@gnu.org>
20637
20638 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20639 of GlobalAlloc'ed memory.
20640
206412008-02-01 Kenichi Handa <handa@m17n.org>
20642
20643 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20644
20645 * charset.h (charset_table_used): Delete extern.
20646
20647 * charset.c (charset_table_used): Make it static.
20648 (map_charset_chars): Fix args to c_function with.
20649
20650 * chartab.c (map_sub_char_table_for_charset): Fix args to
20651 c_function with.
20652
20653 * coding.h (enum coding_result_code): Delete
20654 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20655
20656 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20657 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20658 (Vlast_code_conversion_error): New variables.
20659 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20660 (ONE_MORE_BYTE): Record error if any instead of signaling an
20661 error. If non-ASCII multibyte char is found, return the negative
20662 value of the code. All callers changed to check it.
20663 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20664 (record_conversion_result): New function. Change all codes setting
20665 coding->result to call this function.
20666 (detect_coding_utf_8, decode_coding_utf_8)
20667 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20668 Don't use the local variable incomplete.
20669 (emacs_mule_char): Change the second arg to `const'.
20670 (decode_coding): Fix of flushing out unprocessed data.
20671 (make_conversion_work_buffer): Fix making of a work buffer.
20672 (decode_coding_object): Return coding->dst_object.
20673
20674 * fontset.c (set_fontset_font): Fix args.
20675
20676 * lisp.h (CHARACTERBITS): Define as 22.
20677
20678 * process.c (send_process): Be sure to set coding->src_multibyte.
20679
20680 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20681
206822008-02-01 Kenichi Handa <handa@m17n.org>
20683
20684 * xdisp.c (handle_auto_composed_prop): Give limit to
20685 Fnext_single_char_property_change.
20686
206872008-02-01 Kenichi Handa <handa@m17n.org>
20688
20689 * composite.c (syms_of_composite): Don't make the composition hash
20690 table weak.
20691
20692 * fontset.c (Fset_fontset_font): Fix docstring.
20693
20694 * lisp.h (detect_coding_system): Adjust prototype.
20695
20696 * fileio.c (kill_workbuf_unwind): Delete this function.
20697 (Finsert_file_contents): Adjust the call of detect_coding_system.
20698 Get conversion_buffer by code_conversion_save. Use the macro
20699 CODING_MAY_REQUIRE_DECODING. After decoding, update
20700 coding_system.
20701
20702 * coding.h (make_conversion_work_buffer): Delete extern.
20703 (code_conversion_save): Extern it.
20704
20705 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20706 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20707 (decode_coding_utf_8): Don't do eol converion.
20708 (detect_coding_utf_16): Check coding->src_chars, not
20709 coding->src_bytes. Add heuristics for those that have no signature.
20710 (decode_coding_emacs_mule, decode_coding_iso_2022)
20711 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20712 Don't do eol converion.
20713 (adjust_coding_eol_type): Return a new coding system.
20714 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20715 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20716 each change.
20717 (decode_coding): Pay attention to undo_list. Do eol conversion for
20718 all types of coding-systems (if necessary).
20719 (Vcode_conversion_work_buf_list): Delete it.
20720 (Vcode_conversion_reused_workbuf): Rename from
20721 Vcode_conversion_reused_work_buf.
20722 (Vcode_conversion_workbuf_name): New variable.
20723 (reused_workbuf_in_use): New variable.
20724 (make_conversion_work_buffer): Delete the arg DEPTH.
20725 (code_conversion_restore): Change argument to cons.
20726 (code_conversion_save): Delete the argument BUFFER. Change callers.
20727 (detect_coding_system): New argument src_chars. Change callers.
20728 Fix for utf-16 detection.
20729 (init_coding_once): Don't use ISO_carriage_return.
20730 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20731 reused_workbuf_in_use.
20732
207332008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * keymap.c (store_in_keymap): Pay attention to the case that idx
20736 is a cons specifying a character range.
20737
207382008-02-01 Kenichi Handa <handa@m17n.org>
20739
20740 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20741 HANDLED_RECOMPUTE_PROPS.
20742
20743 * coding.c (Fdefine_coding_system_internal): Fix checking of
20744 ascii compatibility.
20745
207462008-02-01 Kenichi Handa <handa@m17n.org>
20747
20748 * charset.c (find_charsets_in_text): Delete unused locale variable.
20749 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20750
20751 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20752 Resync charset_list to Vemacs_mule_charset_list.
20753
20754 * keymap.c (store_in_keymap): Pay attention to the case that idx
20755 is a cons specifying a character range.
20756
207572008-02-01 Kenichi Handa <handa@m17n.org>
20758
20759 * composite.c (update_compositions): Bind inhibit-read-only, etc
20760 to t before calling remove-list-of-text-properties.
20761
20762 * print.c (print_object): Always print ASCII chars as is.
20763
207642008-02-01 Kenichi Handa <handa@m17n.org>
20765
20766 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20767
20768 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20769 is a char table.
20770
207712008-02-01 Kenichi Handa <handa@m17n.org>
20772
20773 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20774
207752008-02-01 Kenichi Handa <handa@m17n.org>
20776
20777 * xfaces.c (set_lface_from_font_name): Fix for the case that
20778 FONTNAME is not fontset name.
20779
207802008-02-01 Kenichi Handa <handa@m17n.org>
20781
20782 * fns.c (base64_encode_1): Fix previous change.
20783
207842008-02-01 Kenichi Handa <handa@m17n.org>
20785
20786 * fontset.c (set_fontset_font): New function.
20787 (Fset_fontset_font): If a font is specified for a charset, use
20788 map_charset_chars to store the font spec in a fontset.
20789
207902008-02-01 Kenichi Handa <handa@m17n.org>
20791
20792 * fontset.c (fontset_face): Create a fallback fontset on demand.
20793 (make_fontset): Don't create a fallback fontset here.
20794 (free_face_fontset): Free a fallback fontset (if any) too.
20795 (n_auto_fontsets): Delete this variable.
20796 (auto_fontset_alist): New variable.
20797 (new_fontset_from_font_name): Check auto_fontset_alist.
20798 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20799 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20800 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20801 Defsubr Sfontset_list_all.
20802
208032008-02-01 Kenichi Handa <handa@m17n.org>
20804
20805 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20806
208072008-02-01 Kenichi Handa <handa@m17n.org>
20808
20809 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20810
208112008-02-01 Kenichi Handa <handa@m17n.org>
20812
20813 * editfns.c (Fgoto_char): Fix docstring.
20814
208152008-02-01 Kenichi Handa <handa@m17n.org>
20816
20817 * insdel.c (insert_from_gap): Adjust intervals correctly.
20818
208192008-02-01 Jason Rumney <jasonr@gnu.org>
20820
20821 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20822 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20823 (w32_initialize): Try to load it.
20824 (x_get_font_repertory): Use it if available.
20825 (w32_encode_char): Add shortcut for unicode output.
20826
20827 * w32fns.c (w32_load_system_font): Default charset to -1.
20828 (x_to_w32_charset): Match all fonts for unicode.
20829 (w32_to_x_charset): New parameter matching. Don't return partial
20830 or wildcard charsets.
20831 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20832 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20833 (w32_to_x_font): Match charset to real charset.
20834 (enum_font_cb2): Always list unicode versions.
20835
20836 * makefile.w32-in (temacs): Increase EMHEAP.
20837
208382008-02-01 Jason Rumney <jasonr@gnu.org>
20839
20840 * w32term.c (w32_encode_char): New charset parameter.
20841 font_info.encoding becomes encoding_type.
20842 (x_get_font_repertory): New function. Warning: stub only!
20843 (x_new_font): Return quickly if font already set.
20844 (x_new_fontset): fontsetname parameter is Lisp_Object.
20845 Use new fs_query_fontset. Try new_fontset_from_font_name.
20846 Use fontset_name for return value.
20847
20848 * w32term.h: Declare x_get_font_repertory.
20849
20850 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20851 place of find_charset_in_text. Use encode_coding_object in place
20852 of encode_coding.
20853 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20854 decode_coding.
20855
20856 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20857 of x_new_fontset.
20858 (w32_load_system_font): Initialize charset as unicode.
20859 font_info.encoding becomes encoding_type.
20860 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20861 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20862 (syms_of_w32fns): Set get_font_repertory_func.
20863
20864 * w32console.c: Include character.h. Use terminal_encode_buffer
20865 from term.c.
20866 (write_glyphs): Use new version of encode_terminal_code. Use
20867 encode_coding_object in place of encode_coding.
20868
20869 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20870 encoding becomes encoding_type.
20871
20872 * term.c (terminal_encode_buffer): Make externally visible.
20873
20874 * makefile.w32-in: Add character.h dependancies.
20875 (character.o, chartab.o): New targets.
20876
208772008-02-01 Kenichi Handa <handa@m17n.org>
20878
20879 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20880 CODING_ID_EOL_TYPE.
20881
208822008-02-01 Andreas Schwab <schwab@suse.de>
20883
20884 * coding.c (produce_chars): Revert last change.
20885
208862008-02-01 Kenichi Handa <handa@m17n.org>
20887
20888 * charset.h (charset_unicode): Extern it.
20889
20890 * charset.c (string_xstring_p): Check by (C >= 0x100).
20891 (find_charsets_in_text): Change format of the arc CHARSETS. New
20892 arg MULTIBYTE.
20893 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20894 change of find_charsets_in_text.
20895 (Fsplit_char): Fix doc. Never return unknown.
20896
20897 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20898
20899 * coding.c (Fdefine_coding_system_alias): Update
20900 Vcoding_system_list.
20901
20902 * fontset.c (load_font_get_repertory): Pay attention to the case
20903 that ENCODING of a font is specified by a char-table.
20904
20905 * xterm.c (x_get_font_repertory): Handle the case that the
20906 encoding of font is other than Unicode.
20907
209082008-02-01 Kenichi Handa <handa@m17n.org>
20909
20910 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20911 if a character is encodable by the terminal coding system. If
20912 not, produces proper number of `?'s. Update
20913 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20914 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20915
209162008-02-01 Kenichi Handa <handa@m17n.org>
20917
20918 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20919 variables.
20920 (encode_terminal_code): Change argument. Encode multiple
20921 characters at once. Store the result of encoding in
20922 terminal_encode_buffer.
20923 (write_glyphs, insert_glyphs): Adjust for the change of
20924 encode_terminal_code.
20925 (term_init): Initialize terminal_encode_buffer and
20926 terminal_encode_buf_size.
20927
20928 * coding.c (consume_chars): If coding->src_object is nil, don't
20929 check annotation.
20930
209312008-02-01 Kenichi Handa <handa@m17n.org>
20932
20933 * character.c (char_string): Use ASCII_CHAR_P instead of
20934 SINGLE_BYTE_CHAR_P.
20935
209362008-02-01 Kenichi Handa <handa@m17n.org>
20937
20938 * xdisp.c (handle_auto_composed_prop): Check if the last
20939 characters of auto-composed region is newly composed with the
20940 following characters.
20941 (handle_composition_prop): Fix checking of point being inside
20942 composition.
20943
209442008-02-01 Kenichi Handa <handa@m17n.org>
20945
20946 * fns.c (concat): Don't change multibyteness of the result by
20947 concatenating an 8-bit character.
20948
20949 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20950 multibyteness of the result when newelt is an 8-bit character.
20951
209522008-02-01 Dave Love <fx@gnu.org>
20953
20954 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20955 EMACS_INT.
20956
20957 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20958
20959 * xfaces.c (face_numeric_value): Declare dim size_t.
20960 (Finternal_lisp_face_equal_p): Remove unused f.
20961
20962 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20963 (MATRIX_ROW): Remove unused vars.
20964 (draw_glyphs, x_insert_glyphs, fast_find_position)
20965 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20966 byte/char counts.
20967
20968 * regex.c (regex_compile): Remove unused var.
20969
20970 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20971
20972 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20973 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20974
20975 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20976
20977 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20978
20979 * fileio.c (Fwrite_region): Remove unused var.
20980
20981 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20982 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20983
20984 * composite.c (Fremove_list_of_text_properties): Declare.
20985
20986 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20987 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20988 (coding_inherit_eol_type): Remove unused attrs.
20989 (detect_coding): Cast arg of detect_eol.
20990
20991 * charset.c (syms_of_charset): Remove unused var p.
20992 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20993 byte/char counts.
20994
20995 * casetab.c (set_case_table): Remove unused var.
20996
20997 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20998 unused vars.
20999
210002008-02-01 Dave Love <fx@gnu.org>
21001
21002 * xterm.c (x_bitmap_mask): Declare.
21003
210042008-02-01 Dave Love <fx@gnu.org>
21005
21006 * xterm.c (x_term_init): Fix type error.
21007
21008 * lisp.h: Add Funibyte_char_to_multibyte.
21009
21010 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21011 (Fset_coding_system_priority): Doc fix.
21012
21013 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21014
21015 * indent.c (check_composition): Make start and end EMACS_INT.
21016
21017 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21018
21019 * xdisp.c (handle_composition_prop, check_point_in_composition):
21020 Make buffer positions EMACS_INT.
21021
21022 * composite.c (find_composition, run_composition_function)
21023 (update_compositions, Ffind_composition_internal): Make buffer
21024 positions EMACS_INT.
21025
21026 * composite.h (find_composition, update_compositions): Make
21027 position args EMACS_INT.
21028
21029 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21030
21031 * intervals.c (get_property_and_range):
21032 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21033
21034 * unexalpha.c: Don't include varargs.h.
21035
210362008-02-01 Dave Love <fx@gnu.org>
21037
21038 * coding.h (ENCODE_UTF_8): New.
21039
21040 * Makefile.in (gtkutil.o): Depend on coding.h.
21041
21042 * coding.c (Fset_coding_system_priority): Doc fix.
21043
210442008-02-01 Kenichi Handa <handa@m17n.org>
21045
21046 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21047 the case of auto saving.
21048
210492008-02-01 Andreas Schwab <schwab@suse.de>
21050
21051 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21052 `range' from GC.
21053
210542008-02-01 Kenichi Handa <handa@m17n.org>
21055
21056 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21057
210582008-02-01 Kenichi Handa <handa@m17n.org>
21059
21060 * fileio.c (choose_write_coding_system): Return a decided coding system.
21061 (Fwrite_region): Set Vlast_coding_system_used to the return value
21062 of choose_write_coding_system.
21063
210642008-02-01 Kenichi Handa <handa@m17n.org>
21065
21066 * charset.c (Fset_charset_priority): Pay attention to duplicated
21067 arguments.
21068
21069 * coding.c (QCcategory): New variable.
21070 (syms_of_coding): Defsym it. Set all elements of
21071 Vcoding_category_table and their symbol values.
21072 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21073 coding-category-XXX, and coding-category-list.
21074 (Fdefine_coding_system_internal): Add category in the plist.
21075
210762008-02-01 Kenichi Handa <handa@m17n.org>
21077
21078 * callproc.c (Fcall_process): Handle carryover correctly.
21079
21080 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21081 (raw_text_coding_system): Check NILP (coding_system).
21082 (coding_inherit_eol_type): Check NILP (coding_system) and
21083 NILP (parent).
21084 (consume_chars): Fix for the case of raw-text.
21085
21086 * process.c (read_process_output): Handle carryover correctly.
21087
210882008-02-01 Dave Love <fx@gnu.org>
21089
21090 * regex.c (re_search_2): Fix last change.
21091
210922008-02-01 Kenichi Handa <handa@m17n.org>
21093
21094 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21095 target_multibyte. Even in a unibyte case, return a converted
21096 multibyte char.
21097 (GET_CHAR_AFTER): New macro.
21098 (PATFETCH): Translate via multibyte char.
21099 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21100 (SETUP_MULTIBYTE_RANGE): New macro.
21101 (regex_compile): Setup compiled code so that its multibyteness
21102 matches that of a target. Fix the handling of "[X-YZ]" using
21103 SETUP_MULTIBYTE_RANGE.
21104 (analyse_first) <charset>: For filling fastmap for all multibyte
21105 characters, don't check by BASE_LEADING_CODE_P.
21106 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21107 the same as RE_MULTIBYTE_P (bufp) now.
21108 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21109 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21110 (TRANSLATE_VIA_MULTIBYTE): New macro.
21111 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21112 It is the same as RE_MULTIBYTE_P (bufp) now.
21113 <exactn>: Translate via multibyte.
21114 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21115 translate it.
21116 <charset, charset_not>: Fetch a character by
21117 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21118 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21119 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21120 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21121 by GET_CHAR_AFTER.
21122 (bcmp_translate): Likewise.
21123
21124 * search.c (compile_pattern): Check the member target_multibyte,
21125 not the member multibyte of buf.
21126
21127 * lread.c (read1): While reading a string, set force_singlebyte
21128 and force_multibyte correctly.
21129
21130 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21131 up of unibyte_to_multibyte_table.
21132
211332008-02-01 Kenichi Handa <handa@m17n.org>
21134
21135 * coding.c (setup_coding_system): If coding has
21136 post-read-conversion or pre-write-conversion, set
21137 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21138 respectively.
21139 (decode_coding_gap): Run post-read-conversion if any.
21140
21141 * fileio.c (Finsert_file_contents): Even if we read into a
21142 unibyte buffer, check if we must decode the result or not.
21143
211442008-02-01 Kenichi Handa <handa@m17n.org>
21145
21146 * coding.c (make_conversion_work_buffer): Change the work buffer
21147 name to the same one as that of Emacs 21.
21148
211492008-02-01 Kenichi Handa <handa@m17n.org>
21150
21151 * coding.h (make_conversion_work_buffer): Adjust prototype.
21152 (code_conversion_restore): Don't extern it.
21153
21154 * coding.c (detected_mask): Delete unused variable.
21155 (decode_coding_iso_2022): Pay attention to the byte sequence of
21156 CTEXT extended segment, and retain those bytes as is.
21157 (decode_coding_ccl): Delete unused variable `valids'.
21158 (setup_coding_system): Delete unused variable `category'.
21159 (consume_chars): Delete unused variable `category'. Make it work
21160 for non-multibyte case.
21161 (make_conversion_work_buffer): Change argument.
21162 (saved_coding): Delete unused variable.
21163 (code_conversion_restore): Don't check saved_coding->destination.
21164 (code_conversion_save): New function.
21165 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21166 instead of record_unwind_protect.
21167 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21168 (detect_coding_system): Delete unused variable `mask'.
21169 (Fdefine_coding_system_internal): Delete unused variable id.
21170
21171 * fileio.c (kill_workbuf_unwind): New function.
21172 (Finsert_file_contents): On replacing, call
21173 make_conversion_work_buffer with correct args, and call
21174 record_unwind_protect with the first arg kill_workbuf_unwind.
21175
21176 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21177
211782008-02-01 Kenichi Handa <handa@m17n.org>
21179
21180 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21181 (fontset_add): Fix for the case that TO is less than TO1.
21182 (Ffontset_info): Don't use fallback fontset on checking the
21183 default fontset.
21184 (dump_fontset): New function for debugging.
21185
21186 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21187 coding_type is Qcharset.
21188
211892008-02-01 Kenichi Handa <handa@m17n.org>
21190
21191 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21192 (map_char_table): Don't inherit the value from the parent on
21193 initializing VAL. Adjust for the above change.
21194
211952008-02-01 Kenichi Handa <handa@m17n.org>
21196
21197 * coding.c (Qsignature, Qendian): Delete these variables.
21198 (syms_of_coding): Don't initialize them.
21199 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21200 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21201 detect_info->found.
21202 (decode_coding_utf_16): Don't detect BOM here.
21203 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21204 is NOT utf_16_without_bom.
21205 (setup_coding_system): For a coding system of type utf-16, check
21206 if the attribute :endian is Qbig or not (not nil or not), and set
21207 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21208 (detect_coding): If coding type is utf-16 and BOM detection is
21209 required, detect it.
21210 (Fdefine_coding_system_internal): For a coding system of type
21211 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21212
212132008-02-01 Kenichi Handa <handa@m17n.org>
21214
21215 * coding.c (coding_set_source): Fix for the case that the current
21216 buffer is different from coding->src_object.
21217 (decode_coding_object): Don't use the conversion work buffer if
21218 DST_OBJECT is a buffer.
21219
212202008-02-01 Dave Love <fx@gnu.org>
21221
21222 * lread.c (read_emacs_mule_char) [len==2]: Index
21223 emacs_mule_charset correctly.
21224
212252008-02-01 Dave Love <fx@gnu.org>
21226
21227 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21228 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21229 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21230 treated specially.)
21231 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21232 (detected_mask): Remove Big5 bits.
21233
212342008-02-01 Kenichi Handa <handa@m17n.org>
21235
21236 The following changes are to make the font rescaling facility
21237 compatible with Emacs 21.
21238
21239 * xfaces.c (Vface_font_rescale_alist): Rename from
21240 Vface_resizing_fonts.
21241 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21242 (font_rescale_ratio): Rename from font_resizing_ratio.
21243 (split_font_name): Set font->rescale_ratio.
21244 (better_font_p): Pay attention to font->rescale_ratio.
21245 (build_scalable_font_name): Likewise. Change RESX, and RESY
21246 fields.
21247 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21248
212492008-02-01 Kenichi Handa <handa@m17n.org>
21250
21251 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21252 (Qutf_16_le): Remove these variables.
21253 (syms_of_coding): Don't DEFSYM them.
21254 (decode_coding_utf_16): Fix handling of BOM.
21255 (encode_coding_utf_16): Fix handling of BOM.
21256
212572008-02-01 Kenichi Handa <handa@m17n.org>
21258
21259 * fileio.c (Finsert_file_contents): On replacing, before decoding
21260 the file into the work buffer, set point of the work buffer to the end.
21261
212622008-02-01 Dave Love <fx@gnu.org>
21263
21264 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21265
212662008-02-01 Dave Love <fx@gnu.org>
21267
21268 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21269 and fix C types.
21270
212712008-02-01 Kenichi Handa <handa@m17n.org>
21272
21273 * xdisp.c (SKIP_GLYPHS): New macro.
21274 (set_cursor_from_row): Pay attention to string display properties.
21275
21276 * category.c (copy_category_entry): Fix for the case that RANGE
21277 is an integer.
21278
21279 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21280
21281 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21282
212832008-02-01 Kenichi Handa <handa@m17n.org>
21284
21285 * charset.c (Fcharset_id_internal): New function.
21286 (syms_of_charset): Defsubr it.
21287
21288 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21289 with the last arg charset_list acquired from coding.
21290 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21291 the attribute coding_attr_ccl_valids.
21292
21293 * coding.h (enum define_coding_ccl_arg_index): Set the first
21294 member coding_arg_ccl_decoder to coding_arg_max.
21295
21296 * ccl.h (ccl_driver): Adjust prototype.
21297
21298 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21299 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21300 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21301 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21302 last arg Qnil.
21303
213042008-02-01 Kenichi Handa <handa@m17n.org>
21305
21306 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21307 call encode_char.
21308
21309 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21310
213112008-02-01 Dave Love <fx@gnu.org>
21312
21313 * composite.c (syms_of_composite): Make composition_hash_table weak.
21314
213152008-02-01 Kenichi Handa <handa@m17n.org>
21316
21317 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21318 (font_name_registry): Don't extern them.
21319 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21320
21321 * fontset.h (Qfontset): Don't extern it.
21322 (new_fontset_from_font_name): Extern it.
21323
21324 * fontset.c: Give 8 extra slots to fontset objects.
21325 (Qfontset_info): New variable.
21326 (syms_of_fontset): Defsym it.
21327 (FONTSET_FALLBACK): New macro.
21328 (fontset_face): Try also the default fontset.
21329 (make_fontset): Realize a fallback fontset from the default fontset.
21330 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21331 using split_font_name_into_vector and build_font_name_from_vector.
21332 (Fset_fontset_font): Access the elements of font_spec by enum
21333 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21334 name by using split_font_name_into_vector.
21335 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21336 generate a proper font name from the fontset name. Update
21337 Vfontset_alias_alist.
21338 (n_auto_fontsets): New variable.
21339 (new_fontset_from_font_name): New function.
21340 (Ffont_info): Store the information about fonts generated from the
21341 default fontset in the first extra slot of the returned char-table.
21342
21343 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21344 (font_name_registry): Delete function.
21345 (split_font_name_into_vector): New function.
21346 (build_font_name_from_vector): New function.
21347 (font_list): The argument REGISTRY is now a list of registry names.
21348 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21349 specifies an explicit font name, return the name as is. Make a
21350 list of registy names.
21351
21352 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21353 of x_new_fontset.
21354 (Fx_create_frame): Don't call x_new_fontset here. Just use
21355 x_list_fonts to check the existence of fonts.
21356
21357 * xterm.h (x_new_fontset): Adjust prototype.
21358
21359 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21360 string. Use new_fontset_from_font_name to create a fontset from a
21361 font name.
21362
213632008-02-01 Kenichi Handa <handa@m17n.org>
21364
21365 * syntax.c (Vfind_word_boundary_function_table): New name for
21366 Vnext_word_boundary_function_table.
21367 (find-word-boundary-function-table): New name for
21368 next-word-boundary-function-table.
21369
213702008-02-01 Dave Love <fx@gnu.org>
21371
21372 * Makefile.in: Fix some dependencies.
21373
21374 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21375 set it to nil before returning.
21376
21377 * composite.c (update_compositions): Fix type error.
21378
21379 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21380
213812008-02-01 Kenichi Handa <handa@m17n.org>
21382
21383 * xterm.c (x_new_font): Optimize for the case that the font is
21384 already set for the frame.
21385
213862008-02-01 Kenichi Handa <handa@m17n.org>
21387
21388 * chartab.c (char_table_ascii): Check if the char table contents
21389 is sub-char-table or not.
21390 (char_table_set, char_table_set_range): Fix argument to
21391 char_table_ascii.
21392
21393 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21394 (detect_coding_utf_8, detect_coding_utf_16)
21395 (detect_coding_emacs_mule, detect_coding_iso_2022)
21396 (detect_coding_sjis, detect_coding_big5)
21397 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21398 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21399 sequence is valid in this coding system. Change callers.
21400 (MAX_ANNOTATION_LENGTH): New macro.
21401 (ADD_ANNOTATION_DATA): New macro.
21402 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21403 ADD_ANNOTATION_DATA. Change the format of annotation data.
21404 (ADD_CHARSET_DATA): New macro.
21405 (emacs_mule_char): New argument ID. Change callers.
21406 (decode_coding_emacs_mule, decode_coding_iso_2022)
21407 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21408 Produce charset annotation data in coding->charbuf.
21409 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21410 to charset annotation data in coding->charbuf.
21411 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21412 coding->common_flags if the coding system is iso-2022 based and
21413 uses designation.
21414 (produce_composition): Adjust for the new annotation data format.
21415 (produce_charset): New function.
21416 (produce_annotation): Handle charset annotation.
21417 (handle_composition_annotation, handle_charset_annotation): New
21418 functions.
21419 (consume_chars): Handle charset annotation. Utilize the above two
21420 functions.
21421 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21422 buffer, get the deleted text as a string and set
21423 coding->src_object to that string.
21424 (detect_coding, detect_coding_system): Use the new struct
21425 coding_detection_info.
21426
21427 * coding.h (struct coding_detection_info): New structure.
21428 (struct coding_system): Adjust prototype of the member `detector'.
21429 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21430
214312008-02-01 Kenichi Handa <handa@m17n.org>
21432
21433 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21434
214352008-02-01 Dave Love <fx@gnu.org>
21436
21437 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21438 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21439 to new local and nullify apropos_accumulate before returning.
21440 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21441
214422008-02-01 Kenichi Handa <handa@m17n.org>
21443
21444 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21445 correctly.
e3eea1fc 21446
aac0c6e3
MR
214472008-02-01 Dave Love <fx@gnu.org>
21448
21449 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21450
214512008-02-01 Kenichi Handa <handa@m17n.org>
21452
21453 The following changes are to make character composition happen
21454 automatically on displaying.
21455
21456 * Makefile.in (lisp, shortlisp): Add composite.elc.
21457
21458 * composite.h (Qauto_composed, Vauto_composition_function)
21459 (Qauto_composition_function): Extern them.
21460
21461 * composite.c (Vcomposition_function_table)
21462 (Qcomposition_function_table): Delete variables.
21463 (Qauto_composed, Vauto_composition_function)
21464 (Qauto_composition_function): New variables.
21465 (run_composition_function): Don't call
21466 compose-chars-after-function.
21467 (update_compositions): Clear `auto-composed' text property.
21468 (compose_chars_in_text): Delete this function.
21469 (syms_of_composite): Staticpro Qauto_composed and
21470 Qauto_composition_function. Declare Vauto_composition_function as
21471 a Lisp variable.
21472
21473 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21474
21475 * xdisp.c (it_props): Add an entry for Qauto_composed.
21476 (handle_auto_composed_prop): New function.
21477
21478 * xselect.c (selection_data_to_lisp_data): Don't call
21479 compose_chars_in_text.
21480
214812008-02-01 Dave Love <fx@gnu.org>
21482
21483 * keyboard.c (read_char): Modify checking around use of
21484 Vkeyboard_translate_table.
21485
21486 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21487 and fix C types.
21488
214892008-02-01 Kenichi Handa <handa@m17n.org>
21490
21491 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21492 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21493 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21494 the case that the last byte is '\r' correctly.
21495 (decode_coding): Flush out the unprocessed data correctly.
21496 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21497
214982008-02-01 Dave Love <fx@gnu.org>
21499
21500 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21501 Add XK_ISO... case.
21502 (xaw_scroll_callback): Revert last change.
21503
215042008-02-01 Kenichi Handa <handa@m17n.org>
21505
21506 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21507
215082008-02-01 Kenichi Handa <handa@m17n.org>
21509
21510 * xfaces.c (Vface_resizing_fonts): New variable.
21511 (struct font_name): New member `resizing_ratio'.
21512 (font_resizing_ratio): New function.
21513 (split_font_name): Set font->resizing_ratio.
21514 (better_font_p): Pay attention to font->resizing_ratio.
21515 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21516 RESX, and RESY fields.
21517 (try_alternative_families): Try scalable fonts if
21518 Vscalable_fonts_allowed is not Qt.
21519 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21520
215212008-02-01 Dave Love <fx@gnu.org>
21522
21523 * xterm.c (xaw_scroll_callback): Cast correctly.
21524
215252008-02-01 Dave Love <fx@gnu.org>
21526
21527 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21528 (lispy_kana_keys): Comment out.
21529 (make_lispy_event) [XK_kana_A]: Comment out.
21530
21531 * xterm.c (xaw_scroll_callback): Cast call_data.
21532 (XTread_socket): Deal with ASCII keysyms.
21533 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21534
215352008-02-01 Dave Love <fx@gnu.org>
21536
21537 * xterm.c (Vx_keysym_table): New.
21538 (syms_of_xterm): Initialize it.
21539 (XTread_socket): Use it.
21540 From head: Eliminate incorrect optimization that tried to avoid
21541 decoding the output of X*LookupString.
21542 (x_get_font_repertory): Delete charset declaration.
21543
215442008-02-01 Kenichi Handa <handa@m17n.org>
21545
21546 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21547 return 0.
21548 (Fdefine_coding_system_internal): Setup
21549 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21550
215512008-02-01 Dave Love <fx@gnu.org>
21552
21553 * coding.c (Fcheck_coding_system): Doc fix.
21554
21555 * editfns.c (Finsert_byte): Return a proper value.
21556
215572008-02-01 Kenichi Handa <handa@m17n.org>
21558
21559 * coding.c (decode_coding): Fix args to translate_chars. Pay
21560 attention to Vstandard_translation_table_for_decode.
21561 (encode_coding): Fix args to translate_chars. Pay attention to
21562 Vstandard_translation_table_for_encode.
21563
21564 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21565 SINGLE_BYTE_CHAR_P.
21566
21567 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21568 not by SINGLE_BYTE_CHAR_P.
21569
21570 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21571 SINGLE_BYTE_CHAR_P.
21572
21573 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21574 SINGLE_BYTE_CHAR_P.
21575
21576 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21577 by SINGLE_BYTE_CHAR_P.
21578
21579 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21580 SINGLE_BYTE_CHAR_P.
21581
215822008-02-01 Dave Love <fx@gnu.org>
21583
21584 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21585
215862008-02-01 Dave Love <fx@gnu.org>
21587
21588 * fns.c (Flanginfo): Fix typo.
21589
21590 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21591
215922008-02-01 Kenichi Handa <handa@m17n.org>
21593
21594 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21595 (detect_coding_emacs_mule, detect_coding_iso_2022)
21596 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21597 incomplete byte sequence. Don't update *mask when correctly detected.
21598 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21599 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21600 (detect_coding, detect_coding_system): Adjust for the changes above.
21601
216022008-02-01 Kenichi Handa <handa@m17n.org>
21603
21604 * character.c (char_string): Rename from
21605 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21606 (string_char): Rename from string_char.
21607
21608 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21609 if C is greater than MAX_3_BYTE_CHAR.
21610 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21611 string_char instead of string_char_with_unification.
21612
216132008-02-01 Dave Love <fx@gnu.org>
21614
21615 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21616
216172008-02-01 Kenichi Handa <handa@m17n.org>
21618
21619 * keymap.c (push_key_description): Pay attention to force_multibyte.
21620
21621 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21622
216232008-02-01 Dave Love <fx@gnu.org>
21624
21625 * charset.c (define_charset_internal): Rename `supprementary'.
21626
21627 * Makefile.in (lisp, shortlisp): Remove latin-N.
21628
216292008-02-01 Dave Love <fx@gnu.org>
21630
21631 * xfns.c (x_window, x_window): Use use_xim.
21632
21633 * xterm.c (use_xim): Initialize.
21634 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21635 (x_term_init): Maybe set use_xim.
21636
21637 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21638
216392008-02-01 Kenichi Handa <handa@m17n.org>
21640
21641 * search.c (search_buffer): Fix case-fold-search of multibyte
21642 characters.
21643 (boyer_moore): Rename the last argument to char_high_bits.
21644
216452008-02-01 Kenichi Handa <handa@m17n.org>
21646
21647 * xdisp.c (display_string): Fix for the case of zero width glyph.
21648
21649 * xfns.c (x_set_font): Change the error message of the case that
21650 x_new_fontset returns Qt.
21651
21652 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21653 (Finternal_set_lisp_face_attribute): Use signal_error for the
21654 error of invalid fontset.
21655
21656 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21657 fontset, return Qt.
21658
216592008-02-01 Dave Love <fx@gnu.org>
21660
21661 * unexelf.c (unexec): Make .got handling not SGI-specific.
21662
21663 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21664
21665 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21666
21667 * keyboard.c (read_key_sequence): Fix type error.
21668
21669 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21670 type error.
21671
21672 * fontset.c (fontset_add): Return Lisp_Object.
21673
216742008-02-01 Dave Love <fx@gnu.org>
21675
21676 * charset.h (charset_ordered_list_tick): Declare extern.
21677
216782008-02-01 Kenichi Handa <handa@m17n.org>
21679
21680 The following changes (and some of 2008-02-01 changes of mine) are
21681 for handling syntax, category, and case conversion for unibyte
21682 characters by converting them to multibyte on the fly. With these
21683 changes, we don't have to setup syntax and case tables for unibyte
21684 characters in each language environment.
21685
21686 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21687 multibyte if necessary.
21688
21689 * bytecode.c (Fbyte_code): Likewise.
21690
21691 * character.h (LEADING_CODE_LATIN_1_MIN)
21692 (LEADING_CODE_LATIN_1_MAX): New macros.
21693 (unibyte_to_multibyte_table): Extern it.
21694 (unibyte_char_to_multibyte): New macro.
21695 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21696 (CHAR_LEADING_CODE): New macro.
21697 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21698
21699 * character.c (unibyte_to_multibyte_table): New variable.
21700 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21701 (multibyte_char_to_unibyte): If C is an eight-bit character,
21702 convert it to the corresponding byte value.
21703
21704 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21705 not 1, signals an error. Update the elements of
21706 unibyte_to_multibyte_table.
21707 (init_charset_once): Initialize unibyte_to_multibyte_table.
21708 (syms_of_charset): Define the charset `iso-8859-1'.
21709
21710 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21711 as is without converting it to unibyte. In a unibyte buffer,
21712 convert C to multibyte before checking the syntax.
21713
21714 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21715
21716 * minibuf.c (Fminibuffer_complete_word): Use the macro
21717 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21718
21719 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21720
21721 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21722 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21723 that is zero, convert an eight-bit char to multibyte.
21724 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21725 non-emacs case.
21726 (PATFETCH): Convert an eight-bit char to multibyte.
21727 (HANDLE_UNIBYTE_RANGE): New macro.
21728 (regex_compile): Setup the compiled pattern for multibyte chars
21729 even if the given regex string is unibyte. Use PATFETCH_RAW
21730 instead of PATFETCH in many places. To handle `charset'
21731 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21732 only for ASCII chars.
21733 (analyse_first) <exactn>: Simplify because the compiled pattern
21734 is multibyte.
21735 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21736 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21737 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21738 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21739 multibyte always 1.
21740 (re_search_2): In emacs, set the locale variable multibyte to 1,
21741 otherwise to 0. New local variable target_multibyte. Check it
21742 to decide the multibyteness of STR1 and STR2. If
21743 target_multibyte is zero, convert unibyte chars to multibyte
21744 before translating and checking fastmap.
21745 (TARGET_CHAR_AND_LENGTH): New macro.
21746 (re_match_2_internal): In emacs, set the locale variable multibyte
21747 to 1, otherwise to 0. New local variable target_multibyte. Check
21748 it to decide the multibyteness of STR1 and STR2. Use
21749 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21750 <charset, charset_not>: If multibyte is nonzero, check fastmap
21751 only for ASCII chars. Call bcmp_translate with
21752 target_multibyte, not with multibyte.
21753 <begline>: Declare the local variable C as `unsigned'.
21754 (bcmp_translate): Change the last arg name to target_multibyte.
21755
21756 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21757 the regexp pattern and the matching target. Set cp->buf.multibyte
21758 to the multibyteness of the regexp pattern. Set
21759 cp->but.target_multibyte to the multibyteness of the matching target.
21760 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21761 FETCH_STRING_CHAR_ADVANCE.
21762 (Freplace_match): Convert unibyte chars to multibyte.
21763
21764 * syntax.c (char_quoted, back_comment, scan_words)
21765 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21766 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21767 unibyte chars to multibyte.
21768 (skip_chars): Delete the arg syntaxp, and move the code for
21769 handling syntaxes to skip_syntaxes. Change callers.
21770 Fix the case that the multibyteness of STRING and the current
21771 buffer doesn't match.
21772 (skip_syntaxes): New function.
21773 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21774 SINGLE_BYTE_CHAR_P.
21775
217762008-02-01 Kenichi Handa <handa@m17n.org>
21777
21778 * xfaces.c (QCfontset): New variable.
21779 (LFACE_FONTSET): New macro.
21780 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21781 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21782 (Finternal_set_lisp_face_attribute)
21783 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21784 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21785 check also LFACE_FONTSET_INDEX.
21786 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21787 attrs[LFACE_FONT_INDEX].
21788 (syms_of_xfaces): Intern and staticpro QCfontset.
21789
21790 * dispextern.h (enum lface_attribute_index): New member
21791 LFACE_FONTSET_INDEX.
21792
21793 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21794
217952008-02-01 Kenichi Handa <handa@m17n.org>
21796
21797 * coding.c (coding_set_destination): Fix coding->destination for
21798 the case converting a region.
21799 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21800 (encode_coding_object): Fix coding->dst_pos and
21801 coding->dst_pos_byte for the case converting a region.
21802
21803 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21804
21805 * character.h (BYTE8_STRING): New macro.
21806
21807 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21808
218092008-02-01 Kenichi Handa <handa@m17n.org>
21810
21811 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21812 characters by octal form.
21813
21814 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21815
21816 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21817 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21818 _fetch_multibyte_char_len.
21819 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21820
21821 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21822
21823 * casefiddle.c (casify_object): Simplify. Handle the case that
21824 the case conversion change the byte length.
21825 (casify_region): Likewise.
21826
21827 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21828
21829 * character.c (_fetch_multibyte_char_len): Delete this variable.
21830 (syms_of_character): Setup Vprintable_chars.
21831
21832 * editfns.c (Fchar_equal): Fix for the unibyte case.
21833 (Finsert_byte): New function.
21834 (syms_of_editfns): Defsubr it.
21835
21836 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21837 of direct code 0x3ffff.
21838
21839 * search.c (Freplace_match): Fix for the unibyte case.
21840
218412008-02-01 Kenichi Handa <handa@m17n.org>
21842
21843 * lread.c (safe_to_load_p): Fix the logic.
21844
21845 * syntax.c (scan_words): Don't treat characters belonging to
21846 different scripts as constituting a word.
21847
21848 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21849
21850 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21851
21852 * emacs.c (main): In the case of --unibyte, instead of aborting on
21853 finding non-empty buffer, make it unibyte.
21854
218552008-02-01 Kenichi Handa <handa@m17n.org>
21856
21857 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21858 to create a fontset.
21859
218602008-02-01 Dave Love <fx@gnu.org>
21861
21862 * character.c (Funibyte_char_to_multibyte): Doc fix.
21863
21864 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21865
218662008-02-01 Kenichi Handa <handa@m17n.org>
21867
21868 * fontset.c (fontset_add): Make the type `int'.
21869 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21870
21871 * character.c (unibyte_char_to_multibyte)
21872 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21873 charset_unibyte, not charset_primary.
21874
21875 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21876
21877 * charset.c (charset_unibyte): Rename from charset_primary.
21878 (Funibyte_charset): Rename from Fprimary_charset.
21879 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21880 (syms_of_charset): Adjust for the above changes.
21881
21882 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21883 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21884 it->multibyte_p is zero.
21885
21886 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21887 Delete extern.
21888
218892008-02-01 Kenichi Handa <handa@m17n.org>
21890
21891 * coding.c (Fdefine_coding_system_internal): Fix category setting
21892 for a coding system of type iso-2022.
21893
218942008-02-01 Kenichi Handa <handa@m17n.org>
21895
21896 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21897
218982008-02-01 Kenichi Handa <handa@m17n.org>
21899
21900 * syntax.c (Vnext_word_boundary_function_table): New variable.
21901 (next-word-boundary-function-table): Declare it as a Lisp variable
21902 in syms_of_syntax.
21903 (scan_words): Call functions in Vnext_word_boundary_function_table
21904 if any.
21905
21906 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21907
21908 * fontset.c (fs_load_font): If fontp->charset is not negative,
21909 return fontp without setting its members.
21910
219112008-02-01 Dave Love <fx@gnu.org>
21912
21913 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21914
21915 * m/sparc.h (HAVE_ALLOCA): Delete.
21916
21917 * s/irix6-5.h: Don't include strings.h.
21918 (bcopy, bzero, bcmp): Don't undef.
21919
21920 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21921
21922 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21923 (TIOCSIGSEND): Don't test IRIX6.
21924 (bcopy, bzero, bcmp): Define conditionally.
21925
219262008-02-01 Kenichi Handa <handa@m17n.org>
21927
21928 * buffer.c (Qas, Qmake, Qto): New variables.
21929 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21930 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21931
21932 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21933 we are inserting a process output into a multibyte buffer.
21934
21935 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21936 multibyte_char_to_unibyte.
21937
21938 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21939 by the primary charset, make it eight-bit char.
21940 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21941
21942 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21943 (charset_8_bit__control, charset_8_bit_graphic)
21944 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21945 (define_charset_internal): New function.
21946 (syms_of_charset): Call define_charset_internal for pre-defined
21947 charsets.
21948
21949 * charset.h (charset_8_bit): Extern it.
21950
21951 * coding.c (make_conversion_work_buffer): Adjust for the change
21952 of Fset_buffer_multibyte.
21953 (encode_coding_raw_text): Increment p0 in the loop.
21954
21955 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21956
21957 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21958 for the change of Fset_buffer_multibyte.
21959
21960 * fns.c (Fstring_to_multibyte): New function.
21961 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21962
219632008-02-01 Dave Love <fx@gnu.org>
21964
21965 * xfns.c (x_put_x_image): Declare args.
21966
21967 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21968 (try_font_list): Declare an arg.
21969
21970 * xdisp.c (message2_nolog, set_message): Declare an arg.
21971
21972 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21973
21974 * syntax.c (scan_sexps_forward): Declare an arg.
21975
21976 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21977 Declare an arg.
21978
21979 * lisp.h (Fnew_fontset): Declare.
21980
21981 * keymap.c (push_key_description): Call CHARACTERP correctly.
21982
21983 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21984 (face_for_char): Delete unused vars.
21985 (Fset_fontset_font): Doc fix. Delete unused vars.
21986
21987 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21988
21989 * composite.c (update_compositions): Declare arg.
21990
21991 * cm.c (calccost, cmgoto): Declare args.
21992
21993 * charset.c: Remove `emacs' conditional. Doc fixes.
21994 (map_char_table_for_charset): Declare.
21995
21996 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21997
21998 * ccl.c: Remove `emacs' conditional.
21999
220002008-02-01 Kenichi Handa <handa@m17n.org>
22001
22002 The following changes are to allow specifying multiple font
22003 patterns for a character range (specified by script or charset).
22004
22005 * Makefile.in (abbrev.o): Depend on syntax.h.
22006 (xfaces.o): Depend on charset.h.
22007
22008 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22009 SINGLE_BYTE_CHAR_P.
22010
22011 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22012
22013 * character.h (Vchar_script_table): Extern it.
22014
22015 * character.c (Vscript_alist): Delete.
22016 (Vchar_script_table, Qchar_script_table): New variable.
22017 (syms_of_character): Declare Vchar_script_table as a lisp variable
22018 and initialize it.
22019
22020 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22021 have property char-table-extra-slots, make no extra slot.
22022
22023 * dispextern.h (struct face): Delete member `charset'.
22024 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22025 SINGLE_BYTE_CHAR_P.
22026 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22027 Add prototypes.
22028 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22029 (generate_ascii_font_name): Rename from generate_ascii_font.
22030
22031 * fontset.h (get_font_repertory_func): New prototype.
22032 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22033 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22034
22035 * fontset.c (Qprepend, Qappend): New variables.
22036 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22037 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22038 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22039 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22040 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22041 (load_font_get_repertory): New functions.
22042 (fontset_set): Delete.
22043 (fontset_face): New arg FACE. Return face ID, not face.
22044 Complete re-write to handle new fontset structure. Change caller.
22045 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22046 (face_for_char): Don't call lookup_face.
22047 (make_fontset_for_ascii_face): New arg FACE.
22048 (fs_load_font): New arg CHARSET_ID. Don't check
22049 Vfont_encoding_alist here.
22050 (find_font_encoding): New function.
22051 (list_fontsets): Use STRINGP, not ! NILP.
22052 (accumulate_script_ranges): New function.
22053 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22054 re-written to handle new fontset structure.
22055 (Ffontset_font): Return a copy of element.
22056 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22057 docstring of font-encoding-alist.
22058
22059 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22060 (Fset_fotset_font): Fix arguments to 5.
22061
22062 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22063
22064 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22065 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22066 (highlight_trailing_whitespace): Adjust for the change of
22067 lookup_named_face.
22068
22069 * xfaces.c: Include charset.h.
22070 (load_face_font): Delete argument C. Change caller.
22071 (generate_ascii_font_name): Rename from generate_ascii_font.
22072 (font_name_registry): New function.
22073 (cache_face): Store ascii faces before non-ascii faces in buckets.
22074 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22075 Lookup only ascii faces.
22076 (lookup_non_ascii_face): New function.
22077 (lookup_named_face): Delete argument C. Change caller.
22078 (lookup_derived_face): Delete argument C. Change caller.
22079 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22080 a string, just call font_list with it.
22081 (choose_face_font): Delete arguments FACE and C. New arg
22082 FONT_SPEC. Change caller.
22083 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22084 Change caller.
22085 (realize_non_ascii_face): New function.
22086 (realize_x_face): Call load_face_font here.
22087 (realize_tty_face): Delete argument C. Change caller.
22088 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22089 get a face ID.
22090 (dump_realized_face): Don't print charset of FACE.
22091
22092 * xfns.c (x_set_font): Always call x_new_fontset and
22093 store_frame_parameter.
22094 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22095 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22096
22097 * xterm.h (x_get_font_repertory): Extern it.
22098
22099 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22100 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22101 it->multibyte_p is zero.
22102 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22103 (x_new_fontset): If FONTSETNAME doesn't match any existing
22104 fontsets, create a new one.
22105 (x_get_font_repertory): New function.
22106
221072008-02-01 Kenichi Handa <handa@m17n.org>
22108
22109 * coding.c (Ffind_coding_systems_region_internal): Detect an
22110 ASCII only string correctly.
22111
22112 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22113 version is 0.
22114
221152008-02-01 Kenichi Handa <handa@m17n.org>
22116
22117 * lread.c: Include "coding.h".
22118 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22119 (load_each_byte, unread_char): New variables.
22120 (readchar_backlog): Delete.
22121 (readchar): Return a character unless load_each_byte is nonzero.
22122 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22123 cons. If unread_char is not -1, simply return it.
22124 (unreadchar): Handle the case that readcharfun is
22125 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22126 (read_multibyte): Delete.
22127 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22128 (read_emacs_mule_char): New functions.
22129 (Fload): Even if the file doesn't have the extension ".elc", if
22130 safe_to_load_p returns a positive version number, assume that the
22131 file contains bytecompiled code. If the version is less than 22,
22132 load the file while decoding multibyte sequences by emacs-mule.
22133 (readevalloop): Don't use readchar_backlog.
22134 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22135 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22136 (read_escape): Delete the arg BYTEREP.
22137 (read1): Set load_each_byte to 1 temporarily while handling
22138 #@NUMBER. Don't call read_multibyte.
22139 (read_vector): Call Fread with a cons. If readcharfun is
22140 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22141 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22142 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22143 and Qload_force_doc_strings.
22144
221452008-02-01 Kenichi Handa <handa@m17n.org>
22146
22147 * xdisp.c (face_before_or_after_it_pos): Call
22148 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22149
221502008-02-01 Kenichi Handa <handa@m17n.org>
22151
22152 * character.h (TRAILING_CODE_P): New macro.
22153 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22154 (string_char_with_unification): Fix prototype.
22155 (Vscript_alist): Extern it.
22156
22157 * character.c (Vscript_alist): New variable.
22158 (string_char_with_unification, str_as_unibyte)
22159 (string_escape_byte8): Add `const' to local variables.
22160 (syms_of_character): Declare script-alist as a Lisp variable.
22161
22162 * charset.h (Vcharset_ordered_list): Extern it.
22163 (charset_ordered_list_tick): Extern it.
22164 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22165 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22166 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22167 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22168 (Funify_charset): Adjust for the change of Funify_charset.
22169
22170 * charset.c (charset_ordered_list_tick): New variable.
22171 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22172 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22173 deunify instead of unify a charset.
aac0c6e3
MR
22174 (string_xstring_p): Add `const' to local variables.
22175 (find_charsets_in_text): Add `const' to arguments and local variables.
22176 (encode_char): Adjust for the change of Funify_charset. Fix
22177 detecting of invalid code.
22178 (Fset_charset_priority): Increment charset_ordered_list_tick.
22179 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22180 and TO_CODE.
22181
22182 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22183 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22184 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22185 (decode_coding_ccl, consume_chars)
22186 (Ffind_coding_systems_region_internal)
22187 (Fcheck_coding_systems_region): Add `const' to local variables.
22188
22189 * print.c (print_object): Use octal form for printing the
22190 contents of a bool vector.
22191
221922008-02-01 Dave Love <fx@gnu.org>
22193
22194 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22195 <version == 20>: Refuse to load.
22196
221972008-02-01 Dave Love <fx@gnu.org>
22198
22199 * fns.c: Move coding.h.
22200 (Qcodeset, Qdays, Qmonths): New.
22201 (concat): Use CHARACTERP instead of INTEGERP.
22202 (Flocale_codeset): Delete.
22203 (Flanginfo): New function.
22204 (syms_of_fns): Change accordingly.
22205
22206 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22207
222082008-02-01 Dave Love <fx@gnu.org>
22209
22210 * casetab.c (init_casetab_once, init_casetab_once): Fix
22211 CHAR_TABLE_SET call.
22212
22213 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22214
22215 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22216
22217 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22218 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22219 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22220
22221 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22222
22223 * coding.c (ENCODE_DESIGNATION, decode_eol)
22224 (make_conversion_work_buffer, code_conversion_restore)
22225 (Fdefine_coding_system_internal): Convert Lisp types.
22226 (code_conversion_restore): Use EQ, not ==.
22227 (Fencode_coding_string): Fix code_convert_string call.
22228
22229 * coding.h (code_convert_region): Fix prototype.
22230
22231 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22232
22233 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22234 (Ffontset_info): Convert Lisp types.
22235
22236 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22237
22238 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22239
22240 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22241
22242 * chartab.c: Include "...h", not <...h> in some cases.
22243
22244 * callproc.c (Fcall_process): Remove unused variables.
22245
222462008-02-01 Dave Love <fx@gnu.org>
22247
22248 * coding.c (Fset_coding_system_priority): Allow null arg list.
22249
222502008-02-01 Dave Love <fx@gnu.org>
22251
22252 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22253 (Fself_insert_and_exit): Use CHARACTERP.
22254
22255 * callproc.c (Fcall_process): Remove unused vars.
22256
22257 * xterm.c (XTread_socket): Add extra dead keysyms.
22258
22259 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22260
22261 * dispextern.h: Remove prototypes for redraw_frame,
22262 redraw_garbaged_frames.
22263
22264 * cmds.c (Fself_insert_command): Use CHARACTERP.
22265
22266 * chartab.c (make_sub_char_table): Remove unused var.
22267 (Fset_char_table_default, Fmap_char_table): Doc fix.
22268
22269 * keymap.c (access_keymap): Remove generic char code.
22270 (push_key_description): Use CHARACTERP.
22271
222722008-02-01 Dave Love <fx@gnu.org>
22273
22274 * charset.c: Doc fixes.
22275 (Funify_charset): Extra checking.
22276
222772008-02-01 Dave Love <fx@gnu.org>
22278
22279 * lread.c: Remove some unused variables.
22280 (safe_to_load_p): If safe, return the magic number version byte.
22281 (Fload): Maybe use load-with-code-conversion.
22282
222832008-02-01 Kenichi Handa <handa@m17n.org>
22284
22285 * category.c (Fmodify_category_entry): Don't modify the contents
22286 of category_set for characters out of the range. Avoid
22287 unnecessary modification.
22288
22289 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22290 Vchar_unify_table. The default value of the table is now nil.
22291
22292 * character.c (syms_of_character): Setup Vchar_width_table for
22293 eight-bit-control and raw-byte chars.
22294
22295 * charset.h (enum define_charset_arg_index): Delete
22296 charset_arg_parents and add charset_arg_subset and
22297 charset_arg_superset.
22298 (enum charset_attr_index): Delete charset_parents and add
22299 charset_subset and charset_superset.
22300 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22301 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22302 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22303 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22304 (CHARSET_SUPERSET): New macros.
22305 (charset_work): Extern it.
22306 (ENCODE_CHAR): Use charset_work.
22307 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22308 (map_charset_chars): Extern it.
22309
22310 * charset.c (load_charset_map): Set the default value of encoder
22311 and deunifier char-tables to nil.
22312 (map_charset_chars): Change argument. Change callers. Use
22313 map_char_table_for_charset instead of map_char_table.
22314 (Fmap_charset_chars): New optional args from_code and to_code.
22315 (Fdefine_charset_internal): Adjust for the change of
22316 `define-charset' (:parents -> :subset or :superset).
22317 (charset_work): New variable.
22318 (encode_char, syms_of_charset): Adjust for the change of
22319 Fdefine_charset_internal.
22320 (Ffind_charset_string): Setup the vector `charsets' correctly.
22321
22322 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22323 the previous change.
22324 (char_table_ref_and_range): Adjust for the above change.
22325 (map_sub_char_table_for_charset): New function.
22326 (map_char_table_for_charset): New function.
22327
22328 * keymap.c (describe_vector): Handle a char-table directly here.
22329 (describe_char_table): Delete.
22330
22331 * lisp.h (map_charset_chars): Delete.
22332
223332008-02-01 Dave Love <fx@gnu.org>
22334
22335 * fns.c (count_combining): Comment out (unused).
22336 (Flocale_codeset): New.
22337 (syms_of_fns): Defsubr it.
22338
22339 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22340 (size_t): Remove.
22341
223422008-02-01 Dave Love <fx@gnu.org>
22343
22344 * Makefile.in (chartab.o): Depend on charset.h.
22345
223462008-02-01 Kenichi Handa <handa@m17n.org>
22347
22348 * character.c (syms_of_character): Set the default value of
22349 Vprintable_chars to Qnil.
22350
223512008-02-01 Dave Love <fx@gnu.org>
22352
22353 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22354
223552008-02-01 Kenichi Handa <handa@m17n.org>
22356
22357 * charset.c (load_charset_map): Handle the case that from < to
22358 correctly.
22359
22360 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22361 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22362 Pay attention to raw-8-bit chars.
22363
223642008-02-01 Kenichi Handa <handa@m17n.org>
22365
22366 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22367 It is not bytecompiled now.
22368
22369 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22370 (charset_jisx0208): New variables.
22371 (Fdefine_charset_internal): Setup them if appropriate.
22372 (init_charset_once): Initialize them to -1.
22373
22374 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22375 (charset_jisx0208): Extern them.
22376
22377 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22378 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22379 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22380 (setup_iso_safe_charsets): Fix arguments to Fassq.
22381 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22382 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22383 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22384 (encode_coding_iso_2022): Change the 1st arg to
22385 ENCODE_ISO_CHARACTER to a variable.
22386
223872008-02-01 Kenichi Handa <handa@m17n.org>
22388
22389 * charset.h (enum define_charset_arg_index): New enums
22390 charset_arg_min_code and charset_arg_max_code.
22391 (struct charset): New member char_index_offset.
22392
22393 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22394 Take charset->char_index_offset into account.
22395 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22396 args[charset_arg_max_code]. Setup charset.char_index_offset.
22397 (syms_of_charset): Fix args to Fdefine_charset_internal.
22398
223992008-02-01 Dave Love <fx@gnu.org>
22400
22401 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22402
224032008-02-01 Dave Love <fx@gnu.org>
22404
22405 * coding.c: Doc fixes.
22406 (Fcoding_system_aliases): Fix return value.
22407 (Qmac): Remove (duplicated) definition.
22408
224092008-02-01 Dave Love <fx@gnu.org>
22410
362654a6
JB
22411 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22412 New functions.
aac0c6e3
MR
22413
22414 * character.c (Fstring): Doc fix.
22415
22416 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22417
362654a6 22418 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22419 (font-encoding-alist): Doc fix.
22420
224212008-02-01 Dave Love <fx@gnu.org>
22422
22423 * term.c (costs_set): Declare static, non-initialized for pcc.
22424 (encode_terminal_code): Remove unused var.
22425
22426 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22427 for K&R.
22428
22429 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22430
22431 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22432 (suffixes): Move out of make_subsidiaries for K&R.
22433
22434 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22435
22436 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22437
224382008-02-01 Dave Love <fx@gnu.org>
22439
22440 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22441
22442 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22443
224442008-02-01 Yong Lu <lyongu@asia-infonet.com>
22445
22446 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22447
22448 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22449
224502008-02-01 Kenichi Handa <handa@m17n.org>
22451
22452 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22453 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22454
224552008-02-01 Kenichi Handa <handa@m17n.org>
22456
22457 * coding.c (decode_coding_charset): Adjust for the change of
22458 Fdefine_coding_system_internal.
22459 (Fdefine_coding_system_internal): For a coding system of
22460 `charset' type, store a list of charset IDs in
22461 `charset_attr_charset_valids' element of coding attributes.
22462
224632008-02-01 Kenichi Handa <handa@m17n.org>
22464
22465 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22466 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22467 caller. Handle 2-byte and 3-byte charsets correctly.
22468 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22469 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22470 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22471 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22472 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22473 sequence.
22474 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22475 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22476 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22477 and alt&rule composition.
22478 (decode_coding_iso_2022): Handle composition correctly.
22479 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22480
22481 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22482 re-defining a charset. If the charset has :emacs-mule-id, setup
22483 emacs_mule_bytes.
22484 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22485
224862008-02-01 Kenichi Handa <handa@m17n.org>
22487
22488 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22489 (encode_coding_big5, encode_coding_charset): If coding requires safe
22490 encoding, produce a character specified by
22491 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22492
224932008-02-01 Dave Love <fx@gnu.org>
22494
22495 * xterm.c (XSetIMValues): Declare.
22496
22497 * process.c: Conditionally include sys/wait.h, pty.h.
22498
22499 * print.c (print_object): Fix print format for 64-bit systems.
22500
22501 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22502
22503 * buffer.c (emacs_strerror): Declare.
22504
22505 * fontset.c (Fclear_face_cache): Declare.
22506 (accumulate_font_info): Comment-out (unused).
22507 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22508 variables.
22509
22510 * character.h (string_escape_byte8): Declare.
22511
22512 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22513 unused vars.
22514 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22515 (Fmap_charset_chars): Doc fix.
22516
22517 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22518 (Fset_coding_system_priority, Fset_coding_system_priority)
22519 (Fdefine_coding_system_internal): Doc fix.
22520
225212008-02-01 Dave Love <fx@gnu.org>
22522
22523 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22524
225252008-02-01 Kenichi Handa <handa@m17n.org>
22526
22527 * character.c (string_escape_byte8): Make multibyte string with
22528 correct size.
22529
22530 * charset.c (Fmake_char): Delete unnecessary code.
22531
225322008-02-01 Kenichi Handa <handa@m17n.org>
22533
22534 * xfns.c (x_encode_text): Allocate coding.destination here, and
22535 call encode_coding_object with dst_object Qnil.
22536
22537 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22538 multibyte form correctly.
22539
22540 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22541 against Vfont_encoding_alist.
22542
22543 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22544 handling of charset list.
22545 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22546 (decode_coding_object): Move point to coding->dst_pos before
22547 calling post-read-conversion function.
22548 (encode_coding_object): Give correct arguments to
22549 pre-write-conversion. Ignore the return value of
22550 pre-write-conversion function. Pay attention to the case that
22551 pre-write-conversion changes the current buffer. If dst_object is
22552 Qt, even if coding->src_bytes is zero, allocate at least one byte
22553 to coding->destination.
22554
22555 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22556
22557 * charset.c (Fmake_char): Make it more backward compatible.
22558 (Fmap_charset_chars): Fix docstring.
22559
225602008-02-01 Dave Love <fx@gnu.org>
22561
22562 * coding.c: Doc fixes.
22563 (Fdefine_coding_system_alias): Use names, not symbols, in
22564 coding-system-alist.
22565
225662008-02-01 Kenichi Handa <handa@m17n.org>
22567
22568 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22569 of calling free_realized_face.
22570
225712008-02-01 Yong Lu <lyongu@asia-infonet.com>
22572
22573 * charset.c (read_hex): Don't treat SPC as a comment starter.
22574 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22575 (Fdecode_char): Fix typo.
22576
225772008-02-01 Kenichi Handa <handa@m17n.org>
22578
22579 * charset.h (struct charset): New member `code_space_mask'.
22580
22581 * coding.c (coding_set_source): Delete the local variable beg_byte.
22582 (encode_coding_charset, Fdefine_coding_system_internal):
22583 Delete the local variable charset.
22584 (Fdefine_coding_system_internal): Setup
22585 attrs[coding_attr_charset_valids] correctly.
22586
22587 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22588 member to check if CODE is valid or not.
22589 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22590 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22591 is within the range of charset->min_code and carset->max_code.
22592
225932008-02-01 Dave Love <fx@gnu.org>
22594
22595 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22596
22597 * dispextern.h (generate_ascii_font): Fix return type.
22598
22599 * xfaces.c (generate_ascii_font): Fix arg declaration.
22600
22601 * coding.c (coding_inherit_eol_type)
22602 (Fset_terminal_coding_system_internal)
22603 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22604
226052008-02-01 Kenichi Handa <handa@m17n.org>
22606
22607 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22608 multiple charsets correctly.
22609
226102008-02-01 Kenichi Handa <handa@m17n.org>
22611
22612 * search.c (boyer_moore): Fix handling of multibyte character
22613 translation.
22614
22615 * xdisp.c (display_mode_element): When the variable `elt' is
22616 changed, update `this' and `lisp_string'.
22617
226182008-02-01 Kenichi Handa <handa@m17n.org>
22619
22620 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22621
22622 * callproc.c (Fcall_process): Be sure to give the current buffer
22623 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22624
22625 * charset.c (struct charset_map_entries): New struct.
22626 (load_charset_map): Rename from parse_charset_map. New args
22627 entries and n_entries. Change caller.
22628 (load_charset_map_from_file): Rename from load_charset_map.
22629 Change caller. New arg control_flag. Call load_charset_map at
22630 the tail.
22631 (load_charset_map_from_vector): New function.
22632 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22633 (encode_char): If the charset is compact, change a character index
22634 to a code point.
22635
22636 * coding.c (coding_alloc_by_making_gap): Check the case that the
22637 source and destination are the same correctly.
22638 (decode_coding_raw_text): Set coding->consumed_char and
22639 coding->consumed to 0.
22640 (produce_chars): If coding->chars_at_source is nonzero, update
22641 coding->consumed_char and coding->consumed before calling
22642 alloc_destination.
22643 (Fdefine_coding_system_alias): Register ALIAS in
22644 Vcoding_system_alist.
22645 (syms_of_coding): Define `no-conversion' coding system at the tail.
22646
22647 * fileio.c (Finsert_file_contents): Set coding_system instead of
22648 val. If the current buffer is multibyte, always call
22649 decode_coding_gap.
22650
22651 * xfaces.c (try_font_list): Give higher priority to fontset's
22652 family than face's family.
22653
226542008-02-01 Kenichi Handa <handa@m17n.org>
22655
22656 * callproc.c (Fcall_process): Be sure to give the current buffer
22657 to decode_coding_c_string.
22658
22659 * xfaces.c (try_font_list): Give a family specified in a fontset
22660 higher priority than a family specified in a face.
22661
226622008-02-01 Kenichi Handa <handa@m17n.org>
22663
22664 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22665 Fix arguments to insert_from_buffer.
22666
22667 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22668
226692008-02-01 Kenichi Handa <handa@m17n.org>
22670
22671 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22672 (decode_coding_gap): Set coding->dst_multibyte correctly.
22673
226742008-02-01 Kenichi Handa <handa@m17n.org>
22675
22676 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22677 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22678 (encode_coding_utf_16): Substitute coding->default_char for
22679 non-Unicode characters.
22680 (decode_coding): Don't call record_insert here.
22681 (setup_coding_system): Initialize `surrogate' of
22682 coding->spec.utf_16 to 0.
22683 (EMIT_ONE_BYTE): Fix for multibyte case.
22684
22685 * insdel.c (insert_from_gap): Call record_insert.
22686
226872008-02-01 Kenichi Handa <handa@m17n.org>
22688
22689 * casefiddle.c (casify_region): Fix multibyte case.
22690
22691 * character.c (c_string_width): Add return type `int'.
22692 (char_string_with_unification): Delete arg ADVANCED.
22693
22694 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22695 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22696 (CHAR_STRING_ADVANCE): Make it do-while statement.
22697
22698 * chartab.c (sub_char_table_set_range): Optimize for the case
22699 DEPTH == 3. Add workaround code for a GCC optimization bug.
22700
22701 * charset.c (parse_charset_map): Remove an unused variable.
22702
22703 * coding.c: Delete unused variables.
22704
22705 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22706 earlier. If inserted is zero and the coding system doesn't
22707 require flushing, don't call decode_coding_gap.
22708
22709 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22710
227112008-02-01 Kenichi Handa <handa@m17n.org>
22712
22713 The following changes are for using Unicode as an internal
22714 character model, and use UTF-8 format for buffer/string
22715 representation.
22716
22717 * .gdbinit (xchartable): Adjust for the change of char table structure.
22718 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22719
22720 * Makefile.in (obj): Add character.o and chartab.o.
22721 (lisp, shortlisp): Remove utf-8.elc.
22722 (*.o): For many files, change dependency on charset.h to
22723 character.h, and add dependency on character.h.
22724 (character.o, chartab.o): New targets.
22725
22726 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22727 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22728 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22729 of "charset.h".
22730
22731 * dired.c, filelock.c: Include "character.h".
22732
22733 * alloc.c: Include "character.h" instead of "charset.h".
22734 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22735 (syms_of_alloc): Remove defsubr for Smake_char_table.
22736
22737 * buffer.c: Include "character.h" instead of "charset.h", don't
22738 include "coding.h".
22739 (Fset_buffer_multibyte): Adjust for UTF-8.
22740
22741 * buffer.h: EXFUN Fbuffer_live_p.
22742
22743 * callproc.c: Include "character.h" instead of "charset.h".
22744 (Fcall_process): Big change for the new code-conversion APIs.
22745
22746 * casetab.c: Include "character.h" instead of "charset.h".
22747 (set_canon, set_identity, shuffle): Adjust for the new
22748 map_char_table spec.
22749 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22750 accessing the char table structure.
22751
22752 * chartab.c: New file that implements char table.
22753
22754 * category.c: Include "character.h".
22755 (copy_category_entry): New function.
22756 (copy_category_table): Call map_char_table and copy_category_entry.
22757 (Fmake_category_table): Initialize all top-level slots.
22758 (char_category_set): New function.
22759 (modify_lower_category_set): Delete.
22760 (Fmodify_category_entry): Call char_table_ref_and_range.
22761
22762 * category.h (CATEGORY_SET): Just call char_category_set.
22763
22764 * ccl.c: Include "character.h".
22765 (Qccl, Qcclp): New variables.
22766 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22767 it's less than 256.
22768 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22769 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22770 and DST type.
22771 (ccl_driver): Change types of argument, adjust code accordingly.
22772 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22773 ccl_driver.
22774 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22775
22776 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22777 New members src_multibyte, dst_multibyte, consumed, and produced.
22778 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22779 (CODING_SPEC_CCL_PROGRAM): New macro.
22780 (ccl_driver): Update prototype.
22781 (Qccl, Qcclp, Fccl_program_p): Extern them.
22782 (CHECK_CCL_PROGRAM): New macro.
22783
22784 * character.c, character.h, chartab.c: New files.
22785
22786 * charset.c: Mostly re-written. Move character and multibyte sequence
22787 handling codes to character.c.
22788
22789 * charset.h: Mostly re-written. Move character and multibyte sequence
22790 handling codes to character.h.
22791
22792 * coding.c, coding.h: Mostly re-written.
22793
22794 * composite.c: Include "character.h" instead of "charset.h".
22795 (CHAR_WIDTH): Move to character.h.
22796 (HASH_KEY, HASH_VALUE): Delete.
22797
22798 * composite.h (enum composition_method): Change order of enumeration
22799 symbols.
22800
22801 * data.c: Include "character.h" instead of "charset.h".
22802 (Faref): Call CHAR_TABLE_REF for a char table.
22803 (Faset): Call CHAR_TABLE_SET for a char table.
22804
22805 * dispextern.h (free_realized_face, check_face_attribytes)
22806 (generate_ascii_font): Extern them.
22807 (free_realized_multibyte_face): Delete extern.
22808
22809 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22810 table structure.
22811
22812 * editfns.c: Include "character.h" instead of "charset.h".
22813 (Fchar_to_string): Always call CHAR_STRING.
22814
22815 * emacs.c (main): Call init_charset_once, init_charset,
22816 syms_of_chartab, and syms_of_character.
22817
22818 * fileio.c: Include "character.h" instead of "charset.h".
22819 (Finsert_file_contents): Big change for the new code-conversion API.
22820 (choose_write_coding_system, Fwrite_region): Likewise.
22821 (build_annotations_2): Delete.
22822 (e_write): Big change for the new code-conversion API.
22823
22824 * fns.c: Include "character.h" instead of "charset.h".
22825 (copy_sub_char_table): Move to chartab.c.
22826 (Fcopy_sequence): Call copy_char_table for a char table.
22827 (concat): Delete codes calling count_multibyte.
22828 (string_char_to_byte, string_byte_to_char): Adjust for the new
22829 multibyte form.
22830 (internal_equal): Adjust for the change of char table structure.
22831 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22832 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22833 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22834 (char_table_translate, optimize_sub_char_table)
22835 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22836 chartab.c.
22837 (char_table_ref_and_index): Delete.
22838 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22839 (Fmd5): Call preferred_coding_system instead of accessing
22840 Vcoding_category_list. Adjust for the new code-conversion API.
22841 (syms_of_fns): Move defsubr for char table related functions to
22842 chartab.c.
22843
22844 * fontset.c: Mostly re-written.
22845
22846 * fontset.h (struct font_info): Change type of the member encoding_type.
22847 (enum FONT_SPEC_INDEX): New enum.
22848 (fontset_font_pattern, fs_load_font): Update prototype.
22849 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22850
22851 * indent.c: Include "character.h" instead of "charset.h".
22852 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22853
22854 * insdel.c: Include "character.h" instead of "charset.h".
22855 (copy_text): Don't refer to Vnonascii_translation_table.
22856 (insert_from_gap): New function.
22857
22858 * keyboard.c: Include "character.h" instead of "charset.h".
22859 (command_loop_1): Never call direct_output_forward_char before
22860 a non-ASCII character.
22861 (read_char): If Vkeyboard_translate_table is a char table, always
22862 translate a character.
22863
22864 * keymap.c: Include "character.h".
22865 (store_in_keymap): Handle the case that IDX is a cons.
22866 (Fdefine_key): Handle the case that KEY is a cons and the car part
22867 is also a cons (range).
22868 (push_key_description): Adjust for the new character code.
22869 (describe_vector): Call describe_char_table for a char table.
22870 (describe_char_table): New function.
22871
22872 * keymap.h (describe_char_table): Extern it.
22873
22874 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22875 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22876 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22877 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22878 Delete.
22879 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22880 structure.
22881 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22882 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22883 (CHARTAB_SIZE_BITS_3): New macros.
22884 (chartab_size): Extern it.
22885 (struct Lisp_Char_Table): Re-design.
22886 (struct Lisp_Sub_Char_Table): New structure.
22887 (HASH_KEY, HASH_VALUE): Move from fns.c.
22888 (CHARACTERBITS): Define as 22.
22889 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22890 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22891 (GC_SUB_CHAR_TABLE_P): New macro.
22892 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22893 (code_convert_string_norecord): Deleted extern.
22894 (init_character_once, syms_of_character, init_charset)
22895 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22896
22897 * lread.c: Include "character.h".
22898 (read_multibyte): New arg NBYTES.
22899 (read_escape): Change the meaning of returned *BYTEREP.
22900 (to_multibyte): Delete.
22901 (read1): Adjust the handling of char table and string.
22902
22903 * print.c: Include "character.h" instead of "charset.h".
22904 (print_string): Convert 8-bit raw bytes to octal form by
22905 string_escape_byte8.
22906 (print_object): Adjust for the new multibyte form. Print 8-bit
22907 raw bytes always in octal form. Handle sub char table correctly.
22908
22909 * process.c: Include "character.h" instead of "charset.h".
22910 (read_process_output, send_process): Adjust for the new
22911 code-conversion API.
22912
22913 * puresize.h (BASE_PURESIZE): Increase.
22914
22915 * regex.c: Include "character.h" instead of "charset.h".
22916 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22917 (regex_compile): Accept a range whose starting and ending
22918 character have different leading bytes.
22919 (analyse_first): Adjust for the above change.
22920
22921 * search.c: Include "character.h" instead of "charset.h".
22922 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22923 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22924
22925 * syntax.c: Include "character.h" instead of "charset.h".
22926 (syntax_parent_lookup): Delete.
22927 (Fmodify_syntax_entry): Accept a cons as CHAR.
22928 (skip_chars): Adjust for the new multibyte form.
22929 (init_syntax_once): Call char_table_set_range instead of directly
22930 accessing the structure of a char table.
22931
22932 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22933 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22934 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22935 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22936
22937 * term.c: Include "buffer.h" and "character.h".
22938 (encode_terminal_code, write_glyphs): Adjust for the new
22939 code-conversion API.
22940 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22941
22942 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22943
22944 * xdisp.c: Include "character.h".
22945 (get_next_display_element): Adjust for the new multibyte form.
22946 (disp_char_vector): Adjust for the new char table structure.
22947 (decode_mode_spec_coding): Adjust for the new structure of
22948 coding system.
22949 (decode_mode_spec): Adjust for the new code-conversion API.
22950
22951 * xfaces.c: Include "character.h" instead of "charset.h".
22952 (load_face_font): Adjust for the change of choose_face_font and
22953 FS_LOAD_FONT.
22954 (generate_ascii_font): New function.
22955 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22956 (set_font_frame_param): Adjust for the change of choose_face_font.
22957 (free_realized_face): Make it public.
22958 (free_realized_faces_for_fontset): Rename from
22959 free_realized_multibyte_face. Free also faces realized for ASCII.
22960 (choose_face_font): Change arguments. Adjust for the change of
22961 fontset_font_pattern and FS_LOAD_FONT.
22962
22963 * xfns.c: Include "character.h".
22964 (x_encode_text): Adjust for the new code-conversion API.
22965
22966 * xselect.c: Don't include "charset.h".
22967 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22968
22969 * xterm.c: Include "character.h".
22970 (x_encode_char): New argument CHARSET. Change caller.
22971 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22972 Call ENCODE_CHAR instead of SPLIT_CHAR.
22973 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22974 CHAR_WIDTH instead of CHARSET_WIDTH.
22975 (XTread_socket): Adjust for the new code-conversion API.
22976 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22977 (x_load_font): Adjust for the change of struct font.
22978
229792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22980
22981 * xfaces.c (face_at_buffer_position): Remove unused vars.
22982
229832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22984
22985 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22986 Fix overflow checking.
22987
229882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22989
22990 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22991 Cancel previous change.
22992
229932008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22994
22995 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22996 ccl->eight_bit_control. Fix check for buffer overflow.
22997 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22998 (ccl_driver): Initialize extra_bytes to 0.
22999
230002008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23001
23002 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23003 return it ORed with ctrl_modifier.
23004
230052008-01-29 Miles Bader <miles@gnu.org>
23006
23007 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23008
230092008-01-28 Jason Rumney <jasonr@gnu.org>
23010
23011 * w32.c (stat): Don't double check for networked drive.
23012
230132008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23014
23015 * window.c (run_window_configuration_change_hook): New function.
23016 Code extracted from set_window_buffer. Set the selected frame.
23017 (set_window_buffer): Use it.
23018 * window.h (run_window_configuration_change_hook): Declare.
23019 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23020
23021 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23022
230232008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23024
23025 * Makefile.in: Remove references to unused macros.
23026
230272008-01-26 Eli Zaretskii <eliz@gnu.org>
23028
23029 * w32.c (g_b_init_get_sid_sub_authority)
23030 (g_b_init_get_sid_sub_authority_count): New static variables.
23031 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23032 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23033 (init_user_info): Use them to retrieve uid and gid.
23034 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23035 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23036 st_uid and st_gid of the file.
23037
230382008-01-26 Jason Rumney <jasonr@gnu.org>
23039
23040 * w32.c (logon_network_drive): New function.
23041 (stat): Use it.
23042
230432008-01-26 Chong Yidong <cyd@stupidchicken.com>
23044
23045 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23046 invisible text covered with an ellipsis.
23047
230482008-01-25 Richard Stallman <rms@gnu.org>
23049
23050 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23051 jump back to beginning. Move some other initializations after that.
23052 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23053 New variables.
23054 (syms_of_xdisp): Init them.
23055
23056 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23057
23058 * buffer.c (reset_buffer_local_variables):
23059 Implement `permanent-local-hook'.
23060 (Qpermanent_local_hook): New variable.
23061 (syms_of_buffer): Init and staticpro it.
23062
230632008-01-25 Michael Albinus <michael.albinus@gmx.de>
23064
23065 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23066
230672008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23068
23069 * fns.c (Fclrhash): Return TABLE.
23070
230712008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23072
23073 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23074 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23075 is set even without positional changes.
23076 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23077
23078 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23079
230802008-01-23 Jason Rumney <jasonr@gnu.org>
23081
23082 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23083
23084 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23085 the unicode range available in MULE by locale-coding-system.
23086 Improve dbcs lead byte detection. Set event timestamp and modifiers
23087 earlier.
23088
230892008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23090
23091 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23092 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23093 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23094 when used on child processes.
23095
230962008-01-21 Michael Albinus <michael.albinus@gmx.de>
23097
23098 * dbusbind.c (Fdbus_method_return_internal): Rename from
23099 Fdbus_method_return.
23100 (Fdbus_unregister_object): Move to dbus.el.
23101 (Fdbus_call_method, Fdbus_method_return_internal)
23102 (Fdbus_send_signal): Improve debug messages.
23103
231042008-01-20 Martin Rudalics <rudalics@gmx.at>
23105
23106 * undo.c (undo_inhibit_record_point): New variable.
23107 (syms_of_undo): Initialize it.
23108 (record_point): Don't record point when undo_inhibit_record_point
23109 is set.
23110
231112008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23112
23113 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23114
23115 * xdisp.c (Qauto_hscroll_mode): New var.
23116 (syms_of_xdisp): Initialize it.
23117 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23118 window's buffer.
23119 (hscroll_windows): Don't check automatic_hscrolling_p here.
23120
23121 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23122 vscroll if we're setting window-buffer to the value it already has.
23123
231242008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23125
23126 * m/intel386.h: Remove references to XENIX.
23127
231282008-01-17 Andreas Schwab <schwab@suse.de>
23129
23130 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23131 instead of HAVE_X86_64_LIB64_DIR.
23132 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23133
231342008-01-17 Glenn Morris <rgm@gnu.org>
23135
23136 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23137 to HAVE_X86_64_LIB64_DIR.
23138
231392008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23140
23141 * s/irix3-3.h:
23142 * s/irix4-0.h:
23143 * s/386-ix.h:
23144 * s/domain.h:
23145 * s/hpux9-x11r4.h:
23146 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23147
23148 * sysdep.c: Remove code containing references to symbols defined
23149 by unsupported systems.
23150
231512008-01-16 Glenn Morris <rgm@gnu.org>
23152
23153 * coding.c (select-safe-coding-system-function): Doc fix.
23154
231552008-01-15 Glenn Morris <rgm@gnu.org>
23156
23157 * config.in: Revert 2008-01-13 change: this is a generated file.
23158
231592008-01-13 Tom Tromey <tromey@redhat.com>
23160
23161 * lisp.h: Fix typo.
23162
231632008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23164
23165 * m/sequent-ptx.h:
23166 * m/sequent.h:
23167 * s/ptx.h:
23168 * s/ptx4-2.h:
23169 * s/ptx4.h: Remove files for systems no longer supported.
23170
23171 * callproc.c (Fcall_process): Fix previous change.
23172
231732008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23174
23175 * unexsunos4.c: Remove file, system not supported anymore.
23176
23177 * m/mips.h:
23178 * m/intel386.h:
23179 * callproc.c:
23180 * config.in:
23181 * ecrt0.c:
23182 * emacs.c:
23183 * fileio.c:
23184 * frame.c:
23185 * getpagesize.h:
23186 * keyboard.c:
23187 * lread.c:
23188 * process.c:
23189 * puresize.h:
23190 * sysdep.c:
23191 * systty.h:
23192 * syswait.h:
23193 * unexec.c:
23194 * xdisp.c:
23195 * alloc.c: Remove code containing references to symbols defined by
23196 unsupported systems.
23197
231982008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23199
23200 * coding.c (detect_coding_mask): Fix previous change.
23201
232022008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23203
23204 * coding.c (detect_coding_iso2022): New arg
23205 latin_extra_code_state. Allow Latin extra codes only
23206 when *latin_extra_code_state is nonzero.
23207 (detect_coding_mask): If there is a NULL byte, detect the encoding
23208 as UTF-16 or binary. If Latin extra codes exist, detect the
23209 encoding as ISO-2022 only when there's no other proper encoding is
23210 found.
23211
232122008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23213
23214 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23215 #ifdef MAC_OS.
23216
232172008-01-08 Richard Stallman <rms@gnu.org>
23218
23219 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23220
232212008-01-06 Nick Roberts <nickrob@snap.net.nz>
23222
23223 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23224 menu bar in parentheses.
23225
232262008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23227
23228 * m/7300.h:
23229 * m/acorn.h:
23230 * m/alliant-2800.h:
23231 * m/alliant.h:
23232 * m/alliant1.h:
23233 * m/alliant4.h:
23234 * m/altos.h:
23235 * m/amdahl.h:
23236 * m/apollo.h:
23237 * m/att3b.h:
23238 * m/aviion-intel.h:
23239 * m/aviion.h:
23240 * m/celerity.h:
23241 * m/clipper.h:
23242 * m/cnvrgnt.h:
23243 * m/convex.h:
23244 * m/cydra5.h:
23245 * m/delta88k.h:
23246 * m/dpx2.h:
23247 * m/dual.h:
23248 * m/elxsi.h:
23249 * m/f301.h:
23250 * m/gould-np1.h:
23251 * m/gould.h:
23252 * m/i860.h:
23253 * m/ibmps2-aix.h:
23254 * m/ibmrt-aix.h:
23255 * m/ibmrt.h:
23256 * m/irist.h:
23257 * m/is386.h:
23258 * m/isi-ov.h:
23259 * m/mega68.h:
23260 * m/mg1.h:
23261 * m/news-r6.h:
23262 * m/news-risc.h:
23263 * m/news.h:
23264 * m/nh3000.h:
23265 * m/nh4000.h:
23266 * m/ns16000.h:
23267 * m/ns32000.h:
23268 * m/nu.h:
23269 * m/orion.h:
23270 * m/orion105.h:
23271 * m/paragon.h:
23272 * m/pfa50.h:
23273 * m/plexus.h:
23274 * m/pyramid.h:
23275 * m/pyrmips.h:
23276 * m/sh3el.h:
23277 * m/sps7.h:
23278 * m/sr2k.h:
23279 * m/stride.h:
23280 * m/sun1.h:
23281 * m/sun2.h:
23282 * m/sun3-68881.h:
23283 * m/sun3-fpa.h:
23284 * m/sun3-soft.h:
23285 * m/sun3.h:
23286 * m/sun386.h:
23287 * m/symmetry.h:
23288 * m/tad68k.h:
23289 * m/tahoe.h:
23290 * m/targon31.h:
23291 * m/tek4300.h:
23292 * m/tekxd88.h:
23293 * m/tower32.h:
23294 * m/tower32v3.h:
23295 * m/ustation.h:
23296 * m/wicat.h:
23297 * m/xps100.h:
23298 * s/cxux.h:
23299 * s/cxux7.h:
23300 * s/dgux.h:
23301 * s/dgux4.h:
23302 * s/dgux5-4-3.h:
23303 * s/dgux5-4r2.h:
23304 * s/esix.h:
23305 * s/esix5r4.h:
23306 * s/hiuxmpp.h:
23307 * s/hiuxwe2.h:
23308 * s/iris3-5.h:
23309 * s/iris3-6.h:
23310 * s/isc2-2.h:
23311 * s/isc3-0.h:
23312 * s/isc4-0.h:
23313 * s/isc4-1.h:
23314 * s/newsos5.h:
23315 * s/newsos6.h:
23316 * s/osf1.h:
23317 * s/osf5-0.h:
23318 * s/riscix1-1.h:
23319 * s/riscix12.h:
23320 * s/sco4.h:
23321 * s/sco5.h:
23322 * s/sunos4-0.h:
23323 * s/sunos4-1.h:
23324 * s/sunos413.h:
23325 * s/sunos4shr.h:
23326 * s/umax.h:
23327 * s/unipl5-2.h:
23328 * s/xenix.h:
23329 * cxux-crt0.s:
23330 * unexapollo.c:
23331 * unexconvex.c:
23332 * unexenix.c:
23333 * unexsni.c: Remove files for systems no longer supported.
23334
23335 * m/intel386.h: Remove references to unsupported systems.
23336
23337 * w32.c (get_emacs_configuration): Remove reference to i860.
23338
23339 * sysdep.c: Remove dead code.
23340
233412008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23342
23343 * s/rtu.h:
23344 * m/masscomp.h: Remove files. Platform is obsolete.
23345
233462008-01-04 Michael Albinus <michael.albinus@gmx.de>
23347
23348 * dbusbind.c (Fdbus_method_return): New function.
23349 (xd_read_message): Add the serial number to the event.
23350 (Fdbus_register_method): Activate the function.
23351
233522008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23353
23354 * keyboard.c (read_key_sequence): Fix typo.
23355
233562008-01-03 Michael Albinus <michael.albinus@gmx.de>
23357
23358 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23359 (xd_signature, xd_append_arg): Handle element type detection for
23360 empty arrays.
23361 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23362 SDATA () calls; this must be solved more general.
23363 (Fdbus_register_signal): Use SBYTES instead of strlen.
23364
233652008-01-03 Magnus Henoch <magnus@zemdatav>
23366
23367 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23368 unsigned int for byte values (necessary for big-endian platform).
23369 (Fdbus_call_method): Handle the case of no returned arguments.
23370
233712007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23372
23373 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23374
233752007-12-31 Magnus Henoch <mange@freemail.hu>
23376
23377 * dbusbind.c (xd_signature): Signature of variant is just "v".
23378
233792007-12-30 Michael Albinus <michael.albinus@gmx.de>
23380
23381 * dbusbind.c: Fix several errors and compiler warnings.
23382 Reported by Tom Tromey <tromey@redhat.com>.
23383 (XD_ERROR, XD_DEBUG_MESSAGE)
23384 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23385 (xd_append_arg): Part for basic D-Bus types rewritten.
23386 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23387 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23388 appropriate.
23389 (xd_read_message): Return Qnil. Don't signal an error; it is not
23390 useful during event reading.
23391 (Fdbus_register_signal): Signal an error if the check for
23392 FUNCTIONP fails.
23393 (Fdbus_register_method): New function. The implementation is not
23394 complete, the call of the function signals an error therefore.
23395 (Fdbus_unregister_object): New function, renamed from
23396 Fdbus_unregister_signal. The initial check signals an error, if
23397 the object is not well formed.
23398
233992007-12-30 Richard Stallman <rms@gnu.org>
23400
23401 * textprop.c (get_char_property_and_overlay):
23402 Signal error if POSITION is out of range in a buffer.
23403
234042007-12-29 Martin Rudalics <rudalics@gmx.at>
23405
23406 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23407 because the original parameters are in pure storage now.
23408
234092007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23410
23411 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23412
234132007-12-22 Eli Zaretskii <eliz@gnu.org>
23414
23415 * callint.c (syms_of_callint) <command-history>: Add reference to
23416 history-length in the doc string.
23417
234182007-12-17 Jason Rumney <jasonr@gnu.org>
23419
23420 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23421 before passing as wParam.
23422
234232007-12-22 Michael Albinus <michael.albinus@gmx.de>
23424
23425 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23426 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23427 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23428 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23429 as number.
23430 (Fdbus_call_method): Fix docstring.
23431
234322007-12-21 Michael Albinus <michael.albinus@gmx.de>
23433
23434 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23435 New macros.
23436 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23437 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23438 Simplify.
23439 (xd_signature): New function.
23440 (xd_append_arg): Compute also signatures. Major rewrite.
23441 (xd_retrieve_arg): Make debug messages friendly.
23442 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23443 Check for signatures of arguments.
23444
234452007-12-19 Michael Albinus <michael.albinus@gmx.de>
23446
23447 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23448 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23449 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23450 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23451 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23452 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23453 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23454 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23455 (xd_retrieve_value): Remove. Functionality included in ...
23456 (xd_append_arg): New function.
23457 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23458
234592007-12-16 Michael Albinus <michael.albinus@gmx.de>
23460
23461 * dbusbind.c (top): Include <stdio.h>.
23462 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23463 dbus_message_new_method_call and dbus_message_new_signal.
23464 (Fdbus_register_signal): Rename unique_name to uname.
23465 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23466 non-existing unique name. Fix typos in matching rule. Return an
23467 object which is useful in Fdbus_unregister_signal.
23468 (Fdbus_unregister_signal): Reimplementation, in order to remove
23469 only the corresponding entry.
23470 (Vdbus_registered_functions_table): Change the order of entries.
23471 Apply these changes in xd_read_message and Fdbus_register_signal.
23472
234732007-12-16 Andreas Schwab <schwab@suse.de>
23474
23475 * fileio.c (Finsert_file_contents): Fix overflow check to not
23476 depend on undefined integer overflow.
23477
234782007-12-14 Jason Rumney <jasonr@gnu.org>
23479
23480 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23481 for characters above 127.
23482
234832007-12-13 Jason Rumney <jasonr@gnu.org>
23484
23485 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23486 before dereferencing array.
23487 (lookup_vk_code): Remove zero comparison.
23488
234892007-12-14 Michael Albinus <michael.albinus@gmx.de>
23490
23491 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23492 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23493 Use `unsigned int' instead of `uint'.
23494 (xd_read_message, Fdbus_register_signal): Split expressions into
23495 multiple lines before operators "&&" and "||", according to the
23496 GNU Coding Standards.
23497
234982007-12-14 Eli Zaretskii <eliz@gnu.org>
23499
23500 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23501
235022007-12-12 Juri Linkov <juri@jurta.org>
23503
23504 * buffer.c (Frename_buffer): In interactive spec replace
23505 `read-buffer' with `read-string' that uses `buffer-name-history'
23506 as history, and the current buffer's name as default.
23507
235082007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23509
23510 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23511 manipulating the backtrace manually.
23512 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23513 (struct backtrace, backtrace_list): Remove.
23514 (command_loop_1): Remove dead var `no_direct'.
23515
23516 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23517 preserve non-built-in buffer-local variables.
23518 (Fkill_all_local_variables): Don't re-create&re-set permanent
23519 buffer-local variables.
23520
235212007-12-09 Juri Linkov <juri@jurta.org>
23522
23523 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23524 Lisp code that uses `read-buffer' with current buffer as default.
23525
235262007-12-08 Michael Albinus <michael.albinus@gmx.de>
23527
23528 * dbusbind.c (xd_read_message): Generate an event for every
23529 registered handler. There might be several handlers registered
23530 for the same signal.
23531 (Fdbus_register_signal): Don't overwrite a registration for the
23532 same signal. Add a new registration if handlers are different.
23533 (Vdbus_registered_functions_table): Rework doc string.
23534
235352007-12-07 Michael Albinus <michael.albinus@gmx.de>
23536
23537 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23538 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23539 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23540 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23541 Unify argument lists.
23542 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23543 arguments and hash table keys. Use unique name for service.
23544 (Fdbus_unregister_signal): Remove checks.
23545 (Vdbus_registered_functions_table): Fix doc string.
23546
235472007-12-05 Magnus Henoch <mange@freemail.hu>
23548
23549 * process.c (make_process): Initialize pty_flag to 0.
23550
235512007-12-05 Jason Rumney <jasonr@gnu.org>
23552
23553 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23554 specified XBMs.
23555
235562007-12-05 Richard Stallman <rms@gnu.org>
23557
23558 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23559
235602007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23561
23562 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23563 New variable.
23564 (mac_try_close_socket) [MAC_OSX]: New function.
23565 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23566 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23567
23568 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23569 Use mac_try_close_socket.
23570
235712007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23572
23573 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23574 reloc_base.
23575 (copy_dysymtab): Compute relocation base here.
23576 (rebase_reloc_address) [__ppc64__]: New function.
23577 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23578 changed.
23579
235802007-12-05 Jason Rumney <jasonr@gnu.org>
23581
23582 * w32proc.c (sys_spawnve): Quote args with wildcards.
23583
235842007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23585
23586 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23587 __objc_* sections.
23588 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23589
235902007-12-05 Michael Albinus <michael.albinus@gmx.de>
23591
23592 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23593 Move check for Vdbus_registered_functions_table to
23594 xd_read_queued_messages.
23595 (xd_read_queued_messages): Protect xd_read_message calls by
23596 internal_condition_case_1.
23597
235982007-12-04 Michael Albinus <michael.albinus@gmx.de>
23599
23600 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23601 Qdbus_system_bus and Qdbus_session_bus, respectively.
23602 (Vdbus_intern_symbols): Remove.
23603 (Vdbus_registered_functions_table): New hash table.
23604 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23605 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23606 Rewrite in order to manage registered functions by hash table
23607 Vdbus_registered_functions_table.
23608
236092007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23610
23611 * xterm.c: Update URL to Window Manager Specification in comment.
23612
236132007-12-02 Michael Albinus <michael.albinus@gmx.de>
23614
23615 * config.in (HAVE_DBUS): Add.
23616
23617 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23618 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23619 (obj): Add $(DBUS_OBJ).
23620 (LIBES): Add $(DBUS_LIBS).
23621 (dbusbind.o): New target.
23622
23623 * dbusbind.c: New file.
23624
23625 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23626
23627 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23628 (Qdbus_event): New Lisp symbol.
23629 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23630 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23631 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23632
23633 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23634
236352007-12-01 Richard Stallman <rms@gnu.org>
23636
23637 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23638
236392007-11-30 Jason Rumney <jasonr@gnu.org>
23640
23641 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23642 (w32con_reset_terminal_modes): Clear screen buffer.
23643 (w32_face_attributes): Don't use color indexes that are out of range.
23644 Only reverse the default colors.
23645
23646 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23647 WINDOWSNT.
23648
23649 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23650
236512007-11-29 Jason Rumney <jasonr@gnu.org>
23652
23653 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23654 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23655 if the terminal colors are initialized.
23656 (unspecified_fg, unspecified_bg): Remove unused declarations.
23657
236582007-11-29 Andreas Schwab <schwab@suse.de>
23659
23660 * keyboard.c (apply_modifiers): Fix typo.
23661
236622007-11-29 Richard Stallman <rms@gnu.org>
23663
23664 * keymap.c (Fcurrent_local_map): Doc fix.
23665
236662007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23667
23668 * s/gnu-kfreebsd.h: New file.
23669
236702007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23671
23672 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23673 Don't cast redundantly.
23674
23675 * keyboard.c (KEY_TO_CHAR): New macro.
23676 (parse_modifiers, apply_modifiers): Accept integer arguments.
23677 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23678 for chars and symbol keys.
23679 After doing such remapping, apply function-key-map again.
23680
236812007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23682
23683 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23684 compiled anymore.
23685
236862007-11-26 Andreas Schwab <schwab@suse.de>
23687
23688 * process.c (list_processes_1): Fix indentation level of the
23689 command column.
23690
236912007-11-23 Andreas Schwab <schwab@suse.de>
23692
23693 * editfns.c (Fformat): Handle %c specially since it requires the
23694 argument to be of type int.
23695
236962007-11-23 Markus Triska <markus.triska@gmx.at>
23697
23698 * emacs.c (main): Call init_editfns before init_process, since
23699 init_process sets Vprocess_connection_type depending on OS release.
23700
237012007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23702
23703 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23704 (find_symbol_value): Use do_symval_forwarding.
23705
23706 * data.c (set_internal): Set the value in the `cons-cell' (for
23707 Buffer_Local_values) not only for frame-local variables.
23708
237092007-11-22 Andreas Schwab <schwab@suse.de>
23710
23711 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23712 values to sprintf.
23713 * keymap.c (Fsingle_key_description): Likewise.
23714 * print.c (print_object): Likewise.
23715
237162007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23717
23718 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23719 file for image is nil.
23720
237212007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23722
23723 * term.c: Include stdarg.h.
23724 (fatal): Implement using varargs.
23725 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23726
237272007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23728
23729 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23730 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23731 Update call to buffer_slot_type_mismatch.
23732 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23733 (buffer_slot_type_mismatch): Update.
23734 * buffer.c (buffer_local_types): Remove.
23735 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23736 (defvar_per_buffer): Set the type in the buffer_objfwd.
23737
237382007-11-21 Jason Rumney <jasonr@gnu.org>
23739
23740 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23741 CreateFileMapping returns NULL on failure.
23742
237432007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23744
23745 * search.c (Fset_match_data): Remove the `evaporate' feature.
23746 (unwind_set_match_data): Don't use the `evaporate' feature.
23747
237482007-11-21 Jason Rumney <jasonr@gnu.org>
23749
23750 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23751
23752 * w32console.c (w32con_write_glyphs): Remove unused variables.
23753
237542007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23755
23756 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23757
23758 * s/darwin.h (MULTI_KBOARD): Remove.
23759
23760 * macfns.c (x_create_tip_frame, Fx_create_frame)
23761 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23762
237632007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23764
23765 * buffer.c (Fbuffer_local_value): Remove redundant test.
23766 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23767 than in `current-buffer' to match the comment.
23768 Do the swap using swap_in_global_binding.
23769
23770 * data.c (store_symval_forwarding, set_internal):
23771 * eval.c (specbind): Remove dead code.
23772
23773 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23774 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23775 Since we do not want to see internal Lisp_*fwd objects here.
23776
237772007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23778
23779 * sysdep.c (init_system_name): Use getaddrinfo if available.
23780
23781 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23782 (x_scroll_bar_note_movement): start, end, with, height in struct
23783 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23784
237852007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23786
23787 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23788
237892007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23790
23791 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23792 This undoes Richard's change of 14-Oct-2002.
23793
23794 * alloc.c (allocate_other_vector):
23795 * lisp.h (allocate_other_vector): Remove.
23796
23797 * window.c (struct save_window_data): Move non-lisp data to the end
23798 and make it `int' rather than Lisp_Object.
23799 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23800 Done wrap/unwrap integer values.
23801 (Fset_window_configuration, compare_window_configurations):
23802 Update use of fields to their new types.
23803
23804 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23805 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23806 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23807 (SET_SCROLL_BAR_X_WINDOW): Remove.
23808 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23809 Access the new x_window field directly.
23810 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23811 Don't wrap/unwrap integers into Lisp_Objects.
23812 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23813 (x_scroll_bar_report_motion):
23814 Don't wrap/unwrap integers into Lisp_Objects.
23815 (x_term_init): Use SDATA.
23816 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23817 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23818 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23819 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23820 * xfns.c (x_set_background_color):
23821 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23822 Access the new x_window field directly.
23823
23824 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23825 (allocate_pseudovector): Make non-static.
23826
23827 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23828 (allocate_pseudovector): Declare.
23829 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23830
238312007-11-15 Andreas Schwab <schwab@suse.de>
23832
23833 * editfns.c (Fformat): Correctly format EMACS_INT values.
23834 Also take precision into account when formatting an integer.
23835
23836 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23837
238382007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23839
23840 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23841 (syms_of_keyboard): Defsubr it.
23842
23843 * data.c (swap_in_global_binding): Fix longstanding bug where
23844 store_symval_forwarding was not called with the right second argument,
23845 thus causing objfwd-ing from being dropped.
23846
238472007-11-14 Juanma Barranquero <lekktu@gmail.com>
23848
23849 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23850 (Fx_display_pixel_height, Fx_display_planes)
23851 (Fx_display_color_cells, Fx_server_max_request_size)
23852 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23853 (Fx_display_visual_class, Fx_display_save_under):
23854 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23855 (Fx_display_pixel_height, Fx_display_planes)
23856 (Fx_display_color_cells, Fx_server_max_request_size)
23857 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23858 (Fx_display_mm_height, Fx_display_mm_width)
23859 (Fx_display_backing_store, Fx_display_visual_class)
23860 (Fw32_select_font, Fx_display_save_under):
23861 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23862 (Fx_display_pixel_height, Fx_display_planes)
23863 (Fx_display_color_cells, Fx_server_max_request_size)
23864 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23865 (Fx_display_save_under): Fix typos in docstrings.
23866
238672007-11-14 Juanma Barranquero <lekktu@gmail.com>
23868
23869 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23870 corresponding to deleted entries; they are an implementation detail.
23871 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23872 Remove variables.
23873 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23874 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23875 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23876 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23877 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23878 (Fw32_define_rgb_color, Fw32_load_color_file)
23879 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23880 Fix typos in docstrings.
23881 (Fx_server_version): Reflow docstring.
23882 (Fw32_shell_execute): Doc fixes.
23883
238842007-11-13 Juanma Barranquero <lekktu@gmail.com>
23885
23886 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23887 if w32_parse_hot_key returned nil.
23888
238892007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23890
23891 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23892
238932007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23894
aac0c6e3
MR
23895 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23896
23897 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23898
23899 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23900 Remove W32_SCROLL_BAR_CLICK_EVENT.
23901
23902 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23903 Add MULTIMEDIA_KEY_EVENT.
23904
23905 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23906 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23907 (make_lispy_event) [WINDOWSNT]: Use it to translate
23908 MULTIMEDIA_KEY_EVENT.
23909
23910 * w32term.h (WM_APPCOMMAND): Define if not already.
23911 (GET_APPCOMMAND_LPARAM): Likewise.
23912
23913 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23914 WM_APPCOMMAND.
23915
23916 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23917 (syms_of_w32fns): Export and initialize it.
23918 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23919
239202007-11-09 Chong Yidong <cyd@stupidchicken.com>
23921
23922 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23923 twice.
23924
23925 * xdisp.c (handle_face_prop): Fix last change.
23926
239272007-11-09 Richard Stallman <rms@gnu.org>
23928
23929 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23930 not just for after-strings and before-strings.
23931 Call face_for_overlay_string and pass the overlay to it.
23932 (handle_display_prop): Determine whether property came from an overlay.
23933 Pass OVERLAY arg to handle_single_display_spec.
23934 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23935 (load_overlay_strings): Fill in it->string_overlays.
23936 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23937
23938 * xfaces.c (face_for_overlay_string): Function renamed from
23939 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23940
23941 * dispextern.h (struct it): New elt string_overlays.
23942 New elt from_overlay, also in stack.
23943 Rearrange a few elements.
23944 (face_for_overlay_string): Decl renamed from
23945 face_at_buffer_position_no_overlays, and add argument.
23946
239472007-11-09 Richard Stallman <rms@gnu.org>
23948
23949 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23950 to get the base face for an overlay string.
23951
23952 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23953
23954 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23955
23956 * xdisp.c (handle_stop): Move some code out of loop.
23957
239582007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23959
23960 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23961 Fix conversion from Lisp object to ATSUFontID.
23962
239632007-11-09 Jason Rumney <jasonr@gnu.org>
23964
23965 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23966
239672007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23968
23969 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23970 Don't assume regions are aligned to page boundary.
23971 (print_load_command_name): Add LC_UUID if defined.
23972
239732007-11-09 Richard Stallman <rms@gnu.org>
23974
23975 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23976
239772007-11-07 Jason Rumney <jasonr@gnu.org>
23978
23979 * s/windows95.h: Remove.
23980
239812007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23982
23983 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23984 abort with a message on unhandled store_type values.
23985
239862007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23987
23988 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23989 Remove HAVE_X11R5 and HAVE_X11R4.
23990
239912007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23992
23993 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23994
239952007-11-01 Johan Bockgård <bojohan@gnu.org>
23996
23997 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23998 Don't set s->stippled_p here, since it has already been set by
23999 x_set_glyph_string_gc from x_draw_glyph_string.
24000
240012007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24002
24003 * sunfns.c: Remove file.
24004
24005 * m/sun386.h:
24006 * m/sun2.h:
24007 * m/sparc.h: Remove Sun windows code.
24008
240092007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24010
24011 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24012 (init_keyboard): Set current_kboard's window-system to nil.
24013 (tty_read_avail_input): Typo.
24014 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24015
240162007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24017
24018 * s/usg5-4.h:
24019 * s/usg5-3.h:
24020 * s/ptx.h:
24021 * m/is386.h:
24022 * m/ibmps2-aix.h:
24023 * Makefile.in: Remove all mentions of X10.
24024
24025 * dispnew.c (syms_of_display): Don't mention version 10.
24026
240272007-10-28 Juanma Barranquero <lekktu@gmail.com>
24028
24029 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24030 ($(BLD)/abbrev.$(O)): Remove.
24031
240322007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24033
24034 Rewrite abbrev.c in Elisp.
24035 * image.c (Qcount): Don't declare as extern.
24036 (syms_of_image): Initialize and staticpro `Qcount'.
24037 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24038 * emacs.c (main): Don't call syms_of_abbrev.
24039 * Makefile.in (obj): Remove abbrev.o.
24040 (abbrev.o): Remove.
24041 * abbrev.c: Remove.
24042
240432007-10-26 Martin Rudalics <rudalics@gmx.at>
24044
24045 * window.c (window_min_size_2): Don't count header-line.
24046
240472007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24048
24049 * frame.h (struct frame): Move all bit fields after the first bit
24050 field to take advantage of the available space. Group all the
24051 chars together to reduce wasted space due to padding.
24052
240532007-10-26 Juanma Barranquero <lekktu@gmail.com>
24054
24055 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24056
24057 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24058 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24059 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24060 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24061 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24062 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24063 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24064 (last_marked, mark_object_loop_halt): Make static.
24065
24066 * frame.c (syms_of_frame) <delete-frame-functions>:
24067 Fix typo in docstring.
24068
240692007-10-25 Juanma Barranquero <lekktu@gmail.com>
24070
24071 * w32.c (init_environment): Fix tiny memory leak.
24072 (w32_get_resource): Remove unused variable `ok'.
24073
240742007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24075
24076 Make `window-system' into a keyboard-local variable (rather than
24077 frame-local as done originally by multi-tty).
24078
24079 * keyboard.h (struct kboard): Add Vwindow_system.
24080 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24081 (mark_kboards): Mark Vwindow_system.
24082
24083 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24084 (init_display): Don't set the obsolete `window-system' frame-param.
24085
24086 * xterm.c (x_term_init):
24087 * w32term.c (w32_create_terminal):
24088 * term.c (init_tty): Set Vwindow_system.
24089 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24090 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24091
24092 * xfns.c (Fx_create_frame, x_create_tip_frame):
24093 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24094 * macfns.c (Fx_create_frame):
24095 Don't set the obsolete `window-system' frame-param.
24096
24097 * frame.h (Qwindow_system): Remove.
24098 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24099 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24100
241012007-10-24 Richard Stallman <rms@gnu.org>
24102
24103 * frame.c (x_figure_window_size): For fullscreen case,
24104 set USPosition | PPosition without clobbering rest of window_prompting.
24105
24106 * keyboard.c (Fcurrent_idle_time): Doc fix.
24107
24108 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24109
241102007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24111
24112 * process.c (unwind_request_sigio): Only define if __ultrix__.
24113
24114 * callproc.c (child_setup): Remove spurious *.
24115
24116 * lisp.h (Fget_text_property): Declare.
24117 (have_menus_p): Declare it here rather than in sys-dep header files.
24118 * macterm.h (have_menus_p):
24119 * msdos.h (have_menus_p):
24120 * xterm.h (have_menus_p): Remove.
24121
24122 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24123 (Fmake_variable_frame_local): Just check the variable's const-ness
24124 rather than checking nil or t.
24125
241262007-10-22 Jason Rumney <jasonr@gnu.org>
24127
24128 * w32fns.c: Include math.h.
24129 (w32_abort): Declaration moved to nt/config.nt.
24130
24131 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24132 (abort): Redefinition moved to nt/config.nt.
24133
24134 * m/windowsnt.h: Remove.
24135
241362007-10-22 Juanma Barranquero <lekktu@gmail.com>
24137
24138 * emacs.c (Fdump_emacs): Fix typo in message.
24139 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24140 <installation-directory>: Reflow docstring.
24141
241422007-10-22 Juri Linkov <juri@jurta.org>
24143
24144 * minibuf.c: Allow minibuffer default to be a list of default values.
24145 With empty input use the first element of this list as returned default.
24146 (string_to_object)
24147 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24148 (read_minibuf): If defalt is cons, set histstring to its car.
24149 (Fread_string): If default_value is cons, set val to its car.
24150 (Fread_buffer): If def is cons, use its car.
24151 (Fcompleting_read): If defalt is cons, set val to its car.
24152
241532007-10-21 Michael Albinus <michael.albinus@gmx.de>
24154
24155 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24156
241572007-10-20 Juanma Barranquero <lekktu@gmail.com>
24158
24159 * doc.c (Fdocumentation): Check for advice in all cases.
24160
241612007-10-19 Chong Yidong <cyd@stupidchicken.com>
24162
24163 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24164
241652007-10-19 Richard Stallman <rms@gnu.org>
24166
24167 * doc.c (Fdocumentation): Check for and handle an advised function.
24168
241692007-10-19 Juanma Barranquero <lekktu@gmail.com>
24170
24171 * process.c (Fset_process_filter): Doc fix.
24172
241732007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24174
24175 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24176 which caused key-translation-map to applied repeatedly (thus breaking
24177 double-mode).
24178
241792007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24180
24181 * xselect.c (x_own_selection, x_handle_selection_clear)
24182 (x_clear_frame_selections):
24183 * w32menu.c (list_of_panes, list_of_items):
24184 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24185 * textprop.c (validate_plist, interval_has_all_properties)
24186 (interval_has_some_properties, interval_has_some_properties_list)
24187 (add_properties, text_property_list):
24188 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24189 * minibuf.c (Fassoc_string):
24190 * macselect.c (x_own_selection, x_clear_frame_selections)
24191 (Fx_disown_selection_internal):
24192 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24193 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24194
241952007-10-17 Chong Yidong <cyd@stupidchicken.com>
24196
24197 * process.c: Link to libs for calling res_init() if available.
24198 (Fmake_network_process): Call res_init() before getaddrinfo or
24199 gethostbyname, if possible.
24200
242012007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24202
24203 * lread.c (read1): Set pvectype for char_tables.
24204
24205 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24206 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24207 Add type checks.
24208 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24209
24210 * alloc.c (free_misc): Use XMISCTYPE.
24211 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24212
242132007-10-17 Glenn Morris <rgm@gnu.org>
24214
24215 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24216 (syms_of_minibuf): Add Qcompletion_ignore_case.
24217 * dired.c (Qcompletion_ignore_case): Change to external.
24218 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24219 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24220 (Fread_file_name): Use it rather than intern'ing.
24221
24222 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24223 (Fread_coding_system): Ignore case of user input.
24224
242252007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24226
24227 * xdisp.c (handle_display_prop): Ignore display specs after
24228 replacing one when string text is being replaced.
24229 (handle_single_display_spec): Pretend as if characters with display
24230 property haven't been consumed only when buffer text is being replaced.
24231
242322007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24233
24234 * xfns.c (Fx_create_frame, Fx_display_list):
24235 * window.c (window_fixed_size_p, enlarge_window)
24236 (shrink_window_lowest_first):
24237 * macterm.c (init_font_name_table):
24238 * macfns.c (Fx_create_frame, Fx_display_list):
24239 * lread.c (close_load_descs):
24240 * keyboard.c (read_char_x_menu_prompt):
24241 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24242 * coding.c (code_convert_region_unwind): Test the type of an object
24243 rather than just !NILP before extracting data from it.
24244
24245 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24246
24247 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24248 (XMISCANY): New macro.
24249 (XMISCTYPE): Use it.
24250 (struct Lisp_Misc_Any): New type.
24251 (union Lisp_Misc): Use it.
24252 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24253 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24254 (find_symbol_value, set_internal, default_value, Fset_default)
24255 (Fmake_variable_buffer_local, Fmake_local_variable)
24256 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24257 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24258 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24259 * alloc.c (allocate_buffer): Set the size and tag.
24260 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24261 Use XMISCANY.
24262 (die): Follow the GNU convention for error messages.
24263 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24264 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24265 tag any more.
24266 (set_buffer_internal_1):
24267 * frame.c (store_frame_param):
24268 * eval.c (specbind):
24269 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24270
24271 * doc.c (Fsnarf_documentation): Simplify.
24272
242732007-10-14 Juanma Barranquero <lekktu@gmail.com>
24274
24275 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24276 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24277
242782007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24279
24280 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24281
242822007-10-14 Juanma Barranquero <lekktu@gmail.com>
24283
24284 * eval.c (do_autoload): Don't save autoloads.
24285
24286 * data.c (Ffset): Save autoload of the function being set.
24287
242882007-10-07 John Paul Wallington <jpw@pobox.com>
24289
24290 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24291 parameter before setting up faces.
24292
242932007-10-13 Eli Zaretskii <eliz@gnu.org>
24294
24295 * ccl.c (Fregister_code_conversion_map):
24296 * keyboard.c (append_tool_bar_item): Reformat last change.
24297
24298 * lisp.h (eabs): Rename from `abs'. All callers changed.
24299
243002007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24301
24302 * buffer.c (add_overlay_mod_hooklist):
24303 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24304 * fontset.c (make_fontset):
24305 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24306 (append_tool_bar_item):
24307 * macmenu.c (grow_menu_items):
24308 * w32menu.c (grow_menu_items):
24309 * xmenu.c (grow_menu_items): Use larger_vector.
24310
243112007-10-13 Eli Zaretskii <eliz@gnu.org>
24312
24313 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24314 selected frame'' on MSDOS).
24315
243162007-10-12 Martin Rudalics <rudalics@gmx.at>
24317
24318 * frame.c (Qexplicit_name): New variable.
24319 (x_report_frame_params): Report it in parameter alist.
24320 (syms_of_frame): Intern and staticpro it.
24321
243222007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24323
24324 * macfns.c (x_create_tip_frame): Set terminal for frame.
24325
243262007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24327
24328 * frame.c (Qenvironment): Remove.
24329 (syms_of_frame) <Qenvironment>: Don't initialize.
24330 (Fdelete_frame): Don't treat the `environment' param specially.
24331 * frame.h (Qenvironment): Don't declare.
24332 * callproc.c (set_initial_environment): Don't set unused frame param.
24333
24334 * frame.c (Fframe_with_environment): Remove.
24335 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24336
24337 * lisp.h (Fframe_with_environment): Don't declare.
24338
243392007-10-10 Juanma Barranquero <lekktu@gmail.com>
24340
24341 * indent.c (indent_tabs_mode, last_known_column)
24342 (last_known_column_modified): Make static.
24343 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24344
243452007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24346
24347 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24348
243492007-10-09 Jason Rumney <jasonr@gnu.org>
24350
24351 * w32term.c (x_set_window_size): Disable code that attempts to tell
24352 Lisp code about a size change before it actually happens.
24353
243542007-10-09 Richard Stallman <rms@gnu.org>
24355
24356 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24357 return HANDLED_RETURN.
24358
243592007-10-08 Martin Rudalics <rudalics@gmx.at>
24360
24361 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24362 when there's an unread command event.
24363
24364 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24365 window autoselection act appropriately when leaving selected frame.
24366 (syms_of_frame): Initialize focus_follows_mouse.
24367 * frame.h (focus_follows_mouse): Extern it.
24368 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24369 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24370 * msdos.c (dos_rawgetc): Likewise.
24371 * w32term.c (w32_read_socket): Likewise.
24372 * xterm.c (handle_one_xevent): Likewise.
24373 * xdisp.c (syms_of_xdisp): In doc-string of
24374 mouse-autoselect-window mention focus-follows-mouse.
24375
243762007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24377
24378 * macterm.c (mac_load_query_font): Fix missing return value.
24379 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24380 Add BLOCK_INPUT.
24381
243822007-10-08 Richard Stallman <rms@gnu.org>
24383
24384 * xdisp.c (get_window_cursor_type): Implement documented behavior
24385 for cursor-in-non-selected-windows = t.
24386
243872007-10-08 Jason Rumney <jasonr@gnu.org>
24388
24389 * w32.c (w32_get_resource): Always close registry keys.
24390
243912007-10-08 Jason Rumney <jasonr@gnu.org>
24392
24393 * makefile.w32-in (LIBS): Add COMCTL32.
24394
24395 * w32fns.c (globals_of_w32fns): Init common controls.
24396
243972007-10-08 Richard Stallman <rms@gnu.org>
24398
24399 * image.c (our_memory_buffer): Rename from omfib_buffer.
24400
244012007-10-08 Richard Stallman <rms@gnu.org>
24402
24403 * buffer.c (Foverlays_at): Doc fix.
24404
244052007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24406
24407 * fns.c (Fplist_put): Preserve uneven tail data.
24408
244092007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24410
24411 * termhooks.h (enum event_kind): Remove trailing comma.
24412
24413 * frame.h (enum): Remove trailing comma.
24414
244152007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24416
24417 * w32proc.c (delete_child): Don't terminate threads of zombies.
24418
244192007-10-08 Martin Rudalics <rudalics@gmx.at>
24420
24421 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24422
24423 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24424 last-repeatable-command.
24425 (init_kboard): Initialize Vlast_repeatable_command.
24426 (command_loop_1): Set it to real_this_command unless that was
24427 bound to an input event.
24428 (mark_kboards): Mark it.
24429
244302007-10-08 Richard Stallman <rms@gnu.org>
24431
24432 * eval.c (condition-case): Doc fix.
24433
244342007-10-08 Masatake YAMATO <jet@gyve.org>
24435
24436 * xfaces.c (tty_supports_face_attributes_p): Fix code
24437 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24438 was copied and not edited.
24439
244402007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24441
24442 Add new `input-decode-map' keymap and use it for terminal
24443 escape sequences.
24444 * keyboard.h (struct kboard): Add Vinput_decode_map.
24445 Remove Vlocal_key_translation_map.
24446 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24447 (init_kboard): Init input-decode-map.
24448 Replace local-key-translation-map back with key-translation-map.
24449 (syms_of_keyboard): Declare input-decode-map.
24450 Remove local-key-translation-map. Update docstrings.
24451 (mark_kboards): Mark Vinput_decode_map.
24452 Don't mark Vlocal_key_translation_map.
24453 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24454 Replace local-key-translation-map back with key-translation-map.
24455 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24456 Bind in input-decode-map rather than function-key-map.
24457
24458 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24459 This was made redundant by the previous introduction of XSETPVECTYPE.
24460
244612007-10-09 Richard Stallman <rms@gnu.org>
24462
24463 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24464
244652007-09-29 Richard Stallman <rms@gnu.org>
24466
24467 * eval.c (internal_condition_case_2, internal_condition_case_1)
24468 (internal_condition_case): Reenable abort if x_catching_errors ()
24469 to see if that really happens and why.
24470
244712007-10-06 Andreas Schwab <schwab@suse.de>
24472
24473 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24474
244752007-10-04 Juanma Barranquero <lekktu@gmail.com>
24476
24477 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24478
244792007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24480
24481 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24482
244832007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24484
24485 * window.h (struct window):
24486 * window.c (struct save_window_data, struct saved_window):
24487 * termhooks.h (struct terminal):
24488 * process.h (struct Lisp_Process):
24489 * frame.h (struct frame):
24490 * buffer.h (struct buffer):
24491 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24492 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24493 The size field of (pseudo)vectors is now unsigned.
24494 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24495
24496 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24497 Turn `count' into an integer.
24498
24499 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24500 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24501 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24502 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24503 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24504
24505 * alloc.c (allocate_pseudovector): New fun.
24506 (ALLOCATE_PSEUDOVECTOR): New macro.
24507 (allocate_window, allocate_terminal, allocate_frame)
24508 (allocate_process): Use it.
24509 (mark_vectorlike): New function.
24510 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24511 (mark_terminals): Use it.
24512 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24513 (Fmake_byte_code): Use XSETPVECTYPE.
24514
24515 * frame.c (Fframe_parameters): Minor simplification.
24516
24517 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24518
24519 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24520
24521 * buffer.c (Fget_buffer_create, init_buffer_once):
24522 * lread.c (defsubr):
24523 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24524
24525 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24526 defined differently in the m/*.h files.
24527 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24528 (XSETPVECTYPE): New macro.
24529 (XSETPSEUDOVECTOR): Use it.
24530
24531 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24532 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24533
24534 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24535 * lread.c (defvar_per_buffer):
24536 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24537
24538 * window.c (candidate_window_p): Only consider as visible frames that
24539 are on the same terminal.
24540
24541 * m/ibms390x.h (MARKBIT): Remove unused macro.
24542
245432007-10-01 Juanma Barranquero <lekktu@gmail.com>
24544
24545 * lread.c (Fload): Fix typo in docstring.
24546
245472007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24548
24549 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24550 of a non-zero value can't yield zero.
24551
245522007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24553
24554 * term.c (term_clear_mouse_face, term_mouse_highlight)
24555 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24556
24557 * print.c (safe_debug_print): Use XHASH.
24558
24559 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24560 Lisp elements such as tags.
24561 (XHASH): New macro.
24562 (EQ): Use it.
24563 (SREF, SSET, STRING_COPYIN): Use SDATA.
24564 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24565
24566 * alloc.c (mark_terminal): Remove left-over declaration.
24567 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24568 (allocate_vectorlike): Remove type argument. Adjust callers.
24569 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24570 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24571
24572 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24573 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24574 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24575 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24576 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24577 Use them.
24578
24579 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24580 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24581 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24582
245832007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24584
24585 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24586 loaded by default.
24587
245882007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24589
24590 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24591 on this tty.
24592 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24593
24594 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24595 Update all users.
24596 (handle_one_term_event): Use Gpm_DrawPointer.
24597 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24598 Signal errors instead of returning nil. Always return nil.
24599 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24600 Make it a noop if gpm-mouse was not activated.
24601 (syms_of_term): Update names.
24602
246032007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24604
24605 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24606 (init_sys_modes): Check that gpm_tty is the current tty.
24607
24608 * alloc.c (allocate_terminal): Set the vector size to only count the
24609 lisp fields. Initialize those to nil.
24610 (mark_object): Don't treat terminals specially.
24611 (mark_terminal): Remove.
24612 (mark_terminals): Use mark_object instead.
24613
24614 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24615 the GC to the beginning.
24616
24617 * indent.h:
24618 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24619
24620 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24621
246222007-09-25 Jason Rumney <jasonr@gnu.org>
24623
24624 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24625
24626 * w32console.c (create_w32cons_output): Remove.
24627
24628 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24629
24630 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24631 (reset_sys_modes): Use reset_terminal_modes_hook.
24632
246332007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24634
24635 * eval.c (do_autoload): Don't output any message.
24636
246372007-09-24 Juri Linkov <juri@jurta.org>
24638
24639 * emacs.c (standard_args): Change priority of "--no-splash"
24640 from 40 to 3. Add "--no-desktop" with the same priority.
24641
246422007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24643
24644 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24645 and optimize the case where they are all 1.
24646
246472007-09-23 Johannes Weiner <hannes@saeurebad.de>
24648
24649 * lisp.h (abs): Define if not defined.
24650 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24651 Don't define `abs', since it's defined in lisp.h.
24652
246532007-09-22 Eli Zaretskii <eliz@gnu.org>
24654
24655 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24656 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24657 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24658 (init_tty): Use DEV_TTY instead of "/dev/tty".
24659 [WINDOWSNT]: No need to protect from NAME arg being null.
24660
246612007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24662
24663 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24664 up the tty state.
24665
246662007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24667
24668 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24669 (gpm_tty): Change its type.
24670 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24671 (gpm_tty): Change its type and initialize it.
24672 (Fterm_open_connection): Check the frame is indeed a tty.
24673 Use the new gpm_tty.
24674 (Fterm_close_connection): Use the new gpm_tty.
24675 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24676 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24677
246782007-09-21 Juanma Barranquero <lekktu@gmail.com>
24679
24680 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24681 underline_color, to draw strike-through.
24682
246832007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24684
24685 * lisp.h (allocate_terminal): Declare.
24686
24687 * window.c (candidate_window_p): Consider frames that are being placed
24688 by the user as somewhere between visible and iconified.
24689 (window_loop): Prefer windows on the current frame.
24690 (Fselect_window): Move the use of select-frame to the beginning so we
24691 can just delegate all the work (it'll call us back anyway).
24692
24693 * frame.c (Qdisplay_environment_variable):
24694 * frame.h (Qdisplay_environment_variable): Delete.
24695
24696 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24697 of the first arg, since that value may be a union.
24698
24699 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24700 parameter rather than Qdisplay_environment_variable. If all else
24701 fails, look for DISPLAY in initial-environment.
24702
247032007-09-21 Glenn Morris <rgm@gnu.org>
24704
24705 * Makefile.in (emacstool): Remove target.
24706 (lisp, shortlisp): Remove termdev.elc.
24707
247082007-09-21 Markus Triska <markus.triska@gmx.at>
24709
24710 * xterm.c (x_delete_display): Compile session management conditionally.
24711
247122007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24713
24714 * callproc.c (getenv_internal_1): New function.
24715 (getenv_internal): Use it.
24716 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24717
24718 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24719 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24720 (Fset_terminal_parameter): Work with dead terminals as well.
24721 (Fmodify_terminal_parameters): Remove.
24722
24723 * terminal.c (get_terminal): Handle terminals.
24724 Make sure the terminal returned is live.
24725 (create_terminal): Use allocate_terminal.
24726 (mark_terminals): Move to alloc.c.
24727 (delete_terminal): Use terminal->name as liveness status.
24728 NULL out fields after freeing their contents.
24729 Don't deallocate the object.
24730 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24731 rather than an int.
24732 (Fterminal_live_p): Accept non-integer arguments.
24733 (Fterminal_list): Return terminal objects rather than an ints.
24734
24735 * alloc.c (enum mem_type): New member for `terminal' objects.
24736 (allocate_terminal): New function.
24737 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24738 Handle terminals.
24739 (mark_terminal): New fun.
24740 (mark_terminals): Move from terminal.c.
24741
24742 * term.c (get_tty_terminal): Don't treat output_initial specially.
24743 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24744 (delete_tty): Use terminal->name as liveness status.
24745
24746 * termhooks.h (struct terminal): Make it into a pseudovector.
24747 Remove `deleted' replaced by checking `name's nullness.
24748
24749 * print.c (print_object): Handle terminals.
24750
24751 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24752 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24753
24754 * frame.c (make_terminal_frame):
24755 * keyboard.c (tty_read_avail_input):
24756 * w32term.c (x_delete_terminal):
24757 * xfns.c (Fx_create_frame, x_create_tip_frame):
24758 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24759
247602007-09-20 Glenn Morris <rgm@gnu.org>
24761
24762 * process.c (Fmake_network_process): Doc fix.
24763
247642007-09-19 Jason Rumney <jasonr@gnu.org>
24765
24766 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24767
247682007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24769
24770 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24771 Fix a C warning regarding variable constness.
24772
24773 * xterm.c (handle_one_xevent): Fix a C warning.
24774
247752007-09-18 Jason Rumney <jasonr@gnu.org>
24776
24777 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24778
247792007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24780
24781 * gtkutil.c (gdpy_def): New variable.
24782 (xg_initialize): Initialize gdpy_def.
24783 (xg_display_close): If no other display exists, set gdpy_def to a
24784 new connection.
24785
247862007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24787
24788 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24789 when we have no file name for the icon.
24790 (xg_tool_bar_expose_callback): Remove.
24791 (xg_create_tool_bar): Don't connect expose signal to
24792 xg_tool_bar_expose_callback.
24793 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24794
247952007-09-16 Andreas Schwab <schwab@suse.de>
24796
24797 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24798 values instead of zapping them.
24799
248002007-09-14 Glenn Morris <rgm@gnu.org>
24801
24802 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24803 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24804 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24805 scope and rename to omfib_buffer for clarity.
24806 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24807
248082007-09-14 Kenichi Handa <handa@m17n.org>
24809
24810 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24811
248122007-09-13 Jason Rumney <jasonr@gnu.org>
24813
24814 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24815
24816 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24817
24818 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24819 (mac_term_init): Call here instead, passing rif.
24820
248212007-09-13 Glenn Morris <rgm@gnu.org>
24822
24823 * s/hpux.h: No longer define `static' as nothing.
24824
248252007-09-13 Johan Bockgård <bojohan@gnu.org>
24826
24827 * callint.c (Fcall_interactively): Remove unused var `fun'.
24828
248292007-09-12 Romain Francoise <romain@orebokech.com>
24830
24831 * window.c (prefer_window_split_horizontally, display_buffer):
24832 Revert 2007-09-08 change.
24833
248342007-09-12 Glenn Morris <rgm@gnu.org>
24835
24836 * alloca.c: Remove file.
24837 * Makefile.in (alloca): Do not undef.
24838 (allocaobj, alloca.o): Remove.
24839 (otherobj): Remove allocaobj.
24840 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24841 * regex.c (C_ALLOCA): Remove all references and code that was only
24842 used when this was defined.
24843 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24844 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24845 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24846
24847 * Makefile.in (SOURCES, unlock, relock): Delete.
24848
24849 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24850 (menu_grab_callback): All uses changed.
24851
24852 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24853 (x_reply_selection_request): All uses changed.
24854
248552007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24856
24857 * lread.c (load_warn_old_style_backquotes): Change message to look
24858 better when it appears in the middle of byte-compiler messages.
24859
248602007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24861
24862 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24863
24864 * xterm.c (x_create_terminal): Add comment.
24865
24866 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24867
248682007-09-10 Richard Stallman <rms@gnu.org>
24869
24870 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24871
248722007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24873
24874 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24875 (DEFUN): Document `intspec', use it instead of `prompt'.
24876
24877 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24878
24879 * data.c (Finteractive_form): If the interactive specification starts
24880 with a `(', use it as a Lisp form.
24881
24882 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24883 name and file modes.
24884
24885 * callint.c (Fcall_interactively): Comment fixes.
24886
248872007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24888
24889 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24890 and compiled functions.
24891
248922007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24893
24894 * window.c (prefer_window_split_horizontally): New variable.
24895 (display_buffer): Consider splitting window horizontally depending
24896 on prefer_window_split_horizontally.
24897
248982007-09-08 Eli Zaretskii <eliz@gnu.org>
24899
24900 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24901
249022007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24903
24904 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24905
24906 * frame.c (x_set_frame_parameters): Check number is positive before
24907 using XFASTINT.
24908
24909 * window.c (freeze_window_start): Don't presume selected_window holds
24910 a window object.
24911 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24912
249132007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24914
24915 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24916
249172007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24918
24919 * window.c (Vsplit_window_preferred_function): New var.
24920 (Fdisplay_buffer): Use it.
24921 (syms_of_window): Export, and initialize it.
24922
249232007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24924
24925 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24926
249272007-09-06 Glenn Morris <rgm@gnu.org>
24928
24929 * gtkutil.c (menu_grab_callback) <cnt>:
24930 * xselect.c (x_reply_selection_request) <cnt>: Move static
24931 variable to file scope.
24932
249332007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24934
24935 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24936 consistent values of selected_frame and selected_window.
24937
249382007-09-04 Jason Rumney <jasonr@gnu.org>
24939
24940 * w32console.c (initialize_w32_display): Zero unused hooks.
24941
249422007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24943
24944 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24945 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24946
249472007-09-04 Jason Rumney <jasonr@gnu.org>
24948
24949 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24950 in w32console.c. Set up input. Remove XXX comments that have been
24951 confirmed as correct.
24952
24953 * s/ms-w32.h (MULTI_KBOARD): Define.
24954
24955 * w32console.c (one_and_only_w32cons): Remove.
24956 (initialize_w32_display): Take terminal argument.
24957
24958 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24959 initialize_w32_display.
24960 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24961
24962 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24963
24964 * keyboard.c (discard_mouse_events): Discard it.
24965 (make_lispy_event): Translate it to a lisp event.
24966 (lispy_wheel_names): Add wheel-left and right events.
24967 (syms_of_keyboard): Enlarge wheel_syms.
24968
24969 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24970 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24971
24972 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24973
24974 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24975 from WM_MOUSEHWHEEL.
24976 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24977
24978 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24979 terminal.
24980
24981 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24982 keyboard for the terminal.
24983
249842007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24985
24986 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24987 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24988 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24989 and resume-tty-function to resume-tty-hook.
24990 (Fsuspend_tty, Fresume_tty): Use new names.
24991
249922007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24993
24994 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24995 if it starts with "n:".
24996
249972007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24998
24999 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25000
250012007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25002
25003 * frame.h:
25004 * frame.c (Qterm_environment_variable): Remove.
25005 (syms_of_frame): Don't init and staticpro it.
25006
25007 * callproc.c (getenv_internal): Remove special case for $TERM.
25008
25009 * callproc.c (Vinitial_environment): New variable.
25010 (set_initial_environment): Initialize it.
25011 (syms_of_callproc): Declare it.
25012 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25013 TERM under which a process runs is never related to the TERM in which
25014 Emacs is running.
25015
250162007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25017
25018 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25019 * s/darwin.h: ... do it here.
25020
250212007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25022
25023 * lisp.h (set_initial_environment): Rename from set_global_environment.
25024
25025 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25026 removed by mistake on the multi-tty branch.
25027
25028 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25029 (Fmodify_frame_parameters): Return a value.
25030
25031 * image.c (png_load): Comment-out var only used in commented-out code.
25032
25033 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25034 before passing it to mark_object.
25035
25036 * xfaces.c (internal_resolve_face_name): Return a value.
25037 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25038
25039 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25040 (x_icon): Comment-out var only used in commented-out code.
25041
250422007-08-29 Romain Francoise <romain@orebokech.com>
25043
25044 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25045 QUIT hasn't been provided.
25046
250472007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25048
25049 * callproc.c (child_setup, getenv_internal): Use the
25050 display-environment-variable and term-environment-variable frame params.
25051 (set_initial_environment): Initialise Vprocess_environment.
25052
25053 * config.in: Disable multi-keyboard support on a mac.
25054
25055 * frame.c (Qterm_environment_variable)
25056 (Qdisplay_environment_variable): New variables.
25057 (syms_of_frame): Intern and staticpro them.
25058 (Fmake_terminal_frame): Disable output method test.
25059
25060 * frame.h: Declare them here.
25061
25062 * macfns.c (x_set_mouse_color): Get rif from the frame.
25063 (x_set_tool_bar_lines): Don't use updating_frame.
25064 (mac_window): Add 2 new parameters for consistency with other systems.
25065 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25066 frame parameters following what is done in X11 and w32. Don't use
25067 FRAME_MAC_DISPLAY_INFO.
25068 (Fx_open_connection, start_hourglass): Remove window-system check.
25069 (x_create_tip_frame): Get the keyboard from the terminal.
25070
25071 * macmenu.c: Reorder includes.
25072 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25073
25074 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25075 terminal parameter.
25076 (x_clear_frame): Add a frame parameter.
25077 (note_mouse_movement): Get rif from the frame.
25078 (mac_term_init): Initialize the terminal.
25079 (mac_initialize): Make static and move terminal initialization ...
25080 (mac_create_terminal): ... to this new function.
25081
25082 * macterm.h (struct mac_display_info): Add terminal.
25083 (mac_initialize): Delete declaration.
25084
25085 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25086
25087 * sysdep.c: Comment out text after #endif.
25088
25089 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25090 is defined. Better initialize ttys in windows. Use terminal
25091 specific mouse_position_hook.
25092
25093 * termhooks.h (union display_info): Add mac_display_info.
25094
25095 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25096 Set the default minibuffer frame, window_system and the rest of the
25097 frame parameters following what is done in X11.
25098
25099 * w32term.c (w32_initialize): Make static.
25100
25101 * xselect.c (x_handle_selection_clear): Only access
25102 terminal->kboard when MULTI_KBOARD is defined.
25103
25104 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25105 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25106
251072007-08-29 Jason Rumney <jasonr@gnu.org>
25108
25109 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25110 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25111
25112 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25113 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25114
25115 * keyboard.c (restore_kboard_configuration): Only define when
25116 MULTI_KBOARD defined.
25117
25118 * makefile.w32-in: Update dependancies from Makefile.in.
25119 (OBJ1): Add terminal.$(O)
25120
25121 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25122 Don't define function body.
25123 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25124
25125 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25126
25127 * w32.c (request_sigio, unrequest_sigio): Remove.
25128
25129 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25130 (w32con_clear_frame, w32con_clear_end_of_line)
25131 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25132 (w32con_delete_glyphs, w32con_set_terminal_window)
25133 (scroll_line, w32_sys_ring_bell): Add frame arg.
25134 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25135 Add terminal arg.
25136 (PICK_FRAME): Remove.
25137 (w32con_write_glyphs): Use frame specific terminal coding.
25138 (one_and_only_w32cons): New global variable.
25139 (initialize_w32_display): Use it for storing hooks.
25140 (create_w32cons_output): New function.
25141
25142 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25143 arg a frame.
25144
25145 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25146 Set window_system.
25147 (x_set_tool_bar_lines): Don't use updating_frame.
25148 (Fx_create_frame): Set terminal and ref count.
25149 (Fx_open_connection): Remove window-system check.
25150
25151 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25152
25153 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25154 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25155 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25156 Add frame arg.
25157 (x_delete_terminal, w32_create_terminal): New functions.
25158 (w32_term_init): Create a terminal.
25159 (w32_initialize): Move terminal specific initialization to
25160 w32_create_terminal.
25161
25162 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25163 (w32_clear_rect, w32_clear_area): Use background from frame.
25164 (w32_display_info): Add terminal.
25165 (w32_sys_ring_bell, x_delete_display): Declare here.
25166
25167 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25168
25169 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25170
251712007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25172
25173 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25174 Fix get_named_tty calls for the controlling tty.
25175
251762007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25177
194d44e7 25178 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25179
251802007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25181
25182 * term.c (tty_insert_glyphs): Add missing first parameter.
25183
251842007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25185
25186 * buffer.c (Fbuffer_list, Fbury_buffer):
25187 Take frame->buried_buffer_list into account.
25188
25189 * cm.c (current_tty): New variable, for cmputc().
25190 (cmputc): Use it.
25191 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25192 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25193 (cmgoto): Add tty parameter. Pass it on to calccost().
25194 Use emacs_tputs() instead of tputs().
25195
25196 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25197 tputs().
25198 (current_tty): New variable, for cmputc().
25199 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25200
25201 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25202 (internal_condition_case, internal_condition_case_1)
25203 (internal_condition_case_2): Don't abort when x_catching_errors.
25204
25205 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25206 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25207 prevent crashes caused by bogus longjmps in read_char.
25208
25209 * keymap.h (Fset_keymap_parent): Add EXFUN.
25210
25211 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25212 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25213 Remove redundant definition.
25214
25215 * macfns.c (x_set_mouse_color, x_make_gc):
25216 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25217
25218 * w32term.c (x_free_frame_resources):
25219 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25220 (w32_initialize): Use the accessor macros for terminal characteristics.
25221
25222 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25223 Use the accessor macros for terminal characteristics.
25224 * msdos.c (internal_terminal_init): Use the accessor macros for
25225 terminal characteristics.
25226 (ScreenVisualBell, internal_terminal_init):
25227 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25228
25229 * termopts.h (no_redraw_on_reenter): Declare.
25230
25231 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25232 (mark_terminals, mark_ttys): Declare.
25233 (Fgarbage_collect): Call them.
25234 (mark_object): Mark buried_buffer_list.
25235
25236 * prefix-args.c: Include stdlib.h for exit.
25237
25238 * syssignal.h: Add comment.
25239
25240 * indent.c: Include stdio.h.
25241
25242 * window.h (Vinitial_window_system): Declare.
25243 (Vwindow_system): Delete declaration.
25244
25245 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25246
25247 * image.c (lookup_image): Don't initialize `c' until the xasserts
25248 have been run.
25249
25250 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25251 FRAME_FOREGROUND_PIXEL.
25252
25253 * print.c (print_preprocess): Don't lose print_depth levels while
25254 iterating.
25255
25256 * widget.c (update_from_various_frame_slots):
25257 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25258
25259 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25260 frames.
25261 (window_internal_height): Remove bogus make_number call.
25262 (init_window_once): Call make_terminal_frame with two zero parameters.
25263
25264 * fileio.c (Fread_file_name): Update comment.
25265
25266 * callint.c (Fcall_interactively):
25267 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25268 Make sure it is correctly unwound.
25269
25270 * xsmfns.c (x_session_close): New function.
25271
25272 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25273 Delete declarations.
25274
25275 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25276 (x_output): Remove background_pixel and foreground_pixel fields.
25277 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25278 (x_delete_device, x_session_close): Declare.
25279
25280 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25281 (read_filtered_event): Call `read_char' with a local
25282 `wrong_kboard_jmpbuf'.
25283
25284 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25285 Don't call single_kboard_state. Use FRAME_RIF.
25286
25287 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25288 systems.
25289
25290 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25291 (Fframe_with_environment, Fset_input_meta_mode)
25292 (Fset_quit_char): EXFUN.
25293 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25294 (init_sys_modes, reset_sys_modes): Update prototypes.
25295 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25296
25297 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25298 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25299 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25300 Delete declarations.
25301 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25302 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25303 New declarations.
25304
25305 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25306 already does that during init_display(). Call syms_of_keymap
25307 before syms_of_keyboard. Call `syms_of_terminal'.
25308 Call set_initial_environment, not set_process_environment.
25309 (shut_down_emacs): Call reset_all_sys_modes() instead of
25310 reset_sys_modes().
25311
25312 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25313 (internal_resolve_face_name, resolve_face_name_error): New functions.
25314 (resolve_face_name): Protect against loops and errors thrown by Fget.
25315 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25316 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25317
25318 * scroll.c: Replace CURTTY() with local variables throughout the
25319 file (where applicable).
25320 (calculate_scrolling, calculate_direct_scrolling)
25321 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25322 characteristics.
25323
25324 * keymap.c (Vfunction_key_map): Remove.
25325 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25326 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25327 (Vkey_translation_map): Remove.
25328 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25329 (Fdescribe_buffer_bindings)
25330 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25331 Update for terminal-local key-translation-map.
25332
25333 * Makefile.in (callproc.o): Update dependencies.
25334 (lisp, shortlisp): Add termdev.elc.
25335 (obj): Add terminal.o.
25336 (terminal.o): Add dependencies.
25337 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25338 (data.o, fns.o): Add termhooks.h dependency.
25339 (SOME_MACHINE_LISP): Add dnd.elc.
25340 (minibuf.o): Fix typo.
25341 Update dependencies.
25342
25343 * data.c (do_symval_forwarding, store_symval_forwarding)
25344 (find_symbol_value): Use the selected frame's keyboard, not
25345 current_kboard.
25346
25347 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25348 Vwindow_system.
25349
25350 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25351 Fmenu_bar_open.
25352 (syms_of_xmenu): Update defsubr.
25353 (mouse_position_for_popup, Fx_popup_menu)
25354 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25355 (set_frame_menubar, free_frame_menubar)
b97439ce 25356 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25357 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25358 an X frame.
25359
25360 * xselect.c (x_own_selection): Abort if not an X frame.
25361 (some_frame_on_display): Check if it is an X frame.
25362 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25363
25364 * coding.c: Include frame.h and termhooks.h.
25365 (terminal_coding, keyboard_coding): Delete.
25366 (Fset_terminal_coding_system_internal)
25367 (Fset_keyboard_coding_system_internal)
25368 (Fkeyboard_coding_system)
25369 (Fterminal_coding_system): Add a terminal parameter.
25370 Get terminal_coding from the terminal.
25371 (init_coding_once): Don't call setup_coding_system here.
25372
25373 * dispextern.h (set_scroll_region, turn_off_insert)
25374 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25375 (tty_clear_end_of_line, tty_setup_colors)
25376 (delete_tty, updating_frame)
25377 (produce_special_glyphs, produce_glyphs, write_glyphs)
25378 (insert_glyphs): Remove.
25379 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25380 (tty_turn_off_highlight, get_tty_size): Add declaration.
25381 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25382
25383 * frame.h (enum output_method): Add output_initial.
25384 (struct x_output): Delete.
25385 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25386 Access foreground_pixel and background_pixel directly from the frame.
25387 (tty_display): Delete.
25388 (struct frame): Add buried_buffer_list, foreground_pixel,
25389 background_pixel and terminal. Delete kboard.
25390 (union output_data): Add tty.
25391 (FRAME_KBOARD): Get the kboard from the terminal.
25392 (FRAME_INITIAL_P): New macro.
25393 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25394 (Qterm_environment_variable, Qdisplay_environment_variable)
25395 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25396 New declarations.
25397
25398 * termchar.h (tty_output, tty_display_info): New structures.
25399 (tty_list): Declare.
25400 (FRAME_TTY, CURTTY): New macros.
25401 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25402 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25403 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25404 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25405
25406 * callproc.c: Include frame.h and termhooks.h, for terminal
25407 parameters.
25408 (add_env): New function.
25409 (child_setup): Use it.
25410 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25411 (getenv_internal): Fix get_terminal_param call.
25412 (Fgetenv_internal, egetenv): Update doc.
25413 (syms_of_callproc): Initialize Vprocess_environment to nil.
25414 Register and initialize them. Remove obsolete defvars. Update doc
25415 strings.
25416 (child_setup): Handle Vlocal_environment_variables.
25417 (getenv_internal): Add terminal parameter.
25418 Handle Vlocal_environment_variables.
25419 (Fgetenv_internal): Add terminal parameter.
25420 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25421 environment in a frame (not terminal) parameter. Update doc strings.
25422 (set_initial_environment): Rename from set_global_environment.
25423 Store Emacs environment in initial frame parameter.
25424
25425 * xdisp.c (redisplay_internal): Update references to
25426 `previous_terminal_frame'.
25427 (display_mode_line, Fformat_mode_line): Replace calls to
25428 `push_frame_kboard' with `push_kboard'.
25429 (get_glyph_string_clip_rects): Add extra parentheses and
25430 braces to prevent compiler warnings.
25431 (calc_pixel_width_or_height): Add xassert to check that the
25432 frame is alive. Don't call `lookup_image' on a termcap frame.
25433 (message2_nolog, message3_nolog, redisplay_internal)
25434 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25435 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25436 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25437 (Fx_display_pixel_width, Fx_display_pixel_height)
25438 (Fx_display_planes, Fx_display_color_cells)
25439 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25440 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25441 (Fx_display_backing_store, Fx_display_visual_class)
25442 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25443 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25444
25445 * xfns.c (x_set_foreground_color x_set_background_color)
25446 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25447 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25448 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25449 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25450 terminal that is being deleted.
25451 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25452 frame parameter, and make sure it overrides any user-supplied setting.
25453 (Fx_close_connection, Fx_synchronize): Unify argument names with
25454 the rest of the DEFUNs.
25455
25456 * dispnew.c (Fsend_string_to_terminal): Update call to
25457 `get_tty_terminal'.
25458 (Fredraw_frame, Fsend_string_to_terminal)
25459 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25460 FRAME_TERMCAP_P and FRAME_TTY.
25461 (window_change_signal): Don't believe width/height values that are
25462 impossibly small.
25463 (Vinitial_window_system): Rename from Vwindow_system.
25464 (termscript, Wcm, rif): Delete.
25465
25466 * termhooks.h (struct terminal): New struct containing the
25467 previously global text display hooks and new members NAME,
25468 DELETED and PARAM_ALIST.
25469 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25470 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25471 (FRAME_RIF): New macros.
25472 (get_terminal_param, get_device): New declarations.
25473 (termscript): Delete declaration.
25474
25475 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25476 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25477 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25478 FRAME_FOREGROUND_PIXEL.
25479 (x_fully_uncatch_errors): Disable definition.
25480 (x_scroll_bar_expose): Fix reference to foreground pixel.
25481 (XTread_socket): Disable loop on all X displays.
25482 (x_delete_terminal): Don't set terminal->deleted and let
25483 delete_terminal delete the frames on the terminal.
25484 (x_delete_display): Doc update to reflect changes in
25485 delete_terminal.
25486 (x_display_info) <terminal>: Move member earlier in the struct.
25487 (deleting_tty): Remove old variable.
25488 (Fsuspend_tty): Call clear_tty_hooks.
25489 (Fresume_tty, init_tty): Call set_tty_hooks.
25490 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25491 errors on X frames.
25492 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25493 (handle_one_xevent): Initialize `f' to NULL.
25494 (x_delete_terminal, x_create_terminal): New functions.
25495 (XTset_terminal_modes, XTreset_terminal_modes)
25496 (XTread_socket, x_connection_closed, x_term_init)
25497 (x_term_init, x_delete_display): Add terminal parameter.
25498 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25499 X connections.
25500
25501 * frame.c: Include termchar.h.
25502 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25503 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25504 (Qdisplay_environment_variable): New vars.
25505 (Fframep): Deal with output_initial.
25506 (Fframe-live-p): Doc fix.
25507 (Fwindow-system): New function.
25508 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25509 (make_terminal_frame): Don't create frames on a terminal that is
25510 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25511 (store_frame_param): Check for found_for_frame before calling XFRAME.
25512 (Fmake_terminal_frame): Handle NULL tty names correctly.
25513 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25514 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25515 frames to refer to a deleted frame in their 'environment parameter.
25516 (Fframe_with_environment): New function.
25517 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25518 (get_future_frame_param): New function.
25519 (Fmake_terminal_frame): Use it.
25520 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25521
25522 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25523 * sysdep.c (reset_sys_modes): Update for renames.
25524
25525 * keyboard.c (tty_read_avail_input): New function.
25526 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25527 (syms_of_keyboard): Defsubr them.
25528 (Fset_input_meta_mode, Fset_quit_char): New functions.
25529 (Fset_input_mode): Split to above functions.
25530 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25531 parameter. Use it in call to `read_char'.
25532 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25533 Set wrong_kboard_jmpbuf correctly in recursive calls.
25534 Use current_kboard to access Vkeyboard_translate_table.
25535 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25536 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25537 Update longjmp invocations. Remember the original current_kboard,
25538 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25539 changes it. Comment out unnecessary calls to
25540 `record_single_kboard_state' and `any_kboard_state'.
25541 Update recursive calls.
25542 (wrong_kboard_jmpbuf): Remove global variable.
25543 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25544 Handle deleted interrupted_kboards correctly; that is a legal
25545 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25546 and read_char calls. Abort if interrupted_kboard died in read_char.
25547 (any_kboard_state, single_kboard_state)
25548 (push_frame_kboard): Remove function.
25549 (pop_kboard): Switch out of single_kboard mode if the kboard has
25550 been deleted. Remove unused variable. Help debugging by not
25551 changing current_kboard unnecessarily. Set current_kboard to the
25552 kboard of the selected frame when the stored kboard object has
25553 been deleted before pop_kboard.
25554 (temporarily_switch_to_single_kboard): Change first parameter to a
25555 frame pointer. Throw an error when caller wants to change kboards
25556 while in single_kboard mode. Don't push_kboard if we weren't in
25557 single kboard state. Don't pop_kboard if we popped into any
25558 kboard state.
25559 (restore_kboard_configuration): Abort if pop_kboard changed the
25560 kboard in single_kboard mode. Call pop_kboard only after setting
25561 up single_kboard mode.
25562 (Frecursive_edit): Switch to single_kboard mode only in nested
25563 command loops.
25564 (cmd_error, command_loop, command_loop_1, timer_check):
25565 Comment out unnecessary call to `any_kboard_state' and
25566 `record_single_kboard_state'.
25567 (delete_kboard): Exit single_kboard mode if we have just deleted
25568 that kboard. Use FRAME_KBOARD.
25569 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25570 `fatal_error_signal'.
25571 (record_single_kboard_state): Don't push_kboard if we weren't in
25572 single kboard state. Don't pop_kboard if we popped into any
25573 kboard state.
25574 (push_frame_kboard): Rename to push_kboard.
25575 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25576 (read_avail_input): Read input from all terminals.
25577 (mark_kboards): Also mark Vkeyboard_translate_table.
25578 (kbd_buffer_store_event_hold): Simplify condition.
25579 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25580 (Vkeyboard_translate_table): Move to struct kboard.
25581 (init_kboard): Initialize Vkeyboard_translate_table.
25582 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25583 Vkeyboard_translate_table. Update doc strings. Update docs of
25584 local-function-key-map and function-key-map.
25585
25586 * terminal.c: New file.
25587
25588 * term.c: Include errno.h.
25589 (Vring_bell_function, device_list, initial_device)
25590 (next_device_id, ring_bell, update_begin, update_end)
25591 (set_terminal_window, cursor_to, raw_cursor_to)
25592 (clear_to_end, clear_frame, clear_end_of_line)
25593 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25594 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25595 (syms_of_term): Move their initialization to terminal.c.
25596 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25597 (Ftty_display_color_cells)
25598 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25599 (clear_tty_hooks, set_tty_hooks)
25600 (init_tty, maybe_fatal): New functions.
25601 (Ftty_type): Return nil if terminal is not on a tty instead of
25602 throwing an error. Doc update.
25603 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25604 Doc update. Initialize new subrs and variables.
25605 (delete_tty): Use terminal->deleted.
25606 (tty_set_terminal_modes): Rename from set_terminal_modes.
25607 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25608 (set_scroll_region): Rename to `tty_set_scroll_region'.
25609 (turn_on_insert): Rename to `tty_turn_on_insert'.
25610 (turn_off_insert): Rename to `tty_turn_off_insert'.
25611 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25612 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25613 (toggle_highligh): Rename to `tty_toggle_highlight'.
25614 (background_highlight): Rename to `tty_background_highlight'.
25615 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25616 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25617 (tty_set_scroll_region, tty_background_highlight)
25618 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25619 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25620 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25621 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25622 Add static modifier.
25623 (tty_reset_terminal_modes, tty_set_terminal_window)
25624 (tty_set_scroll_region, tty_background_highlight)
25625 (tty_highlight_if_desired, tty_cursor_to)
25626 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25627 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25628 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25629 renames.
25630
256312007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25632
25633 * keyboard.c: Qrtl is new.
25634 (parse_tool_bar_item): Handle :rtl keyword.
25635 (syms_of_keyboard): Intern :rtl keyword.
25636
25637 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25638
25639 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25640 so no Lisp code is executed.
25641 (file_for_image, find_rtl_image): New functions.
25642 (xg_get_image_for_pixmap): Use file_for_image.
25643 (update_frame_tool_bar): If direction is RTL, use RTL image if
25644 defined. Use Gtk stock images if defined.
25645
256462007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25647
25648 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25649 for nonexistent or zero-width glyph in composition glyph.
25650
256512007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25652
25653 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25654
25655 * xdisp.c (Finvisible_p): New function.
25656 (syms_of_xdisp): defsubr it.
25657
256582007-08-24 Juanma Barranquero <lekktu@gmail.com>
25659
25660 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25661 Doc fixes.
25662
256632007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25664
25665 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25666
256672007-08-24 Martin Rudalics <rudalics@gmx.at>
25668
25669 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25670 whether decoding has modified buffer contents.
25671
256722007-08-24 Jason Rumney <jasonr@gnu.org>
25673
25674 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25675 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25676 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25677 (init_svg_functions) [HAVE_NTGUI]: New function.
25678 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25679 (svg_load_image): Use them.
25680 (svg_load_image) [HAVE_NTGUI]: Implement background.
25681
256822007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25683
25684 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25685 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25686 (LIBX): Remove @RSVG_LIBS@.
25687 (LIBES): Add $(RSVG_LIBS).
25688
25689 * image.c (svg_load_image): Blend with specified background if exists.
25690 Use IMAGE_BACKGROUND. Add Mac OS Support.
25691
25692 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25693 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25694 Remove macros.
25695 [MAC_OSX] (socket_callback): Do nothing.
25696 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25697 ReceiveNextEvent.
25698 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25699 socket_callback.
25700 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25701
257022007-08-22 Glenn Morris <rgm@gnu.org>
25703
25704 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25705
257062007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25707
25708 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25709
25710 * image.c: Add support for SVG images. Some additional comments
25711 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25712 (svg_image_p): New function to test for SVG image.
25713 (svg_load): New function to load SVG image.
25714 (svg_load_image): New function, helper for svg_load.
25715 (Qsvg): New Lisp_object.
25716 (svg_keyword_index): New enum.
25717 (svg_format): New static `image_keyword' struct.
25718 (svg_type): New static `image_type' struct.
25719 (librsvg/rsvg.h): Include it.
25720
257212007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25722
25723 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25724
257252007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25726
25727 * lread.c (Qold_style_backquotes): New var.
25728 (syms_of_lread): Init and staticpro it.
25729 (load_warn_old_style_backquotes): New fun.
25730 (Fload): Use them to warn about old style backquotes.
25731 (end_of_file_error, Fload): Remove unused vars.
25732
25733 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25734
25735 * lread.c (Vold_style_backquotes): New var.
25736 (syms_of_lread): Init and export it to Elisp.
25737 (read1): Set it when we find an old-style (back)quote.
25738
257392007-08-22 Jason Rumney <jasonr@gnu.org>
25740
25741 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25742
257432007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25744
25745 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25746
257472007-08-19 Richard Stallman <rms@gnu.org>
25748
25749 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25750
257512007-08-19 Andreas Schwab <schwab@suse.de>
25752
25753 * alloc.c (pure): Round PURESIZE up.
25754
257552007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25756
25757 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25758 active frame.
25759
257602007-08-16 Richard Stallman <rms@gnu.org>
25761
25762 * eval.c (Fcommandp): Add parens to clarify.
25763
25764 * minibuf.c (Fall_completions): Use enum for type of table.
25765
25766 * emacs.c (USAGE2): Improve text.
25767
257682007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25769
25770 * term.c (tty_default_color_capabilities): Declare static
25771 variables in file scope, to avoid HPUX compiler problem.
25772
257732007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25774
25775 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25776 to gtk_toolbar_insert.
25777
257782007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25779
25780 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25781
25782 * insdel.c (reset_var_on_error): New fun.
25783 (signal_before_change, signal_after_change):
25784 Use it to reset (after|before)-change-functions to nil in case of error.
25785 Bind inhibit-modification-hooks to t.
25786 Don't bind (after|before)-change-functions to nil while they run.
25787
257882007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25789
25790 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25791 filling pixmap with stippled background.
25792
257932007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25794
25795 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25796 Don't use invisible frame as parent window for repositioning.
25797
257982007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25799
25800 * print.c (new_backquote_output): Rename from old_backquote_output.
25801 (print): Inverse its logic (according to its name) so as to match the
25802 behavior of new_backquote_flag in lread.c.
25803
258042007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25805
25806 * gmalloc.c (posix_memalign): New function.
25807
25808 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25809 ActivateControl/DeactivateControl here.
25810 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25811 frame-notice-user-settings is non-nil.
25812 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25813 for kEventParamFMFontStyle.
25814 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25815 mac_pass_command_to_system and mac_pass_control_to_system here.
25816 (XTread_socket): Call ActivateControl/DeactivateControl here.
25817 (XTread_socket) [TARGET_API_MAC_CARBON]:
25818 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25819 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25820 for window repositioning.
25821
258222007-08-08 Glenn Morris <rgm@gnu.org>
25823
25824 * Replace `iff' in doc-strings and comments.
25825
258262007-08-07 Chong Yidong <cyd@stupidchicken.com>
25827
25828 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25829
258302007-08-07 Martin Rudalics <rudalics@gmx.at>
25831
25832 * fileio.c (Finsert_file_contents): Run format-decode and
25833 after_insert_file_functions on entire buffer when REPLACE is
25834 non-nil and inhibit modification_hooks and point_motion_hooks.
25835 For consistency, run after_insert_file_functions iff something
25836 got inserted. Move signal_after_change and update_compositions
25837 after code running after_insert_file_functions. Make sure that
25838 undo_list doesn't record intermediate steps of the decoding process.
25839
258402007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25841
25842 * emacs.c (main)
25843 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25844 Call malloc_enable_thread on interactive startup.
25845
25846 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25847 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25848 [USE_PTHREAD]: Conditionalize with it.
25849 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25850 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25851 New functions.
25852
258532007-08-06 Chong Yidong <cyd@stupidchicken.com>
25854
25855 * xdisp.c (redisplay_window): When restoring original buffer
25856 position, make sure it is still valid.
25857
25858 * image.c (png_load): Ignore png-supplied background color.
25859
258602007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25861
25862 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25863 Use kCFAbsoluteTimeIntervalSince1970.
25864
25865 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25866 New variable.
25867 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25868 event loop should be quit.
25869 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25870 Quit dialog event loop if quit_dialog_event_loop is set.
25871
25872 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25873 (Selection): New typedef. Use instead of ScrapRef.
25874 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25875 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25876 (mac_clear_selection): Rename from clear_scrap.
25877 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25878 scrap_has_target_type. All uses changed.
25879 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25880 (mac_selection_has_target_p): New functions.
25881 (mac_put_selection_value): Rename from put_scrap_string.
25882 (mac_get_selection_value): Rename from get_scrap_string.
25883 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25884 (put_scrap_private_timestamp, scrap_has_target_type)
25885 (get_scrap_private_timestamp): Remove functions.
25886 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25887 (x_own_selection, x_get_local_selection):
25888 Use mac_valid_selection_value_p.
25889 (x_own_selection): Don't use put_scrap_private_timestamp.
25890 Record OWNERSHIP-INFO into Vselection_alist instead.
25891 (x_get_local_selection): Don't check type if request is local.
25892 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25893 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25894
258952007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25896
25897 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25898 add comment explaining why.
25899
259002007-08-03 Richard Stallman <rms@gnu.org>
25901
25902 * fileio.c (Fvisited_file_modtime): Use make_time.
25903
259042007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25905
25906 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25907 build.
25908
259092007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25910
25911 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25912
259132007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25914
25915 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25916
259172007-07-30 Richard Stallman <rms@gnu.org>
25918
25919 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25920
259212007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25922
25923 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25924
259252007-07-28 Nick Roberts <nickrob@snap.net.nz>
25926
25927 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25928 remote default-directory.
25929
25930 * buffer.c (mode-line-format): Update doc string.
25931
259322007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25933
25934 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25935 scroll bar gap.
25936 (x_scroll_bar_create): Set bar->fringe_extended_p.
25937 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25938 on frame edge. Check fringe background extension. Don't clear
25939 extended fringe background area.
25940
25941 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25942 (w32_fill_area): Enclose multiple statements with do ... while (0).
25943
25944 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25945 Extend fringe background to scroll bar gap.
25946 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25947 Set bar->fringe_extended_p.
25948 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25949 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25950 background extension. Don't clear extended fringe background area.
25951
25952 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25953 New member fringe_extended_p.
25954
259552007-07-25 Glenn Morris <rgm@gnu.org>
25956
25957 * Relicense all FSF files to GPLv3 or later.
25958
25959 * COPYING: Switch to GPLv3.
25960
259612007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25962
25963 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25964
25965 * data.c (Finteractive_form): Check for the presence of an
25966 `interactive-form' symbol property more thoroughly.
25967
25968 * data.c (Finteractive_form): Use an `interactive-form' property if
25969 present, analogous to the function-documentation property.
25970
259712007-07-24 Jason Rumney <jasonr@gnu.org>
25972
25973 * w32fns.c (x_real_positions): Get real position from OS instead of
25974 calculating it.
25975
259762007-07-23 Jason Rumney <jasonr@gnu.org>
25977
25978 * filelock.c (current_lock_owner): Allow for @ sign in username.
25979
259802007-07-22 Nick Roberts <nickrob@snap.net.nz>
25981
25982 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25983 remote default-directory.
25984
25985 * buffer.c (mode-line-format): Describe above case in doc string.
25986
259872007-07-20 Eli Zaretskii <eliz@gnu.org>
25988
25989 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25990 Define if not defined.
25991
259922007-07-18 Jason Rumney <jasonr@gnu.org>
25993
25994 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25995
259962007-07-18 Richard Stallman <rms@gnu.org>
25997
25998 * data.c (Fsetq_default): Doc fix.
25999
26000 * eval.c (Fsetq): Doc fix.
26001
260022007-07-18 Juanma Barranquero <lekktu@gmail.com>
26003
26004 * coding.c (Ffind_operation_coding_system):
26005 * eval.c (For, Fand): Doc fixes.
26006 Reported by Johan Bockgård.
26007
260082007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26009
26010 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26011
26012 * xterm.h: Declare x_ewmh_activate_frame.
26013
26014 * xterm.c (x_ewmh_activate_frame): New function.
26015 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26016
260172007-07-17 Martin Rudalics <rudalics@gmx.at>
26018
26019 * window.c (Fdisplay_buffer): If largest or LRU window is the
26020 only window, split it even if it is not eligible for splitting.
26021 This restores the original behavior broken by the 2007-07-15
26022 change.
26023
260242007-07-17 Glenn Morris <rgm@gnu.org>
26025
26026 * abbrev.c (abbrev_check_chars): New function.
26027 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26028 Call abbrev_check_chars to check abbrev characters are word
26029 constituents. Doc fix.
26030
260312007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26032
26033 * process.c (Fstart_process, Fmake_network_process)
26034 (read_process_output): Fix up last changes.
26035
260362007-07-16 Eli Zaretskii <eliz@gnu.org>
26037
26038 * makefile.w32-in (clean): Don't delete *~.
26039
260402007-07-16 Andreas Schwab <schwab@suse.de>
26041
26042 * window.c (Fdisplay_buffer): Use NILP.
26043 (Fset_window_scroll_bars): Likewise.
26044
260452007-07-15 Martin Rudalics <rudalics@gmx.at>
26046
26047 * window.c (window_min_size_2): New function.
26048 (window_min_size_1, size_window, Fdisplay_buffer)
26049 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26050 windows without mode- or header-lines when window-min-height is
26051 too small.
26052 (size_window): Reset nodelete_p after testing it, following an
26053 earlier note by Kim F. Storm.
26054 (display_buffer): Do not set split_height_threshold to twice the
26055 value of window_min_height to avoid changing the value of a
26056 customizable variable. Rather explicitly check whether the
26057 height of the window that shall be splitted is at least as large
26058 as split_height_threshold.
26059 (Fwindow_full_width_p): New defun.
26060 (syms_of_window): Defsubr it.
26061
26062 * window.h: Add EXFUN for Fwindow_full_width_p.
26063
260642007-07-14 Jason Rumney <jasonr@gnu.org>
26065
26066 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26067
260682007-07-14 Richard Stallman <rms@gnu.org>
26069
26070 * eval.c (maybe_call_debugger): New function.
26071 (find_handler_clause): Use maybe_call_debugger.
26072 Call it when the handler says `debug'.
26073 Eliminate DEBUGGER_VALUE_PTR.
26074 (Fsignal): Eliminate debugger_value.
26075 (Qdebug): New variable.
26076 (syms_of_eval): Initialize it.
26077
260782007-07-14 Juanma Barranquero <lekktu@gmail.com>
26079
26080 * eval.c (Fprogn):
26081 * keyboard.c (Ftrack_mouse):
26082 * print.c (Fwith_output_to_temp_buffer):
26083 * window.c (Fsave_window_excursion): Doc fix.
26084
260852007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26086
26087 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26088
260892007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26090
26091 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26092 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26093 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26094 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26095 Remove unused encoding_carryover.
26096 * process.c: Adjust all functions accordingly.
26097
260982007-07-12 Richard Stallman <rms@gnu.org>
26099
26100 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26101
261022007-07-11 Jason Rumney <jasonr@gnu.org>
26103
26104 * makefile.w32-in (LIBS): Include OLE32.
26105
26106 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26107 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26108
261092007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26110
26111 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26112 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26113 from a Lisp_Object into a bare pointer.
26114 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26115 Adjust the code correspondingly.
26116
26117 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26118
26119 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26120 (term_show_mouse_face): Remove unused var `j'.
26121 (handle_one_term_event): Remove unused vars `i' and `j'.
26122 Don't cast return value of ttyname since it's not necessary.
26123
261242007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26125
26126 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26127 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26128
26129 * fns.c (map_char_table): Use an array of int for `indices' rather than
26130 an array of Lisp_Objects (which are only ever integers anyway).
26131 (Fmap_char_table): Update caller.
26132 * lisp.h: Update prototype.
26133 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26134 * fontset.c (Ffontset_info):
26135 * casetab.c (set_case_table): Update callers.
26136
26137 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26138
26139 * keymap.c (struct accessible_keymaps_data)
26140 (struct where_is_internal_data): New structures.
26141 (accessible_keymaps_1, where_is_internal_1): Use them to change
26142 interface to adhere to the one used by map_keymap.
26143 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26144 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26145
26146 * keymap.h (map_keymap_function_t): More informative prototype.
26147
261482007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26149
26150 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26151 (looking_at_1): Don't change search_regs and last_thing_searched
26152 if `inhibit-changing-match-data' is non-nil.
26153 (string_match_1, search_buffer, set_search_regs): Likewise.
26154 (syms_of_search): Add Lisp level definition for
26155 `inhibit-changing-match-data' and set it to nil.
26156 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26157 start and end of the match, instead of using values in search_regs.
26158
261592007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26160
26161 * minibuf.c (Fcompleting_read): New value `confirm-only'
26162 for `require-match'.
26163
261642007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26165
26166 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26167 part of the 2007-06-27 change to syms_of_fileio.
26168
261692007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26170
26171 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26172 Check WINDOWP before using XWINDOW. Consolidate return statements.
26173
261742007-06-27 Richard Stallman <rms@gnu.org>
26175
26176 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26177
261782007-06-27 Juanma Barranquero <lekktu@gmail.com>
26179
26180 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26181
261822007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26183
26184 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26185 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26186 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26187 (_free_internal, memalign): Use them.
26188 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26189 Initialize to PTHREAD_MUTEX_INITIALIZER.
26190 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26191 (morecore_nolock): Rename from morecore. All uses changed.
26192 Use only nolock versions of internal allocation functions.
26193 (_malloc_internal_nolock, _realloc_internal_nolock)
26194 (_free_internal_nolock): New functions created from
26195 _malloc_internal, _realloc_internal, and _free_internal.
26196 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26197 Copy hook value to automatic variable before its use.
26198 (memalign): Copy hook value to automatic variable before its use.
26199
262002007-06-26 Kenichi Handa <handa@m17n.org>
26201
26202 * coding.c (Ffind_operation_coding_system): Docstring improved.
26203 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26204
262052007-06-25 David Kastrup <dak@gnu.org>
26206
26207 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26208 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26209 cater for additional parameter.
26210
26211 * keymap.h: Adjust number of parameters to `current-active-maps'.
26212
26213 * doc.c (Fsubstitute_command_keys): Adjust call of
26214 `current-active-maps'.
26215
262162007-06-25 David Kastrup <dak@gnu.org>
26217
26218 * callint.c (Fcall_interactively): Make the parsing of interactive
26219 specs somewhat more readable.
26220
262212007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26222
26223 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26224 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26225 if extended background has already been filled.
26226
262272007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26228
26229 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26230 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26231
26232 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26233 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26234 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26235 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26236 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26237 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26238 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26239 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26240 Run timers during dialog popup.
26241 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26242
262432007-06-21 Jason Rumney <jasonr@gnu.org>
26244
26245 * image.c (convert_mono_to_color_image): Swap fore and background.
26246
262472007-06-20 Jason Rumney <jasonr@gnu.org>
26248
26249 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26250 (w32_free_bdf_font): Unmap memory not handle.
26251
262522007-06-20 Sam Steingold <sds@gnu.org>
26253
26254 * gmalloc.c (__morecore): Fix the declaration to comply with the
26255 definition.
26256
262572007-06-20 Juanma Barranquero <lekktu@gmail.com>
26258
26259 * w32term.c (w32_delete_display): Remove leftover declaration.
26260 (w32_define_cursor, w32_initialize): Make static.
26261
26262 * w32.c (_wsa_errlist): Fix typo in error message.
26263 (init_environment): Ignore any environment variable from the
26264 registry having a null value.
26265
262662007-06-20 Glenn Morris <rgm@gnu.org>
26267
26268 * Makefile.in (LIBGIF): Default to -lgif.
26269
262702007-06-17 Jason Rumney <jasonr@gnu.org>
26271
26272 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26273 unicode strings.
26274
262752007-06-16 Juanma Barranquero <lekktu@gmail.com>
26276
26277 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26278 Fix typo in docstring.
26279
262802007-06-16 Eli Zaretskii <eliz@gnu.org>
26281
26282 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26283 and their keybindings.
26284
262852007-06-15 Chong Yidong <cyd@stupidchicken.com>
26286
26287 * composite.c (update_compositions): Fix last fix.
26288
262892007-06-14 Jason Rumney <jasonr@gnu.org>
26290
26291 * w32.c (get_process_times_fn): New function pointer.
26292 (globals_of_w32): Intialize it if present in kernel32.dll.
26293 (w32_get_internal_run_time): New function.
26294
26295 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26296
262972007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26298
26299 * composite.c (update_compositions): Check the validness of
26300 compositions.
26301
263022007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26303
26304 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26305 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26306
26307 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26308 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26309
26310 * macgui.h (USE_MAC_TOOLBAR): New define.
26311
26312 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26313 Return immediately unless popup is activated.
26314
26315 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26316 background to scroll bar gap.
26317 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26318 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26319 scroll bars on frame edge. Check fringe background extension.
26320 Don't clear extended fringe background area.
26321 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26322 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26323 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26324 [USE_MAC_TOOLBAR]: New macros.
26325 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26326 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26327 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26328 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26329 [USE_MAC_TOOLBAR]: New functions.
26330 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26331 manually if previous repositioning has failed.
26332 (mac_handle_keyboard_event): Use precomputed event kind.
26333 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26334 as tool bar item click. Handle mouse movement over tool bar items.
26335
26336 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26337 toolbar_win_gravity.
26338 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26339 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26340 Add externs.
26341
26342 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26343 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26344
263452007-06-14 Chong Yidong <cyd@stupidchicken.com>
26346
26347 * image.c (search_image_cache): Remove unused variable.
26348
263492007-06-13 Chong Yidong <cyd@stupidchicken.com>
26350
26351 * xfns.c, xmenu.c: Link to xaw3d if available.
26352
263532007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26354
26355 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26356 frame_foreground and frame_background.
26357
26358 * image.c (lookup_image): Save frame foreground and background colors.
26359 (search_image_cache): Check if saved and current frame colors match.
26360
263612007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26362
26363 * regex.c (regex_compile): Remove the `regnum' counter.
26364 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26365
263662007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26367
26368 * term.c: Include intervals.h to declare Fget_text_property.
26369
263702007-06-10 Jason Rumney <jasonr@gnu.org>
26371
26372 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26373
263742007-06-08 Juanma Barranquero <lekktu@gmail.com>
26375
26376 * callint.c (Fcall_interactively):
26377 * editfns.c (Fdelete_and_extract_region):
26378 * fileio.c (Fread_file_name):
26379 * fns.c (Fmapconcat):
26380 * keyboard.c (cmd_error_internal):
26381 * keymap.c (Fkey_description):
26382 * lread.c (openp):
26383 * minibuf.c (read_minibuf):
26384 * search.c (wordify):
26385 * sunfns.c (sel_read):
26386 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26387 * xfns.c (x_default_scroll_bar_color_parameter):
26388 * xmenu.c (menu_help_callback):
26389 * xselect.c (Fx_get_atom_name):
26390 * xterm.c (x_term_init): Use empty_unibyte_string.
26391
263922007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26393
26394 * alloc.c (init_strings): Initialize canonical empty strings.
26395 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26396 canonical empty string when the requested size is 0.
26397
26398 * emacs.c (empty_unibyte_string): Rename from empty_string.
26399 (empty_multibyte_string): New canonical empty string.
26400 (syms_of_emacs): Don't initialize empty_string.
26401
26402 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26403 string, if appropriate.
26404 (empty_unibyte_string, empty_multibyte_string): New externs.
26405 (empty_string): Remove extern.
26406
26407 * lread.c (syms_of_lread): Use empty_unibyte_string.
26408
264092007-06-07 Jason Rumney <jasonr@gnu.org>
26410
26411 * s/ms-w32.h: Don't define HAVE_TZNAME.
26412
26413 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26414
264152007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26416
26417 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26418
26419 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26420 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26421
26422 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26423 Don't call next handler.
26424 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26425 Remove argument. Install handler to application.
26426 (set_frame_menubar): Don't change deep_p.
26427 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26428 FRAME_OUTER_TO_INNER_DIFF_Y.
26429 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26430 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26431 [HAVE_DIALOGS]: New macros.
26432 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26433 Use them.
26434 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26435
26436 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26437 init_service_handler. All callers changed. Return OSStatus value.
26438
26439 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26440 All callers changed so as not to call SetPortWindowPort.
26441 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26442 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26443 mac_draw_string_common.
26444 (mac_draw_image_string_qd): Likewise.
26445 (mac_draw_string_common): Use them. Add INLINE.
26446 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26447 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26448 GetGlobalMouse.
26449 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26450 and FRAME_OUTER_TO_INNER_DIFF_Y.
26451 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26452 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26453 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26454 repositioning window to mac_handle_window_event.
26455 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26456 saving window location to mac_handle_window_event
26457 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26458 (install_menu_target_item_handler): Remove argument in extern.
26459 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26460 Also accept command events.
26461 (do_keystroke): New function created from XTread_socket.
26462 (init_command_handler): Remove functions.
26463 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26464 and save window location by kEventWindowShowing and kEventWindowHiding
26465 handlers here. Don't call next handler for window state change and
26466 focus events.
26467 (mac_handle_application_event, mac_handle_keyboard_event)
26468 [TARGET_API_MAC_CARBON]: New functions.
26469 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26470 kEventWindowShowing and kEventWindowHiding events. Move installation
26471 of mouse, font, text input and menu target item handlers to
26472 install_application_handler.
26473 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26474 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26475 New function.
26476 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26477 Register it.
26478 (XTread_socket) [TARGET_API_MAC_CARBON]:
26479 Consolidate SendEventToEventTarget calls.
26480 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26481 Move application activation handler to mac_handle_application_event.
26482 Move keyboard handler to mac_handle_keyboard_event.
26483 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26484 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26485 init_command_handler. Call install_application_handler.
26486
26487 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26488 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26489
264902007-06-07 Glenn Morris <rgm@gnu.org>
26491
26492 * emacs.c (main): Use `emacs-copyright' in --version output.
26493
264942007-06-06 Chong Yidong <cyd@stupidchicken.com>
26495
26496 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26497
264982007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26499
26500 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26501
26502 * macgui.h: Replace WindowPtr with WindowRef.
26503
26504 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26505 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26506 Replace ControlHandle with ControlRef.
26507 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26508
26509 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26510 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26511 Replace ControlHandle with ControlRef.
26512 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26513 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26514
26515 * macterm.h (struct scroll_bar): Rename member control_handle_low
26516 and control_handle_high to control_ref_low and control_ref_high.
26517 All uses changed.
26518 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26519 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26520 respectively. All uses changed.
26521 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26522 (install_window_handler, remove_window_handler): Replace WindowPtr
26523 with WindowRef in externs.
26524
265252007-06-05 Juanma Barranquero <lekktu@gmail.com>
26526
26527 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26528
265292007-06-03 Nick Roberts <nickrob@snap.net.nz>
26530
26531 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26532
26533 * frame.c (Fmouse_position, Fmouse_pixel_position):
26534 Condition on HAVE_GPM too.
26535
26536 * term.c (term_mouse_highlight): Remove unused variables.
26537 (Fterm_open_connection): Set gpm_zerobased to 1.
26538 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26539 Use zero based co-ordinates.
26540 (handle_one_term_event): Report a drag as mouse movement too.
26541
26542 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26543
265442007-06-03 Chong Yidong <cyd@stupidchicken.com>
26545
26546 * image.c (search_image_cache): New function. Require background
26547 color match if background color is unspecified in the image spec.
26548 (uncache_image, lookup_image): Use it.
26549
265502007-06-01 Juanma Barranquero <lekktu@gmail.com>
26551
26552 * window.c (Fshrink_window): Reflow docstring.
26553
265542007-06-02 Chong Yidong <cyd@stupidchicken.com>
26555
26556 * Version 22.1 released.
26557
265582007-06-01 Richard Stallman <rms@gnu.org>
26559
26560 * xfns.c (x_encode_text): Add GCPRO.
26561
265622007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26563
26564 * xfns.c (x_set_name_internal): Save encoded name before
26565 x_encode_text in case string data is relocated.
26566
265672007-05-31 Richard Stallman <rms@gnu.org>
26568
26569 * buffer.c (syms_of_buffer): Doc fix.
26570
265712007-05-30 Nick Roberts <nickrob@snap.net.nz>
26572
26573 * sysdep.c (init_sys_modes): Add rather than replace with
26574 O_NONBLOCK.
26575
26576 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26577 term_mouse_moveto.
26578
26579 * termhooks.h (term_mouse_moveto): New extern.
26580
26581 * term.c (mouse_face_window): Rename...
26582 (Qmouse_face_window): ...to this.
26583 (term_show_mouse_face, term_clear_mouse_face)
26584 (term_mouse_highlight): Use Qmouse_face_window.
26585 (term_mouse_moveto): New function.
26586 (term_mouse_position): Make it work.
26587 (syms_of_term): Uncomment assignment to mouse_position_hook.
26588 Staticpro Qmouse_face_window.
26589
265902007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26591
26592 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26593 around current_column call.
26594
265952007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26596
26597 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26598 * xdisp.c (next_element_from_buffer):
26599 * window.c (delete_window):
26600 * term.c (term_mouse_highlight):
26601 * msdos.c (getdefdir):
26602 * macterm.c (mac_create_bitmap_from_bitmap_data)
26603 (init_font_name_table):
26604 * fns.c (Fsxhash):
26605 * data.c (Fmake_local_variable):
26606 * ccl.c (ccl_driver): Likewise.
26607
266082007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26609
26610 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26611 Call mac_wakeup_from_rne on window size change.
26612
266132007-05-25 Chong Yidong <cyd@stupidchicken.com>
26614
26615 * image.c (uncache_image): Fix typo.
26616
266172007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26618
26619 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26620
266212007-05-22 Richard Stallman <rms@gnu.org>
26622
26623 * xterm.c (x_connection_closed): Remove NO_RETURN.
26624
266252007-05-22 Martin Rudalics <rudalics@gmx.at>
26626
26627 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26628
266292007-05-21 Chong Yidong <cyd@stupidchicken.com>
26630
26631 * image.c (uncache_image): New function.
26632 (Fimage_refresh): New function.
26633
266342007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26635
26636 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26637
266382007-05-20 Nick Roberts <nickrob@snap.net.nz>
26639
26640 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26641 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26642
266432007-05-20 Nick Roberts <nickrob@snap.net.nz>
26644
26645 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26646 conditional on [HAVE_GPM_H].
26647
266482007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26649
26650 * syntax.c (skip_chars): Update syntax-table only after we checked that
26651 the new location is valid.
26652
266532007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26654
26655 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26656 mac_get_window_bounds.
26657
266582007-05-20 Nick Roberts <nickrob@snap.net.nz>
26659
26660 * Makefile.in (LIBGPM): Allow it to be set from configure.
26661 If set then link Emacs with it.
26662
26663 * config.in: Regenerate.
26664
26665 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26666 New externs.
26667
26668 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26669 Include gpm.h.
26670 (handle_one_term_event, term_gpm): New externs.
26671
26672 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26673 and allow it to be interrupted by SIGIO.
26674
26675 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26676 (wait_reading_process_output): Wait on gpm_fd too.
26677 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26678 (add_gpm_wait_descriptor_called_flag): New variable.
26679 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26680
26681 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26682 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26683 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26684 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26685 (make_lispy_event): Add case GPM_CLICK_EVENT.
26686 (read_avail_input): Handle mouse input.
26687
26688 * term.c (write_glyphs_with_face): New function.
26689 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26690 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26691 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26692 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26693 (last_mouse_x, last_mouse_y): New variables.
26694 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26695 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26696 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26697 (Fterm_close_connection): New functions.
26698 (term_init): Initialise mouse_face_window.
26699
267002007-05-19 Chong Yidong <cyd@stupidchicken.com>
26701
26702 * xdisp.c (redisplay_window): If first window line is a
26703 continuation line, recompute the new window start instead of
26704 recentering.
26705
267062007-05-18 Glenn Morris <rgm@gnu.org>
26707
26708 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26709 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26710
267112007-05-17 Glenn Morris <rgm@gnu.org>
26712
26713 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26714
267152007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26716
26717 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26718 dead key repeat and up events.
26719
267202007-05-14 Chong Yidong <cyd@stupidchicken.com>
26721
26722 * image.c (pbm_load): Check image size for monochrome pbm.
26723
267242007-05-13 Chong Yidong <cyd@stupidchicken.com>
26725
26726 * xterm.c (XTread_socket): Revert last change.
26727
267282007-05-12 Chong Yidong <cyd@stupidchicken.com>
26729
26730 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26731
26732 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26733
267342007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26735
26736 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26737 mixup (YAILOM).
26738
267392007-05-07 Andreas Schwab <schwab@suse.de>
26740
26741 * keymap.c (Flookup_key): Fix typo in last change.
26742
267432007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26744
26745 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26746 mapping for unibyte strings.
26747
267482007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26749
26750 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26751 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26752
267532007-04-29 Richard Stallman <rms@gnu.org>
26754
26755 * insdel.c (replace_range): For undo, record insertion first.
26756
267572007-04-29 Andreas Schwab <schwab@suse.de>
26758
26759 * lisp.h (VECSIZE): Use OFFSETOF.
26760
267612007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26762
26763 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26764 disabled lines.
26765
267662007-04-28 Richard Stallman <rms@gnu.org>
26767
26768 * lread.c (read_escape): In a string, \s is always space.
26769
267702007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26771
26772 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26773
26774 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26775 submenu for menu bar items.
26776
26777See ChangeLog.10 for earlier changes.
26778
26779;; Local Variables:
26780;; coding: utf-8
26781;; add-log-time-zone-rule: t
aac0c6e3
MR
26782;; End:
26783
e3eb1dae 26784 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26785
26786 This file is part of GNU Emacs.
26787
26788 GNU Emacs is free software: you can redistribute it and/or modify
26789 it under the terms of the GNU General Public License as published by
26790 the Free Software Foundation, either version 3 of the License, or
26791 (at your option) any later version.
26792
26793 GNU Emacs is distributed in the hope that it will be useful,
26794 but WITHOUT ANY WARRANTY; without even the implied warranty of
26795 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26796 GNU General Public License for more details.
26797
26798 You should have received a copy of the GNU General Public License
26799 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26800
26801;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40