Support L2R continued lines.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
544bbc31
EZ
12010-08-28 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (mouse_face_from_buffer_pos): Fix code using bug#1220 as
5f53c454
EZ
4 test case. Implement highlight for R2L rows. Fix the case of
5 continued L2R lines.
544bbc31 6
40629f17
EZ
72010-08-21 Eli Zaretskii <eliz@gnu.org>
8
efb6b75c
EZ
9 * xdisp.c (mouse_face_from_buffer_pos): Support mouse highlight in
10 bidi-reordered L2R lines. Continued lines are not yet supported.
11
40629f17
EZ
12 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
13 mirroring pixel positions.
14
d931da8c
DN
152010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
16
b5c76d0c
DN
17 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
18 write only.
19 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
20 malloc_sbrk_used, nothing uses them.
21
74815588
DN
22 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
23 defined, unconditionally defined in lisp.h.
24
f5817d1c
DN
25 * term.c: Do not include <termios.h>, systty.h does it.
26
d931da8c
DN
27 * s/unixware.h (HAVE_TCATTR):
28 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
29 systty.h defines it when HAVE_TERMIOS is defined.
30
ff2de6d2 312010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 32
b43c883c 33 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 34 terminals: add one-character offset for R2L lines.
b43c883c 35
491a1546
EZ
36 * emacs.c <emacs_version>: Add a comment regarding
37 msdos/mainmake.v2's dependency on the syntax of this declaration.
38
2396cbba
EZ
392010-08-20 Eli Zaretskii <eliz@gnu.org>
40
41 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
42 position for R2L lines by mirroring the pixel position wrt the
43 text are box. Improve commentary.
44
7df6150a
AS
452010-08-20 Andreas Schwab <schwab@linux-m68k.org>
46
47 * image.c (imagemagick_clear_image): Remove debugging output.
48
a2e5caf7
SM
492010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
50
51 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
52 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
53 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
54 self-insert-face.
55 (syms_of_cmds): Initialize the new vars.
56
20d60baf
JR
572010-08-19 Jason Rumney <jasonr@gnu.org>
58
cc477da7
JR
59 * w32menu.c (set_frame_menubar): Remove call to undefined function.
60
20d60baf
JR
61 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
62
2c0ac867
J
632010-08-19 Jan Djärv <jan.h.d@swipnet.se>
64
65 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
66
93352106
EZ
672010-08-18 Eli Zaretskii <eliz@gnu.org>
68
69 * xterm.c (x_draw_bar_cursor):
70 * w32term.c (x_draw_bar_cursor): If the character under cursor is
71 R2L, draw the bar cursor on its right rather than on its left.
72
c785836d
SM
732010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
74
0193499f
SM
75 * eval.c (Fdefmacro): Only obey one declaration.
76
c785836d
SM
77 * casefiddle.c (casify_region): Setup gl_state.
78
9cb728a5
J
792010-08-18 Jan Djärv <jan.h.d@swipnet.se>
80
81 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
82
e1e18511
J
832010-08-18 Jan Djärv <jan.h.d@swipnet.se>
84
85 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
86
64cb6c78
J
872010-08-18 David De La Harpe Golden <david@harpegolden.net>
88
89 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
90 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
91 QPRIMARY => NXPrimaryPboard.
92 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
93 NXPrimaryPboard => QPRIMARY.
94 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
95 NXSecondaryPboard = SecondarySelection.
96 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
97
0c9b8993
GM
982010-08-18 Joakim Verona <joakim@verona.se>
99
100 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
101 defined:
102 (imagemagick_image_p): New function to test for ImageMagic image.
103 (imagemagick_load): New function to load ImageMagick image.
104 (imagemagick_load_image): New function, helper for imagemagick_load.
105 (imagemagick-types): New function.
106 (Qimagemagick): New Lisp_object.
107 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 108
c3554f68
SM
1092010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
110
111 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
112 is a string.
113
1ff2e434
J
1142010-08-17 Jan Djärv <jan.h.d@swipnet.se>
115
116 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
117 x_set_tool_bar_position handler.
118
0cc56427
EZ
1192010-08-17 Eli Zaretskii <eliz@gnu.org>
120
121 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
122 x_set_tool_bar_position handler, needed to support changes from
123 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
124
e45a249b
JD
1252010-08-16 Jan Djärv <jan.h.d@swipnet.se>
126
921242c6
J
127 * nsselect.m: include keyboard.h for QPRIMARY, remove its
128 declaration (Bug#6863).
573d150b 129 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 130
e45a249b
JD
131 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
132
133 * keyboard.h (QPRIMARY): Declare (Bug#6864).
134
7c23dd44
CY
1352010-08-16 Chong Yidong <cyd@stupidchicken.com>
136
137 * keyboard.c (command_loop_1): Avoid setting selection twice,
138 since it's done in deactivate-mark as well.
139 (Vselect_active_regions): Change default to t. Replace `lazy'
140 with non-default value `only', meaning only set PRIMARY for
141 temporarily active regions.
142
143 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
144 select-active-regions.
145
0005830c
J
1462010-08-15 Jan Djärv <jan.h.d@swipnet.se>
147
148 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
149 isn't a string.
150
603dfc72
AS
1512010-08-15 Andreas Schwab <schwab@linux-m68k.org>
152
153 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
154
c25ce9d0
J
1552010-08-15 Jan Djärv <jan.h.d@swipnet.se>
156
c3554f68
SM
157 * keyboard.c (parse_tool_bar_item): malloc buf.
158 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
159 new_lbl (Bug#6855).
c25ce9d0 160
5872c762
EZ
1612010-08-14 Eli Zaretskii <eliz@gnu.org>
162
b236615c
EZ
163 * xterm.c (x_draw_stretch_glyph_string):
164 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
165 the cursor on the right edge of the stretch glyph.
166
c3554f68
SM
167 * xdisp.c (window_box_right_offset, window_box_right):
168 Fix commentary.
b236615c 169
5872c762
EZ
170 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
171 direction when point is inside a run of whitespace characters.
172
173 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
174
e66f9a1b
JR
1752010-08-14 Jason Rumney <jasonr@gnu.org>
176
177 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
178
79d6f59e
CY
1792010-08-14 Chong Yidong <cyd@stupidchicken.com>
180
181 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
182
1c9b4129
JR
1832010-08-13 Jason Rumney <jasonr@gnu.org>
184
185 * w32menu.c (simple_dialog_show): Use unicode message box if available.
186 (MessageBoxW_Proc): New function typedef.
187 (unicode-message-box): New function pointer.
188 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
189
2b4e6277
J
1902010-08-13 Jan Djärv <jan.h.d@swipnet.se>
191
192 * frame.h (Qtool_bar_position): Declare.
193
194 * xfns.c (Fx_create_frame): Call x_default_parameter for
195 Qtool_bar_position.
196
94c97d85
EZ
1972010-08-13 Eli Zaretskii <eliz@gnu.org>
198
8ee81892
EZ
199 * unexcoff.c: Remove the parts used when "emacs" is not defined.
200 (report_error, report_error_1): Ditto.
201 (write_segment): Remove "#if 0" unused code.
202 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
203 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
204 (start_of_text): Remove unused function (was used only if NO_REMAP
205 was NOT defined).
206
891ef8f7
EZ
207 * msdos.c (IT_set_face): Fix format string to match argument
208 types.
209 (IT_write_glyphs, IT_note_mode_line_highlight)
210 (IT_set_frame_parameters): Remove unused variables.
211 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
212 (IT_set_terminal_modes): Disambiguate expression in if clause.
213 (Fmsdos_remember_default_colors): Return Qnil.
214 (IT_set_frame_parameters): Add parens to disambiguate boolean
215 expression for logging the cursor type to termscript.
216 (keyboard_layout_list, keypad_translate_map)
217 (grey_key_translate_map): Add braces in inner initializers.
218 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
219 (dos_rawgetc): Remove unused label.
220 (XMenuActivate): Add braces to remove ambiguous `else'.
221 (dos_ttraw): Always return a value.
222 (spawnve): Declare.
223 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
224
225 * dosfns.h (x_set_title): Declare.
226
227 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
228 Remove unused variables.
229
230 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
231 variables.
232 (init_dosfns): Declare get_lim_data.
233 (system_process_attributes): Declare Fget_internal_run_time.
234
38e41e0e
EZ
235 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
236 list to be consistent with menu.h.
237
94c97d85
EZ
238 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
239 warnings due to mixing of "char *" and "const char *".
240
c5683ceb
SM
2412010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
242
243 Introduce a new comment style "c" flag.
244 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
245 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
246 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
247 (syntax_prefix_flag_p): New function.
248 (Fstring_to_syntax): Understand new "c" flag.
249 (Finternal_describe_syntax_value): Recognize new flag; use the
250 SYNTAX_FLAGS_* macros.
251 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
252 comment style to accomodate the new styles.
253 (back_comment, forw_comment, Fforward_comment, scan_lists)
254 (scan_sexps_forward): Update code to obey the new comment style flag.
255
256 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
257
258 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
259
7aee76f4
J
2602010-08-11 Jan Djärv <jan.h.d@swipnet.se>
261
3a46642b
J
262 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
263 first.
94dff98f 264 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
265
266 * gtkutil.h (xg_check_special_colors): Declare.
267
268 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
269 (xg_create_frame_widgets): Connect theme name changes to
270 style_changed_cb.
271
42ca4633
J
272 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
273 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
274 (x_term_init): Use char[] display_opt and name_opt instead of
275 string literal. file is const char*.
276
277 * xsmfns.c (NOSPLASH_OPT): Change to char[].
278 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
279 props. Free them at the end.
280
281 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
282
c5683ceb
SM
283 * xrdb.c (get_system_app): Make path const and use char *p for
284 non-const char.
42ca4633
J
285
286 * xmenu.c (Fx_popup_dialog): error_name is const char*.
287 (xmenu_show): error parameter is const char **. pane_string is const
288 char *.
289 (button_names): Is const char *.
290 (xdialog_show): error_name and pane_string is const.
291
292 * process.h (synch_process_death): Is const char*.
293
294 * w32menu.c (w32_menu_show):
295 * nsmenu.m (ns_menu_show): error parameter is const char **.
296
297 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
298 is const char **.
299
300 * menu.c (Fx_popup_menu): error_name is const.
301
302 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
303 with unsigned char and XtPointer with void *.
304
305 * gtkutil.h: Replace widget_value with struct _widget_value.
306 (enum button_type, struct _widget_value): Remove and use the one from
307 keyboard.h.
308
309 * gtkutil.c (get_utf8_string): Always return an allocated string.
310 Parameter is const.
311 (create_dialog, xg_create_one_menuitem, create_menus)
312 (xg_item_label_same_p, xg_update_menu_item): Free result from
313 get_utf8_string.
314 (xg_separator_p, xg_item_label_same_p): label is const.
315
316 * font.h (font_open_by_name): Make name const.
317
318 * font.c (font_open_by_name): Make name const.
319
320 * floatfns.c (matherr): Use a const char* variable for x->name.
321
322 * emacs.c (main): Pass char[] to putenv instead of literal.
323
324 * callproc.c (synch_process_death): Make const.
325 (Fcall_process): Make signame const.
326
9c5bd55a
J
327 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
328 (addDisplayItemWithImage): Use const char*.
329
330 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
331 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
332
333 * nsfont.m (ns_descriptor_to_entity): Use const char*.
334
335 * keyboard.h (_widget_value): name, value and key are const char*.
336
7aee76f4
J
337 * unexmacosx.c (unexec_error): Use const char *.
338
09d93395
DN
3392010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
340
341 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 342 (font_parse_name, font_open_by_name):
09d93395 343 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 344 (font_parse_name, font_open_by_name): Remove const.
09d93395 345
671d409f
AS
3462010-08-09 Andreas Schwab <schwab@linux-m68k.org>
347
348 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
349 definition.
350
351 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
352 * m/amdx86-64.h: Likewise.
353 * m/arm.h: Likewise.
354 * m/hp800.h: Likewise.
355 * m/ia64.h: Likewise.
356 * m/ibmrs6000.h: Likewise.
357 * m/ibms390.h: Likewise.
358 * m/intel386.h: Likewise.
359 * m/iris4d.h: Likewise.
360 * m/m68k.h: Likewise.
361 * m/macppc.h: Likewise.
362 * m/mips.h: Likewise.
363 * m/sh3.h: Likewise.
364 * m/sparc.h: Likewise.
365 * m/template.h: Likewise.
366 * m/vax.h: Likewise.
367 * m/xtensa.h: Likewise.
368 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
369 WORDS_BIG_ENDIAN.
370 * lisp.h: Likewise.
371 * md5.c: Likewise.
372 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
373
8ea90aa3
DN
3742010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
375
376 Use const char* instead of char*.
377 Reduce the number of warnings with -Wwrite-strings.
378 * xrdb.c (get_environ_db, get_system_name):
379 * unexelf.c (find_section):
380 * term.c (string_cost, string_cost_one_line, per_line_cost)
381 (get_named_tty, init_tty):
382 * sysdep.c (sys_subshell):
383 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
384 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
385 * search.c (Freplace_match):
386 * process.c (Fmake_network_process, send_process, init_process):
387 * lread.c (Fload, init_lread):
388 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
389 * keyboard.c (parse_tool_bar_item, struct event_head):
390 * gtkutil.h (xg_get_font_name):
391 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
392 (make_widget_for_menu_item, make_menu_item, create_menus)
393 (xg_make_tool_item):
394 * font.c (parse_matrix, font_parse_name):
395 * floatfns.c (rounding_driver, float_error_fn_name):
396 * filelock.c (get_boot_time_1, lock_file_1):
397 * fileio.c (barf_or_query_if_file_exists, check_writable):
398 * editfns.c (get_system_name, get_operating_system_release)
399 (Fencode_time, Fset_time_zone_rule):
400 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
401 * buffer.c (defvar_per_buffer): Use const.
402
7815fe19 4032010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5
KH
404
405 * charset.c: Include <stdlib.h>
406 (struct charset_sort_data): New struct.
407 (charset_compare): New function.
408 (Fsort_charsets): New funciton.
409 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
410
411 * coding.c (decode_coding_iso_2022): Fix checking of dimension
412 number in CTEXT extended segment.
413
7815fe19 4142010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
415
416 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
417 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
418
7815fe19 4192010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
420
421 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
422 (Fhash_table_size): Fix typos in docstrings.
423 (Fmake_hash_table): Doc fix.
424
7815fe19 4252010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
426
427 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
428 Doc fix (bug#5625).
429
7815fe19 4302010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
431
432 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
433 the MSDOS definition.
434
1b6d8cf0
DN
4352010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
436
675e2c69
DN
437 Use const char* instead of char*.
438 * xterm.c (x_create_toolkit_scroll_bar):
439 * xfont.c (xfont_list_pattern):
440 * xfns.c (x_default_scroll_bar_color_parameter)
441 (xic_create_fontsetname, x_default_font_parameter)
442 (x_screen_planes):
443 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
444 (store_mode_line_string, decode_mode_spec, display_string):
445 * menu.c (digest_single_submenu):
446 * keymap.h (initial_define_key, initial_define_lispy_key):
447 * keymap.c (initial_define_key, initial_define_lispy_key):
448 * image.c (image_error, image_keyword):
449 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
450 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
451 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
452 (ftfont_list, ftfont_match):
453 * frame.c (frame_parm_table):
454 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
455 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
456 (font_add_log, font_deferred_log):
457 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
458 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
459 (font_add_log, font_deferred_log):
460 * emacs.c (argmatch):
461 * dispextern.h (struct it):
462 * coding.c (ENCODE_DESIGNATION):
463 * charset.c (define_charset_internal): Use const.
464
25717ca1
DN
465 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
466
c5683ceb
SM
467 * xrdb.c: Remove include guard.
468 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
469 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
470 realloc->xrealloc instead of using #defines.
471
efb41e21
EZ
4722010-08-08 Eli Zaretskii <eliz@gnu.org>
473
cd21226d 474 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
475 * editfns.c (Fline_beginning_position, Fline_end_position):
476 State in the doc strings that start and end of line are in the
477 logical order.
cd21226d 478
efb41e21
EZ
479 * xdisp.c (display_line): Move the handling of overlay arrow after
480 the call to find_row_edges. (Bug#6699)
481
746812d9
CY
4822010-08-07 Chong Yidong <cyd@stupidchicken.com>
483
484 * keyboard.c (command_loop_1):
485 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
486
9852377f
CY
4872010-08-07 Chong Yidong <cyd@stupidchicken.com>
488
489 * insdel.c (prepare_to_modify_buffer): Save active region text to
490 Vsaved_region_selection.
491
492 * xselect.c (QPRIMARY): Move to keyboard.c.
493
494 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
495 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
496 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 497
0e9c8657
JB
4982010-08-07 Juanma Barranquero <lekktu@gmail.com>
499
500 * alloc.c (lisp_malloc):
501 * buffer.c (set_buffer_internal, set_buffer_internal_1):
502 * charset.h (emacs_mule_charset):
503 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
504 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
505 (bitch_at_user):
506 * lisp.h (Fcheck_coding_system, Fget_text_property)
507 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
508 Remove duplicate declarations.
509
648801d1
DN
5102010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
511
32bc6709
DN
512 * process.c: Simplify include logic.
513
3ef1d108
DN
514 * keyboard.h (quit_char): Add declaration.
515 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
516 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
517 Add declarations.
3ef1d108
DN
518 * sysdep.c:
519 * w32.c: Remove the above declarations.
520
97ec208f
DN
521 Remove extern declarations in .c files, .h files have them.
522 * xterm.c:
523 * xdisp.c:
97ec208f
DN
524 * msdos.c:
525 * image.c:
526 * gtkutil.c:
527 * fileio.c:
528 * eval.c: Remove declarations.
529
94eed851
DN
530 * frame.c (frame_params): Make const.
531
36e053eb
DN
532 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
533
0e843971
DN
534 * emacs.c (emacs_copyright, emacs_version): Make static.
535 (Vinitial_window_system, Vauto_save_list_file_name)
536 (Vinhibit_redisplay): Remove declarations.
537 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
538 for AIX.
539
648801d1
DN
540 Use const for some arrays and functions.
541 * xterm.h (xg_set_icon_from_xpm_data):
542 * xfns.c (xg_set_icon_from_xpm_data):
543 * term.c (fkeys):
544 * keyboard.c (lispy_accent_keys, lispy_function_keys)
545 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
546 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
547 (frame.c frame_parms):
548 * emacs-icon.h (gnu_xpm_bits):
549 * callint.c (callint_argfuns): Use const.
550
8646d999
J
5512010-08-06 Jan Djärv <jan.h.d@swipnet.se>
552
553 * sysdep.c: Move include term.h last of includes (Bug#6812).
554
cb4545ad
EZ
5552010-08-06 Eli Zaretskii <eliz@gnu.org>
556
557 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
558
559 * msdos.c (IT_display_cursor): Log cursor position on termscript.
560
561 * .gdbinit (pgx): Display the avoid_cursor_p flag.
562
da7e2be6
JB
5632010-08-06 Juanma Barranquero <lekktu@gmail.com>
564
565 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
566
3d608a86
J
5672010-08-06 Jan Djärv <jan.h.d@swipnet.se>
568
7908fb60
J
569 * xterm.h (x_get_focus_frame): Declare.
570
571 * keyboard.h (poll_for_input_1): Unconditionally declare.
572
4094bf36
J
573 * nsterm.h (x_set_menu_bar_lines): Declare.
574
575 * window.c: Don't include menu.h, it depends on lots of other .h-files.
576
3d608a86
J
577 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
578
579 * window.c: Include menu.h.
580
581 * unexmacosx.c (print_region_list, print_regions)
582 (build_region_list, find_emacs_zone_regions)
583 (unexec_regions_merge, read_load_commands, dump_it)
584 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
585
586 * term.c: Check HAVE_SYS_IOCTL_H.
587
686b968e 588 * sysdep.c: Check HAVE_TERM_H.
3d608a86 589
686b968e 590 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
591
592 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
593 (ns_ring_bell, ns_defined_color, hide_hourglass)
594 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
595 Convert to ANSI C prototypes.
596 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
597 before code.
598
599 * nsterm.h : Include sysselect.h.
600 (x_sync, x_get_focus_frame, x_set_mouse_position)
601 (x_set_mouse_pixel_position, x_make_frame_visible)
602 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
603 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
604 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
605 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 606 Declare.
3d608a86
J
607
608 * nsmenu.m (popup_activated, name_is_separator)
609 (syms_of_nsmenu): Convert to ANSI C prototypes.
610 (runMenuAt): Prototypes and move declarations before code.
611
612 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
613
614 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
615 prototypes.
616
617 * nsfns.m (have_menus_p, ns_display_info_for_name)
618 (x_set_cursor_type, ns_appkit_version_str)
619 (ns_appkit_version_int, ns_do_applescript)
620 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
621 (syms_of_nsfns): Convert to ANSI C prototypes.
622
623 * menu.h (x_set_menu_bar_line): Declare.
624 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
625
626 * lisp.h (fmod_float): Declare.
627
628 * image.c (xpm_scan, xpm_make_color_table_v)
629 (xpm_put_color_table_v, xpm_get_color_table_v)
630 (xpm_make_color_table_h, xpm_put_color_table_h)
631 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
632 (xpm_load): Convert to ANSI C prototypes.
633
634 * emacs.c: Include nsterm.h if HAVE_NS.
635
636 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
637
fce70521
DN
6382010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
639
640 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
641 subprocesses, only MSDOS does not define HAVE_SOCKETS.
642 (socket_options): Use const char* for name.
643
a11889ab
JB
6442010-08-06 Juanma Barranquero <lekktu@gmail.com>
645
646 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
647
648 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
649 Don't declare xmalloc_widget_value and digest_single_submenu.
650
651 * w32font.c (Qlatin): Remove declaration.
652
653 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
654
c95b508f 655 * dired.c (compile_pattern): Restore declaration.
a11889ab 656
6254cdda
DN
6572010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
658
04bab72c
DN
659 Remove extern declarations in .c files, .h files have them.
660 * data.c:
661 * dired.c:
662 * editfns.c:
663 * filelock.c:
664 * fns.c:
665 * font.c:
666 * fontset.c:
667 * frame.c:
668 * fringe.c:
669 * ftfont.c:
670 * gtkutil.c:
671 * indent.c:
672 * keyboard.c:
673 * keymap.c:
674 * lread.c:
675 * menu.c:
676 * print.c:
677 * search.c:
678 * sound.c:
679 * window.c:
680 * xdisp.c:
681 * xfaces.c:
682 * xfns.c:
683 * xfont.c:
684 * xftfont.c:
685 * xmenu.c:
686 * xterm.c: Remove declarations.
687
dff94ed5
DN
688 Cleanup syssignal.h.
689 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
690 (main_thread): Move down to remove #ifdef.
691 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
692 Remove conditional definition following unconditional ones.
693
99f3388e
DN
694 * lisp.h: Remove HAVE_SHM code, unused.
695 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
696 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
697 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
698 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
699 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
700 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
701 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
702 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
703 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
704 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
705 (Qwindow_scroll_functions, Vafter_load_alist)
706 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
707 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
708 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
709 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
710 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
711 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
712 (initial_argv, last_nonmenu_event, load_in_progress)
713 (noninteractive_need_newline, scroll_margin): Add declarations.
714
715 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
716 declarations, menu.h has them.
717 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
718 (Vinput_method_function, Qinput_method_function)
719 (Qevent_symbol_element_mask, last_event_timestamp):
720 * dispextern.h (Voverflow_newline_into_fringe):
721 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
722 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
723 (syms_of_w32font, syms_of_nsfont):
724 * fontset.h (find_font_encoding, Qlatin):
725 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
726 (Vtool_bar_mode, set_frame_menubar):
727 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
728 * xterm.h (Qx_gtk_map_stock):
729 * keymap.h (meta_prefix_char): Add declarations.
730
9f5dd6f2
DN
731 * term.c: Remove dead code.
732
6254cdda
DN
733 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
734 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
735 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
736 which is what was there before BSD_PGRPS was removed.
737
29cf3e20
EZ
7382010-08-05 Eli Zaretskii <eliz@gnu.org>
739
740 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
741
742 * unexcoff.c: Renamed from unexec.c.
743
aaa0a19a
SM
7442010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
745
746 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
747
8d1d9587
JB
7482010-08-03 Johan Bockgård <bojohan@gnu.org>
749
750 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 751 (Bug#6744)
8d1d9587 752
9a747ba6
JD
7532010-08-02 Jan Djärv <jan.h.d@swipnet.se>
754
4d464ae4
JD
755 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
756 to TRUE if depth of screen is < 16.
757
ac01763e
JD
758 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
759 USE_GTK_TOOLTIP.
e0d62a9b
JB
760 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
761 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 762 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
763 USE_GTK_TOOLTIP.
764 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
765
766 * xterm.h (USE_GTK_TOOLTIP): New define.
767 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
768
9a747ba6
JD
769 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
770 to Control-D (Bug#6771).
771
7b0815ba
JB
7722010-08-02 Juanma Barranquero <lekktu@gmail.com>
773
774 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
775 Wording by Drew Adams <drew.adams@oracle.com>.
776
aa1859f5
J
7772010-08-01 Jan Djärv <jan.h.d@swipnet.se>
778
779 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
780 ttip_lbl.
781
782 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
783 calling gtk_widget_queue_draw.
784 (x_free_frame_resources): Call xg_free_frame_widgets.
785
786 * xfns.c (x_gtk_use_system_tooltips): New variable.
787 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
788 new gtkutil tooltip functions to show the tooltip.
789 (Fx_hide_tip): Call xg_hide_tooltip.
790 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
791
792 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
793 (xg_show_tooltip, xg_hide_tooltip): Declare.
794
795 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
796 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
797 New functions.
aa1859f5
J
798 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
799 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
800 Remove code that is commented out.
801
76417ef4
SM
8022010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
803
804 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
805
16041401
CY
8062010-07-31 Chong Yidong <cyd@stupidchicken.com>
807
808 * xselect.c (x_own_selection): Use list4.
809
2c09a58f
DN
8102010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
811
812 * buffer.c (Qwindow): Do not define, already defined in data.c.
813 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
814
59df9fdd 8152010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 816
59df9fdd
JB
817 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
818 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
819 * config.in: Undef HAVE_DIRENT_H.
1c97e857 820 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 821 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 822
1b231651
DN
8232010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
824
825 Rename s/usg5-4.h -> s/usg5-4-common.h.
826 * s/usg5-4.h: Rename file to ...
827 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
828 * s/unixware.h:
829 * s/sol2-6.h:
830 * s/irix6-5.h: Update includes accordingly.
831
bfeabdc3
JD
8322010-07-29 Jan Djärv <jan.h.d@swipnet.se>
833
2ebf1083
J
834 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
835
bfeabdc3 836 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
837 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
838 Remove toolbar_height.
839 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
840 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
841 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
842 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
843
844 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
845
846 * xfns.c (x_set_tool_bar_position): New function.
847 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
848 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 849 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
850
851 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
852 and FRAME_TOOLBAR_LEFT_WIDTH.
853
854 * gtkutil.h (xg_change_toolbar_position): Declare.
855
856 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
857 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
858 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
859 (xg_create_frame_widgets): Create a hobox for placing widgets
860 vertically. Use gtk_box_pack_start.
861 (xg_height_or_width_changed): Renamed from xg_height_changed.
862 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
863 (xg_update_frame_menubar, free_frame_menubar): Change to
864 xg_height_or_width_changed.
865 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
866 size correctly. Remove hardcoded 4, instead use handlebox size -
867 toolbar size.
868 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 869 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
870 (xg_pack_tool_bar): POS is a new parameter.
871 Set orientation of tool bar based on pos.
872 Only make handlebox_widget if NULL.
873 Check if tool bar goes to vbox or hbox depending on pos.
874 (xg_update_tool_bar_sizes): New function.
686b968e 875 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
876 height, call xg_update_tool_bar_sizes instead.
877 (free_frame_tool_bar): Remove from hbox or vbox depending on
878 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
879 (xg_change_toolbar_position): New function.
880
881 * frame.h (struct frame): Add tool_bar_position.
882 (Qbottom): Declare.
883
884 * frame.c (Qtool_bar_position): New variable.
885 (make_frame): Set tool_bar_position to Qtop.
886 (frame_parms): Add tool-bar-position.
887 (x_report_frame_params): Store tool_bar_position.
888 (x_set_fringe_width): Reset wm size hint after fringe changes.
889
26469a38
DN
8902010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
891
892 Make lisp_time_argument declaration work on all systems.
893 * lisp.h (lisp_time_argument): Move declaration ...
894 * systime.h (lisp_time_argument): ... here
895 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
896
8848b728
JD
8972010-07-29 Jan Djärv <jan.h.d@swipnet.se>
898
899 * vm-limit.c (POINTER): Add typedef for it.
900 (start_of_data): Change return type from POINTER to char *.
901
902 * frame.h (Qtty_color_mode): Move declaration out of ifdef
903 HAVE_WINDOW_SYSTEM.
904
76fd1ee9
DN
9052010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
906
0441987e
DN
907 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
908 Remove reference to __osf__, unused.
909
56a000c7
DN
910 * mem-limits.h: Remove duplicated includes.
911 (NULL): Remove definition, unused.
912 (POINTER): Remove definition.
913 (start_of_data): Use char* in prototype, as the function
914 definition does.
915
e6cba650
DN
916 Remove extern declarations from .c files, and them to .h files.
917 * keyboard.h (Qhelp_echo, waiting_for_input)
918 (input_available_clear_time, ignore_mouse_drag_p)
919 (Vdouble_click_time, real_this_command, Vthis_original_command):
920 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
921 (Voverriding_local_map_menu_flag):
922 * lisp.h (Qinteractive_form, use_file_dialog)
923 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
924 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
925 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
926 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
927 (Qfunction, debug_on_next_call, Qfield)
928 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
929 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
930 (Qfile_directory_p, Qinsert_file_contents)
931 (Qcompletion_ignore_case, Qcompletion_ignore_case)
932 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
933 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
934 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
935 (Qminibuffer_prompt)
936 (Vtemporary_file_directory,char_ins_del_vector, Qface):
937 * xterm.h (gray_bitmap_width, gray_bitmap_height)
938 (gray_bitmap_bits, xic_create_fontsetname):
939 * coding.h (Vtranslation_table_for_input): Add extern declarations.
940
941 * xsmfns.c (Vuser_login_name):
942 * xrdb.c (Vdouble_click_time):
943 * xfaces.c (xic_create_fontsetname):
944 * w32select.c (waiting_for_input):
945 * print.c (minibuffer_auto_raise):
946 * msdos.c (Qhelp_echo):
947 * macros.c (real_this_command):
948 * keymap.c (Voverriding_local_map):
949 * xterm.c (poll_for_input_1, gray_bitmap_width)
950 (gray_bitmap_height, gray_bitmap_bits;
951 * xmenu.c ( Voverriding_local_map)
952 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
953 (use_file_dialog, Xt_app_con):
954 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
955 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
956 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
957 (Qtool_bar_lines, ignore_mouse_drag_p):
958 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
959 (Qrear_nonsticky, nconc2):
960 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
961 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
962 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
963 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
964 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
965 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
966 (gc_in_progress):
967 * doc.c (Voverriding_local_map, Qremap):
968 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
969 (Vcompletion_regexp_list):
970 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
971 (Qcompletion_ignore_case):
972 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
973 (Vhistory_length, Vthis_original_command, real_this_command)
974 (Qface, Qminibuffer_prompt, history_delete_duplicates):
975 * image.c (Qrisky_local_variable):
976 * fontset.c (QCname):
977 * fns.c (minibuffer_auto_raise, QCname):
978 * dispnew.c (char_ins_del_cost):
979 * composite.c (font_fill_lglyph_metrics):
980 * cmds.c (Qface, Vtranslation_table_for_input):
981 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
982 * ccl.c (charset_unicode):
983 * callproc.c (Vtemporary_file_directory):
984 * buffer.c (emacs_strerror): Remove extern declarations.
985
986 * data.c (Qwindow): Make non-static, used from other files too.
987 * frame.c (validate_x_resource_name): Remove shadow definition for i.
988
76fd1ee9
DN
989 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
990 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
991 * s/usg5-4.h (COFF):
992 * s/template.h:
993 * s/msdos.h (COFF, NO_REMAP):
994 * s/ms-w32.h (NO_REMAP):
995 * s/hpux10-20.h (NO_REMAP):
996 * m/sparc.h (SEGMENT_MASK):
997 * m/m68k.h (NO_REMAP):
998 * m/intel386.h (SEGMENT_MASK):
999 * m/arm.h (NO_REMAP):
1000 * m/alpha.h (COFF):
1001 * m/template.h: Remove references to unused defines.
1002
8a52f00a
JD
10032010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1004
1005 * xsettings.c (Ftool_bar_get_system_style): Also check for
1006 Qtext_image_horiz.
1007
1008 * xdisp.c (Qtext_image_horiz): Define.
1009 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1010 to documentation of tool-bar-style.
8a52f00a
JD
1011
1012 * lisp.h (Qtext_image_horiz): Declare.
1013
1014 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1015 style text_image_horiz.
1016
89dc303e
DN
10172010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1018
60799703
DN
1019 * emacs.c (Fkill_emacs): Remove return statement.
1020
37254dc1
DN
1021 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1022 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1023 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1024 local extern declarations.
1025
71c7345a
DN
1026 * xmenu.c: Do not included lwlib.h, not needed.
1027
6ba577cb
DN
1028 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1029
fdb183d6
DN
1030 * process.c: Move definitions earlier to minimize #ifdefs.
1031
1032 * xterm.h (x_get_customization_string, x_load_resources)
1033 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1034 (x_check_errors, x_property_data_to_lisp, defined_color)
1035 (xic_set_xfontset, x_defined_color): Use const.
1036
1037 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1038 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1039
1040 * xselect.c (selection_data_to_lisp_data)
1041 (x_property_data_to_lisp):
1042 * xrdb.c (x_get_string_resource, file_p)
1043 (x_get_customization_string, magic_file_p, search_magic_path)
1044 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1045 (x_get_string_resource): Use const.
1046
1047 * xfns.c: Include xlwmenu.h when USE_LUCID.
1048 (x_defined_color, xic_set_xfontset): Use const.
1049 (Fx_hide_tip): Remove local extern declaration.
1050
1051 * xfaces.c (Qmouse_face): Remove declaration.
1052 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1053 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1054
1055 * xdisp.c (do_mouse_tracking): Remove declaration.
1056 (add_to_log): Use const.
1057
1058 * minibuf.c (Qmouse_face): Remove declaration.
1059
1060 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1061
1062 * keyboard.h (do_mouse_tracking): Add declaration.
1063
1064 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1065 (QCdata, QCtype, Qcenter): Remove declarations.
1066
1067 * frame.c (x_get_resource_string, x_get_string_resource)
1068 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1069 (x_default_parameter): Use const.
1070
1071 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1072 (QCheight, QCsize, QCname): Remove declarations.
1073
1074 * emacs.c (main): Remove local extern declaration.
1075
1076 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1077 declarations.
1078
1079 * dispnew.c: Remove duplicate #include <unistd.h>.
1080 (update_window, update_frame_1, init_display): Remove local extern
1081 declarations.
1082
1083 * dispextern.h (add_to_log): Remove declaration.
1084 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1085 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1086
1087 * dired.c (scmp): Add const.
1088 (directory_files_internal): Remove local extern declaration.
1089
1090 * data.c (Finteractive_form): Use const.
1091
1092 * composite.c (syms_of_composite): Remove local extern declarations.
1093
1094 * charset.c (add_to_log): Remove declaration.
1095
1096 * character.c (strwidth, parse_str_to_multibyte): Add const.
1097
1098 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1099
1100 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1101
89dc303e 1102 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1103 (Lisp_Subr): Make doc and intspec constant.
1104 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1105 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1106 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1107 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1108 (display_arg): Add declarations.
89dc303e 1109
0ed082fe 11102010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1111
1112 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1113
0ed082fe
JB
1114 * window.c (Fwindow_height): Doc fix (bug#6518).
1115
11162010-07-27 Juanma Barranquero <lekktu@gmail.com>
1117
1118 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1119
ccaf0336
DN
11202010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1121
977105dc
DN
1122 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1123 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1124 functions.
1125
f5ada890
DN
1126 * frame.h (Qtty_color_mode): Add declaration.
1127
ccaf0336
DN
1128 * lisp.h (Ftop_level, Fexit_recursive_edit)
1129 (Fabort_recursive_edit): Mark as NO_RETURN.
1130
dfe3c90f
KH
11312010-07-26 Kenichi Handa <handa@m17n.org>
1132
1133 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1134 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1135
7d383292
JB
11362010-07-26 Juanma Barranquero <lekktu@gmail.com>
1137
1138 * lread.c (unreadpure, mapatoms_1): Make static.
1139
da31e629
JB
11402010-07-25 Juanma Barranquero <lekktu@gmail.com>
1141
1142 * terminfo.c (tparam): Fix prototype of tparm.
1143
7bfa6d77
AS
11442010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1145
dcc19aac
AS
1146 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1147 find start of text segment.
1148 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1149 is defined.
1150
7bfa6d77
AS
1151 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1152
63f9a672
KB
11532010-07-25 Ken Brown <kbrown@cornell.edu>
1154
1155 * vm-limit.c (check_memory_limits): Fix previous change;
1156 accidentally reverted an earlier change.
1157
24933075
KB
11582010-07-25 Ken Brown <kbrown@cornell.edu>
1159
1160 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1161 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1162
361358ea
JB
11632010-07-25 Juanma Barranquero <lekktu@gmail.com>
1164
1165 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1166 * dired.c (opendir, readdir): Fix prototypes.
1167 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1168 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1169 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1170 (telldir): Remove declaration.
1171 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1172 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1173 * syssignal.h (strsignal): Fix prototype.
1174 * term.c (tparam): Fix prototype.
1175 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1176 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1177 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1178 and __morecore.
1179 * w32gui.h (XParseGeometry): Fix prototype.
1180 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1181 * w32term.c (my_set_focus): Declare inside #if 0.
1182 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1183 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1184 (drain_message_queue, get_next_msg, post_msg, parse_button)
1185 (ClipboardSequence_Proc): Fix prototypes.
1186 (wait_for_sync): Remove declaration.
1187
630b9592
JB
11882010-07-24 Juanma Barranquero <lekktu@gmail.com>
1189
1190 * w32fns.c (w32_to_x_color): Remove, unused.
1191
6a0d6611
AS
11922010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1193
1194 * lisp.h: Remove leftover P_.
1195
4e8608ff
DN
11962010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1197
1198 * ecrt0.c, unexalpha.c: Remove files, unused.
1199
c8197983
AS
12002010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1201
1202 * cmds.c (internal_self_insert): Make static.
1203 * lisp.h (internal_self_insert): Remove declaration.
1204
97b372d7
JB
12052010-07-23 Juanma Barranquero <lekktu@gmail.com>
1206
33ac0414
JB
1207 * alloc.c (free_float):
1208 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1209 * frame.c (delete_frame_handler):
1210 * ralloc.c (reorder_bloc):
1211 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1212 Remove unused static functions.
1213
94da8397
JB
1214 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1215 it is called only from NS code.
1216
2e6c8532
JB
1217 * w32term.c (my_set_focus): #ifdef away; it is called only from
1218 "#ifdef 0" code.
1219
97b372d7
JB
1220 * w32fns.c (x_edge_detection):
1221 * xfaces.c (may_use_scalable_font_p):
1222 Remove obsolete static declarations.
1223
7c3320d8
JB
12242010-07-20 Juanma Barranquero <lekktu@gmail.com>
1225
1226 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1227 (emacs_blocked_realloc, uninterrupt_malloc):
1228 * fringe.c (w32_reset_fringes):
1229 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1230 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1231 * sound.c (be2hs, do_play_sound):
1232 * vm-limit.c (get_lim_data, ret_lim_data):
1233 * w32term.c (x_free_frame_resources):
1234 * xfaces.c (x_create_gc, x_free_gc):
1235 Convert definitions to standard C.
1236
d5273788
SM
12372010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 * eval.c (Feval, Ffuncall): Use the new names.
1240
1241 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1242 (DEFUN): Add braces around the union initialisation and use ## to
1243 specify the right union alternative and avoid a cast.
1244
8d16a259
JB
12452010-07-18 Juanma Barranquero <lekktu@gmail.com>
1246
1247 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1248
3b8eff32
CY
12492010-07-17 Chong Yidong <cyd@stupidchicken.com>
1250
1251 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1252
499322ce
J
12532010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1254
1255 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1256 is related to the menu bar (Bug#6499).
a628ad9d 1257 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1258
f6003da5 12592010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1260
1261 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1262
1263 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1264
1265 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1266 i.e. don't put back ButtonRelease (Bug#6608).
1267
1268 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1269 instead of Window. Call xg_event_is_for_menubar when
1270 USE_GTK (Bug#6499).
1271
1272 * gtkutil.h (xg_event_is_for_menubar): Declare.
1273
1274 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1275
f6003da5 12762010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1277
1278 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1279 when it's the same as the old foreground. (Bug#6609)
1280
23243f29
J
12812010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1282
1283 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1284 widget is non-null (Bug#6645).
1285
2b23d2a6
AS
12862010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1287
01b564ff
AS
1288 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1289 Convert old-style definition.
1290
2b23d2a6
AS
1291 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1292 timestamp argument.
1293
c4affd2c
EZ
12942010-07-15 Eli Zaretskii <eliz@gnu.org>
1295
1296 * fringe.c (update_window_fringes): Restore mistakenly reverted
1297 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1298
cf28cebc
J
12992010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1300
1301 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1302 (SET_SAVED_KEY_EVENT): Remove (not used).
1303 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1304 remove size parameter.
1305 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1306 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1307 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1308 ButtonRelease.
6b2c4bd9
J
1309 (x_set_window_size_1): scroll_bar_actual_width is always
1310 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1311
1312 * xdisp.c (pending_menu_activation): Remove extern declaration.
1313 (prepare_menu_bars): Remove setting of pending_menu_activation.
1314
1315 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1316 (x_activate_menubar): Set popup_activated_flag for Xt also.
1317 Remove setting of pending_menu_activation.
cf28cebc
J
1318 (set_frame_menubar): Remove check of pending_menu_activation.
1319 Declare menubar_size before code. Correct spelling in comment.
1320
f6c1c771
KH
13212010-07-14 Kenichi Handa <handa@m17n.org>
1322
1323 * font.c (font_open_entity): Cancel previous change.
1324 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1325
20477505
EZ
13262010-07-13 Eli Zaretskii <eliz@gnu.org>
1327
77defa9a
EZ
1328 Remove subprocesses #ifdefs.
1329 * process.c <inhibit_sentinels>: Move to the common part.
1330 (Fwaiting_for_user_input_p): Move to the common part; return nil
1331 if async subprocesses aren't supported.
1332 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1333 MS-DOS. Remove "#ifdef subprocesses".
1334 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1335 (gettimeofday): Remove "#ifdef subprocesses".
1336 (wait_without_blocking): Remove function.
1337 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1338 Remove "#ifdef subprocesses".
1339 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1340 compiled on MS-DOS.
1341 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1342 wait_for_termination on MS-DOS.
1343 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1344 initialization of inhibit_sentinels.
1345 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1346 subprocesses" conditional.
1347 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1348 wait_for_termination, since `buffer' cannot be an integer when
1349 async subprocesses are not supported
1350 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1351 for ifdefing away the call to Fprocess_status.
1352
20477505
EZ
1353 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1354 away the entire body of the function.
1355
b3ffc17c
DN
13562010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1357
01faa934
DN
1358 Remove subprocesses #ifdefs from term.c.
1359 * process.c (add_keyboard_wait_descriptor)
1360 (delete_keyboard_wait_descriptor): Move to common section, do
1361 nothing when subprocesses is not defined.
a628ad9d
JB
1362 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1363 Remove subprocesses #ifdefs.
01faa934 1364
b3ffc17c
DN
1365 Convert maybe_fatal to standard C.
1366 * lisp.h (verror): Declare.
1367 * eval.c (verror): New function containing the code from ...
1368 (error): ... this. Call verror.
1369 * term.c (vfatal): New function containing the code from ...
1370 (fatal): ... this. Call vfatal.
1371 (maybe_fatal): Convert to standard C, use variable number of
1372 arguments. Declare as non-return.
1373 (init_tty): Fix maybe_fatal call.
1374
0521f580
DN
13752010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1376
1377 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1378 (_scroll_bar_note_movement): Convert definitions to standard C.
1379 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1380 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1381
ebd15611
DN
13822010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1383
1384 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1385 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1386 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1387 (xaw_jump_callback, xaw_scroll_callback)
1388 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1389 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1390 definitions to standard C.
1391 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1392 (popup_activate_callback, popup_deactivate_callback)
1393 (menu_highlight_callback, menubar_selection_callback)
1394 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1395 (free_frame_menubar, popup_selection_callback, as)
1396 (create_and_show_popup_menu, dialog_selection_callback)
1397 (create_and_show_dialog):
1398 * xfns.c (hack_wm_protocols, x_window):
1399 * xfaces.c (x_update_menu_appearance):
1400 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1401 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1402 (set_frame_size, update_wm_hints, setup_frame_gcs)
1403 (update_various_frame_slots, update_from_various_frame_slots)
1404 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1405 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1406 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1407
de06a2dd
AS
14082010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1409
a628ad9d 1410 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1411
fc549af9
EZ
14122010-07-12 Eli Zaretskii <eliz@gnu.org>
1413
1414 * process.c (setup_process_coding_systems): Move to the part
1415 shared by non-subprocesses systems, and make its body empty when
1416 subprocesses is not defined.
1417 (close_process_descs): Move to the part shared by non-subprocesses
1418 systems.
1408902e
EZ
1419 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1420 ANSI C.
fc549af9 1421
d5a3eaaf
AS
14222010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1423
1424 * editfns.c (transpose_markers): Convert old-style definition.
1425 * emacs.c (abort, shut_down_emacs, fixup_locale)
1426 (synchronize_system_time_locale)
1427 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1428 * floatfns.c (extract_float, matherr, init_floatfns)
1429 (syms_of_floatfns): Likewise.
1430 * fns.c (make_hash_table): Likewise.
1431 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1432 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1433 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1434 (ftfont_variation_glyphs): Likewise.
1435 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1436 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1437 * lread.c (read_filtered_event): Likewise.
1438 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1439 * process.c (wait_reading_process_output): Likewise.
1440 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1441 * search.c (search_buffer, boyer_moore): Likewise.
1442 * syntax.c (scan_sexps_forward): Likewise.
1443 * xdisp.c (try_scrolling): Likewise.
1444 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1445 (face_at_string_position): Likewise.
1446 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1447 * xselect.c (x_get_window_property, receive_incremental_selection)
1448 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1449 Likewise.
1450 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1451
6f704c76
DN
14522010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1453
ded80a25
DN
1454 * callproc.c (child_setup): Remove subprocesses conditional.
1455 Remove code dealing with SET_EMACS_PRIORITY, unused.
1456
49d937f4 1457 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1458 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1459
1460 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1461 (__do_global_dtors, __main): Use void in definition.
1462 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1463 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1464 the only users from ...
1465 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1466 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1467 (HAVE_VOLATILE): Remove, unused.
1468
6f704c76
DN
1469 Convert more function definitions to standard C.
1470 * xdisp.c (window_box_edges, handle_single_display_spec)
1471 (display_string): Convert definition to standard C.
1472 * scroll.c (do_direct_scrolling, scrolling_1):
1473 * dispnew.c (allocate_matrices_for_frame_redisplay)
1474 (mirrored_line_dance):
1475 * coding.c (code_convert_string):
1476 * charset.c (map_charset_chars):
1477 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1478 (Fregister_ccl_program, Fregister_code_conversion_map):
1479 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1480 (head_table): Make static and const.
1481
e6cfa7c3
AS
14822010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1483
1484 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1485 (PROFILING_LDFLAGS): Set from substitution.
1486 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1487 CFLAGS last.
1488
892dd565
KH
14892010-07-12 Kenichi Handa <handa@m17n.org>
1490
6f2cdcd1
KH
1491 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1492 (shortlisp): Likewise.
1493
892dd565
KH
1494 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1495
1496 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1497 of FONT_ENTITY_INDEX.
1498 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1499 property, get the property value dynamically.
1500 (Ffont_put): Accept font-entity and font-object too.
1501 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1502 return value changed.
1503 (syms_of_font): Adjusted for the above change.
1504
ae96d47a
AS
15052010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1506
c8fc18ee
AS
1507 * blockinput.h: Remove obsolete comment.
1508
89887d67
AS
1509 * lisp.h: Include <stddef.h>.
1510 (OFFSETOF): Don't define.
1511 (VECSIZE): Use offsetof instead of OFFSETOF.
1512 (PSEUDOVECSIZE): Likewise.
1513 * process.c (conv_sockaddr_to_lisp): Likewise.
1514 * alloc.c: Don't include <stddef.h>.
1515 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1516
ae96d47a
AS
1517 * process.c: Remove obsolete comment.
1518
635c0aa1
CY
15192010-07-11 Chong Yidong <cyd@stupidchicken.com>
1520
1521 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1522
a64df650
AS
15232010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1524
8966b757
AS
1525 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1526 index, rindex.
1527 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1528 * editfns.c (Fuser_full_name, Fformat): Likewise.
1529 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1530 * fileio.c (Ffile_symlink_p): Likewise.
1531 * filelock.c (current_lock_owner): Likewise.
1532 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1533 * fontset.c (fontset_pattern_regexp): Likewise.
1534 * lread.c (read1): Likewise.
1535 * sysdep.c (init_system_name): Likewise.
1536 * xfns.c (select_visual): Likewise.
1537 * s/hpux10-20.h (index, rindex): Don't define.
1538 * s/ms-w32.h (index): Likewise.
1539 * s/usg5-4.h: Likewise.
1540
cf237e27
AS
1541 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1542
a8fe7202
AS
1543 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1544 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1545 (egetenv): Likewise.
1546 * doprnt.c (doprnt): Likewise.
1547 * editfns.c (set_time_zone_rule, format2): Likewise.
1548 * emacs.c (decode_env_path): Likewise.
1549 * eval.c (signal_error, error): Likewise.
1550 * insdel.c (replace_range_2): Likewise.
1551 * keyboard.c (cmd_error_internal): Likewise.
1552 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1553 * print.c (write_string, write_string_1, print_error_message):
1554 Likewise.
1555 * vm-limit.c (warn_function, memory_warnings): Likewise.
1556 * xdisp.c (message1, message1_nolog, message_with_string)
1557 (vmessage, message, message_nolog): Likewise.
1558 * emacs.c: Remove duplicate declaration.
1559 * keyboard.h: Likewise.
1560 * lisp.h: Update prototypes.
1561
bb8e180f
AS
1562 * eval.c: Fix indentation problem.
1563
83380e65
AS
1564 * keyboard.c: Include "process.h"
1565
a64df650
AS
1566 * eval.c: Remove obsolete noinline declaration.
1567 * fns.c: Likewise.
1568
6a8033e1
KR
15692010-07-11 Ken Raeburn <raeburn@raeburn.org>
1570
1571 * doprnt.c (doprnt): Take a va_list argument instead of count and
1572 pointer.
1573 * eval.c (error): Change to a standard-C variadic function.
1574 * xdisp.c (vmessage): Renamed from message, made static, and
1575 changed to take a va_list argument.
1576 (message): New variadic wrapper.
1577 (message_nolog): Now a variadic function, calling vmessage.
1578 * lisp.h: Include stdarg.h for va_list.
1579 (doprnt, error, message, message_nolog): Decls updated.
1580
462aa963
EZ
15812010-07-11 Eli Zaretskii <eliz@gnu.org>
1582
1583 * process.c (syms_of_process) <delete-exited-processes>: Define
1584 even if !subprocesses.
1585 (delete_exited_processes): Ditto.
1586
1587 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1588 (delete_exited_processes): Don't define.
1589
48104462
CY
15902010-07-10 Chong Yidong <cyd@stupidchicken.com>
1591
1592 * frame.c (make_frame): Initialize menu_bar_lines and
1593 tool_bar_lines members.
1594 (make_initial_frame, make_terminal_frame): Initialize
1595 menu_bar_lines using value of menu-bar-mode.
1596
1597 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1598
f388c88a
EZ
15992010-07-10 Eli Zaretskii <eliz@gnu.org>
1600
1601 * process.c: Reshuffle #include's. Condition some of the global
1602 and static variables on `subprocesses'.
1603 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1604 Leave only one implementation.
1605 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1606 (kill_buffer_processes, Flist_system_processes)
1607 (Fprocess_attributes, init_process, syms_of_process): Unify the
1608 implementations for with subprocesses and without them.
1609
723f5a07
J
16102010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1611
1612 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1613 correct size for Motif.
1614 (free_frame_menubar): Call x_set_window_size to update frame size.
1615
1616 * xfns.c (x_window): Set borderWidth to 0 for pane and
1617 EmacsFrame. Frame size calculation is wrong otherwise.
1618
2536a4b7
MA
16192010-07-09 Michael Albinus <michael.albinus@gmx.de>
1620
1621 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1622 allows to suppress errors when polling in Emacs' main loop.
1623 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1624 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1625 (Fdbus_method_error_internal, Fdbus_send_signal)
1626 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1627 (Fdbus_register_method): Use it. (Bug#6579)
1628
5842a27b
DN
16292010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1630
1631 * alloc.c: Convert DEFUNs to standard C.
1632 * buffer.c:
1633 * bytecode.c:
1634 * callint.c:
1635 * callproc.c:
1636 * casefiddle.c:
1637 * casetab.c:
1638 * category.c:
1639 * character.c:
1640 * charset.c:
1641 * chartab.c:
1642 * cmds.c:
1643 * coding.c:
1644 * composite.c:
1645 * data.c:
1646 * dbusbind.c:
1647 * dired.c:
1648 * dispnew.c:
1649 * doc.c:
1650 * dosfns.c:
1651 * editfns.c:
1652 * emacs.c:
1653 * eval.c:
1654 * fileio.c:
1655 * filelock.c:
1656 * floatfns.c:
1657 * fns.c:
1658 * font.c:
1659 * fontset.c:
1660 * frame.c:
1661 * fringe.c:
1662 * image.c:
1663 * indent.c:
1664 * insdel.c:
1665 * keyboard.c:
1666 * keymap.c:
1667 * lread.c:
1668 * macros.c:
1669 * marker.c:
1670 * menu.c:
1671 * minibuf.c:
1672 * msdos.c:
1673 * nsfns.m:
1674 * nsmenu.m:
1675 * nsselect.m:
1676 * print.c:
1677 * process.c:
1678 * search.c:
1679 * sound.c:
1680 * syntax.c:
1681 * term.c:
1682 * terminal.c:
1683 * textprop.c:
1684 * undo.c:
1685 * w16select.c:
1686 * w32console.c:
1687 * w32fns.c:
1688 * w32font.c:
1689 * w32menu.c:
1690 * w32proc.c:
1691 * w32select.c:
1692 * window.c:
1693 * xdisp.c:
1694 * xfaces.c:
1695 * xfns.c:
1696 * xmenu.c:
1697 * xselect.c:
1698 * xsettings.c:
1699 * xsmfns.c: Likewise.
1700
d568829b
EZ
17012010-07-08 Eli Zaretskii <eliz@gnu.org>
1702
1703 * process.c (kbd_is_on_hold, hold_keyboard_input)
1704 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1705
52214050
J
17062010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1707
1708 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1709 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1710 unless USE_LUCID.
1711
313d9eb2
DN
17122010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1713
a628ad9d
JB
1714 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1715 declaration.
d8825aa3 1716
295d0d8f
DN
1717 Clean up include guards.
1718 * tparam.c: Remove include guards for config.h, string.h and code
1719 that assumes #ifndef emacs.
1720 * termcap.c:
1721 * unexalpha.c:
1722 * sysdep.c:
1723 * filemode.c:
1724 * filelock.c:
1725 * bidi.c: Likewise.
1726
49d9e6b0
DN
1727 Remove prefix-args.c
1728 * prefix-args.c: Remove file.
1729 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1730 * Makefile.in (temacs${EXEEXT}): Remove references to
1731 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1732 (mostlyclean): Remove reference to prefix-args.
1733 (prefix-args): Remove.
1734
313d9eb2
DN
1735 Simplify cstart_of_data, start_of_code and related code.
1736 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1737 (start_of_data): Merge into start_of_data function.
1738 * sysdep.c (start_of_text): Remove. Move simplified versions of
1739 it in the only users: unexaix.c and unexec.c.
1740 (read_input_waiting): Remove local declaration of quit_char.
1741 (start, etext): Remove declarations.
1742 (start_of_data): Merge with the version in mem-limits.h and move
1743 to vm-limits.c.
1744 * vm-limit.c (start_of_data): Merged and simplified version of the
1745 code formerly in mem-limits.h and sysdep.c.
1746 * unexec.c (start): New declaration, moved from sysdep.c.
1747 (start_of_text): Simplified version of the code formerly in sysdep.c.
1748 * unexaix.c (start_of_text): Simplified version of the code
1749 formerly in sysdep.c.
1750 * m/alpha.h (HAVE_TEXT_START): Remove.
1751 (TEXT_START): Move ...
1752 * unexalpha.c (TEXT_START): ... here.
1753 * s/hpux10-20.h (TEXT_START): Remove.
1754 * s/darwin.h (TEXT_START):
1755 * m/mips.h (TEXT_START):
1756 * m/macppc.h (HAVE_TEXT_START):
1757 * m/m68k.h (TEXT_START):
1758 * m/iris4d.h (TEXT_START):
1759 * m/intel386.h (TEXT_START):
1760 * m/ibmrs6000.h (TEXT_START):
1761 * m/ia64.h (HAVE_TEXT_START):
1762 * s/msdos.h (TEXT_START): Likewise.
1763
72af86bd
AS
17642010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1765
1766 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1767 (overrun_check_free, xstrdup, allocate_string)
1768 (allocate_string_data, compact_small_strings, Fmake_string)
1769 (make_unibyte_string, make_multibyte_string)
1770 (make_string_from_bytes, make_specified_string, make_float)
1771 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1772 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1773 memcpy, memmove, memset, memcmp.
1774 * atimer.c (start_atimer, set_alarm): Likewise.
1775 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1776 (mmap_realloc, init_buffer_once): Likewise.
1777 * callint.c (Fcall_interactively): Likewise.
1778 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1779 (getenv_internal_1): Likewise.
1780 * casefiddle.c (casify_object): Likewise.
1781 * ccl.c (ccl_driver): Likewise.
1782 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1783 * charset.c (load_charset_map_from_file)
1784 (load_charset_map_from_file, load_charset_map_from_vector)
1785 (Fdefine_charset_internal): Likewise.
1786 * cm.c (Wcm_clear): Likewise.
1787 * coding.c (decode_eol, decode_coding_object)
1788 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1789 * data.c (Faset): Likewise.
1790 * dired.c (directory_files_internal, file_name_completion_stat):
1791 Likewise.
1792 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1793 (clear_glyph_row, copy_row_except_pointers)
1794 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1795 (save_current_matrix, restore_current_matrix)
1796 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1797 (mirror_line_dance, scrolling_window): Likewise.
1798 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1799 Likewise.
1800 * doprnt.c (doprnt): Likewise.
1801 * editfns.c (Fuser_full_name, make_buffer_string_both)
1802 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1803 * emacs.c (sort_args): Likewise.
1804 * eval.c (Fapply, Ffuncall): Likewise.
1805 * fileio.c (Ffile_name_directory, make_temp_name)
1806 (Fexpand_file_name, search_embedded_absfilename)
1807 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1808 (auto_save_error): Likewise.
1809 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1810 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1811 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1812 (Fmake_hash_table): Likewise.
1813 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1814 * ftfont.c (ftfont_text_extents): Likewise.
1815 * getloadavg.c (getloadavg): Likewise.
1816 * image.c (define_image_type, make_image, make_image_cache)
1817 (x_create_x_image_and_pixmap, xbm_image_p)
1818 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1819 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1820 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1821 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1822 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1823 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1824 Likewise.
1825 * indent.c (scan_for_column, compute_motion): Likewise.
1826 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1827 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1828 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1829 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1830 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1831 (store_user_signal_events, menu_bar_items, tool_bar_items)
1832 (process_tool_bar_item, append_tool_bar_item)
1833 (read_char_minibuf_menu_prompt, read_key_sequence)
1834 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1835 Likewise.
1836 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1837 Likewise.
1838 * lisp.h (STRING_COPYIN): Likewise.
1839 * lread.c (Fload, read1, oblookup): Likewise.
1840 * msdos.c (Frecent_doskeys): Likewise.
1841 * nsfns.m (Fx_create_frame): Likewise.
1842 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1843 Likewise.
1844 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1845 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1846 Likewise.
1847 * nsmenu.m (ns_update_menubar): Likewise.
1848 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1849 * print.c (print_unwind, printchar, strout, print_string)
1850 (print_error_message): Likewise.
1851 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1852 (Fmake_network_process, Fnetwork_interface_list)
1853 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1854 (init_process): Likewise.
1855 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1856 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1857 Likewise.
1858 * scroll.c (do_scrolling, do_direct_scrolling)
1859 (scrolling_max_lines_saved): Likewise.
1860 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1861 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1862 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1863 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1864 (emacs_set_tty): Likewise.
1865 * term.c (encode_terminal_code, calculate_costs)
1866 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1867 Likewise.
1868 * termcap.c (tgetst1, gobble_line): Likewise.
1869 * termhooks.h (EVENT_INIT): Likewise.
1870 * tparam.c (tparam1): Likewise.
1871 * unexalpha.c (unexec): Likewise.
1872 * unexec.c (write_segment): Likewise.
1873 * unexmacosx.c (unexec_write_zero): Likewise.
1874 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1875 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1876 * w32font.c (w32font_list_family, w32font_text_extents)
1877 (w32font_list_internal, w32font_match_internal)
1878 (w32font_open_internal, compute_metrics, Fx_select_font):
1879 Likewise.
1880 * w32menu.c (set_frame_menubar, add_menu_item)
1881 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1882 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1883 * w32uniscribe.c (uniscribe_list_family): Likewise.
1884 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1885 * window.c (make_window, replace_window, set_window_buffer)
1886 (Fsplit_window): Likewise.
1887 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1888 (add_to_log, message3, x_consider_frame_title)
1889 (append_space_for_newline, extend_face_to_end_of_line)
1890 (decode_mode_spec_coding, init_glyph_string): Likewise.
1891 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1892 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1893 (face_attr_equal_p, make_realized_face, make_face_cache)
1894 (free_realized_faces, lookup_named_face, smaller_face)
1895 (face_with_height, lookup_derived_face)
1896 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1897 (Finternal_set_font_selection_order, realize_default_face)
1898 (compute_char_face, face_at_buffer_position)
1899 (face_for_overlay_string, face_at_string_position, merge_faces):
1900 Likewise.
1901 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1902 (Fx_window_property, x_create_tip_frame)
1903 (Fx_backspace_delete_keys_p): Likewise.
1904 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1905 (xfont_text_extents): Likewise.
1906 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1907 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1908 * xselect.c (x_queue_event, x_get_window_property)
1909 (receive_incremental_selection): Likewise.
1910 * xsmfns.c (x_session_check_input): Likewise.
1911 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1912 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1913 Likewise.
1914 * character.h (BCOPY_SHORT): Removed.
1915 * config.in: Regenerate.
1916 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1917 * emacs.c (main) [PROFILING]: Don't declare
1918 dump_opcode_frequencies.
1919 * lisp.h (safe_bcopy): Remove declaration.
1920 (memset) [!HAVE_MEMSET]: Declare.
1921 (memcpy) [!HAVE_MEMCPY]: Likewise.
1922 (memmove) [!HAVE_MEMMOVE]: Likewise.
1923 (memcmp) [!HAVE_MEMCMP]: Likewise.
1924 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1925 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1926 Don't define.
1927 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1928 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1929 (BCOPY_DOWNWARD_SAFE): Don't define.
1930 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1931 (memcpy) [!HAVE_MEMCPY]: Define.
1932 (memmove) [!HAVE_MEMMOVE]: Define.
1933 (memcmp) [!HAVE_MEMCMP]: Define.
1934
cb768704
J
19352010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1936
1937 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1938 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1939 New functions.
cb768704
J
1940 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1941 select on empty input mask.
1942 (init_process): Initialize kbd_is_on_hold to 0.
1943
1944 * process.h (hold_keyboard_input, unhold_keyboard_input)
1945 (kbd_on_hold_p): Declare.
1946
1947 * keyboard.c (input_available_signal): Declare.
1948 (kbd_buffer_nr_stored): New function.
1949 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1950 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1951 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1952 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1953 (tty_read_avail_input): If input is on hold, return.
1954 Don't read more that free slots in kbd_buffer (Bug#6571).
1955
3a8ce822
EZ
19562010-07-07 Eli Zaretskii <eliz@gnu.org>
1957
1958 * msdos.h:
1959 * msdos.c:
1960 * dosfns.c:
1961 * w16select.c: Convert function definitions to ANSI C.
1962
a628ad9d
JB
1963 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1964 Remove unused prototypes.
3a8ce822 1965
cf84bb53
JB
19662010-07-07 Juanma Barranquero <lekktu@gmail.com>
1967
1968 * coding.c, sysdep.c: Convert some more functions to standard C.
1969
1a4990fb
JB
19702010-07-07 Juanma Barranquero <lekktu@gmail.com>
1971
1972 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1973 (encode_coding_object): Use SPECPDL_INDEX.
1974 (syms_of_coding): Use DOS_NT.
1975
c0f2f16b
DN
19762010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1977
48fb6855
DN
1978 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1979
c0f2f16b
DN
1980 Make the function member of Lisp_Subr use standard C prototypes.
1981 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1982 (DECL_ALIGN): Add a cast for the function.
1983 * eval.c (Feval, Ffuncall): Use the proper type for each type
1984 function call.
1985
67aecef9
CY
19862010-07-06 Chong Yidong <cyd@stupidchicken.com>
1987
1988 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1989 fringe face id, so face-remapping-alist works (Bug#6091).
1990
b56ceb92
JB
19912010-07-06 Juanma Barranquero <lekktu@gmail.com>
1992
1993 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1994 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1995 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1996
7af07b96
AS
19972010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1998
1999 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2000 * lisp.h: Declare x_get_keysym_name.
2001 * keyboard.c (modify_event_symbol): Don't declare
2002 x_get_keysym_name here.
2003
69e24e34
DN
20042010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2005
2006 * ecrt0.c: Revert conversion to standard C.
2007
d3da34e0 20082010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2009
2010 * vm-limit.c (memory_warnings):
2011 * keyboard.c (modify_event_symbol):
2012 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2013 (round2, emacs_rint):
2014 * process.c (send_process, old_sigpipe): Convert function
2015 definitions and declarations to standard C.
2016
20172010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2018
2019 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2020 * xdisp.c: Convert function definitions to standard C.
2021
2022 * cm.c (cmputc): Arg C is now int, not char.
2023 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2024
00be444c
J
20252010-07-05 James Cloos <cloos@jhcloos.com>
2026
2027 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2028
2029 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2030 _NET_WM_ICON_NAME atoms.
2031
2032 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2033 and _NET_WM_ICON_NAME properties, too, matching what is
2034 done in the Gtk+ case.
2035
e4c8d29a
J
20362010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2037
ff919460
J
2038 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2039
e4c8d29a
J
2040 * xsmfns.c (SSDATA): New macro.
2041 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2042 passed to strlen/strcpy/strcat.
2043 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2044 7:th arg to XChangeProperty to (unsigned char *)
2045
2046 * xsettings.c (something_changedCB, parse_settings)
2047 (apply_xft_settings): Reformat prototype.
2048 (something_changedCB, init_gconf): Remove unused variable i.
2049 (read_settings): Remove unused variable long_len.
2050
2051 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2052 (xg_get_image_for_pixmap, create_dialog)
2053 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2054 (menuitem_highlight_callback, make_menu_item)
2055 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2056 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2057 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2058 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2059 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2060 (xg_tool_bar_item_expose_callback): Reformat prototype.
2061 (xg_update_menubar): GList *group => GSList *group.
2062 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2063 before use.
2064 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2065 to GTK_IMAGE (wimage).
2066
dd4c5104
DN
20672010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2068
898b4c5c
DN
2069 * atimer.c: Use "" instead of <> for local includes for
2070 consistency with the rest of the code.
2071
dd4c5104
DN
2072 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2073 * xrdb.c (get_system_name):
2074 * window.c (shrink_windows):
2075 * syntax.c (forw_comment):
2076 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2077 (ins_del_costs):
2078 * mem-limits.h (start_of_data):
2079 * lread.c (readevalloop):
2080 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2081 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2082 * frame.c (x_get_focus_frame):
2083 * floatfns.c (fmod_float):
2084 * fileio.c (choose_write_coding_system):
2085 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2086 (malloc_initialize_hook, sort_args, synchronize_locale):
2087 * doprnt.c (doprnt):
2088 * dired.c (compile_pattern):
2089 * data.c (fmod_float):
2090 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2091 (map_char_table_for_charset):
2092 * charset.c (define_charset_internal):
2093 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2094 to standard C.
2095
9a39b306 20962010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2097 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2098
2099 * lread.c (read1): Fix up last change to not mess up `c'.
2100
e6cb2cbb
JB
21012010-07-04 Juanma Barranquero <lekktu@gmail.com>
2102
2103 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2104
438105ed
JB
21052010-07-04 Juanma Barranquero <lekktu@gmail.com>
2106
2107 Fix prototypes.
2108
e5447b22 2109 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2110 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2111 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2112 arg, as required by internal_condition_case_1.
dcc7404b 2113 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2114 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2115 (analyse_first): Fix "const const".
e5447b22 2116 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2117 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2118 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2119
971de7fb
DN
21202010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2121
2122 * alloc.c: Convert function definitions to standard C.
2123 * atimer.c:
2124 * bidi.c:
2125 * bytecode.c:
2126 * callint.c:
2127 * callproc.c:
2128 * casefiddle.c:
2129 * casetab.c:
2130 * category.c:
2131 * ccl.c:
2132 * character.c:
2133 * charset.c:
2134 * chartab.c:
2135 * cmds.c:
2136 * coding.c:
2137 * composite.c:
2138 * data.c:
2139 * dbusbind.c:
2140 * dired.c:
2141 * dispnew.c:
2142 * doc.c:
2143 * doprnt.c:
2144 * ecrt0.c:
2145 * editfns.c:
2146 * fileio.c:
2147 * filelock.c:
2148 * filemode.c:
2149 * fns.c:
2150 * font.c:
2151 * fontset.c:
2152 * frame.c:
2153 * fringe.c:
2154 * ftfont.c:
2155 * ftxfont.c:
2156 * gtkutil.c:
2157 * indent.c:
2158 * insdel.c:
2159 * intervals.c:
2160 * keymap.c:
2161 * lread.c:
2162 * macros.c:
2163 * marker.c:
2164 * md5.c:
2165 * menu.c:
2166 * minibuf.c:
2167 * prefix-args.c:
2168 * print.c:
2169 * ralloc.c:
2170 * regex.c:
2171 * region-cache.c:
2172 * scroll.c:
2173 * search.c:
2174 * sound.c:
2175 * strftime.c:
2176 * syntax.c:
2177 * sysdep.c:
2178 * termcap.c:
2179 * terminal.c:
2180 * terminfo.c:
2181 * textprop.c:
2182 * tparam.c:
2183 * undo.c:
2184 * unexelf.c:
2185 * window.c:
2186 * xfaces.c:
2187 * xfns.c:
2188 * xfont.c:
2189 * xftfont.c:
2190 * xgselect.c:
2191 * xmenu.c:
2192 * xrdb.c:
2193 * xselect.c:
2194 * xsettings.c:
2195 * xsmfns.c:
2196 * xterm.c: Likewise.
2197
ae492bec
EZ
21982010-07-03 Eli Zaretskii <eliz@gnu.org>
2199
76ea4cc9
EZ
2200 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2201 frames other than the initial one. Fix reversal of colors when
2202 `reverse' is specified in the frame parameters. Call
2203 update_face_from_frame_parameter instead of
2204 internal-set-lisp-face-attribute. Initialize screen colors from
2205 initial_screen_colors[] when f->default_face_done_p is zero,
2206 instead of depending on being called with default-frame-alist as
2207 the alist argument.
2208
2209 * xfaces.c (update_face_from_frame_parameter): Move out of
2210 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2211 with HAVE_WINDOW_SYSTEM.
2212
1e6255ae
EZ
2213 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2214 to menu-bar-mode, if not set in the frame parameters or in
2215 default-frame-alist.
2216
ae492bec
EZ
2217 * w32console.c (sys_tputs): Adjust argument list to prototype in
2218 term.c.
2219
3a35a84c
JB
22202010-07-03 Juanma Barranquero <lekktu@gmail.com>
2221
2222 * lisp.h (memory_warnings): Fix prototype.
2223
2224 * cm.h (evalcost): Fix prototype.
2225
2226 * cm.c (evalcost): Fix arg type.
2227
c532d349
DN
22282010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2229
2230 * term.c (term_clear_mouse_face, Fidentity):
2231 * syssignal.h (signal_handler_t):
2232 * lisp.h (memory_warnings):
2233 * coding.h (preferred_coding_system):
2234 * cm.h (evalcost):
2235 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2236
c0b36d46
EZ
22372010-07-02 Eli Zaretskii <eliz@gnu.org>
2238
2239 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2240 from prototypes.
2241
2242 * msdos.h (load_pixmap): Don't define away.
2243
383e0970
J
22442010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2245
f57e2426
J
2246 * lisp.h:
2247 * atimer.h: Remove define for P_.
2248
2249 * alloc.c: Remove __P and P_ from .c and .m files.
2250 * atimer.c:
2251 * buffer.c:
2252 * callint.c:
2253 * category.c:
2254 * charset.c:
2255 * chartab.c:
2256 * cm.c:
2257 * coding.c:
2258 * composite.c:
2259 * data.c:
2260 * dired.c:
2261 * dispnew.c:
2262 * doc.c:
2263 * editfns.c:
2264 * emacs.c:
2265 * eval.c:
2266 * fileio.c:
2267 * filelock.c:
2268 * fns.c:
2269 * font.c:
2270 * fontset.c:
2271 * frame.c:
2272 * ftfont.c:
2273 * ftxfont.c:
2274 * gmalloc.c:
2275 * gtkutil.c:
2276 * image.c:
2277 * indent.c:
2278 * intervals.c:
2279 * keyboard.c:
2280 * keymap.c:
2281 * lread.c:
2282 * marker.c:
2283 * menu.c:
2284 * minibuf.c:
2285 * print.c:
2286 * process.c:
2287 * scroll.c:
2288 * search.c:
2289 * sound.c:
2290 * strftime.c:
2291 * syntax.c:
2292 * sysdep.c:
2293 * term.c:
2294 * terminal.c:
2295 * textprop.c:
2296 * unexalpha.c:
2297 * w32console.c:
2298 * w32fns.c:
2299 * w32font.c:
2300 * w32menu.c:
2301 * w32term.c:
2302 * w32uniscribe.c:
2303 * window.c:
2304 * xdisp.c:
2305 * xfaces.c:
2306 * xfns.c:
2307 * xfont.c:
2308 * xftfont.c:
2309 * xmenu.c:
2310 * xselect.c:
2311 * xterm.c: Likewise.
2312
383e0970 2313 Remove P_ and __P macros.
f57e2426
J
2314 * atimer.h: Remove P_ and __P macros.
2315 * buffer.h:
383e0970
J
2316 * category.h:
2317 * ccl.h:
2318 * character.h:
2319 * charset.h:
2320 * cm.h:
2321 * coding.h:
2322 * composite.h:
2323 * dispextern.h:
2324 * disptab.h:
9e892c8d 2325 * dosfns.h:
383e0970
J
2326 * font.h:
2327 * fontset.h:
2328 * frame.h:
2329 * gtkutil.h:
2330 * indent.h:
2331 * intervals.h:
2332 * keyboard.h:
2333 * keymap.h:
2334 * lisp.h:
2335 * macros.h:
2336 * md5.h:
2337 * menu.h:
2338 * msdos.h:
2339 * nsterm.h:
2340 * puresize.h:
2341 * region-cache.h:
2342 * syntax.h:
2343 * syssignal.h:
2344 * systime.h:
2345 * termhooks.h:
9e892c8d 2346 * w32font.h:
383e0970
J
2347 * w32term.h:
2348 * widget.h:
2349 * window.h:
2350 * xgselect.h:
2351 * xsettings.h:
2352 * xterm.h: Likewise.
2353
98601119
DN
23542010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2355
d9170db5
DN
2356 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2357
98601119
DN
2358 Cleanup old code.
2359 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2360 * syssignal.h: Remove code for Lynx, not supported anymore.
2361 * vm-limit.c: Remove unused code the depends on emacs not being
2362 defined and NO_LIM_DATA being defined.
2363 * mem-limits.h: Remove dead code.
2364
1f984e12
J
23652010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2366
c49d071a
J
2367 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2368
9d5405ec
J
2369 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2370 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2371
7a18115b
J
2372 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2373 parameters, they are already absolute.
2374
a628ad9d
JB
2375 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2376 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2377
a628ad9d 2378 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2379
a628ad9d
JB
2380 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2381 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2382
a628ad9d
JB
2383 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2384 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2385
c1ef4455
CY
23862010-06-30 Chong Yidong <cyd@stupidchicken.com>
2387
2388 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2389 check default-frame-alist.
2390
ce8f5a9a
AS
23912010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2392
2393 * process.c (create_process): Avoid using invalid file descriptors.
2394
2395 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2396
bf935339
J
23972010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2398
2399 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2400 Improve documentation. Return font regardless of use_system_font.
2401 (syms_of_xsettings): Improve documentation for font-use-system-font.
2402
7c33a057
CY
24032010-07-10 Chong Yidong <cyd@stupidchicken.com>
2404
2ec1b5ee
CY
2405 * xfaces.c (realize_face): Garbage the frame if a face is removed
2406 (Bug#6593).
2407
24082010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2409
2410 * keyboard.c: Remove duplicate <setjmp.h>.
2411 (read_key_sequence): Remove volatile qualifiers.
2412
24132010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2414
2415 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2416 (struct glyph_row): New members left_fringe_offset and
2417 right_fringe_offset.
2418
2419 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2420 specially.
2421 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2422 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2423
2424 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2425 Take account of bitmap offset.
2ec1b5ee
CY
2426 (draw_window_fringes): Take account of window vscroll.
2427 (update_window_fringes): Likewise. Extend top-aligned top indicator
2428 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2429 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2430 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2431
24322010-07-04 Juanma Barranquero <lekktu@gmail.com>
2433
2434 * w32fns.c (Qtooltip): Declare.
2435 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2436
24372010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2438
2439 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2440 grab on just Press (Bug#6499).
2441
24422010-07-02 Chong Yidong <cyd@stupidchicken.com>
2443
2444 * frame.c (Qtooltip): New var.
2445 (delete_frame): Use it. Fix faulty if statement. Don't update
2446 mode line for tooltip frames. Suggested by Martin Rudalics.
2447
2448 * xfns.c (x_create_tip_frame):
2449 * w32fns.c (x_create_tip_frame): Use it.
2450
24512010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2452
2453 * xftfont.c (xftfont_open): Check font width one by one also when
2454 spacing is dual.
2455
2456 * ftfont.c (ftfont_open): Ditto.
2457
6259c2ec
GM
24582010-06-30 Glenn Morris <rgm@gnu.org>
2459
a46007e9
GM
2460 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2461
6259c2ec
GM
2462 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2463
2464 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2465 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2466 * s/darwin.h (SYSTEM_MALLOC):
2467 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2468
5d1d3d04
J
24692010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2470
2471 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2472 (ns_get_screen): Don't assign integer to f.
2473 (Fx_display_color_cells): Declarations before statements.
2474
e547b051
J
24752010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2476
5fc8e5bc
J
2477 * xfns.c (x_default_font_parameter): Remove got_from_system
2478 (Bug#6526).
2479
e547b051
J
2480 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2481 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2482 defines based on what configure finds.
2483
2484 * xterm.c (XTflash): Use gtk_widget_get_window.
2485 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2486 gtk_adjustment_get_page_size.
2487 (handle_one_xevent): Use gtk_widget_get_mapped.
2488 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2489 messages.
2490
2491 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2492
2493 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2494 HAVE_GTK_FILE_SELECTION_NEW.
2495
2496 * gtkutil.c (xg_display_open, xg_display_close): Remove
2497 HAVE_GTK_MULTIDISPLAY, it is always defined.
2498 (xg_display_open): Return type is void.
2499 (gtk_widget_set_has_window)
2500 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2501 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2502 (gtk_adjustment_set_page_increment)
2503 (gtk_adjustment_get_step_increment): #define these if not found
2504 by configure.
2505 (remove_submenu): New define based on Gtk+ version.
2506 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2507 gtk_widget_get_window.
2508 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2509 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2510 (create_dialog): Use gtk_dialog_get_action_area and
2511 gtk_dialog_get_content_area.
2512 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2513 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2514 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2515 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2516 g_object_ref and g_object_unref.
2517 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2518 gtk_widget_get_sensitive.
2519 (xg_update_submenu): Use remove_submenu.
2520 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2521 properties instead to get old x and y position.
2522 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2523 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2524 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2525 (xg_get_tool_bar_widgets): New function.
2526 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2527 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2528 (toolbar_set_orientation): New #define based on if configure
2529 finds gtk_orientable_set_orientation.
2530 (xg_create_tool_bar): Call toolbar_set_orientation.
2531 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2532 instead of gtk_box_pack_start_defaults.
2533
b9229673
CY
25342010-06-28 Chong Yidong <cyd@stupidchicken.com>
2535
2536 * cmds.c (Fdelete_backward_char): Move into Lisp.
2537
bbc803b0
DN
25382010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2539
2540 * s/freebsd.h (BSD4_2): Remove redundant definition.
2541 bsd-common.h defines it already.
2542
6431f2e6
CY
25432010-06-27 Chong Yidong <cyd@stupidchicken.com>
2544
2545 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2546 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2547 tool-bar-mode, which are now set using these X resources at
2548 startup, to determine the defaults (Bug#2249).
2549
2550 * w32fns.c (Fx_create_frame):
2551 * nsfns.m (Fx_create_frame): Likewise.
2552
2553 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2554
8c079ebb
JB
25552010-06-24 Juanma Barranquero <lekktu@gmail.com>
2556
2557 * gtkutil.c (xg_update_scrollbar_pos):
2558 Avoid C99 mid-block variable declaration.
2559
e9b7ab96
JD
25602010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2561
bc869eca
JD
2562 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2563
2b7e356a 2564 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2565
2566 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2567 if height is less than scroll bar min size.
2568 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2569
e9b7ab96
JD
2570 * xfns.c (x_default_font_parameter): Try to open font from system
2571 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2572
a628ad9d 25732010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2574
2575 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2576
70c4cfbb
EZ
25772010-06-20 Eli Zaretskii <eliz@gnu.org>
2578
2579 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2580 most-positive-fixnum, be extra accurate when scrolling window
2581 start, to avoid missing the cursor line.
2582
ad5a12b5
EZ
25832010-06-19 Eli Zaretskii <eliz@gnu.org>
2584
2585 * xdisp.c (try_scrolling): Compute the limit for searching point
2586 in forward scroll from scroll_max, instead of an arbitrary limit
2587 of 10 screen lines. See
2588 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2589 and
2590 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2591 for details.
2592
2a64315a 25932010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2594
2595 * editfns.c (Fbyte_to_string): Pacify compiler.
2596
288cf4e9
SM
25972010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2598
2599 * lread.c (read1): Phase out old-style backquotes a bit more.
2600
6e6e5760
EZ
26012010-06-12 Eli Zaretskii <eliz@gnu.org>
2602
cbc4fd20
EZ
2603 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2604 bidimirror.h.
2605
2606 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2607
317fbf33
EZ
2608 * bidi.c (bidi_initialize): Remove explicit initialization of
2609 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2610 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2611 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2612
2613 * biditype.h: New file.
2614
cbc4fd20
EZ
2615 * bidimirror.h: New file.
2616
6e6e5760
EZ
2617 * window.c (syms_of_window): Doc fix (bug#6409).
2618
4176cba2
RF
26192010-06-12 Romain Francoise <romain@orebokech.com>
2620
2621 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2622 ediff-hook.
2623
cb4bfcb5
GM
26242010-06-10 Glenn Morris <rgm@gnu.org>
2625
64c60c2f
GM
2626 * editfns.c (Fbyte_to_string): Pacify compiler.
2627
cb4bfcb5
GM
2628 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2629
2ec1b5ee
CY
26302010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2631
2632 * alloc.c (Fmake_byte_code): Don't access undefined argument
2633 (Bug#6517).
2634
26352010-06-25 Chong Yidong <cyd@stupidchicken.com>
2636
2637 * xdisp.c (next_element_from_image): Ensure that after-strings are
2638 read the next time we hit handle_stop (Bug#1336).
2639
26402010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2641
2642 * lread.c (read1): Signal error if #s is not followed by paren.
2643
26442010-06-19 Chong Yidong <cyd@stupidchicken.com>
2645
2646 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2647
2648 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2649
26502010-06-15 Glenn Morris <rgm@gnu.org>
2651
2652 * editfns.c (Fbyte_to_string): Pacify compiler.
2653
e454a4a3
SM
26542010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2655
2656 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2657 Check `object's type before accessing its guts.
2658
c1b1acc2
DN
26592010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2660
2661 * s/usg5-4.h: Fix previous change.
2662 Suggested by Lawrence Mitchell <wence@gmx.li>
2663
657d4c0b
AS
26642010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2665
2666 * minibuf.c (Fall_completions): Add more checks.
2667
9b27fd9f
JB
26682010-06-08 Juanma Barranquero <lekktu@gmail.com>
2669
2670 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2671
a99ebb40
DN
26722010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2673
d7c5d87d
DN
2674 * lread.c (X_OK): Remove, unused.
2675
0263a941
DN
2676 * dispnew.c: Remove obsolete comment.
2677
a99ebb40
DN
2678 Remove INCLUDED_FCNTL.
2679 * xterm.c (INCLUDED_FCNTL):
2680 * callproc.c (INCLUDED_FCNTL):
2681 * alloc.c (INCLUDED_FCNTL):
2682 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2683 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2684
13b5221f
MR
26852010-06-07 Martin Rudalics <rudalics@gmx.at>
2686
2687 * window.c (Fselect_window): Move `record_buffer' up to the
2688 beginning of this function, so the buffer gets recorded
2689 even if the selected window does not change.
2690 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2691
5220357f
JB
26922010-06-07 Juanma Barranquero <lekktu@gmail.com>
2693
2694 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2695 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2696
3085237c
DN
26972010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2698
2699 Remove BSTRING related code, all platforms define it.
2700 * s/usg5-4.h (BSTRING): Remove definition.
2701 * s/template.h (BSTRING):
2702 * s/msdos.h (BSTRING):
2703 * s/ms-w32.h (BSTRING):
2704 * s/hpux10-20.h (BSTRING):
2705 * s/gnu-linux.h (BSTRING):
2706 * s/darwin.h (BSTRING):
2707 * s/cygwin.h (BSTRING):
2708 * s/bsd-common.h (BSTRING):
2709 * s/aix4-2.h (BSTRING): Likewise.
2710 * sysdep.c: Remove code depending on BSTRING not being defined.
2711
409f2919
JB
27122010-06-05 Juanma Barranquero <lekktu@gmail.com>
2713
2714 Remove obsolete macro BASE_LEADING_CODE_P.
2715 * character.h (BASE_LEADING_CODE_P): Remove.
2716 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2717 * buffer.c (Fset_buffer_multibyte):
2718 * indent.c (scan_for_column, compute_motion):
2719 * insdel.c (count_combining_before, count_combining_after):
2720 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2721
087fc47a
JB
27222010-06-04 Juanma Barranquero <lekktu@gmail.com>
2723
2724 Turn `directory-sep-char' into a noop.
2725
2726 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2727 (DIRECTORY_SEP): Define unconditionally.
2728
2729 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2730
2731 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2732 call dostounix_filename directly.
2733
2734 * fileio.c (CORRECT_DIR_SEPS): Remove.
2735 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2736 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2737 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2738 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2739
2740 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2741 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2742
0eb7675e
AS
27432010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2744
a628ad9d
JB
2745 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2746 (Bug#6346)
0eb7675e 2747
78edd3b7
JB
27482010-06-03 Juanma Barranquero <lekktu@gmail.com>
2749
2750 * ccl.c (Fccl_program_p): Fix typo in docstring.
2751
eb697db5
DN
27522010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2753
2754 Move UNEXEC definition to autoconf.
2755 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2756 * s/sol2-10.h (UNEXEC):
2757 * s/irix6-5.h (UNEXEC):
2758 * s/hpux10-20.h (UNEXEC):
2759 * s/gnu-linux.h (UNEXEC):
2760 * s/darwin.h (UNEXEC):
2761 * s/cygwin.h (UNEXEC):
2762 * s/bsd-common.h (UNEXEC):
2763 * s/aix4-2.h (UNEXEC):
2764 * m/alpha.h (UNEXEC): Likewise.
2765 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2766
aa3830c4
JB
27672010-06-03 Juanma Barranquero <lekktu@gmail.com>
2768
2769 Remove obsolete pre-unicode2 macros.
2770 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2771 * composite.c (composition_reseat_it):
2772 * data.c (Faset):
2773 * fns.c (Ffillarray):
2774 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2775 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2776
d234d13e
JL
27772010-06-03 Juri Linkov <juri@jurta.org>
2778
2779 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2780 (Fswitch_to_buffer): Remove unused variable `err'.
2781
0d4bcf4d
GM
27822010-06-03 Glenn Morris <rgm@gnu.org>
2783
e23dc1e2
GM
2784 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2785
05b09564
GM
2786 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2787 now that AH_BOTTOM does it.
2788
824e2978
GM
2789 * m/hp800.h (HAVE_ALLOCA):
2790 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2791
0d4bcf4d
GM
2792 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2793 Remove NOT_C_CODE tests, it is always true now.
2794
c55d2abf
DN
27952010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2796
08a494a3
DN
2797 Fix config.h includes.
2798 * xsettings.c:
2799 * xgselect.c:
2800 * nsterm.m:
2801 * nsselect.m:
2802 * nsimage.m:
2803 * nsfont.m:
2804 * nsfns.m:
2805 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2806 other files do.
2807
75934b1d
DN
2808 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2809
9f32a766
DN
2810 * s/sol2-6.h: Remove obsolete comments.
2811
c55d2abf
DN
2812 Remove unnecessary alloca.h includes.
2813 * keymap.c: Do not include alloca.h, config.h does that.
2814 * sysdep.c: Likewise. Do not define fwrite, not used.
2815
06ac62b4
SM
28162010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2817
2818 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2819 the HAVE_TERMIO where it belongs (bug#6149).
2820
1ab8293c
SM
28212010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2822
2823 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2824 of bug#6305).
2825
6dcfd253
EZ
28262010-05-30 Eli Zaretskii <eliz@gnu.org>
2827
2828 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2829 state is always cached (bug#6306).
2830
6d26bbb2
EZ
28312010-05-29 Eli Zaretskii <eliz@gnu.org>
2832
06fa4a23
EZ
2833 Fix cursor motion in bidi-reordered continued lines.
2834 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2835 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2836 over continuation lines in bidi-reordered buffers. Return
2837 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2838 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2839
f5783df3
MA
28402010-05-28 Michael Albinus <michael.albinus@gmx.de>
2841
2842 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2843
7d56b2dd
KH
28442010-05-28 Kenichi Handa <handa@m17n.org>
2845
2846 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2847 Don't sheck SPEC if it is nil.
2848 (font_list_entities): Call font_delete_unmatched if
b925d231 2849 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2850
e58d4ff7
GM
28512010-05-28 Glenn Morris <rgm@gnu.org>
2852
2853 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2854
f1a5d776
CY
28552010-05-27 Chong Yidong <cyd@stupidchicken.com>
2856
2857 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2858 whether to trash.
2859 (internal_delete_file, Frename_file): Callers changed.
2860 (delete_by_moving_to_trash): Doc fix.
2861 (Fdelete_directory_internal): Don't move to trash.
2862
2863 * callproc.c (delete_temp_file):
2864 * buffer.c (Fkill_buffer): Callers changed.
2865
2866 * lisp.h: Update prototype.
2867
f44a59e6
CY
28682010-05-27 Chong Yidong <cyd@stupidchicken.com>
2869
2870 * xdisp.c (redisplay_window): After redisplay, check if point is
2871 still valid before setting it (Bug#6177).
2872
81ac4f35
GM
28732010-05-27 Glenn Morris <rgm@gnu.org>
2874
2875 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2876 Convert comments to Makefile format.
2877
2878 * Makefile.in (bootstrap-clean): No more Makefile.c.
2879
ccd89fb3
GM
28802010-05-26 Glenn Morris <rgm@gnu.org>
2881
90278cb6
GM
2882 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2883 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2884
ccd89fb3
GM
2885 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2886 Remove.
2887 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2888
b7050583
KH
28892010-05-26 Kenichi Handa <handa@m17n.org>
2890
2891 * composite.c (composition_compute_stop_pos): Fix condition for
2892 backward scanning.
2893
e5458003
GM
28942010-05-25 Glenn Morris <rgm@gnu.org>
2895
c345fe90
GM
2896 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2897 Move before TEMACS_LDFLAGS.
2898 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2899 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2900
2e0689ab
GM
2901 * Makefile.in (NOT_C_CODE): No longer define.
2902 (config.h): No longer include.
2903
8009a5e8
GM
2904 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2905 variables it may reference.
2906
e5458003
GM
2907 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2908 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2909
10f72a37
KH
29102010-05-25 Kenichi Handa <handa@m17n.org>
2911
2912 * dispextern.h (struct composition_it): New members rule_idx and
2913 charpos.
2914
2915 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2916 that the character positions of IT point the last character of the
2917 current grapheme cluster.
2918 (next_element_from_composition): Don't change character positions
2919 of IT.
2920 (append_composite_glyph): Set glyph->charpos to
2921 it->cmp_it.charpos.
2922
2923 * composite.c (autocmp_chars): Change the first argument to RULE,
2924 and try composition with RULE only.
2925 (composition_compute_stop_pos): Record the index number of the
2926 composition rule in CMP_IT->rule_idx.
2927 (composition_reseat_it): Call autocmp_chars repeatedly until the
2928 correct rule of the composition is found.
2929 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2930 is at the last character of the current grapheme cluster when
2931 CMP_IT->reversed_p is nonzero.
2932
171eda53 29332010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2934
171eda53
SM
2935 * editfns.c (Fbyte_to_string): New function.
2936
66a9f7f4
SM
29372010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2938
2939 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2940 Suggested by Masatake YAMATO <yamato@redhat.com>.
2941
d8c315d1
EZ
29422010-05-23 Eli Zaretskii <eliz@gnu.org>
2943
171eda53 2944 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2945
f5b416d2 29462010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2947
2948 * s/netbsd.h: If terminfo is found, use it in preference to
2949 termcap. (Bug#6190) [Backport from trunk]
2950
0416466c
EZ
29512010-05-19 Eli Zaretskii <eliz@gnu.org>
2952
11117830 2953 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2954
2955 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2956 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2957 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2958 and maxpos members instead of start.pos and end.pos, respectively.
2959
2960 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2961 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2962 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2963 (try_window_reusing_current_matrix, try_window_id):
2964 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2965 (init_from_display_pos, init_iterator): Use EMACS_INT for
2966 character and byte positions.
66a9f7f4 2967 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2968 arguments for minimum and maximum buffer positions seen by
2969 display_line for this row. Don't use iterator to find the
2970 position following the maximum one; instead, increment the
11117830
EZ
2971 position found by display_line directly. Fix logic; eol_pos
2972 should be tested before the rest. Handle the case of characters
2973 delivered from display vector (bug#6036). Fix tests related to
2974 it->method. Handle the truncated_on_right_p rows.
2975 (RECORD_MAX_MIN_POS): New macro.
2976 (display_line): Use it to record the minimum and maximum buffer
2977 positions for glyphs in the row being assembled. Record the
2978 position of the newline that terminates the line. If word wrap is
2979 in effect, restore minimum and maximum positions seen up to the
2980 wrap point, when iterator returns to it.
2981 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2982 row and cursor not already at point. Restore original pre-bidi
2983 code for unidirectional buffers.
d36fe237
EZ
2984
2985 * dispnew.c (increment_row_positions, check_matrix_invariants):
2986 Increment and check row->start.pos and row->end.pos, in addition
2987 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2988
11117830
EZ
2989 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2990 Display truncated_on_left_p and truncated_on_right_p flags.
2991 Formatting fixes.
2992 (pmtxrows): Display the ordinal number of each row. Don't display
2993 rows beyond the last one.
2994
2995 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2996 it is not copied by bidi_copy_it.
2997
6e83d800
EZ
29982010-05-22 Eli Zaretskii <eliz@gnu.org>
2999
3000 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3001 (Bug#6237)
3002
110683ad
CY
30032010-05-22 Chong Yidong <cyd@stupidchicken.com>
3004
3005 * image.c (Fimage_flush): Rename from image-refresh.
3006
98fe5161
CY
30072010-05-21 Chong Yidong <cyd@stupidchicken.com>
3008
3009 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3010 just one window.
3011
3012 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3013 (clear_image_cache): If the number of cached images is unusually
3014 large, decrease the cache eviction delay (Bug#6230).
3015
e8752c66
GM
30162010-05-21 Glenn Morris <rgm@gnu.org>
3017
66dbf213
GM
3018 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3019 Move these rules to ns.mk.
3020 * ns.mk: New file.
3021
04384b2d
GM
3022 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3023
e8752c66
GM
3024 * Makefile.in (CANNOT_DUMP): New, set by configure.
3025 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3026
2e2bbddb
JL
30272010-05-20 Juri Linkov <juri@jurta.org>
3028
3029 * fileio.c (Fdelete_file): Change interative spec to use
3030 `read-file-name' like in `find-file-read-args' where the default
3031 value is `default-directory' instead of `buffer-file-name'.
3032 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3033
31c4aaf6
KR
30342010-05-20 Kevin Ryde <user42@zip.com.au>
3035
3036 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3037 (Voverriding_terminal_local_map, Vsystem_key_alist)
3038 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3039
9d5cf9b6
GM
30402010-05-20 Glenn Morris <rgm@gnu.org>
3041
3042 * Makefile.in (DEPDIR): New constant.
3043 (DEPFLAGS): Set with configure, not cpp.
3044 (MKDEPDIR): New, set by configure.
3045 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3046 (clean): Use $DEPDIR.
3047 (deps_frag): Include from configure.
3048 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3049 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3050
ead6f8f5
EZ
3051 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3052 reallocation of the cache. (Bug#6210)
3053
7f34aec3
GM
30542010-05-19 Glenn Morris <rgm@gnu.org>
3055
d494e8f2
GM
3056 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3057
c1d0dcfd
GM
3058 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3059 (GNULIB_VAR): Remove.
3060 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3061
3062 * m/ibms390x.h (LINKER):
3063 * m/macppc.h (LINKER) [GNU_LINUX]:
3064 * s/aix4-2.h (ORDINARY_LINK):
3065 * s/cygwin.h (LINKER):
3066 * s/darwin.h (ORDINARY_LINK):
3067 * s/gnu.h (ORDINARY_LINK):
3068 * s/netbsd.h (LINKER):
3069 * s/usg5-4.h (ORDINARY_LINK):
3070 Move to configure.
3071
7f34aec3
GM
3072 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3073
754790b6
CY
30742010-05-18 Chong Yidong <cyd@stupidchicken.com>
3075
3076 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3077 prevent stack overflow if number of arguments is too large
3078 (Bug#6214).
3079
161e44d1
JB
30802010-05-18 Juanma Barranquero <lekktu@gmail.com>
3081
3082 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3083
be4ff9da
GM
30842010-05-18 Glenn Morris <rgm@gnu.org>
3085
9539dc5d
GM
3086 * s/gnu-linux.h: Combine two conditionals.
3087
3088 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3089 $(POST_ALLOC_OBJ).
3090
40dc6bf4
GM
3091 * Makefile.in (RALLOC_OBJ): New, set by configure.
3092 (rallocobj): Replace with the previous variable.
3093 (otherobj): Use $RALLOC_OBJ.
3094
3095 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3096 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3097
be4ff9da
GM
3098 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3099 (gmallocobj, vmlimitobj): Replace with previous two variables.
3100 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3101
16455a85
GM
31022010-05-17 Glenn Morris <rgm@gnu.org>
3103
3104 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3105 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3106
5fdb7468
GM
31072010-05-16 Glenn Morris <rgm@gnu.org>
3108
7ca1f3f9
GM
3109 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3110
7541dad5
GM
3111 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3112
da53fab9
GM
3113 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3114 trailing "/".
3115
b02a6645
GM
3116 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3117 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3118
8877ca0f
GM
3119 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3120 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3121 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3122 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3123 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3124
5fdb7468
GM
3125 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3126 Remove ${STARTFLAGS}, nothing ever sets it.
3127
95adb4b1
DN
31282010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3129
3130 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3131
676b6304
GM
31322010-05-16 Glenn Morris <rgm@gnu.org>
3133
9beab9ce
GM
3134 * Makefile.in (LIBX_BASE): Always define.
3135
8a95f0e7
GM
3136 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3137
676b6304
GM
3138 * Makefile.in (LIBXT): Always define.
3139
6e546d18
GM
31402010-05-15 Glenn Morris <rgm@gnu.org>
3141
4235ca47 3142 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3143
6e546d18
GM
3144 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3145 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3146
8c5ff6dd
KR
31472010-05-15 Ken Raeburn <raeburn@raeburn.org>
3148
560bb7ae 3149 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3150 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3151
8b4eb796
KR
3152 * emacs.c (main): Initialize initial-environment and
3153 process-environment before generating from env, not after.
3154
8c5ff6dd
KR
3155 Handle --version reasonably in CANNOT_DUMP configuration.
3156 * emacs.c (emacs_version, emacs_copyright): New string variables.
3157 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3158 (syms_of_emacs): Defvar them, and initialize them from the C
3159 string variables.
3160 (main): If initialization hasn't been done, print initial version
3161 info from the C strings, instead of starting an interactive session.
3162
dbd3f723
EZ
31632010-05-15 Eli Zaretskii <eliz@gnu.org>
3164
d20e1419
EZ
3165 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3166 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3167 (bidi_paragraph_init): Remove redundant assertion that we are at
3168 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3169
3170 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3171 (syms_of_xdisp): Defsubr it.
3172
d36fe237
EZ
3173 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3174
dbd3f723
EZ
3175 * Makefile.in: Fix MSDOS-related comments.
3176
02be533b
GM
31772010-05-15 Glenn Morris <rgm@gnu.org>
3178
1a82cca9
GM
3179 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3180 (really-lwlib, really-oldXMenu): Always define.
3181 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3182
3df7b338
GM
3183 * Makefile.in: Simplify cpp conditional.
3184
2b5f541b
GM
3185 * Makefile.in (${ns_appdir}): Simplify using umask.
3186
02be533b
GM
3187 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3188
4e2db1fe
SM
31892010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3190
3191 * eval.c (specbind): Remove left-over duplicate test.
3192 Disallow let-binding frame-local vars. Add comment.
3193
4b292a22
EZ
31942010-05-14 Eli Zaretskii <eliz@gnu.org>
3195
2fe72643 3196 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3197 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3198 (bidi_init_it): Call it.
3199 (bidi_cache_iterator_state): Enlarge the cache if needed.
3200
4e2db1fe 3201 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3202 bidi_get_next_char_visually. All callers changed.
3203
82ebc97b
KH
32042010-05-14 Kenichi Handa <handa@m17n.org>
3205
3206 * dispextern.h (struct composition_it): New member reversed_p.
3207
3208 * composite.c (composition_compute_stop_pos): Search backward if
3209 ENDPOS < CHARPOS.
3210 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3211 Set CMP_IT->reversed_p.
b4b6e17e 3212 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3213
4e2db1fe
SM
3214 * xdisp.c (set_iterator_to_next):
3215 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3216 scanning backward. Call composition_compute_stop_pos if scan
3217 direction is changed.
3218 (next_element_from_buffer): Call composition_compute_stop_pos with
3219 negative ENDPOS if we are scanning backward.
3220 (next_element_from_composition): Pay attention to
3221 IT->cmp_it.reversed_p.
3222
0e5d7800
KH
32232010-05-14 Kenichi Handa <handa@m17n.org>
3224
560bb7ae 3225 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3226
cb027b32
GM
32272010-05-14 Glenn Morris <rgm@gnu.org>
3228
177b0288
GM
3229 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3230
fbc00890
GM
3231 * Makefile.in (mktime, X11, register): Move undefs to configure.
3232
f14d1dfd
GM
3233 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3234 (MSDOS_X_OBJ): New variable.
3235 (MSDOS_SUPPORT_REAL): New constant.
3236 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3237 (obj): Use MSDOS_X_OBJ.
3238 (lisp): Use MSDOS_SUPPORT as a variable.
3239
11842bd8
GM
3240 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3241 (GPM_MOUSE_SUPPORT): Now it's a constant.
3242 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3243 not cpp.
3244
489d31a4 3245 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3246 (ns_appresdir): Remove, unused.
e20f1f07 3247
489d31a4
GM
3248 * Makefile.in (SHELL): Move outside cpp section.
3249
cb027b32
GM
3250 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3251
5a903aa9
GM
32522010-05-13 Glenn Morris <rgm@gnu.org>
3253
3369c79f
GM
3254 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3255 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3256
d5e982a6
GM
3257 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3258 HAVE_WINDOW_SYSTEM must be too.
3259
6192e163
GM
3260 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3261 (lisp): Remove WINNT_SUPPORT.
3262
472c5d6b
GM
3263 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3264 Let configure set these variables (to empty) in this case as well.
3265
0116466b
GM
3266 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3267 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3268
5a903aa9
GM
3269 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3270 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3271 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3272 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3273 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3274 the values output by configure.
5a903aa9
GM
3275 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3276
1a0d7c06
GM
32772010-05-12 Glenn Morris <rgm@gnu.org>
3278
b5457f14
GM
3279 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3280 (LINKER_WAS_SPECIFIED): Remove.
3281
1a0d7c06
GM
3282 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3283 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3284 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3285 * s/cygwin.h (LIB_GCC):
3286 * s/freebsd.h (LIB_GCC):
3287 * s/gnu-linux.h (LIB_GCC):
3288 * s/msdos.h (LIB_GCC):
3289 * s/netbsd.h (LIB_GCC):
3290 Move to configure.
3291
3ffd4615 32922010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3293
3294 * ftfont.c: Fix incorrect parentheses of #if condition for
3295 definining M17N_FLT_USE_NEW_FEATURE.
3296
acddf8ae
GM
32972010-05-11 Glenn Morris <rgm@gnu.org>
3298
3299 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3300 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3301
ae5e04fa
EZ
33022010-05-10 Eli Zaretskii <eliz@gnu.org>
3303
3304 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3305 unibyte buffers. See
3306 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3307
7490175b
GM
33082010-05-10 Glenn Morris <rgm@gnu.org>
3309
97efb629
GM
3310 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3311 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3312 (LIBES): Use LIBS_SYSTEM as a variable.
3313 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3314 * s/aix4-2.h (LIBS_SYSTEM):
3315 * s/freebsd.h (LIBS_SYSTEM):
3316 * s/hpux10-20.h (LIBS_SYSTEM):
3317 * s/sol2-6.h (LIBS_SYSTEM):
3318 * s/unixware.h (LIBS_SYSTEM):
3319 Move to configure.
3320
7490175b
GM
3321 * s/aix4-2.h (MAIL_USE_LOCKF):
3322 * s/bsd-common.h (MAIL_USE_FLOCK):
3323 * s/darwin.h (MAIL_USE_FLOCK):
3324 * s/gnu-linux.h (MAIL_USE_FLOCK):
3325 * s/irix6-5.h (MAIL_USE_FLOCK):
3326 * s/template.h (MAIL_USE_FLOCK):
3327 Move to configure.
3328
0235128c 33292010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3330
3331 * Version 23.2 released.
3332
0235128c 33332010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3334
3335 * composite.c (autocmp_chars): Save point as marker before calling
3336 auto-composition-function (Bug#5984).
3337
3338 * lisp.h (restore_point_unwind): Add prototype.
3339
3340 * fileio.c (restore_point_unwind): Remove static attribute.
3341
0235128c 33422010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3343
3344 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3345 new feature of libotf and m17n-flt.
0235128c
SM
3346 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3347 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3348 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3349 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3350 that OUT is NULL. Use OTF_drive_gsub_with_log and
3351 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3352 OTF_drive_gpos.
3353 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3354 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3355 Setup mflt_enable_new_feature and mflt_try_otf.
3356
4721152c
J
33572010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3358
3359 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3360
3361 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3362 box and toolbar (Bug #6139).
3363 (xg_create_tool_bar): Remove comment (Bug #6139).
3364 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3365 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3366
ee0a16cf
JB
33672010-05-08 Juanma Barranquero <lekktu@gmail.com>
3368
3369 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3370 Update dependencies.
3371
96d79611
EZ
33722010-05-08 Eli Zaretskii <eliz@gnu.org>
3373
3374 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3375 R2L lines.
3376
40c17879
GM
33772010-05-08 Glenn Morris <rgm@gnu.org>
3378
7b42b29f
GM
3379 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3380
40c17879
GM
3381 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3382 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3383 (termcapobj): Replace with TERMCAP_OBJ.
3384 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3385 (LIBES): Use LIBS_TERMCAP as a variable.
3386
3387 * s/freebsd.h (osreldate.h): No longer include, since this file
3388 does not use __FreeBSD_version any more.
3389
3390 * s/aix4-2.h (TERMINFO):
3391 * s/cygwin.h (TERMINFO):
3392 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3393 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3394 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3395 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3396 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3397 * s/irix6-5.h (TERMINFO):
3398 * s/netbsd.h (LIBS_TERMCAP):
3399 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3400 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3401 * s/usg5-4.h (TERMINFO):
3402 Move to configure.
3403
94b612ad
SM
34042010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3405
3406 * eval.c (unbind_to): Don't unbind a local binding into the global
3407 binding when the local binding disappeared. Inversely, don't unbind
3408 a global binding into a newly created local binding.
3409 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3410 can specify the frame to use, when applicable. Adjust callers.
3411
15e12598 34122010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3413 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3414
3415 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3416
f724825e
EZ
34172010-05-07 Eli Zaretskii <eliz@gnu.org>
3418
5cba3209
EZ
3419 * w32fns.c: Include w32.h.
3420 (Fw32_shell_execute): Decode the error message before passing it
3421 to `error'. (Bug#6126)
3422
d16bdfc3
EZ
3423 * msdos.c (dos_set_window_size):
3424 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3425 instead of `XSYMBOL (foo)->value'.
3426
59d93e87
EZ
34272010-05-07 Eli Zaretskii <eliz@gnu.org>
3428
9fdec8bc
EZ
3429 Fix the MS-DOS build, broken by autoconfiscation.
3430
3431 * Makefile.in: Don't use Make-style comments past the "start of
3432 cpp stuff" line.
3433 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3434
3435 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3436 edited directly by msdos/sed1v2.inp).
f724825e 3437
2f86b22b
GM
34382010-05-07 Glenn Morris <rgm@gnu.org>
3439
3440 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3441 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3442 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3443 move out of cpp section.
3444 * s/freebsd.h (LD_SWITCH_SYSTEM):
3445 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3446 * s/netbsd.h (LD_SWITCH_SYSTEM):
3447 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3448
49ebbd65
DN
34492010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3450
3451 Define LIB_STANDARD and START_FILES using autoconf.
3452 * s/usg5-4.h (LIB_STANDARD):
3453 * s/netbsd.h (START_FILES):
3454 * s/irix6-5.h (LIB_STANDARD):
3455 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3456 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3457 * s/freebsd.h (START_FILES):
3458 * s/darwin.h (START_FILES):
3459 * s/cygwin.h (START_FILES):
3460 * s/aix4-2.h (LIB_STANDARD):
3461 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3462 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3463 autoconf, not cpp.
3464
d43c06d6
DN
34652010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3466
28823648
DN
3467 Remove NEED_BSDTTY and NEED_UNISTD_H.
3468 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3469 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3470 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3471 <sys/ptyio.h> and <unistd.h>.
3472
aca00430
DN
3473 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3474
d43c06d6
DN
3475 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3476 * s/gnu.h (START_FILES): Remove empty definition.
3477
3e56b11d
JD
34782010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3479
3480 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3481
e3cf0cde
GM
34822010-05-06 Glenn Morris <rgm@gnu.org>
3483
3484 * Makefile.in (CPP, LN_S): Remove unused variables.
3485
774b9a60
SM
34862010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3487
3488 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3489
4ab92842
LM
34902010-05-05 Lawrence Mitchell <wence@gmx.li>
3491
3492 * m/sparc.h: Fix typo in earlier change.
3493
178f2507
SM
34942010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3495
3496 Misc tweaks.
3497 * eval.c (Fdefvaralias): Remove unintended nested if.
3498 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3499
80f00217 35002010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3501
3502 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3503
ef03a4e6
DN
35042010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3505
58eb6cf0
DN
3506 Remove BSD_PGRPS.
3507 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3508 * s/gnu-linux.h (BSD_PGRPS): Remove.
3509 * term.c (dissociate_if_controlling_tty):
3510 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3511 (init_sys_modes, reset_sys_modes):
3512 * emacs.c (main):
3513 * callproc.c (Fcall_process, child_setup): Remove code depending
3514 on BSD_PGRPS.
3515
ef03a4e6
DN
3516 Remove POSIX_SIGNALS.
3517 * s/usg5-4.h (POSIX_SIGNALS):
3518 * s/netbsd.h (POSIX_SIGNALS):
3519 * s/msdos.h (POSIX_SIGNALS):
3520 * s/ms-w32.h (POSIX_SIGNALS):
3521 * s/hpux11.h (POSIX_SIGNALS):
3522 * s/gnu.h (POSIX_SIGNALS):
3523 * s/gnu-linux.h (POSIX_SIGNALS):
3524 * s/freebsd.h (POSIX_SIGNALS):
3525 * s/darwin.h (POSIX_SIGNALS):
3526 * s/cygwin.h (POSIX_SIGNALS):
3527 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3528 * s/unixware.h:
3529 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3530 * process.c (create_process):
3531 * syssignal.h:
3532 * sysdep.c (wait_for_termination, init_signals):
3533 * process.c (create_process):
3534 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3535 remove all code that assumes the contrary.
3536
49628785
GM
35372010-05-04 Glenn Morris <rgm@gnu.org>
3538
27a2cdfc
GM
3539 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3540 variable.
3541 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3542 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3543 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3544 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3545 LD_SWITCH_SYSTEM_tmp.
3546 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3547 New variables, set by configure.
3548
eb21eab5
GM
3549 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3550 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3551 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3552 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3553 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3554
49628785
GM
3555 * s/aix4-2.h (C_SWITCH_SYSTEM):
3556 * m/alpha.h (C_SWITCH_MACHINE):
3557 Move to configure.in.
3558 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3559 New variables, set by configure.
3560 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3561 $c_switch_machine and $c_switch_system.
3562
7dff330b
DN
35632010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3564
3565 * s/hpux10-20.h (LIB_STANDARD): New definition.
3566 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3567 on it, not used anymore.
3568
53967e09
CY
35692010-05-03 Chong Yidong <cyd@stupidchicken.com>
3570
3571 * eval.c (internal_condition_case_n): Rename from
3572 internal_condition_case_2.
3573 (internal_condition_case_2): New function.
3574
3575 * xdisp.c (safe_call): Use internal_condition_case_n.
3576
3577 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3578 (internal_delete_file, Frename_file): Callers changed.
3579
3580 * buffer.c (Fkill_buffer):
3581 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3582
3583 * lisp.h: Update prototypes.
3584
3dee6fdb
GM
35852010-05-03 Glenn Morris <rgm@gnu.org>
3586
3587 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3588 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3589 (LIBXT): Set with configure, not cpp.
3590 (LIBX): Remove.
3591 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3592
a101e0fb
DN
35932010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3594
3595 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3596 The FreeBSD is not needed, the default works, Solaris version is
3597 not needed, and the remaining case is not supported by configure.
3598
f63d0028
JD
35992010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3600
3601 * xsmfns.c (CHDIR_OPT): New define.
3602 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3603 restarting emacs.
3604
3605 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3606 shut_down_emacs.
3607
3608 * emacs.c (USAGE1): Mention --chdir.
3609 (main): Handle --chdir.
3610 (standard_args): Add --chdir.
3611 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3612 #5552).
3613
e4814a9f
DN
36142010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3615
cd03c74a
DN
3616 Remove LD_SWITCH_MACHINE.
3617 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3618 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3619
c3a398a1
DN
3620 Clean up IRIX code.
3621 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3622 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3623
87e7285c
DN
3624 Clean up AIX code.
3625 * m/ibmrs6000.inp: Remove file, unused.
3626 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3627 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3628 definition ...
3629 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3630
80f00217
JB
3631 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3632 unused.
e4814a9f 3633
59ca28de
EZ
36342010-05-01 Eli Zaretskii <eliz@gnu.org>
3635
197daef4
EZ
3636 Emulate POSIX_SIGNALS on MS-Windows.
3637
3638 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3639 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3640
3641 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3642 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3643 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3644
80f00217
JB
3645 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3646 New stubs.
197daef4 3647
af7c7572
EZ
3648 Miscellaneous fixes of bidi display.
3649
59ca28de
EZ
3650 * xdisp.c (find_row_end): New function, refactored from display_line.
3651 (display_line): Use it.
017ea819
EZ
3652 (extend_face_to_end_of_line): In almost-filled rows, extend only
3653 if the row is R2L and not continued.
166e930d 3654 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3655 Preserve overlay and string info in row->end.
166e930d
EZ
3656 (insert_left_trunc_glyphs): Support addition of left truncation
3657 glyphs to R2L rows.
b47e0dcf 3658 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3659 glyph between adjacent windows. Fix a crash when a display string
3660 is continued to the next line. Don't return zero if cursor was
3661 found by `cursor' property of a display string.
b47e0dcf
EZ
3662 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3663 test for that explicitly.
59ca28de 3664
7acac9f4
GM
36652010-05-01 Glenn Morris <rgm@gnu.org>
3666
3667 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3668 for clarity.
3669 (OTHER_OBJ): Remove.
3670 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3671 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3672
45841e65
KK
36732010-05-01 Karel Klíč <kklic@redhat.com>
3674
3675 * fileio.c (Ffile_selinux_context): Context functions may return null.
3676
afc61943
DN
36772010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3678
80f00217 3679 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3680
5a1bb006
GM
36812010-04-30 Glenn Morris <rgm@gnu.org>
3682
3683 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3684 (OTHER_OBJ): Define as a separate variable, for clarity.
3685
210af043
J
36862010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3687
3688 * xsettings.c: include limits.h and update file comment.
3689
0a7df391
GM
36902010-04-30 Glenn Morris <rgm@gnu.org>
3691
d5096f16
GM
3692 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3693 Set with configure, not cpp.
3694 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3695
7eb1ac33
GM
3696 * Makefile.in (mallocobj): Remove.
3697 (otherobj): Simplify using @OTHER_OBJ@.
3698
517d086b
GM
3699 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3700 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3701 Don't bother making nsgui.h dependency platform-specific.
3702
0a7df391
GM
3703 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3704
d6d23852
SM
37052010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3706
d2630aef
SM
3707 * process.c (read_process_output, exec_sentinel): Don't burp if the
3708 sentinel/filter kills the current buffer (bug#6060).
3709
f9dddf52 3710 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3711 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3712 Remove unused var `args'.
3713 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3714 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3715 * doc.c (store_function_docstring): Use XSETCAR.
3716
f1e3642a
GM
37172010-04-28 Glenn Morris <rgm@gnu.org>
3718
faf535f8
GM
3719 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3720 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3721
c40f9449
GM
3722 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3723
658f86ca
GM
3724 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3725 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3726
bc0b5f61
GM
3727 * Makefile.in (FONT_OBJ): New, set by configure.
3728 (FONT_DRIVERS): Use $FONT_OBJ.
3729
294c50a0
GM
3730 * Makefile.in (LIBXMU): Set with configure, not cpp.
3731 * s/aix4-2.h (LIBXMU):
3732 * s/hpux10-20.h (LIBXMU):
3733 Remove definition, now set in configure.
3734
e6ec4e99
GM
3735 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3736
f1e3642a
GM
3737 * m/amdx86-64.h [i386]: Move this test to configure.in.
3738
c6ea2936
GM
37392010-04-27 Glenn Morris <rgm@gnu.org>
3740
8fdac2c3
GM
3741 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3742 * s/unixware.h (NEED_LIBW): Remove definition.
3743
986fb647
GM
3744 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3745 (TOOLKIT_LIBW): New, set by configure.
3746 (@X_TOOLKIT_TYPE@): No longer define it.
3747
c6ea2936
GM
3748 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3749 (MOTIF_LIBW): Set with configure, not cpp.
3750 * s/aix4-2.h (LIB_MOTIF):
3751 * s/gnu-linux.h (LIB_MOTIF):
3752 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3753
aaa36002
DN
37542010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3755
3756 Reduce CPP usage.
3757 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3758 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3759 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3760 definitions and undefs. Inline definitions in the only user.
3761 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3762
b678dd8b
GM
37632010-04-27 Glenn Morris <rgm@gnu.org>
3764
76cda504
GM
3765 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3766 since the defaults (set by the system file) are fine in most cases.
3767 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3768 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3769 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3770 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3771 Remove definitions, since they are set correctly in s/gnu-linux.h.
3772 * s/freebsd.h (START_FILES, LIB_STANDARD):
3773 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3774 * s/hpux10-20.h (START_FILES):
3775 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3776 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3777
b678dd8b
GM
3778 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3779 (MOTIF_LIBW): Use $LIBXP.
3780 (otherobj): Use $WIDGET_OBJ.
3781
9452ded1
DN
37822010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3783
7e10844c
DN
3784 * Makefile.in (LIBS_MACHINE): Remove, unused.
3785
9452ded1
DN
3786 Use autoconf instead of cpp for LIB_MATH.
3787 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3788 * s/cygwin.h (LIB_MATH): Likewise.
3789 * Makefile.in (LIB_MATH): Do not define with cpp.
3790 (LIBES): Use autoconf for LIB_MATH.
3791
fcebfc6a
KH
37922010-04-26 Kenichi Handa <handa@m17n.org>
3793
3794 * composite.c (Ffind_composition_internal): Fix the return value
3795 for an automatic composition.
3796
39e2ad1b
DN
37972010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3798
3799 Remove all NO_ARG_ARRAY uses.
3800 * fns.c (concat2, concat3, nconc2):
3801 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3802 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3803 * m/xtensa.h (NO_ARG_ARRAY):
3804 * m/template.h (NO_ARG_ARRAY):
3805 * m/sparc.h (NO_ARG_ARRAY):
3806 * m/sh3.h (NO_ARG_ARRAY):
3807 * m/mips.h (NO_ARG_ARRAY):
3808 * m/macppc.h (NO_ARG_ARRAY):
3809 * m/iris4d.h (NO_ARG_ARRAY):
3810 * m/intel386.h (NO_ARG_ARRAY):
3811 * m/ibms390x.h (NO_ARG_ARRAY):
3812 * m/ibms390.h (NO_ARG_ARRAY):
3813 * m/ibmrs6000.h (NO_ARG_ARRAY):
3814 * m/ia64.h (NO_ARG_ARRAY):
3815 * m/hp800.h (NO_ARG_ARRAY):
3816 * m/arm.h (NO_ARG_ARRAY):
3817 * m/amdx86-64.h (NO_ARG_ARRAY):
3818 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3819
adf4f59c
EZ
38202010-04-25 Eli Zaretskii <eliz@gnu.org>
3821
6bdf5d65
EZ
3822 * xdisp.c (display_line): Don't assume 2nd call to
3823 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3824 (iterate_out_of_display_property): New function, body from pop_it.
3825 (pop_it): Use it.
adf4f59c 3826
dfbbda83
GM
38272010-04-24 Glenn Morris <rgm@gnu.org>
3828
3829 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3830 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3831 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3832 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3833
2d4018aa
EZ
38342010-04-24 Eli Zaretskii <eliz@gnu.org>
3835
a49884a6
EZ
3836 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3837 use `get_next_display_element' and `set_iterator_to_next' to
3838 advance to the next character, when looking for the character that
3839 begins the next row.
3840
76db6fcc 3841 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3842 definition of "struct Lisp_Symbol".
3843
70eab5c1
GM
38442010-04-24 Glenn Morris <rgm@gnu.org>
3845
3846 * Makefile.in (CRT_DIR): New variable, set by configure.
3847 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3848 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3849
1ad4cc3d
DN
38502010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3851
e769f484
DN
3852 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3853
4196ff33
DN
3854 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3855
879b0ee4
DN
3856 Remove redundant flags.
3857 * s/freebsd.h (C_SWITCH_SYSTEM):
3858 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3859 * s/netbsd.h (C_SWITCH_SYSTEM):
3860 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3861 of these.
3862
03cbbcb8
DN
3863 Simplify m/intel386.h.
3864 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3865 user: ecrt0.c.
3866 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3867 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3868 the only user: s/unixware.h.
3869 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3870 from m/intel386.h.
3871 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3872 moved here from m/intel386.h.
3873
1ad4cc3d
DN
3874 * m/mips.h: Remove #if 0 code.
3875
8785b888
EZ
38762010-04-23 Eli Zaretskii <eliz@gnu.org>
3877
728588cc
EZ
3878 Fix display of composed characters from L2R scripts in bidi buffers.
3879 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3880 After advancing IT past the composition, resync the bidi iterator
3881 with IT's position. (Bug#5977)
3882
a63f80b4
DN
38832010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3884
3885 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3886 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3887
ff5dec5c
SM
38882010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3889
3890 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3891
8785b888
EZ
38922010-04-23 Eli Zaretskii <eliz@gnu.org>
3893
58ccf243 3894 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3895 * xdisp.c (pop_it): When the stack is popped after displaying
3896 from a string, bidi-iterate to exit from the text portion covered
3897 by the `display' property or overlay. (Bug#5988, bug#5920)
3898
feeb1604
DN
38992010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3900
8e324eb6
DN
3901 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3902 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3903
809fcaba
DN
3904 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3905 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3906
ed710380
DN
3907 Simplify STARTFILES definition.
3908 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3909 relying on Makefile.in to define it.
3910 * s/cygwin.h (START_FILES): Likewise.
3911 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3912
feeb1604
DN
3913 Clean up Solaris code.
3914 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3915 (LIB_MOTIF): Remove, configure takes care of this.
3916 (NOT_USING_MOTIF): Remove, unused.
3917 * xrdb.c: Remove #if 0-ed #include.
3918 (SYSV): Remove conditional for old SysV.
3919 * sysdep.c (closedir): Remove conditional code for Solaris,
3920 Solaris has closedir.
3921
a0d0b563
JD
39222010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3923
3924 * xsettings.c (read_and_apply_settings): Check if current_font is
3925 NULL before strcmp (Bug#6001).
3926
56bae7c7
DN
39272010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3928
3929 Clean up HP-UX files.
3930 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3931 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3932 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3933 * s/hpux10-20.h: ... to the only user, here.
3934
372b7a95
EZ
39352010-04-21 Eli Zaretskii <eliz@gnu.org>
3936
3937 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3938 use buffer-local values of paragraph-start and paragraph-separate.
3939 <paragraph_start_re, paragraph_separate_re>: Rename from
3940 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3941 (Bug#5992)
3942
f904c0f9
JD
39432010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3944
3945 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3946 current_tool_bar_style are new.
3947 (store_config_changed_event): Rename from store_font_changed_event.
3948 (XSETTINGS_TOOL_BAR_STYLE): New define.
3949 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3950 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3951 HAVE_XFT.
3952 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3953 store_config_changed_event.
f904c0f9
JD
3954 (parse_settings): Rename from parse_xft_settings. Read
3955 non-xft xsettings outside #ifdef HAVE_XFT.
3956 (read_settings): Renamed from read_xft_settings.
3957 (apply_xft_settings): Take current settings as parameter. Do not
3958 call read_(xft)_settings.
3959 (read_and_apply_settings): New function.
3960 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3961 read_and_apply_settings if there are settings to be read.
3962 (init_xsettings): Renamed from init_xfd_settings.
3963 Call read_and_apply_settings unconditionally.
3964 (xsettings_initialize): Call init_xsettings.
3965 (Ftool_bar_get_system_style): New function.
3966 (syms_of_xsettings): Define Qmonospace_font_name and
3967 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3968 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3969 dynamic-setting.
31a01b90 3970 Move misplaced HAVE_GCONF
f904c0f9
JD
3971
3972 * xsettings.h (Ftool_bar_get_system_style): Declare.
3973
3974 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3975 Qtext, Qboth, Qboth_horiz are new.
3976 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3977 Vtool_bar_style, tool_bar_max_label_size.
3978
3979 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3980
3981 * keyboard.c: QClabel is new.
3982 (parse_tool_bar_item): Take out QClabel from tool bar items.
3983 Try to construct a label if ther is no QClabel.
3984 (syms_of_keyboard): Intern :label as QClabel.
3985
3986 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3987 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3988 New.
3989
3990 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3991 dynamic-setting.el.
3992
3993 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3994 (xg_make_tool_item, xg_show_toolbar_item): New function.
3995 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3996 Call xg_make_tool_item to make a tool bar item.
3997 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3998
3999 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4000 into account for toolbars.
4001
c632dfda
JD
40022010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4003
4004 * data.c (make_blv): Declarations before code (Bug#5993).
4005
10efe302
GM
40062010-04-21 Glenn Morris <rgm@gnu.org>
4007
4008 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4009 Define using autoconf, not cpp.
4010 (LIBXSM): New variable, set by autoconf.
4011 (LIBXT): Use $LIBXSM.
4012
4285ac5a
DN
40132010-04-21 Dan Nicolaescu <local_user@dannlt>
4014
3ec759e7
DN
4015 Remove NOMULTIPLEJOBS, unused.
4016 * s/template.h (NOMULTIPLEJOBS):
4017 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4018
4285ac5a
DN
4019 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4020 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4021 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4022 detects -znocombreloc and passes it to the linker
4023 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4024
2807228d
GM
40252010-04-21 Glenn Morris <rgm@gnu.org>
4026
4027 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4028
574c05e2
KK
40292010-04-21 Karel Klíč <kklic@redhat.com>
4030
4031 * Makefile.in (LIBSELINUX_LIBS): New.
4032 (LIBES): Add $LIBSELINUX_LIBS.
4033 * eval.c, lisp.h (call7): New function.
4034 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4035 (Ffile_selinux_context, Fset_file_selinux_context):
4036 New functions.
4037 (Fcopy_file): New parameter preserve-selinux-context.
4038 (Frename_file): Preserve selinux context when renaming by copy-file.
4039
91eac4bb 40402010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4041 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4042
50426a04
JB
4043 Don't depend on cm.c or termcap.c on Windows, use stubs.
4044 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4045 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4046 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4047 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4048 (sys_tputs, sys_tgetstr): New stubs.
4049 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4050 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4051
938efb77
JB
40522010-04-20 Juanma Barranquero <lekktu@gmail.com>
4053
4054 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4055
b4bf28b7
SM
40562010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4057
8b1e1112
SM
4058 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4059 Just signal a warning rather than an error when inside a let.
4060 (Fmake_variable_frame_local): Add the same test.
4061
933ac235
SM
4062 * font.c (syms_of_font): Make the style table vars read-only.
4063
b4bf28b7
SM
4064 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4065 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4066
4067 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4068
93d68d0c
EZ
40692010-04-20 Eli Zaretskii <eliz@gnu.org>
4070
4071 Fix R2L paragraph display on TTY.
4072
4073 * xdisp.c (unproduce_glyphs): New function.
4074 (display_line): Use it when produced glyphs are discarded from R2L
4075 glyph rows.
4076 (append_composite_glyph): In R2L rows, prepend the glyph rather
4077 than appending it.
4078
4079 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4080 rather than append it. Set up the resolved_level and bidi_type
4081 attributes of the appended glyph.
283ccc18
EZ
4082 (produce_special_glyphs): Mirror the backslash continuation
4083 character in R2L lines.
93d68d0c 4084
283ccc18 4085 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4086
283ccc18
EZ
4087 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4088 append_stretch_glyph.
4089 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4090 off-by-one error in computing x at end of text in the row.
4091 (append_stretch_glyph): In reversed row, prepend the glyph rather
4092 than append it. Set resolved_level and bidi_type of the glyph.
4093 (extend_face_to_end_of_line): If the row is reversed, prepend a
4094 stretch glyph whose width is such that the rightmost glyph will be
4095 drawn at the right margin of the window. Fix off-by-one error on
4096 TTY frames in testing whether a line needs face extension. Fix
4097 face extension at ZV. If this is the last glyph row, use
4098 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4099 region face.
4100 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4101 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4102 row->continuation_lines_width.
283ccc18
EZ
4103 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4104 are at ZV. Fixes a crash when reseated to ZV by
4105 try_window_reusing_current_matrix.
45903529
EZ
4106 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4107 which happens with R2L glyph rows. Fixes a crash when inserting a
4108 character at end of an R2L line.
283ccc18
EZ
4109 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4110 treat them as having zero-width characters. Improve comments.
4111 Don't reverse pos_before and pos_after for reversed glyph rows.
4112 Set cursor.x to negative value when the cursor might be on the
4113 left fringe.
4114 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4115 left fringe, not the right one.
f951a506
EZ
4116 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4117 (erase_phys_cursor): For reversed cursor_row, support cursor on
4118 the left fringe.
4119
283ccc18
EZ
4120 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4121 of continuation indicators on the fringes.
4122 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4123 left fringe.
4124
f951a506
EZ
4125 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4126 draw cursor on the left fringe.
4127
4128 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4129 cursor on the left fringe.
4130
f951a506
EZ
4131 * dispnew.c (update_text_area): Handle reversed desired rows when
4132 the cursor is on the left fringe.
4133 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4134 below, not by 0, for when the cursor is on the left fringe.
4135
3bb49aaf
JD
41362010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4137
4138 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4139 widget is a scrollbar.
4140
c0be27fd
KH
41412010-04-20 Kenichi Handa <handa@m17n.org>
4142
4143 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4144 only when the arg CHARSET_LIST is nil.
4145
ce5b453a
SM
41462010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4147
4148 Make variable forwarding explicit rather the using special values.
4149 Basically, this makes the structure of buffer-local values and object
4150 forwarding explicit in the type of Lisp_Symbols rather than use
4151 special Lisp_Objects for that. This tends to lead to slightly more
4152 verbose code, but is more C-like, simpler, and makes it easier to make
4153 sure we handled all cases, among other things by letting the compiler
4154 help us check it.
4155 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4156 Removing forwarding objects.
4157 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4158 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4159 explicit rather than hiding them inside Lisp_Object "values".
4160 (XFWDTYPE): New macro.
4161 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4162 (XBUFFER_LOCAL_VALUE): Remove.
4163 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4164 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4165 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4166 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4167 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4168 Remove the Lisp_Misc_* header.
4169 (struct Lisp_Buffer_Local_Value): Redefine.
4170 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4171 (struct Lisp_Misc_Any): Add filler to get the right size.
4172 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4173 Lisp_Intfwd.
4174 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4175 (DEFVAR_KBOARD): Allocate a forwarding object.
4176 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4177 (let_shadows_global_binding_p): New function.
4178 (union Lisp_Val_Fwd): New type.
4179 (make_blv): New function.
4180 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4181 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4182 (swap_in_symval_forwarding, find_symbol_value, Fset)
4183 (let_shadows_buffer_binding_p, set_internal, default_value)
4184 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4185 (Fkill_local_variable, Fmake_variable_frame_local)
4186 (Flocal_variable_p, Flocal_variable_if_set_p)
4187 (Fvariable_binding_locus):
4188 * xdisp.c (select_frame_for_redisplay):
4189 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4190 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4191 * frame.c (store_frame_param):
4192 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4193 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4194 value structure.
4195 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4196 (clone_per_buffer_values): Only adjust markers into the current buffer.
4197 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4198 (Fbuffer_local_value, set_buffer_internal_1)
4199 (swap_out_buffer_local_variables):
4200 Adapt to the new symbol value structure.
4201 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4202 (defvar_per_buffer): Take a new arg for the fwd object.
4203 (buffer_lisp_local_variables): Return a proper alist (different fix
4204 for bug#4138).
4205 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4206 (Fgarbage_collect): Don't handle buffer_defaults specially.
4207 (mark_object): Handle new symbol value structure rather than the old
4208 special Lisp_Misc_* objects.
4209 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4210 * term.c (set_tty_color_mode):
4211 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4212 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4213 a buffer_local_flags.
4214 * print.c (print_object): Get rid of impossible forwarding objects.
4215
fd3998ff
EZ
42162010-04-19 Eli Zaretskii <eliz@gnu.org>
4217
4218 * bidi.c (bidi_get_type, bidi_get_category)
4219 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4220 (bidi_type_of_next_char, bidi_level_of_next_char):
4221 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4222
e42cd1a7
JB
42232010-04-19 Juanma Barranquero <lekktu@gmail.com>
4224
4225 * dired.c (Ffile_attributes): Fix typo in docstring.
4226
6e104790 42272010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4228
4229 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4230 NSInteger (Bug#5811).
4231
6e104790 42322010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4233
4234 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4235 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4236
6e104790 42372010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4238
4239 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4240
6e104790
SM
42412010-04-19 Chong Yidong <cyd@stupidchicken.com>
4242
4243 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4244 terminal frames (Bug#5837).
4245
37dcfea0
EZ
42462010-04-19 Eli Zaretskii <eliz@gnu.org>
4247
d1da276f
EZ
4248 * .gdbinit (xsubchartable): New command.
4249
37dcfea0
EZ
42502010-04-19 Eli Zaretskii <eliz@gnu.org>
4251
4252 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4253 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4254 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4255 and
4256 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4257
e9515805
SM
42582010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4259
4260 * alloc.c (Fpurecopy): Hash-cons if requested.
4261 (syms_of_alloc): Update purify-flag docstring.
4262
22aa44a8
JD
42632010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4264
4265 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4266 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4267
ebb5722e
EZ
42682010-04-17 Eli Zaretskii <eliz@gnu.org>
4269
4270 Fix a crash when an NSM character is inserted at BEGV.
4271
4272 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4273 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4274 NEUTRAL_B or UNKNOWN_BT.
4275
0f4442ef
EZ
42762010-04-16 Eli Zaretskii <eliz@gnu.org>
4277
4278 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4279 other rows with cursor unless they are different from this row and
4280 this row is part of a continued line. (Bug#5943)
4281
7d4e45f8
DN
42822010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4283
4284 * s/freebsd.h: Restore osreldate.h include.
4285 Suggested by Naohiro Aota.
4286
5ba5ec85
J
42872010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4288
4289 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4290
20af301d
CY
42912010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4292
4293 * s/cygwin.h: Avoid linking against static libgcc.
4294
a4b000fb
JL
42952010-04-15 Juri Linkov <juri@jurta.org>
4296
4297 * window.c: Add Qscroll_command.
4298 Remove Vscroll_preserve_screen_position_commands.
4299 (window_scroll_pixel_based, window_scroll_line_based): Check the
4300 `scroll-command' property on the last command instead of searching
4301 the last command in Vscroll_preserve_screen_position_commands.
4302 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4303 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4304 (scroll-preserve-screen-position): Doc fix.
4305 (Vscroll_preserve_screen_position_commands): Remove variable.
4306
bc319ba4
DN
43072010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4308
6bb24457
DN
4309 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4310
19d4c244
DN
43112010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4312
4313 Reduce cpp use in Makefile.in.
4314 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4315 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4316 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4317 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4318 (CRT0_COMPILE): Remove, inline it in the only user.
4319
32129746
JL
43202010-04-14 Juri Linkov <juri@jurta.org>
4321
4322 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4323 `scroll-up-command' and `M-v' from `scroll-down' to
4324 `scroll-down-command'.
4325
9013a7f8
JL
43262010-04-14 Juri Linkov <juri@jurta.org>
4327
4328 * window.c (Vscroll_preserve_screen_position_commands): New variable
4329 with the default value as the list of Qscroll_down and Qscroll_up.
4330 (window_scroll_pixel_based, window_scroll_line_based): Search the
4331 last command in the list Vscroll_preserve_screen_position_commands
4332 instead of comparing with Qscroll_up and Qscroll_down.
4333
4bef8d26
JD
43342010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4335
92848133
JD
4336 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4337 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4338 does that.
4339
4bef8d26
JD
4340 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4341 to zero.
4342
58b963f7
SM
43432010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4344
84164a0d
SM
4345 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4346
2b0a91e7
SM
4347 Try to solve the problem of spurious EOF chars in long lines of text
4348 sent to interactive subprocesses.
4349 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4350 (system_process_attributes): Remove unused var `ttotal'.
4351 * process.c (send_process): Don't bother breaking long line with EOF
4352 chars when talking to ttys any more.
4353 (wait_reading_process_output): Output a warning when called in such
4354 a way that it could block without being interruptible.
4355
58b963f7
SM
4356 Try to detect file modification within the same second.
4357 * buffer.h (struct buffer): New field modtime_size.
4358 * buffer.c (reset_buffer): Initialize it.
4359 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4360 (Fverify_visited_file_modtime): Check it.
4361 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4362 (Fset_visited_file_modtime): Set (or clear) it.
4363
01f5787b
SM
43642010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4365
4366 * process.c (status_notify): Remove unused var `ro'.
4367
83725342
JD
43682010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4369
4370 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4371 more than one visual (Bug#5938).
4372
b9465836
DN
43732010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4374
50426a04
JB
4375 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4376 Undefine.
b9465836 4377
8d9c8ece
DN
43782010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4379
b1f52161
DN
4380 Remove C_SWITCH_SYSTEM_TEMACS.
4381 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4382 (malloc, realloc, free): Use emacs, not temacs for conditional
4383 definition.
4384
4385 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4386 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4387
8d9c8ece
DN
4388 Use autoconf, not cpp for some variables.
4389 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4390 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4391 (ALL_CFLAGS): Use them as make variables.
4392 (really-lwlib, really-oldXMenu): Do not pass them.
4393
1ecb2d3f
JD
43942010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4395
4396 * xmenu.c (apply_systemfont_to_dialog): New.
4397 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4398
3a4fa2f2
SM
43992010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4400
97e53006
SM
4401 * process.c (exec_sentinel): Preserve current-buffer.
4402
3a4fa2f2
SM
4403 * process.c (read_process_output): Move the save-current-buffer to
4404 apply to both the filter and the non-filter branches.
4405
88df7221
DN
44062010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4407
4408 * s/msdos.h (UNEXEC): New definition.
4409
5634ff85
YM
44102010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4411
6eff5c3d
YM
4412 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4413 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4414
4415 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4416 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4417 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4418 TRY_WINDOW_CHECK_MARGINS.
4419
4420 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4421 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4422 width only when it is for padding.
5634ff85 4423
b13aef54
J
44242010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4425
4426 * xfns.c (Fx_show_tip): Call try_window in a loop until
4427 fonts_changed_p is zero (Bug#2423).
4428
21d28484
EZ
44292010-04-08 Eli Zaretskii <eliz@gnu.org>
4430
4431 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4432 the end of TEXT_AREA. (Bug#5856)
4433
0269ef77
JD
44342010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4435
4436 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4437 HAVE_GCONF.
4438
5930fe97
EZ
44392010-04-08 Eli Zaretskii <eliz@gnu.org>
4440
4441 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4442 prev.orig_type, for resolving type of NSM. (Bug#5858)
4443
99852628
JD
44442010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4445
4446 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4447 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4448 in current_font.
4449 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4450 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4451 New functions.
4452 (syms_of_xsettings): Initialize current_font.
4453 defsubr Sfont_get_system_normal_font.
99852628 4454
686b968e
JB
4455 * xsettings.h (Ffont_get_system_normal_font)
4456 (xsettings_get_system_normal_font): Declare.
99852628
JD
4457
4458 * xfns.c (extern xlwmenu_default_font): Remove.
4459 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4460 to xlwmenu.c.
4461
4462 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4463 menu items in UTF-8.
4464
4465 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4466 (apply_systemfont_to_menu): New function.
4467 (set_frame_menubar, create_and_show_popup_menu): Call
4468 apply_systemfont_to_menu.
4469
7fc874c4
J
44702010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4471
4472 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4473 FRAME_LINE_TO_PIXEL_Y.
4474
4475 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4476 pixelwidth/height.
4477
863bf481
DN
44782010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4479
5e5a3b92
DN
4480 Simplify code for HP machines.
4481 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4482 for GNU_LINUX, not needed.
4483 (UNEXEC, NEED_BSDTTY): Move definitions...
4484 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4485
863bf481
DN
4486 * m/iris4d.h (UNEXEC): Move definition ...
4487 * s/irix6-5.h (UNEXEC): ... here.
4488
3e6bec3b
JD
44892010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4490
4491 * xfns.c (set_machine_and_pid_properties): New function.
4492 (Fx_create_frame): Call set_machine_and_pid_properties.
4493
2912322b
SM
44942010-04-03 Eli Zaretskii <eliz@gnu.org>
4495
1502b819
EZ
4496 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4497 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4498 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4499
2912322b
SM
4500 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4501 in this function. (Bug#5703)
4502
45032010-04-03 Chong Yidong <cyd@stupidchicken.com>
4504
4505 * nsterm.h: Fix last change.
4506
c435b432
DN
45072010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4508
a568f507
DN
4509 * m/intel386.h (NO_REMAP): Move definition ...
4510 * s/msdos.h (NO_REMAP): ... here.
4511
4cd9f6c2
DN
4512 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4513
c435b432
DN
4514 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4515 used on those platforms.
4516
42a2c622
DN
45172010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4518
4519 Remove extern errno declarations.
4520 * xterm.c:
4521 * xrdb.c:
4522 * w32term.c:
4523 * unexec.c:
4524 * unexaix.c:
4525 * sysdep.c:
4526 * process.c:
4527 * lread.c:
4528 * keyboard.c:
4529 * floatfns.c:
4530 * filelock.c:
4531 * fileio.c:
4532 * emacs.c (main):
4533 * ecrt0.c:
4534 * dispnew.c:
4535 * callproc.c:
4536 * buffer.c: Remove errno extern declarations.
4537 * s/netbsd.h (NEED_ERRNO): Remove.
4538
8224f93d
DN
45392010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4540
4541 Remove all uses of LIBX11_SYSTEM.
4542 * Makefile.in (LIBX11_SYSTEM): Remove.
4543 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4544 instead.
4545
814062c7
EZ
45462010-04-01 Eli Zaretskii <eliz@gnu.org>
4547
ed68db4d
EZ
4548 Remove support for DJGPP v1.x (bug#5813).
4549
4550 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4551 * s/msdos.h:
4552 * unexec.c (make_hdr, copy_text_and_data):
4553 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4554 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4555 (IT_set_terminal_modes, __write, _rename, gethostname)
4556 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4557 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4558 the value of __DJGPP__.
ed68db4d
EZ
4559 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4560 compatibility code.
8224f93d
DN
4561 * lread.c:
4562 * gmalloc.c (memalign):
4563 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4564 * emacs.c (main):
4565 * dosfns.c (init_dosfns):
ed68db4d
EZ
4566 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4567
52f4d8d5
EZ
45682010-04-01 Eli Zaretskii <eliz@gnu.org>
4569
814062c7
EZ
4570 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4571 string with `cursor' property comes from an `after-string'
4572 overlay. (Bug#5816)
4573
0dc2e11d
GM
45742010-04-01 Glenn Morris <rgm@gnu.org>
4575
4576 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4577 Define as Makefile variables.
4578 (LIBX): Use above variables rather than directly using autoconf.
4579
1d29df59
DN
45802010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4581
4582 Clean up BSD_SYSTEM use.
4583 * xterm.c:
4584 * process.c:
4585 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4586 for including <sys/ioctl.h>.
4587 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4588 code is only used for MSDOS.
4589
1546c559
JL
45902010-03-31 Juri Linkov <juri@jurta.org>
4591
4592 * image.c: Add `Qextension_data'.
4593 (syms_of_image): Initialize and staticpro `Qextension_data'.
4594 (Fimage_metadata): Rename from `Fimage_extension_data'.
4595 (gif_load): Put GIF extension data to the property
4596 `Qextension_data'.
4597
6521c534
CY
45982010-03-31 Chong Yidong <cyd@stupidchicken.com>
4599
4600 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4601 * nsterm.h: Fix prototype.
4602
52c30783
EZ
46032010-03-31 Eli Zaretskii <eliz@gnu.org>
4604
4605 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4606 trailing whitespace in right-to-left rows.
4607
855a0da7
SM
46082010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4609
4610 Get rid of the direct_output optimizations.
4611 * keyboard.c (nonundocount): Remove extern declaration.
4612 (command_loop_1): Remove brittle optimisation for cheap and
4613 common operations.
4614 * xdisp.c (redisplay_internal): Don't bother checking
4615 redisplay_performed_directly_p any more.
4616 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4617 any more.
4618 * dispnew.c (redisplay_performed_directly_p)
4619 (direct_output_for_insert, direct_output_forward_char):
4620 * dispextern.h (redisplay_performed_directly_p)
4621 (direct_output_for_insert, direct_output_forward_char): Remove.
4622 * cmds.c (nonundocount): Make it static.
4623
85738751 46242010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4625
4626 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4627
85738751 46282010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4629
4630 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4631 invisible (Bug#5766).
4632
85738751 46332010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4634
855a0da7
SM
4635 * xdisp.c (x_consider_frame_title, update_window_cursor):
4636 Remove HAVE_NS conditionals.
194d44e7 4637 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4638
4639 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4640 filename for the title.
4641 (ns_set_doc_edited): Do nothing if the selected window is a
4642 minibuffer window.
4643
4644 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4645 ns_set_doc_edited.
4646
4647 * nsterm.m: Remove unneeded prototype.
4648
85738751 46492010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4650
4651 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4652 in the DOC file. (Bug#5336)
4653
85738751 46542010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4655
4656 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4657
75d1428c
SM
46582010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4659
4660 * window.c (keys_of_window): Remove redundant/overridden bindings.
4661
82043cfb
EZ
46622010-03-30 Eli Zaretskii <eliz@gnu.org>
4663
4664 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4665 Restore original behavior when the iterator is not bidi_p.
4666
b5dd0ae7
DN
46672010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4668
4669 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4670
bd924a5d
EZ
46712010-03-30 Eli Zaretskii <eliz@gnu.org>
4672
4673 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4674 are outside the range of cached character positions.
4675
3580374b
JB
46762010-03-30 Juanma Barranquero <lekktu@gmail.com>
4677
4678 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4679
a7b02820
EZ
46802010-03-30 Eli Zaretskii <eliz@gnu.org>
4681
4682 Initial support for bidirectional editing.
4683
4684 * Makefile.in (obj): Include bidi.o.
4685 (bidi.o): New target.
4686
4687 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4688 ($(BLD)/bidi.$(O)): New target.
4689
4690 * bidi.c: New file.
4691
4692 * buffer.h (struct buffer): New members bidi_display_reordering
4693 and bidi_paragraph_direction.
4694
4695 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4696 and bidi_paragraph_direction.
4697 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4698 and bidi-paragraph-direction.
4699 (Fbuffer_swap_text): Swap the values of
4700 bidi_display_reordering and bidi_paragraph_direction.
4701
4702 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4703 (bidi_type_t, bidi_dir_t): New types.
4704 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4705 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4706 prev_stop, base_level_stop, and eol_pos.
4707 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4708 (IT_STACK_SIZE): Enlarge to 5.
4709 (struct glyph_row): New member reversed_p.
4710 <string_buffer_position>: Update prototype.
4711 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4712 glyph_row if bidi_it.paragraph_dir == R2L.
4713 (struct glyph): New members resolved_level and bidi_type.
4714
4715 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4716 processing or buffer's direction is right-to-left.
4717 (prepare_desired_row): Preserve the reversed_p flag.
4718 (row_equal_p): Compare the reversed_p attributes as well.
4719
4720 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4721 bidi_init_it and set it->paragraph_embedding from the current
4722 buffer's value of bidi_paragraph_direction.
4723 (reseat_1): Initialize bidi_it.first_elt.
4724 (set_iterator_to_next, next_element_from_buffer): Use the value of
4725 paragraph_embedding to determine the paragraph direction.
4726 (set_iterator_to_next): Under bidi reordering, call
4727 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4728 new_paragraph flag is set in the bidi iterator.
4729 (next_element_from_buffer): If bidi_it.first_elt is set,
4730 initialize paragraph direction and find the first character to
4731 display in the visual order. If reseated to a middle of a line,
4732 prime the bidi iterator starting at the line's beginning. Handle
4733 the situation where we overstepped stop_charpos due to
4734 non-linearity of the bidi iteration. Likewise for when we back up
4735 beyond the previous stop_charpos. When moving across stop_charpos,
4736 record it in prev_stop.
4737 (display_line): Set row->end and it->start for the next row to the
4738 next character in logical order. Always extend reversed_p rows to
4739 the end of line, even if they end at ZV. Copy the reversed_p flag
4740 to the next glyph row. Keep calling set_cursor_from_row for
4741 bidi-reordered rows even if we already have a possible candidate
4742 for cursor position. Set row_end after all the row's glyphs have
4743 been produced, by looping over the glyphs. Record the position
4744 after EOL in it->eol_pos, and use it to set end_pos of the last
4745 row produced for a continued line.
4746 <Qright_to_left, Qleft_to_right>: New variables.
4747 (syms_of_xdisp): Initialize and staticpro them.
4748 (string_buffer_position_lim): New function.
4749 (string_buffer_position): Most of code moved to
4750 string_buffer_position_lim. Last argument and return value are
4751 now EMACS_INT; all callers changed.
4752 (set_cursor_from_row): Rewritten to support bidirectional text and
4753 reversed glyph rows.
4754 (text_outside_line_unchanged_p, try_window_id): Disable
4755 optimizations if we are reordering bidirectional text and the
4756 paragraph direction can be affected by the change.
4757 (append_glyph, append_composite_glyph)
4758 (produce_image_glyph, append_stretch_glyph): Set the
4759 resolved_level and bidi_type members of each glyph.
4760 (append_glyph): If the glyph row is reversed, prepend the glyph
4761 rather than appending it.
4762 (handle_stop_backwards): New function.
4763 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4764 (reseat): call handle_stop_backwards to recompute prev_stop and
4765 base_level_stop for the new position.
4766 (handle_invisible_prop): Under bidi iteration, skip invisible text
4767 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4768 paragraph direction. Update IT->prev_stop after skipping
4769 invisible text.
4770 (move_it_in_display_line_to): New variables prev_method
4771 and prev_pos. Compare for strict equality in
4772 BUFFER_POS_REACHED_P.
4773 (try_cursor_movement): Examine all the candidate rows that occlude
4774 point, to return the best match. If rows are bidi-reordered
4775 and point moved backwards, back up to the row that is not a
4776 continuation line, and start looking for a suitable row from
4777 there.
4778
4779 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4780 rather than appending, if the glyph_row's reversed_p flag is set.
4781 Set the resolved_level and bidi_type members of each glyph.
4782
4783 * .gdbinit (pbiditype): New command.
4784 (pgx): Use it to display bidi level and type of the glyph.
4785 (pitx): Display some bidi information about the iterator.
4786 (prowlims, pmtxrows): New commands.
4787
32a8894e
DN
47882010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4789
4790 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4791 * s/usg5-4.h (LIBS_DEBUG):
4792 * s/irix6-5.h (C_DEBUG_SWITCH):
4793 * s/gnu-linux.h (LIBS_DEBUG):
4794 * s/darwin.h (LIBS_DEBUG):
4795 * s/bsd-common.h (LIBS_DEBUG):
4796 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4797 * m/iris4d.h (LIBS_DEBUG):
4798 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4799
4800 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4801 (LIBS_DEBUG): Remove definition.
4802
649dbf36
CY
48032010-03-27 Chong Yidong <cyd@stupidchicken.com>
4804
4805 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4806 Windows.
4807
cad4261f
YM
48082010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4809
4810 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4811 `connect' (Bug#5723).
4812
cd591dbc
HE
48132010-03-25 Helmut Eller <eller.helmut@gmail.com>
4814
4815 * process.c (Fmake_network_process): Call `select' for interrupted
4816 `connect' rather than creating new socket (Bug#5173).
4817
e867cb5d 48182010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4819
4820 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4821
4822 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4823
4824 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4825
e867cb5d 48262010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4827
4828 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4829 XLoadQueryFont.
4830
e867cb5d 48312010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4832
4833 * coding.c (decode_coding_ccl): Fix previous change for the
4834 multibyte case.
fb608df3
KH
4835 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4836 case that the output buffer is fullfilled.
4837 (encode_coding): Setup ccl program here.
fbdc1721 4838
5845f0ed
DN
48392010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4840
814fb708
DN
4841 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4842
5845f0ed
DN
4843 Simplify LIBS_MACHINE definitions.
4844 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4845 * m/iris4d.h (LIBS_MACHINE): Likewise.
4846 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4847 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4848 * s/netbsd.h: Remove commented out code.
5845f0ed 4849
b7064064
DN
48502010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4851
df7734b2
DN
4852 Remove dead code dealing with POSIX_SIGNALS.
4853 * atimer.c (set_alarm): Remove dead code, all USG systems define
4854 POSIX_SIGNALS.
4855 * data.c (arith_error): Likewise.
4856 * keyboard.c (input_available_signal, handle_user_signal)
4857 (interrupt_signal): Likewise.
4858 * process.c (sigchld_handler): Likewise.
4859 (create_process): Remove if 0 code. Remove HPUX conditional when
4860 !defined (POSIX_SIGNALS), it cannot be true.
4861 * syssignal.h: Remove USG5_4 and USG conditionals when
4862 !POSIX_SIGNALS, they cannot be true.
4863
b7064064
DN
4864 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4865 NO_SOCK_SIGIO, not used anymore.
4866
55da5ee3
DN
48672010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4868
0be96e3a
DN
4869 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4870 support vax on BSDs.
4871
55da5ee3
DN
4872 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4873 * s/aix4-2.h (ORDINARY_LINK): ... here.
4874
c0282183
AS
48752010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4876
82c3d67a
AS
4877 * Makefile.in (abs_builddir): Define.
4878 (bootstrap_exe): Use it.
4879 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4880
3613edce
SM
48812010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4882
4883 * Makefile.in (bootstrap_exe): Use an absolute name.
4884
7f110ddc
DN
48852010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4886
22e87574
DN
4887 Remove support for old GNU/Linux using libc version 5.
4888 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4889 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4890
05a670e6
DN
4891 Consolidate redundant definitions in s/bsd-common.h.
4892 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4893 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4894 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4895 doing it in all files that include this one.
4896 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4897 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4898 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4899 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4900 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4901 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4902 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4903 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4904 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4905
2968f561
DN
4906 Consolidate redundant definitions.
4907 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4908 it's undefined in all files that include this one.
4909 (POSIX_SIGNALS): Define here instead of doing it in all files that
4910 include this one.
4911 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4912 (POSIX_SIGNALS): Do not define.
4913 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4914 (POSIX_SIGNALS): Do not define.
4915 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4916 (POSIX_SIGNALS): Do not define.
4917
15d25dc0
DN
4918 Remove support for old UNIX System V systems.
4919 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4920 * s/usg-5-4-2.h: Remove.
4921
07e339e4
DN
4922 Remove support for Solaris on PPC and for old versions.
4923 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4924 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4925 that cancel each other.
4926 * s/sol2-3.h:
4927 * s/sol2-4.h:
4928 * s/sol2-5.h: Remove.
4929 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4930 (NO_REMAP): Remove, unused.
4931 (UNEXEC): Move definition ...
4932 * s/aix4-2.h (UNEXEC): ... here.
4933
7f110ddc
DN
4934 * s/openbsd.h: Remove support for non-ELF and for systems that do
4935 not support shared libraries.
4936 * s/netbsd.h:
4937 * s/freebsd.h: Likewise.
4938
605f35cd
DN
49392010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4940
4941 Remove non-working support for lynxos 3.0.
4942 * s/lynxos.h: Remove file.
4943
4944 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4945 COFF_BSD_SYMBOLS, nothing defines it anymore.
4946
aed71cf4
DN
49472010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4948
4949 Remove obsolete uses of HAVE_SHM.
4950 * emacs.c (standard_args):
4951 (Fdump_emacs):
4952 (syms_of_emacs): Remove code depending on HAVE_SHM.
4953
4954 * alloc.c: Remove HAVE_SHM dependent definition.
4955
4956 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4957
aded53ff
GM
49582010-03-18 Glenn Morris <rgm@gnu.org>
4959
17284745
GM
4960 * emacs.c (USAGE4): Hard-code bug address.
4961 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4962 (bug_reporting_address): Remove.
4963 (main): Don't call bug_reporting_address.
4964
aded53ff
GM
4965 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4966 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4967
303500aa
CY
49682010-03-15 Chong Yidong <cyd@stupidchicken.com>
4969
4970 * xfns.c (Fx_create_frame):
4971 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4972 on left.
4973
cef3058f
CY
49742010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4975
4976 * editfns.c (Fformat): Account for string precision when computing
4977 field width (Bug#5710).
4978
a647d59d
CY
49792010-03-12 Chong Yidong <cyd@stupidchicken.com>
4980
4fa42018
CY
4981 * xfns.c (Fx_create_frame): Set default to Qright.
4982
a647d59d
CY
4983 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4984 all window systems.
4985
6da23aaa
EZ
49862010-03-12 Eli Zaretskii <eliz@gnu.org>
4987
a96f6398 4988 These changes remove termcap.c from the build on Posix platforms.
83d02def 4989 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4990 (MSDOS_OBJ): ...to here.
4991 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4992 now identical to when LIBS_TERMCAP is defined.
4993
4994 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4995
4996 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4997
a96f6398 4998 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4999
288f9fc0
CY
50002010-03-10 Chong Yidong <cyd@stupidchicken.com>
5001
5002 * Branch for 23.2.
5003
d48cd3f4
SM
50042010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5005
5006 Cleanup setup of gl_state in various parts of the code.
5007 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5008 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5009 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5010 (skip_chars):
5011 * regex.c (regex_compile): Use it.
5012 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5013 it's now set in regex_compile when/if we need it.
5014
618db430
SM
50152010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5016
c0335e02
SM
5017 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5018 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5019 (QUIT): Use it to consolidate code and remove redundancy.
5020 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5021
254c06a8
SM
5022 * regex.c (regex_compile): Setup gl_state as well.
5023
618db430
SM
5024 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5025 (in_classes): Use CONSP before XCAR/XCDR.
5026
233f0c9f
CY
50272010-03-03 Chong Yidong <cyd@stupidchicken.com>
5028
5029 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5030 definitions, so that keyboard macros are correctly handled
5031 (Bug#5481).
5032
75f80e63
EZ
50332010-03-02 Eli Zaretskii <eliz@gnu.org>
5034
5035 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5036 text that could be relocated inside the call to emacs_mule_char.
5037 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5038 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5039
dcfb9bc4
KH
50402010-03-02 Kenichi Handa <handa@m17n.org>
5041
fc9a17bc
KH
5042 * character.c (parse_str_as_multibyte): Fix handling of the
5043 multibyte form of raw-bytes.
5044 (str_as_multibyte): Likewise.
5045
dcfb9bc4
KH
5046 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5047 form of raw-bytes.
5048
412c01b6
CY
50492010-02-28 Chong Yidong <cyd@stupidchicken.com>
5050
5051 * charset.c (load_charset_map_from_file)
5052 (load_charset_map_from_vector): Zero out allocated
5053 charset_map_entries before using them.
5054
df7e1ea0
AS
50552010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5056
5057 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5058
fe69a722
CY
50592010-02-27 Chong Yidong <cyd@stupidchicken.com>
5060
4ed28cf4
CY
5061 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5062 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5063
7379cfce
KH
50642010-02-26 Kenichi Handa <handa@m17n.org>
5065
f88cc4d6
KH
5066 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5067
7379cfce
KH
5068 * xdisp.c (reseat_to_string): Fix previous change.
5069
cf2fdcfb
CY
50702010-02-26 David Reitter <david.reitter@gmail.com>
5071
5072 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5073 Lisp_Object (Bug#4736).
5074
cc6c7c75
KH
50752010-02-25 Kenichi Handa <handa@m17n.org>
5076
5077 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5078
32e737d7
JD
50792010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5080
5081 * xterm.c (XTflash): Move declarations before statements.
5082
5083 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5084 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5085 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5086 (xg_create_tool_bar): Remove unused variables.
5087 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5088 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5089
676cae9f
CY
50902010-02-21 Chong Yidong <cyd@stupidchicken.com>
5091
5092 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5093
886cc2b8
SM
50942010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5095
5096 * term.c (fatal): Add a final \n if needed (bug#5596).
5097
ddb2d8e2
CY
50982010-02-18 Chong Yidong <cyd@stupidchicken.com>
5099
5100 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5101
2a4f8d3d
GM
51022010-02-18 Glenn Morris <rgm@gnu.org>
5103
5104 * callint.c (Finteractive): Doc fix.
5105
ebaf11b6
KH
51062010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5107
886cc2b8
SM
5108 * coding.c (record_conversion_result):
5109 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5110 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5111 memory allocation error.
5112
d0396581
KH
51132010-02-17 Kenichi Handa <handa@m17n.org>
5114
886cc2b8
SM
5115 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5116 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5117 (decode_coding): Setup ccl program here. Keep looping when the
5118 decoder stopped because the output buffer is
5119 fullfilled (bug#5534).
5120
5121 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5122
98599f74
JD
51232010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5124
471e4f04 5125 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5126 bug #5571.
886cc2b8 5127 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5128 overdrawn.
98599f74 5129
182659ae
JD
51302010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5131
5132 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5133 doing_interact here.
5134 (ice_connection_closed): New function.
5135 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5136 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5137 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5138 returns I/O error.
5139 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5140 bug #5512.
5141
9be32c4e 51422010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5143
5144 * nsfont.m (nsfont_open): The system's value for the font descent
5145 is negative, so round it down to avoid clipping.
5146
a2f3eb19
CY
51472010-02-06 Chong Yidong <cyd@stupidchicken.com>
5148
5149 * charset.c (load_charset_map_from_file)
5150 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5151 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5152
3088147c
CY
51532010-02-05 Chong Yidong <cyd@stupidchicken.com>
5154
5155 * charset.c (load_charset_map_from_file): Allocate large
5156 charset_map_entries structure on the heap rather than the stack.
5157 (Bug#5526).
5158
b57d9029
KH
51592010-01-31 Kenichi Handa <handa@m17n.org>
5160
5161 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5162 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5163
c67d885b
CY
51642010-01-31 Chong Yidong <cyd@stupidchicken.com>
5165
5166 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5167 <deactivated@gmail.com> (Bug#3605).
5168
8fab2362
CY
51692010-01-31 David De La Harpe Golden <david@harpegolden.net>
5170
5171 * fileio.c (Frename_file): Correctly rename symlinks to
5172 directories (Bug#5496).
5173
cb2a62f2
CY
51742010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5175
5176 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5177
944c7a26
AS
51782010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5179
5180 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5181
c024ac08
CY
51822010-01-29 Chong Yidong <cyd@stupidchicken.com>
5183
5184 * frame.c (DEFAULT_ROWS): Change default to 35.
5185
5186 * xfns.c (x_default_font_parameter): Change default XFT font to
5187 monospace-10 (Bug#3643).
5188
af93af83
EZ
51892010-01-29 Eli Zaretskii <eliz@gnu.org>
5190
5191 * w32inevt.c (key_event): Remove unnecessary comparison of
5192 event->uChar.AsciiChar with 128.
5193
ca0eb708
CY
51942010-01-28 Chong Yidong <cyd@stupidchicken.com>
5195
b242dbfc
CY
5196 * fileio.c (Frename_file): Fix last change (Bug#5487).
5197
ca0eb708
CY
5198 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5199
5200 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5201
45d45af5
JD
52022010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5203
5204 * xfns.c (Fx_create_frame): Remove window size matching code from
5205 2010-01-15.
a73f9c9d 5206 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5207
7e233730
JR
52082010-01-27 Jason Rumney <jasonr@gnu.org>
5209
5210 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5211 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5212
86e893e3
KH
52132010-01-27 Kenichi Handa <handa@m17n.org>
5214
5215 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5216 pattern string (Bug#4209).
86e893e3 5217
8719abec
CY
52182010-01-27 David De La Harpe Golden <david@harpegolden.net>
5219
5220 * fileio.c (Frename_file): Call copy-directory and
5221 delete-directory for directories, in order to handle cross-device
5222 renaming (Bug#3353).
5223
844794c8
JD
52242010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5225
aa3e13b5 5226 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5227 sizes 24 and 10. Bug #3643.
844794c8 5228
bd4b5750
SM
52292010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5230
8dc1adf6 5231 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5232 * keymap.c (shadow_lookup): Add `remap' arg.
5233 (describe_map, describe_vector): Update calls to shadow_lookup.
5234 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5235 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5236 perform remapping during shadow_lookup check of remapped_sequences.
5237
285d07e2
CY
52382010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5239
5240 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5241 png_check_sig, which has been removed in libpng 1.4.
5242
c6d09b8d
CY
52432010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5244
5245 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5246 lacks this header file).
5247
3d782998
YM
52482010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5249
5250 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5251 as in Emacs 22.
5252
2aff7c53
YM
52532010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5254
5255 * lisp.h (make_pure_string): String pointer arg now points to const.
5256
5257 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5258 args now point to const.
5259
74327f7a
EZ
52602010-01-22 Eli Zaretskii <eliz@gnu.org>
5261
5262 * lread.c (Fload): Don't treat files without .elc extension as
5263 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5264 them. (bug#5303)
5265
4d1e6632
KH
52662010-01-20 Kenichi Handa <handa@m17n.org>
5267
5268 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5269 treat the source as actual byte sequence.
5270
1fdede8f
AM
52712010-01-19 Alan Mackenzie <acm@muc.de>
5272
5273 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5274 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5275 `signal_after_change_p' to `coherent_change_p', and make the
5276 invocation of `modify_region' conditional on it.
5277
67477f30
JD
52782010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5279
5280 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5281 for debug purpose.
5282 (syms_of_xsettings): Declare xft-settings.
5283
244b023e
CY
52842010-01-18 Chong Yidong <cyd@stupidchicken.com>
5285
5286 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5287
617364fe
CY
52882010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5289
5290 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5291
4fe22cdf
CY
52922010-01-16 Chong Yidong <cyd@stupidchicken.com>
5293
5294 * emacs.c (standard_args): Adjust arg priorities to reflect how
5295 they are processed in startup.el.
5296
e118d2be
AS
52972010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5298
5299 * Makefile.in (lisp, shortlisp): Update.
5300
523ae620
SM
53012010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5302
5303 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5304 code, link the new kboard into all_kboard before running Lisp code,
5305 and protect the new terminal with GCPRO (Bug#5365).
5306 (x_term_init): Remove unused var `atom'.
5307 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5308
f0d13888
JD
53092010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5310
5311 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5312 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5313 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5314 this. Bug #3643.
f0d13888 5315
cc320f07
KH
53162010-01-15 Kenichi Handa <handa@m17n.org>
5317
5318 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5319
7ffdf101
CY
53202010-01-15 Chong Yidong <cyd@stupidchicken.com>
5321
5322 * nsterm.m (Qnone): Define.
5323
5324 * nsfns.m (Qnone): Move definition to nsterm.m.
5325
d12bd917
KH
53262010-01-14 Kenichi Handa <handa@m17n.org>
5327
5328 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5329 systems.
5330
d9a7c140
KH
53312010-01-14 Kenichi Handa <handa@m17n.org>
5332
5333 Make auto-composition work on all buffers even if they are
5334 fundamental mode.
5335
5336 * composite.c (Vauto_composition_mode): New variable.
5337 (composition_compute_stop_pos): Check Vauto_composition_mode
5338 instead of Vauto_composition_function.
5339 (composition_adjust_point, Ffind_composition_internal): Likewise.
5340 (syms_of_composite): Declare Lisp variable
5341 "auto-composition-mode" here.
5342
63286bb2
CY
53432010-01-13 Chong Yidong <cyd@stupidchicken.com>
5344
5345 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5346 during call to vendor-specific-keysyms (Bug#5365).
5347
c2623ee7
YM
53482010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5349
5350 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5351 Call SIGNAL_THREAD_CHECK (Bug#5333).
5352
5353 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5354 Call SIGNAL_THREAD_CHECK.
5355
0b5397c2
SM
53562010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5357
5358 Try to fix bug#5314. This is probably not the final word, tho.
5359 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5360 recent-auto-save-p as a side-effect.
5361 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5362 * buffer.c (Fkill_buffer, reset_buffer):
5363 * editfns.c (Fsubst_char_in_region):
5364 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5365 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5366
dc954cb2
KH
53672010-01-13 Kenichi Handa <handa@m17n.org>
5368
5369 Display buffer name, etc. in mode line by composing correctly.
5370
5371 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5372 STRING is not nil.
0b5397c2 5373 (display_mode_element): Adjust for the change of
dc954cb2
KH
5374 decode_mode_spec and display_line.
5375 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5376 (display_string): Handle the case that STRING is non-null and
5377 LISP_STRING is not nil.
5378
0b5397c2
SM
5379 * xterm.c (x_draw_composite_glyph_string_foreground):
5380 Pay attention to s->face->overstrike.
dc954cb2
KH
5381
5382 * composite.c (composition_reseat_it): Don't check PT if STRING is
5383 non nil.
5384
4a00eaca
YM
53852010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5386
5387 * keyboard.c (read_char): Don't apply previous change when current
5388 buffer is unchanged by command execution.
5389
60abb287
JD
53902010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5391
5392 * keyboard.c (read_char): Return after executing from special map.
5393
893db5bc
GM
53942010-01-12 Glenn Morris <rgm@gnu.org>
5395
5396 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5397 bug-gnu-emacs rather than emacs-pretest-bug.
5398
4d03ece0
CY
53992010-01-11 Chong Yidong <cyd@stupidchicken.com>
5400
5401 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5402 initializing the Lisp variables that depend on them.
5403
1df47e38
YM
54042010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5405
5406 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5407 Clear areas that will not be updated after change of menu bar lines.
5408 Clear the menu bar window's current matrix when the window gets empty.
5409
2f1c6384
CY
54102010-01-09 Chong Yidong <cyd@stupidchicken.com>
5411
e398c61c
CY
5412 * intervals.h, textprop.c (extend_property_ranges): Return value
5413 and args changed. Discard properties that begin at or after the
5414 new end (Bug#5306).
5415
5416 * editfns.c (Fformat): Caller changed.
5417
e5a29a10
CY
5418 * nsterm.m (ns_set_default_prefs): Delete function.
5419 (syms_of_nsterm): Initialize ns_command_modifier,
5420 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5421 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5422
2f1c6384
CY
5423 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5424 position (Bug#4040).
5425
d427a9fa
EZ
54262010-01-09 Eli Zaretskii <eliz@gnu.org>
5427
5428 * editfns.c (Ffloat_time): Doc fix.
5429
21b9df2f
JD
54302010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5431
5432 * xfns.c (Fx_create_frame): Don't create frame larger than display
5433 by default bug#3643.
5434
4b00d3b1
YM
54352010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5436
5437 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5438 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5439 windows above internal border.
5440
5441 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5442 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5443 windows above internal border.
5444
5445 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5446 tool bar windows specially.
5447
5448 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5449
5450 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5451 specially.
5452 (XTflash): Take account of menu bar height.
5453
5454 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5455 specially.
5456
5075d853
JD
54572010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5458
ac146f82 5459 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5460 also be true before we can return early (bug #5339).
5461
474217c8
CY
54622010-01-06 David Reitter <david.reitter@gmail.com>
5463
5464 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5465 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5466 (Bug#3233).
5467
c0e6d47d
JD
54682010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5469
d0cf45b7
JD
5470 * font.c (font_open_entity): Enable chache and call cached_font_ok
5471 for the driver if defined.
5472 (QCuser_spec): New symbol.
5473 (font_spec_from_name): Save name as user-spec.
5474 (font_load_for_lface): Keep user-spec instead of name.
5475 (font_open_by_name): Save name as user-spec.
5476 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5477 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5478
5479 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5480 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5481 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5482
5483 * font.h (struct font_driver): Add cached_font_ok.
5484
c0e6d47d
JD
5485 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5486
7c583cd8
JD
54872010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5488
5489 * xterm.c (x_new_font): Move code for setting rows/cols before
5490 resizing ...
ac146f82 5491 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5492
5493 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5494 (xg_frame_resized, xg_frame_set_char_size):
5495 Call xg_clear_under_internal_border.
7c583cd8 5496 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5497
03f77f0a
CY
54982010-01-05 Chong Yidong <cyd@stupidchicken.com>
5499
5500 * keyboard.c (read_key_sequence): Catch keyboard switch after
5501 making a new tty frame (Bug#5095).
5502
2a1ef5be
KH
55032010-01-05 Kenichi Handa <handa@m17n.org>
5504
5505 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5506
e3eb1dae
SM
55072010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5508
5509 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5510 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5511 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5512
777013f2
MA
55132010-01-03 Michael Albinus <michael.albinus@gmx.de>
5514
5515 * dbusbind.c (xd_add_watch): Improve debug message.
5516 (xd_remove_watch): Improve debug message. If DATA is the session
5517 bus, unset D-Bus session environment.
5518 (Fdbus_init_bus): Pass the bus as argument to
5519 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5520
8932b1c2
CY
55212010-01-01 Chong Yidong <cyd@stupidchicken.com>
5522
87231e2c
CY
5523 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5524
4801c5fa
CY
5525 * lread.c (syms_of_lread): Make it clearer that these are the
5526 names of loaded files (Bug#5068).
5527
8932b1c2
CY
5528 * eval.c (run_hook_with_args): Handle the case where the global
5529 value has the obsolete single-function form (Bug#5026).
5530
11e3c684
CY
55312009-12-27 Chong Yidong <cyd@stupidchicken.com>
5532
5533 * minibuf.c (Fall_completions): Minor optimization.
5534
5b28ce35
EZ
55352009-12-26 Eli Zaretskii <eliz@gnu.org>
5536
5ce6e4f4
JB
5537 * .gdbinit (pgx): Fix display of composite glyphs.
5538 Display cmp.from and cmp.to as well.
5539 (pitx): Fix last change.
5b28ce35 5540
bcffff46
KH
55412009-12-25 Kenichi Handa <handa@m17n.org>
5542
5543 * composite.h (composition_adjust_point): Update prototype.
5544
5545 * composite.c (composition_reseat_it): Don't make a composition
5546 spanning over point.
5547 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5548 composable characters.
5549 (composition_adjust_point): New arg NEW_PT. Callers changed.
5550
5551 * keyboard.c (command_loop_1): Force redisplay if the last point
5552 was within a composition.
5553 (adjust_point_for_property): Don't adjust point for automatic
5554 composition when called after buffer modification.
5555
3f670e9a
EZ
55562009-12-19 Eli Zaretskii <eliz@gnu.org>
5557
5ce6e4f4
JB
5558 * .gdbinit (pitx): Don't use enum names, use their values.
5559 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5560 (pgx): Don't use enum names, use their values.
5561 (pitmethod): New helper command.
5562 (pitx): Use it to display iteration method.
5563 (pgrowit): New command.
5564
ad903955
EZ
5565 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5566
3f670e9a
EZ
5567 Update dependencies in Makefile.in.
5568
5569 * Makefile.in (alloc.o): Depend on termhooks.h.
5570 (atimer.o): Depend on blockinput.h.
5571 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5572 and frame.h.
5573 (callint.o): Depend on systime.h, coding.h, and composite.h.
5574 (callproc.o): Depend on buffer.h.
5575 (casefiddle.o): Don't depend on charset.h.
5576 (casetab.o): Depend on character.h.
5577 (ccl.o): Depend on composite.h.
5578 (chartab.o): Depend on ccl.h.
5579 (cm.o): Depend on dispextern.h.
5580 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5581 (coding.o): Don't depend on $(INTERVALS_H).
5582 (composite.o): Don't depend on dispextern.h explicitly (it's in
5583 $(INTERVALS_H)). Depend on ccl.h.
5584 (data.o): Depend on systime.h, coding.h, composite.h,
5585 dispextern.h, font.h, and ccl.h.
5586 (dired.o): Depend on composite.h.
5587 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5588 composite.h (it's in $(INTERVALS_H)).
5589 (doc.o): Depend on systime.h, coding.h, and composite.h.
5590 (editfns.o): Don't depend explicitly on dispextern.h.
5591 (emacs.o): Depend on frame.h and coding.h.
5592 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5593 (fileio.o): Depend on frame.h and commands.h. Don't depend
5594 explicitly on dispextern.h.
5595 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5596 composite.h.
5597 (fns.o): Don't depend on termhooks.h.
5598 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5599 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5600 coding.h, $(INTERVALS_H), window.h, xterm.h.
5601 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5602 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5603 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5604 fontset.h, ccl.h, and ftfont.h.
5605 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5606 (gtkutil.o): Depend on dispextern.h and composite.h.
5607 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5608 termhooks.h, and ccl.h.
5609 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5610 (intervals.o): Depend on systime.h and coding.h.
5611 (keyboard.o): Depend on composite.h and coding.h.
5612 (keymap.o): Depend on coding.h and frame.h.
5613 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5614 (macros.o): Depend on systime.h, coding.h, and composite.h.
5615 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5616 and atimer.h.
5617 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5618 dispextern.h explicitly.
0b5397c2
SM
5619 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5620 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5621 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5622 (regex.o): Don't depend on charset.h.
5623 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5624 (search.o): Don't depend explicitly on composite.h.
5625 (sound.o): Depend on atimer.h and systime.h.
5626 (syntax.o): Don't depend explicitly on composite.h.
5627 (sysdep.o): Depend on coding.h and composite.h.
5628 (term.o): Depend on xterm.h and buffer.h.
5629 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5630 (textprop.o): Don't depend on dispextern.h explicitly.
5631 (undo.o): Depend on dispextern.h.
5632 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5633 dispextern.h and composite.h explicitly.
5634 (xdisp.o): Depend on ccl.h.
5635 (xfaces.o): Depend on coding.h and ccl.h.
5636 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5637 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5638 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5639 ftfont.h.
5640 (xgselect.o): New dependency.
5641 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5642 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5643 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5644 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5645 (xsmfns.o): Depend on frame.h and dispextern.h.
5646 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5647 sysselect.h.
5648
7a6f7fea
AS
56492009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5650
5651 * font.c (Fclear_font_cache): Pass correct cache argument to
5652 font_clear_cache.
5653
f4c21026
AS
56542009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5655
5656 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5657 twice.
5658
f7ab0997
CY
56592009-12-15 Chong Yidong <cyd@stupidchicken.com>
5660
5661 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5662 calling file-remote-p. Reported by Jim Meyering.
5663
fa8e045a
MA
56642009-12-15 Michael Albinus <michael.albinus@gmx.de>
5665
5666 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5667 avoid compiler warnings. (Bug #5217)
fa8e045a 5668
a63dba42
KH
56692009-12-14 Kenichi Handa <handa@m17n.org>
5670
5671 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5672 in 8-bit encoding.
5673
5ce6e4f4 56742009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5675
5676 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5677 tooltip windows.
5678
223e5fc6
JD
56792009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5680
36acb2a7
JD
5681 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5682 Xatom_net_window_type.
5683
5684 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5685 Xatom_net_window_type.
5686
b8f00677
JD
5687 * xterm.c (my_log_handler): New function.
5688 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5689 so we can filter out buggy messages. (Bug #5120).
b8f00677 5690
e5f0bc9a
JD
5691 * xterm.c (xg_scroll_callback): Parameter list changed,
5692 use parameter GtkScrollType to determine scroll/line/page.
5693 Only allow dragging if a button < 4 is grabbed (bug #5177).
5694 (xg_end_scroll_callback): New function.
5695 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5696 xg_create_scroll_bar.
5697
5698 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5699 (scroll_end_callback): Remove.
5700 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5701 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5702 bug #5177.
e5f0bc9a
JD
5703 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5704 bug #5177.
5705
5706 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5707 (xg_create_scroll_bar): Add GCallback end_callback.
5708
223e5fc6
JD
5709 * xftfont.c (QClcdfilter): New variable.
5710 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5711 (syms_of_xftfont): Initialize QClcdfilter.
5712
3c055b77
JD
57132009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5714
5715 * xsettings.c (struct xsettings): Add member seen.
5716 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5717 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5718 (apply_xft_settings): Only update Xft settings with what member seen
5719 indicates as new.
5720
05fe33ff
EZ
57212009-12-12 Eli Zaretskii <eliz@gnu.org>
5722
c4cc8b9a 5723 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5724 (struct glyph): Use EMACS_INT for charpos.
5725 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5726 region_beg_charpos, region_end_charpos,
5727 redisplay_end_trigger_charpos, and also for
5728 iterator_stack_entry.end_charpos and
5729 iterator_stack_entry.stop_charpos.
5730
e8d7886a
JD
57312009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5732
5ce6e4f4 5733 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5734 (xg_create_scroll_bar): Call scroll_end_callback on button release
5735 event (bug #5177).
5736 (xg_event_is_for_scrollbar): != replaced with ==.
5737
d0db2ec8
KH
57382009-12-12 Kenichi Handa <handa@m17n.org>
5739
5740 * ftfont.c (struct ftfont_info): New member matrix.
5741 (ftfont_open): Setup xftfont_info->matrix.
5742 (MFLTFontFT): New member matrix.
5743 (FLOOR, CEIL, ROUND): New macros.
5744 (ftfont_get_metrics): Handle matrix transformation.
5745 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5746
5747 * xftfont.c (struct xftfont_info): New member matrix.
5748 (xftfont_open): Setup xftfont_info->matrix.
5749
57502009-12-10 Kenichi Handa <handa@m17n.org>
5751
5752 * xdisp.c (append_space_for_newline): Consider face-remapping.
5753
2cc7b62f
AS
57542009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5755
b87dd913
AS
5756 * xsettings.c: Include "keyboard.h".
5757
eba5eb94
AS
5758 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5759
2cc7b62f
AS
5760 Fix implicit function declarations.
5761 * cmds.c: Include "frame.h".
5762 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5763 * frame.h: Move declaration of delete_frame outside of
5764 HAVE_WINDOW_SYSTEM.
5765
a4ef73c8
CY
57662009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5767
5768 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5769
5770 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5771 GTK builds.
5772
944a300c
AS
57732009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5774
5775 * unexelf.c (unexec): Don't search for .data twice.
5776
022eef62
CY
57772009-12-05 Chong Yidong <cyd@stupidchicken.com>
5778
426ac949
CY
5779 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5780 if push failed.
5781 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5782 of push_display_prop (Bug#5000).
5783
022eef62
CY
5784 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5785 value of font_list_entities (Bug#5085).
5786
be95bee9
JB
57872009-12-04 Juanma Barranquero <lekktu@gmail.com>
5788
5789 Fix `string-to-number' to deal consistently with integers and floats.
5790 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5791 trailing characters, not just whitespace.
5792 (read1): Pass new arg 0 to keep old behavior.
5793 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5794 trailing chars, as it is already done for integers. Doc fixes.
5795 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5796
24c2d7ce
EZ
57972009-12-04 Eli Zaretskii <eliz@gnu.org>
5798
0b5397c2
SM
5799 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5800 Delete unused enumeration value.
24c2d7ce 5801
7e694795
EZ
58022009-12-03 Eli Zaretskii <eliz@gnu.org>
5803
5804 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5805
84b31826
SM
58062009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5807
5808 * process.c (Fmake_network_process): Fix up the tests for
5809 "connectionless socket", so they DTRT for seqpacket sockets as well.
5810
f00c449b
SM
58112009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5812
5813 * process.c (Qseqpacket): New symbol.
5814 (HAVE_SEQPACKET): New macro.
5815 (Fmake_network_process): Accept new :type `seqpacket'.
5816 (init_process): Add `seqpacket' feature when applicable.
5817 (syms_of_process): Initialize Qseqpacket.
5818
8096a0ff
YM
58192009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5820
5821 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5822 if entity is Qnil.
5823
3e0de07f
SM
58242009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5825
5826 * print.c (print_preprocess): Preprocess the key_and_value table of
5827 hashtables, even tho they're "hidden" (bug#5082).
5828
abeafb2a
JD
58292009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5830
5831 * frame.c (frame_make_pointer_invisible)
5832 (frame_make_pointer_visible): Declare f before statements.
5833
4bf47195
EZ
58342009-11-28 Eli Zaretskii <eliz@gnu.org>
5835
5836 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5837 omitted dependencies on lisp.h.
5838
c525b3f2
JD
58392009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5840
ece2d4ed
JD
5841 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5842 is NULL.
5843
5844 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5845
5846 * frame.c (frame_make_pointer_invisible)
3e0de07f 5847 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5848 frame.
5849
c525b3f2
JD
5850 * search.c (simple_search): Remove warning by making *p const.
5851
2f00e299
DN
58522009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5853
5854 * xdisp.c (power_letter): Remove duplicate const.
5855
084b049b
JD
58562009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5857
a1fadc6f
JD
5858 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5859
5ce6e4f4 5860 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5861 defaults (bug #5025).
5862
28259cac
SM
58632009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5864
5865 * insdel.c (adjust_markers_for_delete): Move it in the
5866 right direction! (bug#4803)
5867
e8e14166
YM
58682009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5869
5870 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5871
5872 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5873
86677b58
GM
58742009-11-24 Glenn Morris <rgm@gnu.org>
5875
5876 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5877
581e51e8
JD
58782009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5879
cfc86c7a
JD
5880 * Makefile.in: Must create deps for ecrt0.o in its rule.
5881
581e51e8
JD
5882 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5883 because that is what Gtk+ font dialog understands.
5884
5885 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5886 of Fcopy_sequence.
5887 (font_open_by_name): Put name given into QCname for font-object returned.
5888
5889 * frame.c (x_set_font): Save original font name as frame parameter
5890 font-parameter.
5891
5892 * xsettings.c (set_default_xft_settings): New function.
5893 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5894 is found.
5895
8b264ecb
AS
58962009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5897
5898 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5899 searching backwards through multibyte buffer.
5900
872870b2
JD
59012009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5902
5903 * xterm.c: #include xgselect.h.
5904 (x_initialize): Call xgselect_initialize.
5905
5906 * xsettings.c (something_changedCB): C++ comments => C comments.
5907 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5908 does that now.
5909
5910 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5911 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5912 (scroll_bar_button_cb): Remove.
5ce6e4f4 5913 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5914 event.
5915 (xg_create_scroll_bar): Don't bind button-press-event and
5916 button-release-event.
5917
5918 * process.c: Include xgselect.h if defined (USE_GTK) ||
5919 defined (HAVE_GCONF).
5920 (wait_reading_process_output): Call xg_select for the same condition.
5921
5922 * xgselect.c (xg_select): New function to better integrate with
5923 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5924
5925 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5926
5927 * Makefile.in (XOBJ): Add xgselect.o.
5928
62a6e103
AS
59292009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5930
0b5397c2
SM
5931 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5932 Remove ignored second argument. All callers changed.
62a6e103
AS
5933 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5934 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5935 * xdisp.c (string_char_and_length): Likewise.
5936
b0ca0f33
DN
59372009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5938
5939 * xterm.c (x_new_font):
5940 * print.c (print_object):
5941 * cmds.c (Fself_insert_command): Move declarations before statements.
5942
dd5a6279
CY
59432009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5944
5945 * s/cygwin.h: Remove unneeded linker flags.
5946
4a8e097d
JD
59472009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5948
0d1d0d26
JD
5949 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5950
5951 * xsettings.h: Declare xsettings_get_system_font.
5952
5953 * xsettings.c (xsettings_get_system_font): New function.
5954 (init_gconf): No use initiating gconf unless we have Xft also.
5955 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5956 HAVE_GCONF.
5957
4a8e097d
JD
5958 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5959 add a blank entry so it doesn't collapse into nothing.
5960
8ab1650e
SM
59612009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5962
5963 * lread.c (Funintern): Comment out last change.
5964
82c602f0
RS
59652009-11-19 Richard Stallman <rms@gnu.org>
5966
5967 * lread.c (Funintern): Error if symbol is t or nil.
5968
87e32266
SM
59692009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5970
5971 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5972 representation of Lisp integers.
5973 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5974
1b9ac145
AS
59752009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5976
5977 * lisp.h: Remove declaration of Ffont_get_system_font.
5978 * xfns.c: Move include of "xsettings.h".
5979 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5980
dfb3c4c6
JD
59812009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5982
87e32266
SM
5983 * xsettings.c (something_changedCB, Ffont_get_system_font):
5984 Check use_system_font.
dfb3c4c6
JD
5985 (syms_of_xsettings): DEFVAR font-use-system-font.
5986
9370c1d8
AS
59872009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5988
25fe851a
AS
5989 * xfns.c (x_default_font_parameter): Remove dead assignment.
5990
9370c1d8
AS
5991 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5992
637fa988
JD
59932009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5994
87e32266 5995 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5996 not have FC_LCD_*. #define them if not there.
a6eb20d8 5997
87e32266 5998 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5999
637fa988
JD
6000 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6001
6002 * xterm.c (handle_one_xevent): Call xft_settings_event for
6003 ClientMessage, PropertyNotify and DestroyNotify.
6004 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6005 Call xsettings_initialize.
6006
6007 * xftfont.c (xftfont_fix_match): New function.
6008 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6009 Call xftfont_fix_match after XftFontMatch.
6010
6011 * xfont.c (xfont_driver): Initialize all members.
6012
87e32266
SM
6013 * xfns.c (x_default_font_parameter):
6014 Try font from Ffont_get_system_font.
637fa988
JD
6015 Do not get font from x_default_parameter if we got one from
6016 Ffont_get_system_font.
87e32266 6017 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6018
6019 * w32font.c (w32font_driver): Initialize all members.
6020
6021 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6022
6023 * lisp.h: Declare syms_of_xsettings.
6024
87e32266
SM
6025 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6026 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6027
6028 * ftfont.c (ftfont_filter_properties): New function.
6029
6030 * frame.c (x_set_font): Remove unused variable lval.
6031
87e32266 6032 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6033
6034 * font.c (font_put_extra): Don't return if val is nil, it means
6035 boolean option is off.
6036 (font_parse_fcname): Collect all extra properties in extra_props
6037 and call filter_properties for all drivers with extra_props and
6038 font as parameter.
87e32266
SM
6039 (font_open_entity): Do not use cache, it does not pick up new
6040 fontconfig settings like hinting.
637fa988
JD
6041 (font_load_for_lface): If spec had a name in it, store it in entity.
6042
a73f9c9d 6043 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6044
6045 * config.in: HAVE_GCONF is new.
6046
6047 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6048 xsettings.o is new.
6049
5a942932
KH
60502009-11-17 Kenichi Handa <handa@m17n.org>
6051
6052 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6053 back to the default font in case that no suitable font is found.
6054
b7c7a4d1
SM
60552009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6056
6057 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6058 Suggested by Chad Brown <yandros@mit.edu>.
6059 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6060
072f1e39
JD
60612009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6062
6063 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6064
5d1e70a2
AS
60652009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6066
87e32266 6067 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6068
a53cfbe5
JD
60692009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6070
473a99b7
JD
6071 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6072 has a parent.
6073
a53cfbe5 6074 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6075 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6076
6077 * config.in: Generated (AUTO_DEPEND).
6078
f04bb9b2
MA
60792009-11-13 Michael Albinus <michael.albinus@gmx.de>
6080
b7c7a4d1 6081 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6082 Vdbus_registered_functions_table, because it contains also
6083 properties. Fix docstring.
b7c7a4d1 6084 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6085
8f11f7ec
SM
60862009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6087
6088 * alloc.c (mark_object): Don't reprocess marked strings.
6089 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6090 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6091
8a605fe8
KH
60922009-11-13 Kenichi Handa <handa@m17n.org>
6093
8f11f7ec 6094 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6095 semantics of Vword_combining_categories.
6096 (Vword_combining_categories): Describe the slight change of the
6097 semantics.
6098
241c4680
EZ
60992009-11-13 Eli Zaretskii <eliz@gnu.org>
6100
6101 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6102
6103 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6104
5d58e44c
SM
61052009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6106
6107 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6108
5e13f9d3
JB
61092009-11-12 Juanma Barranquero <lekktu@gmail.com>
6110
6111 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6112
cf54c754
DR
61132009-11-11 David Reitter <david.reitter@gmail.com>
6114
6115 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6116 variables to fix 2009-11-09 change.
6117
a4ada374
DN
61182009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6119
91433552
DN
6120 * process.c (ifflag_def): Make flag_sym constant.
6121 (Fnetwork_interface_info): Use a constant pointer.
6122 (ifflag_table):
6123 * xfns.c (cursor_bits):
6124 * xdisp.c (power_letter):
6125 * termcap.c (speeds, esctab):
6126 * sysdep.c (baud_convert):
6127 * keyboard.c (lispy_accent_codes, modifier_names):
6128 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6129 (jpeg_format, tiff_format, gif_format, svg_format)
6130 (interlace_start, interlace_increment, gs_format):
6131 * gtkutil.c (separator_names):
6132 * fringe.c (swap_nibble):
6133 * fns.c (base64_value_to_char, base64_char_to_value):
6134 * fileio.c (make_temp_name_tbl):
6135 * coding.c (suffixes): Make constant.
6136
f4265f6c
DN
6137 * frame.c (make_initial_frame):
6138 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6139 build_string.
6140 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6141
04420943
DN
6142 * s/freebsd.h:
6143 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6144
0a5d24ae
DN
6145 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6146 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6147
a4ada374
DN
6148 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6149 * xterm.c (syms_of_xterm):
6150 * xfaces.c (syms_of_xfaces):
6151 * xdisp.c (syms_of_xdisp):
6152 * lread.c (syms_of_lread):
6153 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6154 build_string.
91433552 6155
a4ada374
DN
6156 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6157
af98fc7f
SM
61582009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6159
8ab1650e 6160 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6161
e90292a9
JD
61622009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6163
6164 * keyboard.h: Declare timer_check.
6165
6166 * keyboard.c (timer_check_2): New function that does what the old
6167 timer_check did.
6168 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6169 returned, i.e. don't return -1 with timers pending.
6170
6171 * process.c: Remove extern declaration of timer_check.
6172
6173 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6174 even if timer_check returned -1.
6175
af98fc7f
SM
6176 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6177 xg_dialog_data.
e90292a9
JD
6178 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6179 the event loop.
6180 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6181 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6182 Destroy the dialog after xg_dialog_run.
6183
045b83c0
SM
61842009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6185
6186 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6187
1fb99a3a
JD
61882009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6189
6190 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6191
04e452cb
JB
61922009-11-09 Juanma Barranquero <lekktu@gmail.com>
6193
6194 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6195
ef7417fd
SM
61962009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6197
6198 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6199 w32menu.c, and nsmenu.m.
6200 Simplify the obsolete case where position is nil.
6201 (cleanup_popup_menu): New function, moved from nsmenu.m.
6202 (struct skp): Remove slot `notreal'.
6203 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6204 adjust callers.
6205 (single_menu_item): Adjust call to parse_menu_item.
6206 (syms_of_menu): Defsubr x-popup-menu.
6207 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6208 (keymap_panes): Don't export any more.
6209 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6210 (xmenu_show): Declare.
6211 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6212 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6213 * keyboard.h (parse_menu_item): Update declaration.
6214 * xmenu.c (Fx_popup_menu): Remove.
6215 (syms_of_xmenu): Don't defsubr x-popup-menu.
6216 * w32menu.c (Fx_popup_menu): Remove.
6217 (syms_of_w32menu): Don't defsubr x-popup-menu.
6218 * nsmenu.m (cleanup_popup_menu): Remove.
6219 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6220 moved to menu.c's Fx_popup_menu.
6221 (Fx_popup_menu): Remove.
6222 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6223 menu_items (it's done in menu.c already).
6224
424d6179
SM
62252009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6226
6227 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6228 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6229
c0df13a6 62302009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6231
6232 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6233 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6234 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6235 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6236
2de9f71c
SM
62372009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6238
6239 Let integers use up 2 tags to give them one extra bit and thus double
6240 their range.
6241 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6242 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6243 New macros.
6244 (enum Lisp_Type): Use them. Give explicit values.
6245 (Lisp_Type_Limit): Remove.
6246 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6247 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6248 Pay attention to USE_2_TAGS_FOR_INTS.
6249 (INTEGERP): Use LISP_INT_TAG_P.
6250 * fns.c (internal_equal): Simplify the default case.
6251 (sxhash): Use case_Lisp_Int.
6252 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6253 any more.
6254 (Ftype_of): Use case_Lisp_Int.
6255 (store_symval_forwarding): Take into account the fact that Ints can
6256 now have more than one tag.
6257 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6258 (buffer_slot_type_mismatch):
2de9f71c
SM
6259 * xfaces.c (face_attr_equal_p):
6260 * print.c (print_object):
6261 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6262 Use case_Lisp_Int.
6263
323637a2
EZ
62642009-11-06 Eli Zaretskii <eliz@gnu.org>
6265
7ac65b38
EZ
6266 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6267
323637a2
EZ
6268 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6269 warning.
6270
e511451f
JD
62712009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6272
6273 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6274
6275 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6276
6277 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6278 ButtonPressRelease and MotionNotify (bug#4870).
6279
5e2327cf
DN
62802009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6281
5adc433e
DN
6282 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6283
d67b4f80
DN
6284 * xterm.c (syms_of_xterm):
6285 * xselect.c (syms_of_xselect):
6286 * xmenu.c (syms_of_xmenu):
6287 * xfns.c (syms_of_xfns):
6288 * xfaces.c (syms_of_xfaces):
6289 * xdisp.c (syms_of_xdisp):
6290 * window.c (syms_of_window):
6291 * w32fns.c (syms_of_w32fns):
6292 * undo.c (syms_of_undo):
6293 * textprop.c (syms_of_textprop):
6294 * terminal.c (syms_of_terminal):
6295 * syntax.c (syms_of_syntax):
6296 * sound.c (syms_of_sound):
6297 * search.c (syms_of_search):
6298 * print.c (syms_of_print):
6299 * minibuf.c (syms_of_minibuf):
6300 * macros.c (syms_of_macros):
6301 * keymap.c (syms_of_keymap, initial_define_key)
6302 (initial_define_lispy_key):
6303 * keyboard.c (syms_of_keyboard):
6304 * insdel.c (syms_of_insdel):
6305 * image.c (syms_of_image):
6306 * fringe.c (syms_of_fringe):
6307 * frame.c (syms_of_frame):
6308 * fontset.c (syms_of_fontset):
6309 * fns.c (syms_of_fns):
6310 * fns.c (syms_of_fns):
6311 * fileio.c (syms_of_fileio):
6312 * fileio.c (syms_of_fileio):
6313 * eval.c (syms_of_eval):
6314 * doc.c (syms_of_doc):
6315 * dispnew.c (syms_of_display):
6316 * dired.c (syms_of_dired):
6317 * dbusbind.c (syms_of_dbusbind):
6318 * data.c (syms_of_data):
6319 * composite.c (syms_of_composite):
6320 * coding.c (syms_of_coding):
6321 * cmds.c (syms_of_cmds):
6322 * charset.c (define_charset_internal, syms_of_character):
6323 * ccl.c (syms_of_ccl):
6324 * category.c (syms_of_category, init_category_once):
6325 * casetab.c (syms_of_casetab):
6326 * casefiddle.c (syms_of_casefiddle):
6327 * callint.c (syms_of_callint):
6328 * bytecode.c (syms_of_bytecode):
6329 * buffer.c (keys_of_buffer, syms_of_buffer):
6330 * alloc.c (syms_of_alloc):
6331 * process.c (syms_of_process, init_process):
6332 * lread.c (syms_of_lread, init_obarray):
6333 * font.c (build_style_table):
6334 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6335 intern_c_string, calls to make_pure_string with
6336 make_pure_c_string. Use pure_cons instead of Fcons.
6337
5e2327cf
DN
6338 * process.c (socket_options): Make it const.
6339 (set_socket_option, init_process): Use a const pointer.
6340
6341 * lread.c (intern_c_string): New function.
6342 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6343 (defvar_int): Uset it. Make the name const char*.
6344
6345 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6346 (defvar_int): Update prototypes.
6347 (DEFUN, EXFUN): Support for prototypes is now required.
6348 (intern_c_string): New prototype.
6349 (struct Lisp_Subr): Make symbol_name constant.
6350
6351 * font.c (struct table_entry): Remove unused member. Make NAMES
6352 constant.
6353 (weight_table, slant_table, width_table): Make constant.
6354
6355 * emacs.c (struct standard_args): Make name and longname constant.
6356
6357 * character.h (DEFSYM): Use intern_c_string.
6358
a56eaaef
DN
63592009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6360
6361 * alloc.c (make_pure_c_string): New function.
6362
6363 * eval.c (Fautoload): Purecopy all arguments.
6364
f6a07420
KH
63652009-11-05 Kenichi Handa <handa@m17n.org>
6366
6367 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6368 the buffer in case of replace.
6369
5d28d4b1
DN
63702009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6371
6372 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6373
b349d111
SM
63742009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6375
d528b1ce
SM
6376 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6377 when applicable (bug#4851).
6378
b349d111
SM
6379 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6380 (P_): Support for prototypes is now required.
6381
c38eb027
CY
63822009-10-31 Chong Yidong <cyd@stupidchicken.com>
6383
6384 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6385 (Bug#4827).
6386
0405f8d9
EZ
63872009-10-30 Eli Zaretskii <eliz@gnu.org>
6388
d528b1ce 6389 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6390
ca0a881a
DN
63912009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6392
6393 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6394
d528b1ce
SM
6395 * lread.c (Fload): Purecopy the file name when building
6396 Vpreloaded_file_list.
ca0a881a 6397
47e0e0e4
JR
63982009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6399
6400 * w32fns.c (syms_of_w32fns): Change default value of
6401 w32-scroll-lock-modifier to nil. (Bug#2827)
6402
057bce6f
JB
64032009-10-26 Juanma Barranquero <lekktu@gmail.com>
6404
782a943e 6405 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6406
242bc74c
AS
64072009-10-26 Andreas Schwab <schwab@redhat.com>
6408
6409 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6410
522d013a
JB
64112009-10-26 Juanma Barranquero <lekktu@gmail.com>
6412
6413 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6414 For delta < 0, skip check that only makes sense when the mini-window
6415 is going to be enlarged. (Bug#4534)
6416
18060980
CY
64172009-10-25 Chong Yidong <cyd@stupidchicken.com>
6418
6419 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6420 string in menu maps (Bug#4471).
6421
fec8f0fe
CY
64222009-10-24 Chong Yidong <cyd@stupidchicken.com>
6423
6424 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6425 FRAME_NS_VIEW on terminal frames (Bug#4765).
6426
10d66ec0
AS
64272009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6428
1cae01f7
AS
6429 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6430 DBUS_TYPE_UINTnn separately to get proper sign extension.
6431
58a12889
AS
6432 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6433 can properly handle unsigned types.
d528b1ce 6434 (make_uid, make_gid): Remove.
58a12889 6435
987c9327
AS
6436 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6437 types again.
6438
522d013a 6439 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6440 (system_process_attributes): Likewise.
6441
905a9ed3
DN
64422009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6443
6444 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6445
6446 * eval.c (Fautoload): Purecopy the filename. Simplify.
6447
6448 * category.c (Fdefine_category): Purecopy docstring.
6449
a599b3e8
AS
64502009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6451
7b792fc9
AS
6452 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6453
a599b3e8
AS
6454 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6455
b35ac83e
CY
64562009-10-23 Chong Yidong <cyd@stupidchicken.com>
6457
6458 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6459 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6460 (Bug#4775).
6461
e8903e00
SM
64622009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6463
6464 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6465 (init_fileio_once):
6466 * lisp.h (init_fileio_once): Remove.
6467 * emacs.c (main): Don't call init_fileio_once.
6468
8f43cbf3
DN
64692009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6470
6471 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6472
26898943
AS
64732009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6474
6475 * doprnt.c (doprnt): Fix overflow check.
6476
5c646d5a
JD
64772009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6478
3132a7ea
JD
6479 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6480
5c646d5a
JD
6481 * xterm.h (x_wait_for_event): Declare it.
6482
6483 * xterm.c (pending_event_wait): New variable.
6484 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6485 see pending_event_wait.eventtype.
6486 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6487 (x_new_font): Call change_frame_size with new rows/columns before we
6488 try to resize the frame.
5c646d5a 6489 (x_wait_for_event): New function.
d528b1ce
SM
6490 (x_set_window_size_1): Don't change gravity unless change_gravity
6491 is set.
5c646d5a
JD
6492 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6493 don't change frame size, instead wait for the ConfigureNotify.
6494 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6495 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6496 (x_initialize): Initialize pending_event_wait.
6497
6498 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6499 size.
6500
6501 * widget.c (EmacsFrameSetValues): Add comment.
6502 (EmacsFrameSetCharSize): Just call x_set_window_size.
6503
6504 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6505 x_wait_for_event.
d528b1ce 6506 (flush_and_sync): Remove again.
5c646d5a
JD
6507 (xg_get_font_name): Suggest monospace if no previous font is known.
6508
e9c1637d
SM
65092009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6510
6511 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6512 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6513
5a72cccb
YM
65142009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6515
6516 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6517 processing pending events when event is filtered for input method.
ab04798f 6518 (Bug#3681)
5a72cccb 6519
2629aa37
JB
65202009-10-20 Juanma Barranquero <lekktu@gmail.com>
6521
6522 * fns.c: Add #endif accidentally removed in previous change.
6523
c3417a74
DN
65242009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6525
6526 * fns.c: Remove code for unsupported system: MAC_OS.
6527 * image.c: Likewise. Include setjmp.h.
6528
9685cef2
JD
65292009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6530
6531 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6532 pixel -1 (bug #4742).
6533
d7306fe6
DN
65342009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6535
019d2c4c
DN
6536 * process.c (create_pty): Remove conditionals for no longer
6537 supported systems: UNIPLUS and RTU.
6538
ee6bacd4
DN
6539 * xterm.c:
6540 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6541
d7306fe6
DN
6542 * alloc.c: Do not define struct catchtag.
6543 * eval.c: Move struct catchtag definition ...
6544 * lisp.h: ... here.
6545
6546 * image.c: Move png.h #include earlier to avoid warnings.
6547
6548 * xterm.c:
6549 * xsmfns.c:
6550 * xselect.c:
6551 * xrdb.c:
6552 * xmenu.c:
6553 * xftfont.c:
6554 * xfont.c:
6555 * xfns.c:
6556 * xfaces.c:
6557 * xdisp.c:
6558 * window.c:
6559 * widget.c:
6560 * w32xfns.c:
6561 * w32uniscribe.c:
6562 * w32term.c:
6563 * w32select.c:
6564 * w32reg.c:
6565 * w32proc.c:
6566 * w32menu.c:
6567 * w32inevt.c:
6568 * w32heap.c:
6569 * w32font.c:
6570 * w32fns.c:
6571 * w32console.c:
6572 * w32.c:
6573 * w16select.c:
6574 * vm-limit.c:
6575 * unexsol.c:
6576 * unexec.c:
6577 * unexcw.c:
6578 * unexaix.c:
6579 * undo.c:
6580 * tparam.c:
6581 * textprop.c:
6582 * terminfo.c:
6583 * terminal.c:
6584 * termcap.c:
6585 * term.c:
6586 * syntax.c:
6587 * sound.c:
6588 * sheap.c:
6589 * search.c:
6590 * scroll.c:
6591 * region-cache.c:
6592 * regex.c:
6593 * ralloc.c:
6594 * process.c:
6595 * print.c:
b024548b
DN
6596 * nsterm.m:
6597 * nsselect.m:
6598 * nsmenu.m:
6599 * nsimage.m:
6600 * nsfont.m:
6601 * nsfns.m:
d7306fe6
DN
6602 * msdos.c:
6603 * minibuf.c:
6604 * menu.c:
6605 * marker.c:
6606 * macros.c:
6607 * keymap.c:
6608 * keyboard.c:
6609 * intervals.c:
6610 * insdel.c:
6611 * indent.c:
6612 * gtkutil.c:
6613 * ftxfont.c:
6614 * ftfont.c:
6615 * fringe.c:
6616 * frame.c:
6617 * fontset.c:
6618 * font.c:
6619 * fns.c:
6620 * floatfns.c:
6621 * filelock.c:
6622 * fileio.c:
6623 * emacs.c:
6624 * editfns.c:
6625 * dosfns.c:
6626 * doprnt.c:
6627 * doc.c:
6628 * dispnew.c:
6629 * dired.c:
6630 * dbusbind.c:
6631 * data.c:
6632 * composite.c:
6633 * coding.c:
6634 * cmds.c:
6635 * cm.c:
6636 * chartab.c:
6637 * charset.c:
6638 * character.c:
6639 * ccl.c:
6640 * category.c:
6641 * casetab.c:
6642 * casefiddle.c:
6643 * callproc.c:
6644 * callint.c:
6645 * bytecode.c:
6646 * buffer.c:
6647 * atimer.c: Include setjmp.h. (Bug#4643)
6648
fd5f21e6
SM
66492009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6650
4c0354d7
SM
6651 Remove leftover table unibyte_to_multibyte_table.
6652 * character.c (unibyte_to_multibyte_table): Remove.
6653 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6654 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6655 * character.h (UNIBYTE_TO_CHAR): New macro.
6656 (MAKE_CHAR_MULTIBYTE): Use it.
6657 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6658 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6659 (message_dolog, set_message_1):
6660 * search.c (Freplace_match):
6661 * editfns.c (Fcompare_buffer_substrings):
6662 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6663 (concat):
6664 * insdel.c (copy_text, count_size_as_multibyte):
6665 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6666 * term.c (produce_glyphs):
6667 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6668 * regex.c (RE_CHAR_TO_MULTIBYTE):
6669 * cmds.c (internal_self_insert):
6670 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6671
fd5f21e6
SM
6672 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6673
4418646e
DN
66742009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6675
6676 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6677
35f5c1d2
JB
66782009-10-16 Juanma Barranquero <lekktu@gmail.com>
6679
6680 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6681
a0cd8f6b
AR
66822009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6683
6684 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6685 still needed under Tiger.
6686
6687 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6688
6689 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6690 __Apple__.
6691
6692 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6693
01a8d3fa
KH
66942009-10-15 Kenichi Handa <handa@m17n.org>
6695
6696 * print.c (print_object): Escape a symbol like "2E10" too.
6697
bf6c75c9 66982009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6699
6700 Cleanups and changes for 64-bit compile under Snow Leopard.
6701 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6702
6703 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6704
c5959062 6705 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6706 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6707 cast argument.
6708 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6709 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6710
6711 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6712
6713 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6714 where appropriate.
6715
6716 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6717 where appropriate.
6e4780c5
JB
6718 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6719 Use stringWithUTF8String.
bf6c75c9
AR
6720 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6721
6e4780c5
JB
6722 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6723 Add formal protocol mention to inheritance.
bf6c75c9
AR
6724 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6725
6e4780c5
JB
6726 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6727 Fix printf format.
bf6c75c9
AR
6728 (ns_query_color): Use CGFloat where appropriate.
6729 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6730 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6731 argument.
6732
3d87f118
AR
6733 * config.in (NS_HAVE_NSINTEGER): Drop.
6734
a95c8102
AR
6735 * dbusbind.c (dbus-method-return-internal)
6736 (dbus-method-error-internal): Use long format in printf, and cast
6737 argument.
6738
6739 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6740 in printf, and cast argument.
6741
6873acca 6742 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6743 cast argument.
6744
9ec6f100
GM
67452009-10-11 Glenn Morris <rgm@gnu.org>
6746
6747 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6748
5be883cd
JD
67492009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6750
6751 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6752 menu bar with a small width so it doesn't enlarge the frame.
6753
d7a39b51
JB
67542009-10-08 Juanma Barranquero <lekktu@gmail.com>
6755
6756 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6757
0c2b6f8e
GM
67582009-10-06 Glenn Morris <rgm@gnu.org>
6759
6760 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6761 SOME_MACHINE_LISP (this enters indirectly via DOC).
6762
e02131a2
EZ
67632009-10-05 Eli Zaretskii <eliz@gnu.org>
6764
6765 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6766
b4744254
EZ
67672009-10-04 Eli Zaretskii <eliz@gnu.org>
6768
6769 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6770 Doc fix.
6771
dbf64827
JB
67722009-10-03 Martin Rudalics <rudalics@gmx.at>
6773
6774 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6775
e9a0aef8
MA
67762009-10-02 Michael Albinus <michael.albinus@gmx.de>
6777
d528b1ce 6778 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6779 used anymore outside fileio.c.
6780
6781 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6782
64eb2b56
JB
67832009-10-01 Juanma Barranquero <lekktu@gmail.com>
6784
6785 * lisp.h (Qdelete_directory_internal):
6786 Declare, instead of Qdelete_directory.
6787
6788 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6789
9d28c33e
SM
67902009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6791
6792 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6793
9d8f3bd9
MA
67942009-10-01 Michael Albinus <michael.albinus@gmx.de>
6795
9d28c33e 6796 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6797 Fdelete_directory. It is not a command anymore. It has no file
6798 name handler.
6799
9694740b
SM
68002009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6801
6802 * xdisp.c (get_next_display_element): Use an enum in last change.
6803
748e162f
KH
68042009-09-28 Kenichi Handa <handa@m17n.org>
6805
9694740b 6806 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6807 unibyte_display_via_language_environment in handling
6808 Vnobreak_char_display.
6809
17efd58d
AR
68102009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6811
6812 * nsterm.h (ns_app_name): New extern variable.
6813
6814 * nsterm.m (ns_app_name): New variable.
6815 (ns_term_init): Set and use it.
6816 (ns_term_shutdown): Use it.
6817
6818 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6819 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6820
6821 * nsfns.m (ns_set_name_iconic, ns_set_name)
6822 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6823 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6824
9694740b
SM
6825 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6826 Remove double-casting in client_data comparison.
31c2d412 6827
3208cb35
YM
68282009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6829
6830 * keyboard.c (make_lispy_event): Remember last wheel direction.
6831 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6832
b7d552d6
GM
68332009-09-26 Glenn Morris <rgm@gnu.org>
6834
6835 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6836 internal.elc. Add term/pc-win.elc.
6837 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6838 term/x-win.elc.
6839 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6840 term/w32-win.elc.
6841 (NS_SUPPORT): New.
6842 (lisp): Add NS_SUPPORT.
6843 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6844
4ff670a8
DR
68452009-09-25 David Reitter <david.reitter@gmail.com>
6846
6847 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6848 on Mac OS X 10.6+ (bug#4513).
6849
feabfb6c
JB
68502009-09-24 Juanma Barranquero <lekktu@gmail.com>
6851
6852 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6853 some parts of Emacs code (like font selection) don't grok them.
6854 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6855
de59072a
AS
68562009-09-24 Andreas Schwab <schwab@redhat.com>
6857
6858 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6859
a489517b
JB
68602009-09-24 Juanma Barranquero <lekktu@gmail.com>
6861
6862 * dired.c (Fdirectory_files): Fix typo in docstring.
6863
0592970c
AR
68642009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6865
6866 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6867 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6868 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6869 under GNUstep.
6870 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6871
6872 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6873 glyph advancement.
6874
48e8a88b
AR
68752009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6876
6877 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6878 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6879
6880 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6881 deleted (bug #4492).
6882
e14f0a78
AR
6883 * nsfont.m (Vns_reg_to_script): New lisp variable.
6884 (syms_of_nsfont): Declare it.
6885 (ns_registry_to_script): New function.
6886 (ns_get_req_script): Call it.
6887 (ns_findfonts): Don't give up on non-unicode registry.
6888
6889 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6890
5b650faa
SM
68912009-09-20 Tom Tromey <tromey@redhat.com>
6892
6893 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6894 batch mode (bug#4228).
6895
a489517b 68962009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6897
6898 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6899 carefully. (Bug #4339)
0bae4e09 6900
fcfe06f3
CY
69012009-09-18 Chong Yidong <cyd@stupidchicken.com>
6902
d798ba87 6903 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6904
31642728
AR
69052009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6906
6907 * emacs.c (inhibit_x_resources): Update doc string for NS.
6908 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6909 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6910
6911 * nsterm.h (ns_no_defaults): Remove.
6912
6913 * nsterm.m (ns_no_defaults): Remove.
6914 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6915 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6916 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6917 don't update the NSWindow itself.
6918 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6919 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6920
6921 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6922 ns_use_qd_smoothing.
6923
6924 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6925 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6926 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6927 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6928
8686ac71
JB
69292009-09-17 Juanma Barranquero <lekktu@gmail.com>
6930
6931 * emacs.c (inhibit_x_resources): New variable.
6932 (main) [HAVE_NS]: Don't process --quick command line option.
6933 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6934
6935 * lisp.h (inhibit_x_resources): Declare it extern.
6936
6937 * w32reg.c (x_get_string_resource):
6938 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6939
e227ba05
EZ
69402009-09-17 Eli Zaretskii <eliz@gnu.org>
6941
362654a6
JB
6942 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6943 Add lisp/term/internal.elc.
e227ba05 6944
742d40e8
SM
69452009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6946
6947 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6948 (bug#4461).
6949
005bd5a2
DN
69502009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6951
6952 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6953
6954 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6955 (OBJECTS_MACHINE): Remove, unused.
6956
f9af9719
SM
69572009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6958
6959 * frame.c (x_get_resource_string): Remove unused.
6960
0307c7d2
JD
69612009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6962
6963 * xterm.c (x_new_font): Call change_frame_size before calling
6964 x_set_window_size, in case frame size won't change.
6965
6966 * frame.c (x_set_font): Remove dead code.
6967
428b13d6
SM
69682009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6969
6970 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6971
5766c380
SM
69722009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6973
6974 * lread.c (Fload): Don't output a message after loading an obsolete
6975 package any more (done in Lisp now).
6976
2fd0161b
CY
69772009-09-12 Chong Yidong <cyd@stupidchicken.com>
6978
6979 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6980
bc5e75b6
SM
69812009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6982
6983 * keymap.c (Fwhere_is_internal): Use nconc2.
6984
c31c985e
AM
69852009-09-11 Alan Mackenzie <acm@muc.de>
6986
6987 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6988 batch mode.
6989
78012bd2
AS
69902009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6991
6992 * xdisp.c (display_mode_element): Detect cycles.
6993
9d889332
SM
69942009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6995
6996 * keymap.c (where_is_internal): Don't erroneously return nil right after
6997 filling the cache.
6998 (where_is_internal_1): Fix up typo.
6999
7ab5d780
GM
70002009-09-11 Glenn Morris <rgm@gnu.org>
7001
7002 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7003 share a common doc-string.
7004
5238a749
SM
70052009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7006
66d77eda
SM
7007 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7008 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7009
5238a749
SM
7010 * keymap.c (QCadvertised_binding): New constant.
7011 (syms_of_keymap): Initialize it.
7012 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7013 if applicable.
7014
19f48442
SM
70152009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7016
50d4ba39
SM
7017 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7018 (parse_menu_item): Streamline since bindings are recomputed all the
7019 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7020 more and don't support lmenu's menu-alias any more either.
7021
a88a5372
SM
7022 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7023 (where_is_internal): Strip it down to only traverse the keymaps.
7024 Move the cache handling from Fwhere_is_internal to here.
7025 (Fwhere_is_internal): Move the handling of remapping and the choice of
7026 the best binding from where_is_internal to here.
7027 Unify the cached/noncached paths, so remapping is also handled
7028 correctly when the cache is used, and so the cache can be used to
7029 speed up remap-handling when applicable.
7030 Give preference to non-remapped bindings.
7031 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7032 non-remapped bindings.
7033 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7034 command remapping.
7035
19f48442
SM
7036 * xdisp.c (display_mode_element): Move list length limit from 50 to
7037 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7038
599498c3 70392009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7040
7041 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7042
f9b7b5ac
SM
70432009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7044
a53af587
JB
7045 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7046 (Bug#4334)
7047
f9b7b5ac
SM
7048 * keymap.c (where_is_internal): Filter out shadowed remappings.
7049 Assume that where_is_internal returns unshadowed bindings to simplify
7050 the code and get rid of the gotos. Use ASIZE.
7051
04f4b72d
JD
70522009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7053
4da146f2
JD
7054 * xterm.c (x_focus_changed): If we get a focusout and pointer
7055 is invisible, make it visible.
7056
04f4b72d
JD
7057 * xterm.h: Remove condition for declaration of
7058 x_*_window_to_frame.
7059
7cef7ce3
SM
70602009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7061
7062 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7063 initial terminal as well.
7064
a54fa5b7
JD
70652009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7066
7067 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7068 x_menubar_window_to_frame.
a54fa5b7 7069
50426a04 7070 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7071 (XTmouse_position): Do not return valid positions
7072 for clicks in the menubar and the toolbar for Gtk+.
7073
7074 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7075 if the widget for the event has the same top level as a frame,
7076 return the frame.
7077 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7078 internal windows, bug #4122.
7079 (x_non_menubar_window_to_frame): Remove.
7080
5a021dd0
GM
70812009-09-02 Glenn Morris <rgm@gnu.org>
7082
7083 * buffer.c (default-major-mode): Move most of the doc from here...
7084 (major-mode): ... to here.
7085
548fe2f3
NR
70862009-08-30 Nick Roberts <nickrob@snap.net.nz>
7087
7088 * process.c (wait_reading_process_output): Keep the descriptor
7089 when pty is used by a non-child process, e.g., in I/O buffer of
7090 GDB this allows inferior to be restarted.
7091
e0840eef
EZ
70922009-08-29 Eli Zaretskii <eliz@gnu.org>
7093
7094 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7095 both branches into one.
7096
82e98df4
SM
70972009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7098
7099 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7100 (main): Use enable-multibyte-characters rather than
7101 default-enable-multibyte-characters. Output a warning message when
7102 running a unibyte session.
7103
890617cb
YM
71042009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7105
7106 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7107 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7108 (copy_data_segment): Also copy __program_vars section.
7109 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7110 (dump_it) [LC_DYLD_INFO]: Use it.
7111
7112 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7113
e7adeadc
EZ
71142009-08-28 Eli Zaretskii <eliz@gnu.org>
7115
7116 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7117 $(SRC)/buildobj.h.
7118 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7119 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7120 $(SRC)/buildobj.h.
7121 (clean): Add buildobj.h.
7122
3ed8bbdc
TZ
71232009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7124
7125 * print.c (print_object): Set escapeflag to 1 when printing
7126 hashtable keys and values.
7127
155a6764
SM
71282009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7129
7130 * lread.c (read_integer): Use doubles (and potentially return a float
7131 number) as we do in string-to-number.
7132 (read1): Use strtol to read integers, signal errors on strtol's
7133 overflow and use floats if strtol's output is too large for
7134 Elisp integers.
7135
877610de
EZ
71362009-08-27 Eli Zaretskii <eliz@gnu.org>
7137
7138 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7139 (make-buildobj-SH): Fix last change.
7140 (SRC): Move to before where it's first used.
7141
ef73e7be
KH
71422009-08-27 Kenichi Handa <handa@m17n.org>
7143
550c8289
KH
7144 * process.c (send_process): Use encode_coding_object instead of
7145 encode_coding_string to perform eol-conversion even if the string
7146 is unibyte.
7147
60afa08d
KH
7148 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7149 character.
7150
ef73e7be 7151 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7152 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7153
7b3a82d7
DN
71542009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7155
5654bf63
DN
7156 * callproc.c (Fcall_process): Remove always true #if.
7157
7b3a82d7
DN
7158 * lisp.h: Replace #if 0 code for checking with text pointing to
7159 the --enable-checking configure flag.
7160
7161 * emacs.c (main): Mention the --enable-profiling configure flag
7162 instead of using CFLAGS.
7163
878bde49
KR
71642009-08-26 Ken Raeburn <raeburn@raeburn.org>
7165
7166 * Makefile.in (buildobj.h): New target.
7167 (doc.o): Depend on it.
7168 (temacs${EXEEXT}): Don't generate buildobj.lst.
7169 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7170 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7171 ($(BLD)/doc.$(O)): Depend on it.
7172 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7173 provided by Eli Zaretskii.)
7174 ($(TEMACS)): Don't generate buildobj.lst.
7175 * doc.c: Include buildobj.h.
7176 (buildobj): New static variable.
7177 (Fsnarf_documentation): Use it, instead of opening and reading
7178 buildobj.lst.
7179
1574224c
MA
71802009-08-25 Michael Albinus <michael.albinus@gmx.de>
7181
7182 * dbusbind.c (Fdbus_call_method)
7183 (Fdbus_call_method_asynchronously): Use English numeric format for
7184 timeout values in doc string.
7185
d9da2f45
KH
71862009-08-25 Kenichi Handa <handa@m17n.org>
7187
ef73e7be
KH
7188 * alloc.c (mark_char_table): New function.
7189 (mark_object): Use mark_char_table for a char-table.
7190
d9da2f45
KH
7191 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7192 (CHAR_TABLE_REF): Use it.
7193
c8edcc01
KR
71942009-08-23 Ken Raeburn <raeburn@raeburn.org>
7195
7196 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7197 before invoking the newly build emacs to check for load-path
7198 shadowing.
7199
7763401b
GM
72002009-08-22 Glenn Morris <rgm@gnu.org>
7201
7202 * Makefile.in (bootstrap_exe): New variable.
7203 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7204 Use ${bootstrap_exe}.
7205
729eadda
EZ
72062009-08-22 Eli Zaretskii <eliz@gnu.org>
7207
7208 * coding.h (encode_coding_string): Don't encode unibyte strings.
7209 (Bug#4047)
7210
eb4c6ace
MA
72112009-08-22 Michael Albinus <michael.albinus@gmx.de>
7212
7213 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7214
7215 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7216 intended as hotfix only.
7217 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7218
36e34d1b
AR
72192009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7220
7221 * nsterm.m (ns_get_color): Update documentation properly for last
7222 change, and clean up loose ends in the code left by it. Fix
7223 longstanding bug with 16-bit hex parsing, and add support for
7224 yet another X11 format (rgb:r/g/b) for compatibility.
7225 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7226 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7227
f983eb8a
SM
72282009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7229
7230 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7231
3f56d3c6
MA
72322009-08-20 Michael Albinus <michael.albinus@gmx.de>
7233
7234 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7235 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7236 (xd_initialize, xd_pending_messages): Check, whether
7237 $DBUS_SESSION_BUS_ADDRESS is set.
7238
fb641d68
YM
72392009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7240
7241 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7242
7243 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7244
cf59a374
GM
72452009-08-20 Glenn Morris <rgm@gnu.org>
7246
7247 * emacs.c (system-type): Doc fix.
7248
1373f3be
SM
72492009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7250
7251 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7252 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7253
058ed861
MA
72542009-08-18 Michael Albinus <michael.albinus@gmx.de>
7255
1373f3be
SM
7256 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7257 New functions.
058ed861
MA
7258 (xd_initialize): Revert change from 2009-08-16.
7259
563a866e 72602009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7261
7262 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7263 font-group vector, return nil.
5fc05db0 7264
e42bdf01
CY
72652009-08-17 Chong Yidong <cyd@stupidchicken.com>
7266
7267 * process.c (status_notify): Don't perform redisplay.
7268 (Fdelete_process, list_processes_1, process_send_signal):
7269 Expliticly perform redisplay.
7270 (wait_reading_process_output): Always check process status, but
7271 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7272
4230ab74
KR
72732009-08-17 Ken Raeburn <raeburn@raeburn.org>
7274
1373f3be 7275 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7276 (XFLOAT_INIT): New macro for storing a float value.
7277 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7278 * fns.c (sxhash): Copy out the value of a float in order to
7279 examine its bytes.
7280 * dbusbind.c (xd_append_arg): Likewise.
7281
4230ab74
KR
7282 * emacs.c (main): Don't call syms_of_data twice.
7283
a0645cdd
MA
72842009-08-16 Michael Albinus <michael.albinus@gmx.de>
7285
7286 * dbusbind.c (xd_initialize): Add connection file descriptor to
7287 input_wait_mask, in order to let select() detect, whether a new
7288 message has been arrived.
ca4f31ea 7289 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7290
485db0ba
MA
72912009-08-15 Michael Albinus <michael.albinus@gmx.de>
7292
1373f3be
SM
7293 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7294 New functions.
485db0ba
MA
7295
7296 * lisp.h (xd_pending_messages): Declare.
7297
7298 * keyboard.c (readable_events): Call xd_pending_messages.
7299
b5b98ff4
CY
73002009-08-15 Chong Yidong <cyd@stupidchicken.com>
7301
1373f3be 7302 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7303
f8354c6e
CY
7304 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7305
b5b98ff4
CY
7306 * buffer.c (set_buffer_internal_1)
7307 (swap_out_buffer_local_variables): Check for unbound local
7308 variables (Bug#4138).
7309
8b9fc636
EZ
73102009-08-14 Eli Zaretskii <eliz@gnu.org>
7311
7312 * process.c (create_pty): Fix last change.
7313
ce959360
CY
73142009-08-13 Chong Yidong <cyd@stupidchicken.com>
7315
7316 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7317 (xbm_load_image): Caller changed.
64b807c9 7318 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7319
c7baf7e9
NR
73202009-08-13 Nick Roberts <nickrob@snap.net.nz>
7321
7322 * process.c (create_pty): New function.
7323 (Fstart_process): Use it to allow Emacs to just associate a pty
7324 with the buffer. See associated change in gdb-mi.el.
7325 (list_processes_1): Deal with no program name.
7326 (start_process_unwind): Use pid == -2 to mean no process.
7327
1ac9108a
SM
73282009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7329
7330 * cmds.c (nonundocount): New global variable.
7331 (keys_of_cmds): Initialize it.
7332 (Fself_insert_command): Use it to combine upto 20 sequential chars
7333 into a single undo entry, just like the Qself_insert_command code in
7334 keyboard.c does.
7335 Call frame_make_pointer_invisible, also like the Qself_insert_command
7336 code in keyboard.c does.
7337 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7338 than its own local replacement for it.
7339
e267324c
KR
73402009-08-10 Ken Raeburn <raeburn@raeburn.org>
7341
1ac9108a 7342 * fns.c (concat): Don't re-set string length to its current value.
77437343 7343
1ac9108a
SM
7344 * coding.h (decode_coding_string, encode_coding_string):
7345 Use SBYTES macro.
f0bed503 7346
1ac9108a 7347 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7348 (doprnt): Merge with doprnt1, discarding lispstrings code.
7349 * lisp.h (doprnt_lisp): Don't declare.
7350
416e006d
JL
73512009-08-07 Juri Linkov <juri@jurta.org>
7352
7353 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7354
6f7d5780
DN
73552009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7356
7357 * print.c (syms_of_print): Undo previous change.
7358
f19a0f5b
TZ
73592009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7360
7361 * lread.c (read1, syms_of_lread): Read hashtables back from the
7362 readable format.
7363
7364 * print.c (print_preprocess, print_object): Print hashtables fully
7365 and readably.
7366 (syms_of_print): Provide 'hashtable-print-readable.
7367
b9173dc2
AR
73682009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7369
7370 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7371 no family set.
7372 (nsfont_open): Handle case when entity has no family.
7373
1586503c
AR
73742009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7375
7376 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7377 element, not a list, for match case.
7378
087048cd
KH
73792009-07-28 Kenichi Handa <handa@m17n.org>
7380
7381 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7382 rigidly.
7383
7384 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7385 font_parse_xlfd. Check font properties more rigidly.
7386
780c2506
DN
73872009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7388
31fd7c5c
JB
7389 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7390 bsd-common.h.
780c2506 7391
a8c0cc18
KH
73922009-07-27 Kenichi Handa <handa@m17n.org>
7393
7394 * xfaces.c (face_with_height): Call font_clear_prop.
7395
4fbe2306
CY
73962009-07-26 Chong Yidong <cyd@stupidchicken.com>
7397
111d9af3
CY
7398 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7399
7400 * xterm.c (x_term_init): Use Qx.
7401
4fbe2306
CY
7402 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7403
1ac9108a 7404 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7405 (ns_get_color): Revert 2009-07-16 change.
7406
beb0b7f9
EZ
74072009-07-25 Eli Zaretskii <eliz@gnu.org>
7408
7409 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7410 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7411
2baf5e76
KR
74122009-07-25 Ken Raeburn <raeburn@raeburn.org>
7413
1ac9108a
SM
7414 * coding.h (decode_coding_string, encode_coding_string):
7415 Use SCHARS macro.
8890e5f5 7416
2baf5e76 7417 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7418 (load_depth): Delete.
2baf5e76
KR
7419 (Qload_in_progress): New variable.
7420 (load_unwind): Don't reference load_depth or load_in_progress.
7421 (Fload): Likewise; specbind Qload_in_progress instead.
7422 (init_lread): Don't initialize load_depth.
7423 (syms_of_lread): Initialize and protect Qload_in_progress.
7424
1395c6f5
AR
74252009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7426
7427 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7428
4e2f36cf
AR
74292009-07-23 Yavor Doganov <yavor@gnu.org>
7430
7431 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7432
5dd9a6f7
AR
74332009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7434
7435 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7436 Bugs 3792, 3720, 2402.
7437 (ns_lookup_indexed_color): Check for bad index.
7438 (ns_index_color): Init unused slot to 0.
7439 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7440 Bug 3714, possibly 3082.
5dd9a6f7 7441
c902b920
JR
74422009-07-22 Jason Rumney <jasonr@gnu.org>
7443
1ac9108a
SM
7444 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7445 Position IME window at cursor (Bug#2570).
c902b920
JR
7446 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7447 (globals_of_w32fns): Dynamically load functions required above.
7448
7449 * w32term.c (w32_draw_window_cursor): Send message to reposition
7450 any IME window.
7451
090101cf
CY
74522009-07-21 Chong Yidong <cyd@stupidchicken.com>
7453
7454 * fileio.c: Revert 2009-07-16 changes.
7455 (Vauto_save_include_big_deletions): New variable.
7456 (Fdo_auto_save): Disable auto-save only if
7457 auto-save-include-big-deletions is nil.
7458
e6583e3d
CY
74592009-07-21 Chong Yidong <cyd@stupidchicken.com>
7460
7461 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7462 the overflowed pixels into account (Bug#3879).
7463
ece435a5
KR
74642009-07-21 Ken Raeburn <raeburn@raeburn.org>
7465
7466 * lread.c (load_depth): New variable.
7467 (Fload, load_unwind, init_lread): Set it to the load recursion
7468 depth; set load_in_progress as a simple boolean based on the
7469 current load_depth. (Bug#3892)
7470
40b2d973
AR
74712009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7472
7473 * nsfont.m (ns_has_attribute): Remove.
7474 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7475
10be7e0d
JL
74762009-07-18 Juri Linkov <juri@jurta.org>
7477
7478 * process.c (Fset_process_query_on_exit_flag): Mention killing
7479 a buffer in docstring.
7480
fa055055
KH
74812009-07-17 Kenichi Handa <handa@m17n.org>
7482
7483 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7484
042f7b69
YM
74852009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7486
7487 * nsfns.m (Fns_set_alpha): Remove function.
7488 (syms_of_nsfns): Don't defsubr it.
7489
7490 * nsterm.m (ns_get_color): Remove incompatible color formats.
7491 (ns_color_to_lisp): Generate #rrggbb color format string.
7492
4be941e3
RS
74932009-07-16 Richard Stallman <rms@gnu.org>
7494
7495 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7496 (Fset_buffer_auto_saved): Handle save_length = -2.
7497
4e6b227d
CY
74982009-07-16 Chong Yidong <cyd@stupidchicken.com>
7499
7500 * xterm.c (Qx_gtk_map_stock): New var.
7501
7502 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7503 of calling intern each time.
7504
a1856973
YM
75052009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7506
7507 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7508 does tiling.
7509
7510 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7511
497e54d8
KH
75122009-07-14 Kenichi Handa <handa@m17n.org>
7513
72d36834
KH
7514 * font.c (font_vconcat_entity_vectors): New function.
7515 (struct font_sort_data): New member font_driver_preference.
7516 (font_compare): Check font_driver_preference.
7517 (font_sort_entities): The format of the first argument changed.
7518 (font_delete_unmatched): Likewise.
7519 (font_list_entities): The return type changed.
7520 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7521 (font_find_for_lface): Adjuste for the above changes.
7522 Don't suppress the checking of C even if the repertory supports it.
7523 (Flist_fonts): Adjust for the above changes.
72d36834 7524
1ac9108a
SM
7525 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7526 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7527 Reject a font who has adstyle property that is different from a
7528 langname derived from registry property.
1ac9108a 7529 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7530
b6046155
EZ
75312009-07-13 Eli Zaretskii <eliz@gnu.org>
7532
7533 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7534 local copy of dirfilename.
7535
fb6b6049
KH
75362009-07-13 Kenichi Handa <handa@m17n.org>
7537
e2402a5e
KH
7538 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7539 against max_char.
7540
fb6b6049
KH
7541 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7542 calling XSYMBOL (sym).
7543
65156807
EZ
75442009-07-11 Eli Zaretskii <eliz@gnu.org>
7545
1ac9108a
SM
7546 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7547 New function.
7548 (directory_files_internal) [WINDOWSNT]:
7549 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7550 the filesystem of the directory is fast or slow.
7551
7552 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7553 file name.
7554 (is_slow_fs): New function.
7555 (stat): Use it to determine whether to issue more system calls to
7556 get accurate file attributes, when w32-get-true-file-attributes is
7557 `local'.
7558
e0ab5fcf
JD
75592009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7560
7561 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7562 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7563 parameter font-parameter as default to the font dialog.
7564
784ceded
KH
75652009-07-10 Kenichi Handa <handa@m17n.org>
7566
7567 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7568
fb8edc0b
EZ
75692009-07-09 Eli Zaretskii <eliz@gnu.org>
7570
1ac9108a 7571 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7572
fb8edc0b
EZ
7573 * w32.c (stat): Treat UNC file names as residing on remote
7574 drives. (Bug#3542)
7575
635c75b1
KH
75762009-07-09 Kenichi Handa <handa@m17n.org>
7577
7578 * fontset.c (fontset_find_font): Fix previous change.
7579
c1d5ce94
MA
75802009-07-08 Michael Albinus <michael.albinus@gmx.de>
7581
7582 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7583 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7584 error flag.
7585
edb61b39
KH
75862009-07-08 Kenichi Handa <handa@m17n.org>
7587
374bf7e4
KH
7588 * fontset.c (fontset_find_font): Fix the logic of handling
7589 charset_matched.
7590 (font_for_char): Delete unused var.
7591 (generate_ascii_font_name): Delete it.
7592
edb61b39
KH
7593 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7594
7595 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7596 (encode_coding_sjis): Fix the code range check.
7597
0f3f018c
CY
75982009-07-07 Chong Yidong <cyd@stupidchicken.com>
7599
7600 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7601 (Fexpand_file_name): Copy string data properly (Bug#3772).
7602
fcaf6f3a
JD
76032009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7604
7605 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7606 first MapNotify.
7607
6809ca75
KH
76082009-07-07 Kenichi Handa <handa@m17n.org>
7609
7610 * character.h (unibyte_has_multibyte_table): Delete extern.
7611 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7612
7613 * charset.c (Fset_charset_priority): Update charset_unibyte.
7614 (syms_of_charset): Initialize charset_unibyte.
7615
7616 * character.c (unibyte_has_multibyte_table): Delete it.
7617 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7618 charset_unibyte.
7619 (multibyte_char_to_unibyte_safe): Likewise.
7620 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7621
1ac9108a 7622 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7623 (x_produce_glyphs): Likewise.
7624
7625 * .gdbinit (xcharset): Fix the treating $arg0.
7626
ad9e2d54
EZ
76272009-07-04 Eli Zaretskii <eliz@gnu.org>
7628
7629 Emulation of `getloadavg' on MS-Windows.
50426a04 7630 * w32.c: Include float.h.
ad9e2d54
EZ
7631 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7632 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7633 (get_native_system_info, get_system_times): New functions.
7634 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7635 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7636 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7637 g_b_init_get_system_times, and num_of_processors.
7638
0a3472c7
JR
76392009-07-03 Jason Rumney <jasonr@gnu.org>
7640
7641 * w32term.c (w32_initialize): Use standard types.
7642
80904120
EZ
76432009-07-03 Eli Zaretskii <eliz@gnu.org>
7644
7645 * dired.c (Ffile_attributes): Decode user and group names by the
7646 locale's encoding. (Bug#3443)
7647
6978862d
DN
76482009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7649
f8d23104
DN
7650 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7651 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7652
7653 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7654
7655 * term.c (init_tty): Remove spurious #ifdef.
7656
6978862d
DN
7657 * m/mips.h: Mention this file is also used for netbsd.
7658 * m/pmax.h: Remove file.
7659
e044e4fc
JD
76602009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7661
7662 * xterm.h (struct x_display_info): Add invisible_cursor.
7663 (struct x_output): Add current_cursor.
7664
7665 * xterm.c (XTtoggle_invisible_pointer): New function.
7666 (x_define_frame_cursor): Don't define cursor if invisible or the
7667 same as before. Set current_cursor.
7668 (x_create_terminal): Set toggle_invisible_pointer_hook.
7669
7670 * xfns.c (make_invisible_cursor): New function.
7671 (x_set_mouse_color): Call make_invisible_cursor.
7672 Set current_cursor.
7673 (x_window): Set current_cursor.
7674
7675 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7676
7677 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7678 inserting a character.
7679 (read_avail_input): Call frame_make_pointer_visible.
7680
7681 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7682 (frame_make_pointer_invisible, frame_make_pointer_visible):
7683 New functions.
e044e4fc
JD
7684 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7685
7686 * frame.h: Declare frame_make_pointer_invisible and
7687 frame_make_pointer_visible.
7688 (struct frame): Add pointer_invisible.
7689
574c8efa
JD
76902009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7691
7b507248
JD
7692 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7693 frame isn't visible.
7694 (xg_frame_resized): If width/height is -1, get size of window
7695 from X server.
7696
7697 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7698 for MapNotify.
7699
835bdaa7 7700 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7701 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7702 (flush_and_sync): Reintroduce.
574c8efa 7703
3f1c6666 77042009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7705
31fd7c5c 7706 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7707
7708 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7709 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7710
7711 * frame.h: Declare Qsticky.
7712
cad9ef74
JD
7713 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7714
7715 * nsfns.m (ns_frame_parm_handlers): Ditto.
7716
7717 * frame.c: Declare Qsticky.
7718 (frame_parms): Add sticky.
7719
7720 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7721
7722 * xterm.h: Declare x_set_sticky.
7723
7724 * xterm.c (x_set_sticky): New function.
7725
69b16610
JD
7726 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7727 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7728 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7729
7730 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7731
7732 * frame.c: Qmaximized is new.
7733 (x_set_frame_parameters): Do not handle fullscreen specially.
7734 Only set width and height if explicitly set.
7735 (x_set_fullscreen): Handle Qmaximized.
7736 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7737 (syms_of_frame): Initialize Qmaximized.
7738
1ac9108a
SM
7739 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7740 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7741
7742 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7743 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7744 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7745 set gravity to NorthWestGravity when USE_GTK.
7746 (set_wm_state): New function.
31fd7c5c 7747 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7748 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7749 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7750 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7751 to x_real_positions and x_fullscreen_adjust.
7752
7753 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7754 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7755 flush_and_sync.
7756 (xg_height_changed): New function.
7757 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7758 and gtk_window_set_policy. Set frame gravity after parsing the
7759 geometry string.
3f1c6666
JD
7760 (xg_update_frame_menubar, free_frame_menubar)
7761 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7762 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7763 Remove calls to xg_frame_set_char_size.
7764
fd503d99
KH
77652009-07-01 Kenichi Handa <handa@m17n.org>
7766
7767 * keyboard.c (decode_keyboard_code): New function.
7768 (tty_read_avail_input): Decode the input bytes if necessary.
7769
1ac9108a
SM
7770 * coding.c (setup_coding_system):
7771 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7772 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7773 use Qno_conversion.
7774
24ed93fb
YM
77752009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7776
7777 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7778
99061dfc
CY
77792009-06-30 Chong Yidong <cyd@stupidchicken.com>
7780
1ac9108a 7781 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7782
ff90fbde
JR
77832009-06-30 Jason Rumney <jasonr@gnu.org>
7784
7785 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7786 is already loaded.
7787 Set user model ID if supported (bug#1849).
7788
5f445726
JM
77892009-06-29 Jim Meyering <meyering@redhat.com>
7790
7791 Remove useless if-before-xfree test.
7792 * nsfont.m (nsfont_close): Remove useless test.
7793 * term.c (delete_tty): Likewise.
7794 * w32.c (system_process_attributes): Likewise.
7795 * w32font.c (w32font_close): Likewise.
7796 * xfaces.c (x_free_gc): Likewise.
7797 * xselect.c (buffer): Likewise.
7798
b9607587
AS
77992009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7800
7801 * process.c (send_process): Keep decoded string in a local
7802 variable and protect it from GC. (Bug#3521)
7803
89ba96f4
EZ
78042009-06-28 Eli Zaretskii <eliz@gnu.org>
7805
7806 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7807 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7808
098a1589
CY
78092009-06-28 Chong Yidong <cyd@stupidchicken.com>
7810
485422be
CY
7811 * xdisp.c (start_display, handle_face_prop)
7812 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7813 (redisplay_window, try_window_id, produce_image_glyph):
7814 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7815
098a1589
CY
7816 * xterm.c (x_update_window_begin, x_new_focus_frame)
7817 (x_scroll_bar_handle_click, handle_one_xevent)
7818 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7819 (x_make_frame_visible, x_make_frame_invisible)
7820 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7821 code chunks that are now obsolete.
7822
78c38319
MA
78232009-06-28 Michael Albinus <michael.albinus@gmx.de>
7824
7825 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7826 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7827 for hours, when optimzation is enabled.
7828 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7829 (xd_read_message): Make them static.
7830
4189ed40
CY
78312009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7832
7833 * term.c (turn_on_face): Allow simultaneously bold and dim
7834 terminal faces (Bug#3530).
7835
cd9b5e16
CY
78362009-06-27 Chong Yidong <cyd@stupidchicken.com>
7837
4e23bedb
CY
7838 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7839
cd9b5e16
CY
7840 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7841 truncation glyphs (Bug#3686).
7842
07cc3c35
GM
78432009-06-27 Glenn Morris <rgm@gnu.org>
7844
7845 * m/pmax.h: Restore file, with only netbsd portions.
7846
31fd7c5c 78472009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7848
cd9b5e16 7849 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7850
42d4a64f
KH
78512009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7852
7853 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7854 the arg FORCE_SYMBOL.
7855
930fe55b 78562009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7857
7858 * fontset.c (fontset_find_font): When a usable rfont_def is found
7859 in a fallback font-group, make it the first element of the group.
7860
57ebc3fd
CY
78612009-06-24 Chong Yidong <cyd@stupidchicken.com>
7862
7863 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7864
f084f942
KH
78652009-06-24 Kenichi Handa <handa@m17n.org>
7866
7867 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7868 set for C.
7869 (fontset_font): Record the availability of a font for C both in
7870 the realized fontsets of the current one and the default one.
7871
2f686c87
DN
78722009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7873
7874 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7875 conditional, it is always defined on AIX.
7876
666e158e
MB
78772009-06-23 Miles Bader <miles@gnu.org>
7878
7879 * window.c (Vrecenter_redisplay): New variable.
7880 (syms_of_window): Initialize it.
7881 (Qtty): New extern declaration.
7882 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7883
c6da7cd2
JM
78842009-06-23 Jim Meyering <meyering@redhat.com>
7885
1ac9108a
SM
7886 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7887 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7888 pointer dereferences are guaranteed to be valid.
c6da7cd2 7889
678dca3d
KH
78902009-06-23 Kenichi Handa <handa@m17n.org>
7891
74d75424
KH
7892 * emacs.c (main): Call init_font ().
7893
7894 * font.h (Vfont_log): Extern it.
7895 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7896
7897 * font.c (font_sort_entities, font_list_entities)
7898 (font_matching_entity, font_open_entity)
7899 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7900 (Vfont_log): Delete static.
7901 (font_log_env_checked): Delete this variable.
7902 (font_add_log): Don't check font_log_env_checked.
7903 (font_deferred_log): Check Vfont_log.
7904 (init_font): New function.
7905
678dca3d
KH
7906 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7907
7908 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7909
7910 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7911
7912 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7913
7914 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7915 (face_for_char): Don't call font_deferred_log here.
7916 (font_for_char): Likewise.
7917
8a668709
CY
79182009-06-22 Chong Yidong <cyd@stupidchicken.com>
7919
9a01ee33
CY
7920 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7921 rather than its background_width for drawing the overline and
7922 underline (Bug#489).
7923
7924 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7925 rather than its background_width for drawing the overline and
7926 underline (Bug#489).
ec7c9926
CY
7927 (xg_default_icon_file): New variable.
7928 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7929 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7930
8a668709
CY
7931 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7932 (load_overlay_strings): Remove externs.
7933 (fast_find_position): Function deleted.
7934 (mouse_face_from_buffer_pos): New function, based on
7935 fast_find_position. Correctly handle before-strings,
7936 display-strings, and after-strings (Bug#1220).
7937 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7938
4d4c02d8
CY
79392009-06-21 Chong Yidong <cyd@stupidchicken.com>
7940
1ac9108a 7941 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7942 (move_it_in_display_line_to, move_it_in_display_line_to)
7943 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7944
70243478
CY
79452009-06-21 Chong Yidong <cyd@stupidchicken.com>
7946
7947 * Branch for 23.1.
7948
13087e59
JR
79492009-06-21 Jason Rumney <jasonr@gnu.org>
7950
7951 * w32term.c (keyboard_codepage): New static variable.
7952 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7953 (w32_read_socket) [WM_CHAR]: Use it to decode character
7954 input (bug#3237).
7955 (w32_initialize): Initialize it.
7956 (codepage_for_locale): New function.
7957
4735b74e
KR
79582009-06-20 Ken Raeburn <raeburn@raeburn.org>
7959
7960 * process.c (status_message): Pass Faset index argument as a lisp
7961 object, so as to work with USE_LISP_UNION_TYPE.
7962
0e727afa
YM
79632009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7964
7965 * coding.c (Ffind_coding_systems_region_internal):
7966 Cache checked characters.
7967
cf299835
KH
79682009-06-18 Kenichi Handa <handa@m17n.org>
7969
1ac9108a 7970 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7971
90f20d94
AS
79722009-06-18 Andreas Schwab <aschwab@redhat.com>
7973
7974 * xdisp.c (redisplay_internal): Check that the frame is still
7975 live after redisplay of its windows.
7976 (redisplay_windows): Check that the window is still live.
7977
7f1faf1c
KH
79782009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7979
7980 * coding.c (detect_coding_utf_16): Fix previous change.
7981
cc13543e
KH
79822009-06-16 Kenichi Handa <handa@m17n.org>
7983
7984 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7985 UTF-16 by checking the dispersion of Eth and Oth bytes.
7986
977b85f4
AS
79872009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7988
7989 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7990
66bd43d1
KH
79912009-06-15 Kenichi Handa <handa@m17n.org>
7992
7993 * process.c (status_message): Fix previous change. Be sure to
7994 decode a localized string.
7995
cb5ca9c5
YM
79962009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7997
7998 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7999 add comment explaining why.
8000
ec7709ba 80012009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8002
ec7709ba 8003 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8004
4b7f335c
AR
80052009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8006
8007 * nsfont.m (ns_attribute_value): Remove.
8008 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8009 (ns_has_attribute): Shrink the normal range.
8010 (ns_findfonts): Don't worry about requested spec in determining
8011 need for synthItal.
e41820ee 8012 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8013
73b26103
SZ
80142009-06-14 Seiji Zenitani <zenitani@mac.com>
8015
8016 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8017
5753e4da
KH
80182009-06-11 Kenichi Handa <handa@m17n.org>
8019
8020 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8021 overhang for the static composition case.
8022
3561b671
KH
80232009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8024
5753e4da
KH
8025 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8026 overhang for the automatic composition case.
8027
3561b671
KH
8028 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8029 composition case.
8030
852bbd41
CY
80312009-06-10 Chong Yidong <cyd@stupidchicken.com>
8032
8033 * xdisp.c (get_next_display_element): When handling wrap-prefix
8034 and line-prefix, treat \n as a control character (bug#3502).
8035
9903d1e6
KH
80362009-06-10 Kenichi Handa <handa@m17n.org>
8037
8038 * font.c (font_parse_family_registry): Fix for one-char foundry.
8039 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8040
0bcbaaaa
CY
80412009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8042
8043 * process.c (status_message): Fix handling of multibyte signal
8044 string (Bug#3499).
8045
40aa3f13
JM
80462009-06-09 Jim Meyering <meyering@redhat.com>
8047
1f80c7e2
CY
8048 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8049 color name is missing.
40aa3f13 8050
72d51285
KH
80512009-06-09 Kenichi Handa <handa@m17n.org>
8052
8053 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8054 FROM-CODE and TO-CODE are codepoints of CHARSET.
8055
c1d04d84
AR
80562009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8057
8058 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8059
80602009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8061
8062 Changes to support :script/:lang/:otf in NS font driver.
8063 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8064 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8065 indicate not part of font driver interface, and change callers.
8066 (ns_get_family): Remove pointless null check.
8067 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8068 ns_spec_to_descriptor, ns_descriptor_to_entity.
8069 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8070 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8071 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8072 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8073 (ns_get_req_script, ns_accumulate_script_ranges)
8074 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8075 New functions.
8076 (nsfont_list, nsfont_match): Use ns_findfonts.
8077 (nsfont_open): Use font descriptor instead of traits.
8078 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8079 (dump_glyphstring): Rename to ns_dump_glyphstring.
8080
c7eb9816
AR
8081 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8082
c1d04d84
AR
8083 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8084
8085 * fontset.c (fontset_from_font): Remove NS-specific code.
8086
ec7709ba 80872009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8088
8089 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8090 nonactive windows.
8091
31fd7c5c 80922009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8093
1ac9108a 8094 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8095
68852c13 80962009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8097
8098 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8099
6756cd1d
CY
81002009-06-07 Chong Yidong <cyd@stupidchicken.com>
8101
8102 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8103 account for the overflowing of newlines into the last glyph on the
8104 display line (Bug#3482).
8105
28bf482a
DR
81062009-06-05 David Reitter <david.reitter@gmail.com>
8107
ec7709ba
JB
8108 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8109 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8110 Fns_selection_exists_p, Fns_selection_owner_p.
8111
fdb55376
JR
81122009-06-03 Jason Rumney <jasonr@gnu.org>
8113
8114 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8115 available. (Bug#3379)
8116
05129fbe
KH
81172009-05-29 Kenichi Handa <handa@m17n.org>
8118
1ac9108a
SM
8119 * coding.c (get_translation_table):
8120 Check Venable_character_translation.
05129fbe 8121
ec7709ba 81222009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8123
ec7709ba
JB
8124 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8125 (x_make_frame_visible): Move frame to front rather than calling
15891144 8126 ns_raise_frame().
ec7709ba 8127 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8128 isn't key window.
ec7709ba 8129 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8130 drawRect may be called by NSView even if the frame is hidden.
8131
ec7709ba
JB
8132 * nsfns.m (Fx_create_frame): Follow other ports in
8133 determining visibility; default to t. Ensure async_visible is set.
15891144 8134
21f73755
EZ
81352009-05-23 Eli Zaretskii <eliz@gnu.org>
8136
8137 * dired.c (Ffile_attributes): Doc fix.
8138
34001e41
CY
81392009-05-22 Chong Yidong <cyd@stupidchicken.com>
8140
8141 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8142
46306a17
SM
81432009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8144
8145 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8146 and xfont_scratch_props.
8147 (syms_of_xfont): Do it here instead.
8148 (xfont_find_ccl_program): Delete, unused.
8149 (xfont_open): Delete unused var `i'.
8150
ef6e0694
KH
81512009-05-21 Kenichi Handa <handa@m17n.org>
8152
8153 * fontset.c (Qlatin): Don't make it static.
8154
46306a17
SM
8155 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8156 New functions.
ef6e0694
KH
8157 (xfont_scripts_cache, xfont_scratch_props): New variables.
8158 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8159 (xfont_list_pattern): Argument changed. Callers changed.
8160 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8161 (xfont_list): Don't reject a font spec with :script property.
8162 (xfont_has_char): Fix setting of encoding.
8163 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8164 xfont_scratch_props.
8165
81662009-05-19 Kenichi Handa <handa@m17n.org>
8167
46306a17 8168 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8169 Callers changed.
8170
81712009-05-18 Kenichi Handa <handa@m17n.org>
8172
8173 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8174
ac71ced7
SM
81752009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8176
8177 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8178 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8179
1c6d1051
YM
81802009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8181
8182 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8183 (x_delete_terminal): Dissociate resource database from display and
8184 then call XrmDestroyDatabase before closing display.
8185
9b9b779c
AR
81862009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8187
8188 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8189 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8190 whether selected frame is viable before raising it (based on patch
8191 by David Reitter), and improve commentary.
8192 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8193
cccd42d5
KH
81942009-05-15 Kenichi Handa <handa@m17n.org>
8195
8196 * font.c (Ffont_spec): Check arguments.
8197
337fbd17
CY
81982009-05-14 Chong Yidong <cyd@stupidchicken.com>
8199
8200 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8201 weight when testing attributes (Bug#3282).
8202
47a6002f
JD
82032009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8204
8205 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8206 what we expect to get in the next ConfigureNotify event.
8207
9cb363db
YM
8208 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8209 before Xft one (Bug#1696).
8210
b9126609
CY
82112009-05-07 David Reitter <david.reitter@gmail.com>
8212
8213 * nsfns.m (Fx_display_planes): Compute bitplanes using
8214 NSBitsPerPixelFromDepth (Bug#3207).
8215
27a69fd9
CY
82162009-05-10 Chong Yidong <cyd@stupidchicken.com>
8217
8218 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8219
00f37552
TTN
82202009-05-10 Ulrich Mueller <ulm@gentoo.org>
8221
8222 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8223
2d82a920
DR
82242009-05-07 David Reitter <david.reitter@gmail.com>
8225
ec7709ba
JB
8226 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8227 Respect mouse face background.
2d82a920 8228
46b0d52d
DR
82292009-05-07 David Reitter <david.reitter@gmail.com>
8230
ec7709ba
JB
8231 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8232 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8233 in ns_update_begin and ns_update_end.
8234
ce1b23bb
SM
82352009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8236
5996e1b7
SM
8237 * nsfns.m (ns_get_screen): Rewrite.
8238 Don't presume selected-frame is of type `ns'.
8239
ba98e3a0
SM
8240 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8241 all drivers.
8242
ce1b23bb
SM
8243 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8244
bcda200f
YM
82452009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8246
8247 * keyboard.h (add_user_signal): Fix typo in extern.
8248
8249 * lisp.h (add_user_signal): Remove extern.
8250
8251 * unexelf.c (unexec): Consider a section to precede the .bss section
8252 if its addresses overlap that of .bss.
8253 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8254 instead of dumping process.
8255
864660a2
SM
82562009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8257
8258 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8259
50da4e56
SM
82602009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8261
8262 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8263
51520a1a
DN
82642009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8265
8266 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8267 any statements.
8268
409ea3a1
AS
82692009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8270
59c4c60f
AS
8271 * process.c (read_process_output): Make sure the current buffer is
8272 always restored.
8273
409ea3a1
AS
8274 * coding.c (record_conversion_result): Don't modify
8275 Vlast_code_conversion_error for successful result.
8276 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8277
56f00ed2
KH
82782009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8279
8280 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8281 (load_charset_map): Remove unnecessary code.
56f00ed2 8282
4491c9d2
DR
82832009-04-30 David Reitter <david.reitter@gmail.com>
8284
35f5b128 8285 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8286 through f24.
8287
6970f632
CY
82882009-04-30 Chong Yidong <cyd@stupidchicken.com>
8289
8290 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8291
8292 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8293 face_at_buffer_position.
8294 (face_before_or_after_it_pos, get_next_display_element)
8295 (note_mouse_highlight): Update face_at_buffer_position call.
8296
8297 * term.c (term_mouse_highlight):
8298 * msdos.c (IT_note_mouse_highlight):
8299 * fontset.c (Finternal_char_font):
35f5b128 8300 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8301
8302 * dispextern.h (face_at_buffer_position): Update prototype.
8303
0c616f63
KH
83042009-04-30 Kenichi Handa <handa@m17n.org>
8305
35f5b128 8306 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8307
ad3aaf33
AS
83082009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8309
8310 * callproc.c (Fcall_process): Fix GC protection. Make sure
8311 current buffer is always restored.
8312
c3c963a0
YM
83132009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8314
8315 * atimer.c (init_atimer): Also clear stopped_atimers.
8316
8317 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8318
7e3386cb
YM
8319 * process.c (create_process): Clean up merger residues of
8320 2008-07-17 change.
8321
91f68422
CY
83222009-04-29 Ulrich Mueller <ulm@gentoo.org>
8323
8324 * lread.c (Vread_circle): New variable.
8325 (read1): Disable recursive read if Vread_circle is nil.
8326
24b34550
KH
83272009-04-29 Kenichi Handa <handa@m17n.org>
8328
8329 * fontset.h (set_default_ascii_font): Delete extern.
8330
8331 * fontset.c (set_default_ascii_font): Delete this unused function.
8332
8333 * frame.c (x_set_font): When ARG is a font-object, check if the
8334 font-object matches with the ASCII font-spec of the frame's
9c358bda 8335 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8336
77bf07e1
AS
83372009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8338
8339 * fns.c (Flocale_info): Protect vector from GC during decoding.
8340
8341 * process.c (Fstart_process): Protect argv strings from GC during
8342 encoding.
8343
2c55aacf
AS
83442009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8345
8346 * sysdep.c: Include <ctype.h>.
8347
b892d3c9
DR
83482009-04-27 David Reitter <david.reitter@gmail.com>
8349
35f5b128 8350 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8351 Remove commented-out code.
8352
9d0644c4
JB
83532009-04-26 Johan Bockgård <bojohan@gnu.org>
8354
8355 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8356
b7053016
JR
83572009-04-25 Jason Rumney <jasonr@gnu.org>
8358
8359 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8360
4e8231f3
YM
83612009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8362
8363 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8364 Swap bytes in short integer if fringe bitmap width > 8.
8365
493dcf2c
KH
83662009-04-23 Kenichi Handa <handa@m17n.org>
8367
8368 * xfaces.c (Fx_list_fonts): If a font size is specified in
8369 PATTERN, set it in returned scalable fonts.
8370
401e9e57
CY
83712009-04-22 Chong Yidong <cyd@stupidchicken.com>
8372
708e05dc
CY
8373 * keyboard.c (Fset_input_meta_mode): Doc fix.
8374
8375 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8376
1ac9108a 8377 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8378
8379 * coding.c (Fterminal_coding_system): Doc fix.
8380
8381 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8382 (Fx_display_pixel_height, Fx_display_planes)
8383 (Fx_display_color_cells, Fx_server_max_request_size)
8384 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8385 (Fx_display_mm_height, Fx_display_mm_width)
8386 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8387 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8388 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8389 (check_x_display_info): Handle terminal objects instead of
8390 terminal ids.
8391
401e9e57
CY
8392 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8393 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8394 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8395 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8396
df80c7f0
KH
83972009-04-21 Kenichi Handa <handa@m17n.org>
8398
5a8f12af 8399 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8400 (font_score): Check AVGWIDTH too.
908567ef 8401
df80c7f0
KH
8402 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8403 worst case.
1ac9108a
SM
8404 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8405 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8406
705af33f
JR
84072009-04-19 Jason Rumney <jasonr@gnu.org>
8408
8409 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8410 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8411
8412 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8413 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8414 get_phys_cursor_geometry.
8415
b71ac3dd 8416 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8417 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8418 using get_phys_cursor_geometry.
8419
8420 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8421 correctly calculated.
8422
dc2933eb
JD
84232009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8424
1ac9108a
SM
8425 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8426 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8427 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8428 is deprecated.
8429
973e7849
AS
84302009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8431
8432 * font.c (font_put_frame_data): Use xfree instead of free.
8433
314d66f4
JB
84342009-04-17 Juanma Barranquero <lekktu@gmail.com>
8435
8436 * w32font.c (Qja, Qko): Remove declarations.
8437 (syms_of_w32font): Don't DEFSYM them.
8438
cf702558
CY
84392009-04-17 Chong Yidong <cyd@stupidchicken.com>
8440
8441 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8442
8443 * font.h (Qja, Qko): Extern them.
8444
8445 * ftfont.c (Qja, Qko): Remove declarations.
8446
8447 * xfont.c (Qja, Qko): Remove declarations.
8448
b50504f5
KH
84492009-04-17 Kenichi Handa <handa@m17n.org>
8450
bde25748
KH
8451 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8452 string from a vector to handle Latin-1 characters correctly.
8453
b50504f5
KH
8454 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8455 entity even if the cache hits.
8456
f4646fff
AS
84572009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8458
8459 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8460 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8461
e7deaab0
AS
8462 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8463 * lisp.h: Adjust prototypes.
8464
0a0e7d49
CY
84652009-04-16 Chong Yidong <cyd@stupidchicken.com>
8466
8467 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8468 change (Bug#3003).
8469
3c908a57
KH
84702009-04-16 Kenichi Handa <handa@m17n.org>
8471
1ac9108a 8472 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8473
8474 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8475 adstyle.
8476
8477 * ftfont.c (Qja, Qko): Don't make them static.
8478 (enum ftfont_cache_for): New enum.
8479 (fc_charset_table): Undo the previous change.
8480 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8481 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8482 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8483 non-scarable font, try to get AVERAGE_WIDTH.
8484 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8485 Change ft_face_cache from a list of a hash-table. Don't check
8486 `ja' and `ko' adstyle here.
8487 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8488 FTFONT_CACHE_FOR_CHARET.
8489 (ftfont_get_charset): Undo the previous change.
1ac9108a 8490 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8491 (ftfont_close): Likewise.
8492 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8493
8494 * font.c (font_sort_entites): Change the meaning of the arg
8495 BEST-ONLY. Don't optimize for VEC of lenght 1.
8496 (font_select_entity): Just return the value of font_sort_entites.
8497
8498 * xfaces.c (merge_face_vectors): Reflect font properties in
8499 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8500 font_clear_prop if a face attribute doesn't change.
8501
3c908a57
KH
8502 * charset.h (charset_ksc5601): Extern it.
8503
8504 * charset.c (charset_ksc5601): New variable.
8505 (Fdefine_charset_internal): Set charset_ksc5601.
8506 (init_charset_once): Initialize charset_ksc5601 to -1.
8507
d65859c3
DN
85082009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8509
8510 * fileio.c (history_delete_duplicates): Remove unused declaration.
8511
8512 * callint.c (history_delete_duplicates): New declaration.
8513 (Fcall_interactively): Remove command history duplicates when
8514 history_delete_duplicates is true.
8515
3ba010e5
EZ
85162009-04-14 Eli Zaretskii <eliz@gnu.org>
8517
8518 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8519
06f19b91
KH
85202009-04-14 Kenichi Handa <handa@m17n.org>
8521
8522 * font.c (Ffont_info): Fix docstring. Fix the second element of
8523 the returned value (bug#2949).
8524
2cce8bfc
CY
85252009-04-14 Chong Yidong <cyd@stupidchicken.com>
8526
8527 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8528
d156542d
KH
85292009-04-14 Kenichi Handa <handa@m17n.org>
8530
8531 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8532 encoding charset is ascii_compatible.
8533
8534 * charset.c (Fdefine_charset_internal): Make charset
8535 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8536 code_offset is 0, and covers all ASCII characters.
8537
86fa089e
SM
85382009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8539
8540 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8541 (ns_string_to_pasteboard_internal):
8542 * nsmenu.m (process_dialog):
8543 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8544 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8545 * lisp.h (Fx_load_color_file): Declare.
8546
a8a3728b
KH
85472009-04-13 Kenichi Handa <handa@m17n.org>
8548
1ac9108a 8549 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8550 (font_select_entity): Suppress the code to optimize for the same
8551 kind of fonts.
8552 (font_load_for_lface): Get a font that supports at least ASCII
8553 characters.
8554
8555 * ftfont.c (Qja, Qko): New variables.
8556 (fc_charset_table): Delete uniquifier data for iso8859-1.
8557 (ftfont_get_latin1_charset): New function.
8558 (get_adstyle_property): New function.
8559 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8560 bitmap fonts.
8561 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8562 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8563 `ko' or `ja'.
8564 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8565 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8566 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8567 property.
8568 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8569 (syms_of_ftfont): DEFSYM Qja and Qko.
8570
483670b5
KH
85712009-04-09 Kenichi Handa <handa@m17n.org>
8572
12b55765
KH
8573 * charset.c (map_charset_chars): For a charset of `superset'
8574 method, fix calculation of code range.
8575
483670b5
KH
8576 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8577 from the list of extra properties.
8578 (font_clear_prop): Be sure to delete `:name' font property.
8579
57d3b93b
KH
85802009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8581
b4b2c2ca
YM
8582 * dispnew.c (redraw_overlapping_rows): Fix detection of
8583 overlapping for topmost and bottommost rows.
8584
1ac9108a 8585 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8586
472c3609
JR
85872009-04-06 Jason Rumney <jasonr@gnu.org>
8588
8589 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8590
ab193662
KH
85912009-04-06 Kenichi Handa <handa@m17n.org>
8592
8593 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8594
8595 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8596
0c26f026
KH
85972009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8598
8599 * ftfont.c (ftfont_open): Fix checking of the return value of
8600 FT_Load_Char. Fix setting font->underline_thickness.
8601
e173bbce
CY
86022009-04-04 Chong Yidong <cyd@stupidchicken.com>
8603
8604 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8605 (Fterminal_parameters, Fterminal_parameter)
8606 (Fset_terminal_parameter): In doc string, refer to terminal
8607 objects rather than terminal ids.
8608
693a2698
EZ
86092009-04-04 Eli Zaretskii <eliz@gnu.org>
8610
8611 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8612 ret_lim_data. (Bug#2867)
8613
d5221487
CY
86142009-04-03 Chong Yidong <cyd@stupidchicken.com>
8615
8616 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8617 so they don't get wider than the window, matching 2006-01-23
8618 change to the partner function in xdisp.c (Bug#2800).
8619
223509a3
KH
86202009-04-03 Kenichi Handa <handa@m17n.org>
8621
8622 * print.c (print_object): Make each lowest sub_char_table start a
8623 new line (Bug#2866).
8624
74fcd0b1
KH
86252009-04-02 Kenichi Handa <handa@m17n.org>
8626
8627 * fontset.c (fontset_font): Record no-font when a fontset
8628 explicitly tells not to try another font-specs.
8629
c542407d
SM
86302009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8631
8632 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8633
e3869731
KH
86342009-03-30 Kenichi Handa <handa@m17n.org>
8635
d8d2f142
KH
8636 * fontset.c (fontset_from_font): Specify only registry in a
8637 font-spec for all characters supported by that registry.
8638
e3869731
KH
8639 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8640 even if HAVE_M17N_FLT is not defined.
8641
5da5f805
CY
86422009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8643
8644 * ftfont.c: Conditionalize prototyping and use of
8645 ftfont_variation_glyphs.
8646
ab226c50
SM
86472009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8648
9628fed7
SM
8649 * frame.c (delete_frame): Work around compiler bug.
8650
8651 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8652 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8653 Some more EMACS_INT.
8654 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8655
8656 * xdisp.c (dump_glyph): Fix typo.
8657
ae19ba7c
SM
8658 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8659 (adjust_markers_gap_motion, adjust_markers_for_delete)
8660 (adjust_markers_for_insert, adjust_point)
8661 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8662 (make_gap, copy_text, count_size_as_multibyte, insert)
8663 (insert_and_inherit, insert_before_markers)
8664 (insert_before_markers_and_inherit, insert_1)
8665 (count_combining_before, count_combining_after, insert_1_both)
8666 (insert_from_string, insert_from_string_before_markers)
8667 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8668 (insert_from_buffer_1, adjust_after_replace)
8669 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8670 (replace_range_2, del_range, del_range_1, del_range_byte)
8671 (del_range_both, del_range_2, modify_region)
8672 (prepare_to_modify_buffer, signal_before_change)
8673 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8674 for buffer positions and sizes.
8675 * lisp.h: Adjust prototypes accordingly.
8676
8677 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8678 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8679 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8680
ab226c50
SM
8681 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8682
46dfb8fb
JD
86832009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8684
8685 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8686 lines and columns so we keep the same pixel height and width.
8687
8688 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8689 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8690 (x_handle_net_wm_state): New function to update frame parameter
8691 fullscreen.
8692 (x_term_init): Initialize atoms for _NET_WM_STATE.
8693
8694 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8695
d347e494
SM
86962009-03-27 Kevin Ryde <user42@zip.com.au>
8697
8698 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8699 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8700 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8701 (Fgpm_mouse_stop): Pass that new parameter.
8702 * termhooks.h (close_gpm): Adjust prototype.
8703
84db11d6
SM
87042009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8705
c95a5008
SM
8706 * lisp.h (Fx_focus_frame): Declare.
8707
84db11d6
SM
8708 * callint.c (Fcall_interactively): For '^' just delegate the work to
8709 handle-shift-selection.
8710 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8711
0a1958d6
CY
87122009-03-24 Chong Yidong <cyd@stupidchicken.com>
8713
0bfdff23
CY
8714 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8715
0a1958d6
CY
8716 * data.c (Qinteractive_form): New variable.
8717 (Finteractive_form): Use it.
8718
8719 * eval.c (Fcommandp): Use Qinteractive_form.
8720
58aec0d6
JR
87212009-03-24 Jason Rumney <jasonr@gnu.org>
8722
8723 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8724 Calculate total size precisely. Decode environment variables
8725 before substituting. (Bug#38)
8726
553dd618
KH
87272009-03-24 Kenichi Handa <handa@m17n.org>
8728
8729 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8730 encoding (Bug#2722).
553dd618 8731
c39ea606
JD
87322009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8733
8734 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8735 that gdpy is set.
8736
bc9b2b5e
AM
87372009-03-22 Alan Mackenzie <acm@muc.de>
8738
8739 * callint.c (Finteractive): Clarify the doc string - even
8740 promptless elements need \n separators.
8741
9f995a76
JR
87422009-03-22 Jason Rumney <jasonr@gnu.org>
8743
8744 * w32term.c (syms_of_w32term): Doc fix for
8745 x-use-underline-position-properties.
8746
22749e9a
EZ
87472009-03-21 Eli Zaretskii <eliz@gnu.org>
8748
8749 * w32.c (getpwuid): Change argument type to unsigned.
8750 (struct w32_id): Change type of `rid' member to unsigned.
8751 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8752 argument ID to unsigned. All callers changed.
8753 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8754
e00553bf
EZ
87552009-03-20 Eli Zaretskii <eliz@gnu.org>
8756
8757 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8758 negative, produce a float value.
8759
8760 * dired.c (make_uid, make_gid): New functions.
8761 (Ffile_attributes): Use them to avoid negative UID and GID.
8762
f761d6b6
JB
87632009-03-20 Juanma Barranquero <lekktu@gmail.com>
8764
8765 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8766 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8767 Fix typos in docstrings.
8768
d507f8d7
KH
87692009-03-19 Kenichi Handa <handa@m17n.org>
8770
8771 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8772 changed, use font_load_for_lface to get a new font object.
8773 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8774
8775 * frame.c (x_set_font): Handle the case that ARG is a cons.
8776
c68845e0
GM
87772009-03-19 Glenn Morris <rgm@gnu.org>
8778
8779 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8780
bfa49dd1
CY
87812009-03-19 Chong Yidong <cyd@stupidchicken.com>
8782
8783 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8784
8458d4c1
KH
87852009-03-19 Kenichi Handa <handa@m17n.org>
8786
8787 * charset.c (load_charset_map_from_file): When a mapfile can't be
8788 loaded, signal an error.
8789
78e7d1fe
EZ
87902009-03-18 Eli Zaretskii <eliz@gnu.org>
8791
8792 * dired.c (Ffile_attributes): Make sure UID and GID are always
8793 positive, even if the value is too large for a positive EMACS_INT.
8794 Doc fix.
8795
8796 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8797
5da9fdfa
YM
87982009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8799
8800 * xmenu.c (xdialog_show): Move Fredisplay call ...
8801 (Fx_popup_dialog): ... here.
8802
7519c40d
SM
88032009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8804
8805 * dired.c (file_name_completion): Disable the first optimization just
8806 installed, since it is not implemented correctly.
8807
2cd298e2
SM
88082009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8809
8810 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8811 only if the entry can affect bestmatch.
2cd298e2
SM
8812 Stop the search early, as Ftry_completion already does.
8813
48d37adf
CY
88142009-03-17 Chong Yidong <cyd@stupidchicken.com>
8815
e10c9c93 8816 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8817
9286b16a
CY
88182009-03-15 Chong Yidong <cyd@stupidchicken.com>
8819
8820 * keyboard.c (parse_menu_item): Don't display remappings as menu
8821 equivalent bindings (Bug#788).
8822
f7b146dc
JR
88232009-03-15 Jason Rumney <jasonr@gnu.org>
8824
8825 * w32term.h (WM_EMACS_PAINT): New message.
8826 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8827 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8828 before passing to lisp thread. (Bug#950)
8829
f761d6b6 88302009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8831
d93f9575
CY
8832 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8833 variable as it was never reset.
8834 (ns_term_init): Remove initialization of Lisp-settable defaults
8835 and ns_expand_space.
8836 (-setPanelFromDefaultValues): Remove ns_expand_space.
8837 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8838 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8839 i.e. no additional spacing, similar to Carbon port.
8840
d93f9575
CY
8841 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8842 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8843
305018ec
JD
88442009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8845
8846 * sound.c (alsa_configure): Remove call to deprecated
8847 snd_pcm_sw_params_set_xfer_align.
8848
f761d6b6 88492009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8850
8851 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8852 after clicking in a detached tool bar.
8853 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8854
46e722a9
SM
88552009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8856
348db3dd
SM
8857 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8858 int/Lisp_Object mixup).
46e722a9 8859
a3d16f39
KH
88602009-03-13 Kenichi Handa <handa@m17n.org>
8861
8862 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8863 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8864 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8865 (set_fontset_font): Change ARG to a vector. Handle range_list in
8866 ARG correctly.
8867 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8868 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8869 the above change.
8870 (fontset_from_font): Fix previous change.
fe24f56a 8871 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8872 entry. If FONTSET is the default fontset, don't set the extra
8873 slot of the returning char-table.
8874
b066e6b6
JB
88752009-03-12 Juanma Barranquero <lekktu@gmail.com>
8876
8877 * nsfns.m (Fx_close_connection): Doc fix.
8878 (Fns_do_applescript): Reflow docstring.
8879 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8880 (Fx_display_pixel_width, Fx_display_pixel_height)
8881 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8882 Fix typos in docstrings.
8883 (Fns_set_alpha): Fix typos in error messages.
8884
d472514e 88852009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8886
d472514e 8887 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8888 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8889 were used for such events.
8890
d472514e
JB
8891 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8892 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8893
d472514e 8894 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8895 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8896
fb930676
KH
88972009-03-11 Kenichi Handa <handa@m17n.org>
8898
ff85581a
KH
8899 * font.h (font_open_by_spec): Extern it.
8900
c50b7e98
KH
8901 * font.c (font_open_by_spec): New function.
8902 (font_open_by_name): Use font_open_by_spec.
8903
fb930676
KH
8904 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8905 fontset of the frame.
8906
8907 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8908 modify the default font of frames that use this fontset.
8909 (num_auto_fontsets): New variable.
8910 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8911 name. Be sure to set FONTSET_ASCII to the correct font name.
8912 (update_auto_fontset_alist): New function.
8913
df4e8455
JB
89142009-03-11 Juanma Barranquero <lekktu@gmail.com>
8915
8916 * makefile.w32-in: Update dependencies.
8917
0a375797
AR
89182009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8919
8920 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8921
61313fa3
SM
89222009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8923
8924 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8925
b55103fb
CY
89262009-03-10 Chong Yidong <cyd@stupidchicken.com>
8927
8928 * lread.c (Feval_buffer): Doc fix.
8929
dde2559c
KH
89302009-03-09 Kenichi Handa <handa@m17n.org>
8931
8932 * charset.c (Qfile_name_handler_alist): Extern it.
8933 (load_charset_map_from_file): Temporarily bind
8934 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8935
df4e8455 89362009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8937
47f588bb
GM
8938 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8939 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8940
4ddf94bd
AR
89412009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8942
4c9bdfc2
AR
8943 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8944 (x_set_window_size): Change back to calculated method of setting
8945 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8946 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8947 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8948
fe41ae9e
AR
8949 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8950
4c9bdfc2
AR
8951 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8952 accelerator in parens under GNUstep.
8953
825d0875
KH
89542009-03-06 Kenichi Handa <handa@m17n.org>
8955
8956 These changes are to detect incorrect composition sequence without
f3b3be74 8957 looking ahead the source. (Bug#2370)
825d0875
KH
8958
8959 * coding.h: Include "composite.h".
8960 (enum compisition_state): New enum.
8961 (struct compisition_status): New struct.
8962 (struct iso_2022_spec): New member cmp_status.
8963 (struct emacs_mule_spec): New struct.
8964 (struct coding_system): New members ctext_extended_segment_len and
8965 embedded_utf_8. Change the union member
8966 spec.emacs_mule_full_support to spec.emacs_mule.
8967
8968 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8969 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8970 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8971 (ADD_COMPOSITION_DATA): New arg nbytes.
8972 (emacs_mule_char): New arg cmp_status.
8973 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8974 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8975 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8976 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8977 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8978 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8979 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8980 (EMACS_MULE_COMPOSITION_END): New macro.
8981 (emacs_mule_finish_composition): New function.
8982 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8983 (decode_coding_emacs_mule): Avoid long looking ahead while
8984 handling composition.
8985 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8986 (ENCODE_COMPOSITION_RULE): New macro.
8987 (finish_composition): New function.
8988 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8989 (DECODE_COMPOSITION_START): New implementation.
8990 (DECODE_COMPOSITION_END): Likewise.
8991 (STORE_COMPOSITION_RULE): New macro.
8992 (decode_coding_iso_2022): Avoid long looking ahead while handling
8993 composition, CTEXT extended segment, and embedded UTF-8.
8994 (setup_coding_system): For a coding of type iso-2022, reset
8995 CODING_ISO_EXTSEGMENT_LEN (coding) and
8996 CODING_ISO_EMBEDDED_UTF_8 (coding).
8997 (get_translation): Delete arguments last_block, from_nchars,
8998 to_nchars. Callers changed.
8999 (produce_chars): Don't modify charbuf. Adjusted for the change of
9000 get_translation.
98a326f7 9001 (produce_composition): Adjust for the new annotation sequence.
825d0875 9002 (handle_composition_annotation): Likewise.
98a326f7 9003 (consume_chars): Adjust for the change of get_translation.
825d0875 9004
ccbc4452
AR
90052009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9006
4ddf94bd 9007 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9008
988a7ddb
KH
90092009-03-05 Kenichi Handa <handa@m17n.org>
9010
9011 * font.c (font_select_entity): New function.
9012 (font_find_for_lface): Use font_select_entity to select a font.
9013
9014 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9015 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9016 font with C restriction.
9017
98a326f7 90182009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9019
be1bce46 9020 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9021
10ea2b82
JR
90222009-03-04 Jason Rumney <jasonr@gnu.org>
9023
2c93b248 9024 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9025 characters that have already been read. (Bug#2569)
2c93b248 9026
10ea2b82
JR
9027 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9028 Log an error message if check_image_size failed.
9029 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9030 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9031
71a0c011
EZ
90322009-03-02 Eli Zaretskii <eliz@gnu.org>
9033
9034 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9035 when decoding process output.
9036
2f63bba8
RS
90372009-03-01 Richard M Stallman <rms@gnu.org>
9038
9039 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9040
9041 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9042
0a9564cb
EZ
90432009-02-28 Eli Zaretskii <eliz@gnu.org>
9044
9045 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9046 (decode_coding_emacs_mule, decode_coding_iso_2022)
9047 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9048 (decode_coding_raw_text, decode_coding_charset)
9049 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9050 Honor inhibit-eol-conversion. (Bug #2186)
9051
449148b3
JR
90522009-02-28 Jason Rumney <jasonr@gnu.org>
9053
9054 * coding.c (detect_coding_charset): If not checking latin extra,
9055 fail on characters between 0x80 and 0xA0. (Bug#2354)
9056
a4aee864
EZ
90572009-02-28 Eli Zaretskii <eliz@gnu.org>
9058
9059 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9060 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9061
d88bee5a
GM
90622009-02-27 Glenn Morris <rgm@gnu.org>
9063
9064 * callint.c (Finteractive): Doc fix.
9065
a808f22d
KH
90662009-02-27 Kenichi Handa <handa@m17n.org>
9067
9068 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9069
caf8d60c
CY
90702009-02-27 Chong Yidong <cyd@stupidchicken.com>
9071
9072 * font.c (font_style_to_value): Set value for unknown symbols to
9073 100 instead of 255.
b61137ea
CY
9074 (weight_table, slant_table, width_table): Treat "unspecified" as
9075 the default value.
caf8d60c 9076
1a0de25c
JB
90772009-02-26 Juanma Barranquero <lekktu@gmail.com>
9078
9079 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9080
8fc45744
JB
90812009-02-25 Juanma Barranquero <lekktu@gmail.com>
9082
107bd7d1
JB
9083 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9084 error as soon as a recursive load is detected.
8fc45744 9085
f097e223
AR
90862009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9087
9088 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9089 before caching.
9090
8810a12f
KH
90912009-02-24 Kenichi Handa <handa@m17n.org>
9092
9093 * fontset.c (fontset_find_font): Fix the condition for checking
9094 unavailable font.
9095
2c7d1565
GM
90962009-02-24 Glenn Morris <rgm@gnu.org>
9097
9098 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9099 whitespace that confuses documentation.
9100
a20878b6
MB
91012009-02-23 Miles Bader <miles@gnu.org>
9102
9103 * process.c (Flist_system_processes, Fprocess_attributes)
9104 (syms_of_process): Rename `system-process-attributes' to
9105 `process-attributes'.
9106
b3b58c01
AS
91072009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9108
1b3b981b
AS
9109 * coding.h (struct coding_system): Make safe_charsets a pointer to
9110 unsigned char.
9111 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9112 being 255.
9113 (SAFE_CHARSET_P): Likewise.
9114 (setup_iso_safe_charsets): Properly setup safe_charsets.
9115 (Fdefine_coding_system_internal): Likewise.
9116 (setup_coding_system): Likewise. Remove unneeded casts.
9117 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9118 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9119 unneeded casts.
9120
b3b58c01
AS
9121 * insdel.c (del_range_2): Don't modify gap contents when called
9122 from decode_coding_object. (Bug#1809)
9123
0b6f228c
CY
91242009-02-21 Chong Yidong <cyd@stupidchicken.com>
9125
9126 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9127 Qfont_object.
9128 (Ftype_of): Recognize font objects.
9129
9130 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9131
9132 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9133 moved to data.c.
9134
52f8870b
AR
91352009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9136
9137 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9138 async_iconified. Based on a patch by Christian Lynbech
9139 <christian.lynbech@tieto.com>.
9140 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9141
7087d5e9
GM
91422009-02-20 Glenn Morris <rgm@gnu.org>
9143
9144 * syntax.c (Fskip_chars_forward): Fix doc typo.
9145
41d2ceef
CY
91462009-02-20 Chong Yidong <cyd@stupidchicken.com>
9147
9148 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9149
1a3b7ca6
CY
91502009-02-19 Chong Yidong <cyd@stupidchicken.com>
9151
9152 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9153
73cce38d
KH
91542009-02-19 Kenichi Handa <handa@m17n.org>
9155
9156 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9157 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9158
a51092ee
DN
91592009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9160
9161 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9162
c423ecca
KH
91632009-02-18 Kenichi Handa <handa@m17n.org>
9164
9165 * font.c (font_check_otf_features): Fix handling of `nil' element.
9166 (Ffont_spec): Describe :lang and :otf in the docstring.
9167
4c1958f4
AS
91682009-02-16 Andreas Schwab <schwab@suse.de>
9169
9170 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9171 string.
9172
5704f39a
KH
91732009-02-16 Kenichi Handa <handa@m17n.org>
9174
9175 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9176 (Bug#1723)
5704f39a 9177
8f0085aa
CY
91782009-02-14 Chong Yidong <cyd@stupidchicken.com>
9179
a057d86a 9180 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9181
9182 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9183 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9184
aff01dd9
EZ
91852009-02-14 Eli Zaretskii <eliz@gnu.org>
9186
9187 * msdos.c (MAX_SCREEN_BUF): New macro.
9188 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9189 Encode the entire run of glyphs sharing the same face, instead of
9190 doing that one glyph at a time (fixes a bug with displaying
9191 double-size characters).
9192
ba301db3
AR
91932009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9194
9195 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9196
9197 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9198 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9199 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9200
9201 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9202 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9203
51d861de
SM
92042009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9205
ac146f82 9206 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9207 invisible areas.
9208
7fed8996
JR
92092009-02-12 Jason Rumney <jasonr@gnu.org>
9210
631ea4fb
JR
9211 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9212 (add_font_entity_to_list): Call check_face_name even when family
9213 is unspecified.
9214
cb4a3e42
JR
9215 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9216 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9217 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9218
7fed8996 9219 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9220 raster fonts. (Bug#2219)
7fed8996 9221
895416e3
KH
92222009-02-12 Kenichi Handa <handa@m17n.org>
9223
9224 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9225 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9226 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9227 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9228 (find_automatic_composition): While looking forward and backward,
9229 check static composition. Fix where to stop looking forward.
9230 (composition_adjust_point): Fix checking of static composition.
9231 (Fcomposition_get_gstring): Pay attention to
1dacf998 9232 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9233
9234 * lisp.h (fast_looking_at): Extern it.
9235
9236 * search.c (fast_looking_at): New function.
9237
51d861de 9238 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9239 <struct glyph>.u.cmp.to.
9240 (append_composite_glyph): Likewise.
9241
51d861de 9242 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9243 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9244 composition.
51d861de 9245 (append_composite_glyph): Adjust for the change of
895416e3
KH
9246 <strcut glyph>.u.cmp.to.
9247
8510724d
JB
92482009-02-11 Juanma Barranquero <lekktu@gmail.com>
9249
9250 * casetab.c (init_casetab_once):
9251 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9252 * font.c (font_update_lface):
9253 * fontset.c (Fnew_fontset):
9254 * ftfont.c (ftfont_drive_otf):
9255 * xfont.c (xfont_open):
9256 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9257
294fa707
SM
92582009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9259
9260 * fileio.c (Fwrite_region): !NILP -> CONSP.
9261
b5bfebec
AS
92622009-02-10 Andreas Schwab <schwab@suse.de>
9263
9264 * process.c (send_process): Properly relocate pointer into data
adab88bd 9265 when using encoded data. (Bug#2272)
b5bfebec 9266
cb84a2be
KH
92672009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9268
9269 * coding.c (detect_coding_charset): Fix previous change.
9270
89e09428
JR
92712009-02-08 Jason Rumney <jasonr@gnu.org>
9272
9273 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9274 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9275
4470a277
AS
92762009-02-07 Andreas Schwab <schwab@suse.de>
9277
9278 * unexelf.c (unexec): Fix error message.
9279
3175b12a
AR
92802009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9281
9282 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9283 when modal window is active. (Bug #2152)
3175b12a
AR
9284 (applicationShouldTerminate:): Remove now-unneeded while loop
9285 around NSRunAlertPanel.
9286
9287 * nsmenu.m (popupSession): New file-global variable.
9288 (pop_down_menu): End the popupSession before closing dialog.
9289 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9290 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9291 don't query NSApp for events (just sleep instead).
9292
8434d0b8
EZ
92932009-02-07 Eli Zaretskii <eliz@gnu.org>
9294
51d861de
SM
9295 * coding.c (syms_of_coding) <translation-table-for-input>:
9296 Modify doc string to discourage use for character code unification.
8434d0b8 9297
aa82edfd
CY
92982009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9299
9300 * atimer.c (run_timers): Update pending_atimers.
9301
2d283c7c
CY
93022009-02-06 Chong Yidong <cyd@stupidchicken.com>
9303
eb306cab
CY
9304 * image.c (svg_load_image): Fix last change.
9305
2d283c7c
CY
9306 * xfns.c (Fx_create_frame): Signal an error if no font is
9307 found (Bug#2147).
9308
4d8e170e
JB
93092009-02-05 Juanma Barranquero <lekktu@gmail.com>
9310
9311 * character.c (syms_of_character) <script-representative-chars>:
9312 Fix typo in docstring.
9313
c96169a0
AR
93142009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9315
9316 * nsmenu.m (pop_down_menu): New function.
9317 (ns_popup_dialog): Call it on unwind.
9318 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9319 call timer_check() (Bug#2154).
9320 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9321 handling_signal is set.
9322 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9323
31fd7c5c 9324 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9325
9326 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9327
9328 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9329
51d861de
SM
9330 * keyboard.c (poll_for_input_1, handle_async_input):
9331 Set handling_signal under HAVE_NS.
c96169a0 9332
aacd8ba1
GM
93332009-02-04 Glenn Morris <rgm@gnu.org>
9334
9335 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9336
4cb75c4b
KH
93372009-02-04 Kenichi Handa <handa@m17n.org>
9338
9339 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9340
9341 * charset.c (Fchar_charset): New optional arg restriction.
9342
9343 * coding.h (coding_system_charset_list): Extern it.
9344
9345 * coding.c (coding_system_charset_list): New function.
9346
9347 * composite.c: Include coding.h and termhooks.h.
9348 (composition_gstring_p): Fix for the terminal case.
9349 (composition_gstring_width): Likewise.
9350 (fill_gstring_body): Likewise.
9351 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9352 the frame.
9353 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9354 is within a composition.
867d4bb3 9355 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9356
9357 * term.c (encode_terminal_code): Fix handling of composition.
9358 (produce_composite_glyph): For static composition, get pixel_width
9359 from struct composition.
9360
826ba17e
AS
93612009-02-02 Andreas Schwab <schwab@suse.de>
9362
9363 * unexelf.c (unexec): Handle unaligned bss offset.
9364
8ad093db
AR
93652009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9366
9367 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9368 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9369
8ad093db
AR
9370 * keyboard.c (handle_interrupt): Don't call
9371 quit_throw_to_read_char() under NS.
d0a76a6e 9372
8ad093db
AR
9373 * blockinput.h: Remove NS-specific code.
9374
4d18a7a2
DN
93752009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9376
db878925
DN
9377 * dispnew.c (window_change_signal): Don't try to get the size of a
9378 suspended tty frame.
9379 * term.c (Fresume_tty): Resize if the size has changed while the
9380 tty was suspended.
9381
4d18a7a2
DN
9382 * alloc.c (mark_stack): Properly conditionalize previous change.
9383
8984df7c
JB
93842009-01-30 Juanma Barranquero <lekktu@gmail.com>
9385
9386 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9387 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9388 Remove; this code is not used on Windows.
9389
75f4f1ac
EZ
93902009-01-30 Eli Zaretskii <eliz@gnu.org>
9391
9392 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9393 EOLs that also has stray ^M characters.
9394
07a1e794
JB
93952009-01-30 Juanma Barranquero <lekktu@gmail.com>
9396
9397 * atimer.c (run_timers, alarm_signal_handler):
9398 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9399 * w32inevt.c (w32_console_read_socket):
9400 * w32term.c (w32_read_socket):
9401 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9402
a8b11cc9
CY
94032009-01-30 Chong Yidong <cyd@stupidchicken.com>
9404
9405 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9406 Initialize it as a relative filename pattern.
9407 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9408 (Fcall_process_region): Simplify temp file creation using
9409 temporary-file-directory.
9410
c279587b
EZ
94112009-01-29 Eli Zaretskii <eliz@gnu.org>
9412
9413 * msdos.c: Rename pending_signals to msdos_pending_signals.
9414 (sig_suspender, sigprocmask): Adjust.
9415
a8fe3242
CY
94162009-01-29 Chong Yidong <cyd@stupidchicken.com>
9417
9418 * keyboard.c (pending_signals): New var.
9419 (poll_for_input, input_available_signal, init_keyboard): Set it.
9420 (process_pending_signals): New function.
9421
9422 * lisp.h (QUIT): Check pending_signals instead of
9423 interrupt_input_pending. Use process_pending_signals.
9424
51d861de 9425 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9426
51d861de 9427 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9428
9429 * sysdep.c (emacs_write): Use process_pending_signals.
9430
9431 * xterm.c (XTread_socket): Update pending_signals.
9432
9433 * w32term.c (w32_read_socket): Update pending_signals.
9434
9435 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9436
6570a1c4
KH
94372009-01-29 Kenichi Handa <handa@m17n.org>
9438
9439 * xftfont.c (xftfont_has_char): New function.
9440 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9441
d72a4afa
AR
94422009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9443
9444 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9445 under GNUstep.
9446 (ns_query_color): New declaration.
9447
9448 * nsterm.m (ns_confirm_quit): New variable.
9449 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9450 (EmacsApp-applicationShouldTerminate:): Use it.
9451 (EmacsPrefsController): Let user set it.
9452 (ns_query_color): New function.
9453 (ns_defined_color): Use it.
9454 (ns_initialize): Drop.
9455 (ns_term_init): Add two lines from ns_initialize(), and set
9456 input_interrupt_mode to nil.
9457
9458 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9459 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9460
9fe78804
KH
94612009-01-28 Kenichi Handa <handa@m17n.org>
9462
9463 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9464 (fontset_get_font_group): Remember that no font-group is specified
9465 for C.
9fe78804 9466
fa57de36
CY
94672009-01-27 Chong Yidong <cyd@stupidchicken.com>
9468
930600e9
CY
9469 * fns.c (concat): Check for string overflow (bug#1787).
9470
fa57de36
CY
9471 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9472 Quadruple undo limits (bug#1501).
9473
7179ce7b
KH
94742009-01-27 Kenichi Handa <handa@m17n.org>
9475
9476 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9477 directly use GT_Get_Char_index.
9478
9479 * xftfont.c (struct xftfont_info): New member `index'.
9480
9481 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9482 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9483
5be8fcc0
CY
94842009-01-26 Kenichi Handa <handa@m17n.org>
9485
9486 * fontset.c (fontset_find_font): Fix handling of non-cons return
9487 value of fontset_get_font_group.
9488 (fontset_font): Revert last change.
9489
19ae3e61
JR
94902009-01-26 Jason Rumney <jasonr@gnu.org>
9491
9492 * w32font.c (w32font_list_internal): Return quickly if registry is
9493 unknown. Simplify final return.
9494 (add_font_entity_to_list): Break complex logic down into more
9495 manageable chunks. Move unknown registry check to
9496 w32font_list_internal.
9497
8612b71a
AR
94982009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9499
9500 Changes to remove Feval calls from GUI under NS.
9501
d8038940
JB
9502 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9503 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9504 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9505
9506 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9507 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9508 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9509 instead of NON_ASCII_KEYSTROKE_EVENT.
9510 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9511 (EmacsApp-applicationShouldTerminate:): Query user.
9512 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9513 instead of Feval.
9514
9515 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9516
9517 * keyboard.c (kbd_buffer_get_event): Check for it.
9518 (keys_of_keyboard): Define lispy keys for
9519 ns-put/unput-working-text.
9520
9521 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9522 versions.
9523 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9524
6288ae55
CY
95252009-01-25 Chong Yidong <cyd@stupidchicken.com>
9526
9527 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9528 setting current_buffer directly. (Bug#2044)
6288ae55 9529
289e7f8f
CY
95302009-01-24 Chong Yidong <cyd@stupidchicken.com>
9531
5ce87308 9532 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9533 any work. (Bug#1952, bug#1990).
5ce87308 9534
64cc3cf6 9535 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9536
b3243e6f
AR
95372009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9538
9539 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9540 (ns_no_defaults): New declaration.
9541 (main): Use it.
e0d2e69a 9542
d900b2af 9543 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9544
d900b2af 9545 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9546
d900b2af
AR
9547 * nsterm.m (ns_no_defaults): New variable.
9548 (ns_initialize): Don't read defaults when ns_no_defaults.
9549 (EmacsView-readSelectionFromPasteboard:)
9550 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9551 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9552 (ns_dumpglyphs_stretch): New function.
9553 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9554 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9555
e0d2e69a
AR
9556 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9557
3ac71f5d
CY
95582009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9559
9560 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9561 call for Sparc64.
9562
3fe53a83
AR
95632009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9564
9565 * nsfns.m:
9566 * nsgui.h:
9567 * nsmenu.m:
9568 * nsselect.m:
9569 * nsterm.h:
9570 * nsterm.m: Remove '23' comments that indicated code added during
9571 update from emacs-20 -> emacs-23.
9572
10f87c6f 95732009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9574
9575 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9576 ns_alternate_modifier. (Bug#1217)
a3b53a85 9577
c7cef62d
AR
9578 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9579 Display all shortcuts, including those w/o super modifier.
9580
575fb8bd
AR
9581 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9582
918b848b
CY
95832009-01-22 Chong Yidong <cyd@stupidchicken.com>
9584
9585 * fileio.c (Vwrite_region_post_annotation_function)
9586 (Vwrite_region_annotation_buffers): New vars.
9587 (build_annotations_unwind): Just reset
9588 Vwrite_region_annotation_buffers.
9589 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9590 Call write-region-post-annotation-function.
9591 (build_annotations): Add to Vwrite_region_annotation_buffers if
9592 buffer changes.
9593
a39e2539
AR
95942009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9595
9596 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9597 Tiger.
51d861de
SM
9598 * nsfns.m (ns_do_applescript):
9599 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9600
35ed44db
AR
96012009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9602
9603 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9604
cbe0b5bf
AR
96052009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9606
9607 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9608
6049d3a0
AR
9609 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9610
9611 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9612 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9613 handle Ctrl-tab. (Bug#1841)
9614 (ns_get_color): Use unsigned long long for scanned hex string value.
9615 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9616 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9617 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9618 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9619 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9620 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9621 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9622
d3810c21 9623 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9624 DPI. (Bug#1316)
d3810c21
AR
9625 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9626 values in onTiger section.
4c7077c3 9627
e301e634
CY
96282009-01-19 Chong Yidong <cyd@stupidchicken.com>
9629
7f82490b
CY
9630 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9631 Check return value of font_spec_from_name.
64cc3cf6 9632 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9633
9634 * font.c (font_spec_from_name): Return Qnil if font name could not
9635 be parsed.
9636 (font_parse_name): Treat a `?' character as part of an XLFD.
9637
e301e634
CY
9638 * fns.c (Fsubstring): Doc fix.
9639
1c0db158
KH
96402009-01-19 Kenichi Handa <handa@m17n.org>
9641
51d861de 9642 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9643 (ftfont_list): Likewise.
9644
acf20901
JB
96452009-01-18 Juanma Barranquero <lekktu@gmail.com>
9646
fff4e459
JB
9647 * dbusbind.c (Fdbus_register_signal):
9648 * process.c (conv_sockaddr_to_lisp):
9649 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9650
acf20901
JB
9651 * callproc.c (Fgetenv_internal): Doc fix.
9652
e7abcdfb
CY
96532009-01-16 Chong Yidong <cyd@stupidchicken.com>
9654
9655 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9656 it is not even used.
9657
b60861e6
GM
96582009-01-16 Glenn Morris <rgm@gnu.org>
9659
9660 * font.c (Ffont_variation_glyphs): Silence compiler.
9661
8db52afe
JB
96622009-01-15 Juanma Barranquero <lekktu@gmail.com>
9663
9664 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9665 Reported by David Robinow <drobinow@gmail.com>.
9666
4cddb209
KH
96672009-01-15 Kenichi Handa <handa@m17n.org>
9668
51d861de 9669 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9670
f247f67b
JR
96712009-01-14 Jason Rumney <jasonr@gnu.org>
9672
9673 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9674 never a fontset. (Bug#1562)
f247f67b 9675
f56a4450
KH
96762009-01-14 Kenichi Handa <handa@m17n.org>
9677
9678 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9679 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9680
4e99855e
CY
96812009-01-13 Chong Yidong <cyd@stupidchicken.com>
9682
9683 * font.c (font_clear_prop): If clearing the family, clear the font
9684 width index too.
9685
fff4e459 9686 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9687
24f01470
JB
96882009-01-12 Juanma Barranquero <lekktu@gmail.com>
9689
9690 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9691 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9692 functions, use sizeof.
9693
a41240a3
MR
96942009-01-12 Martin Rudalics <rudalics@gmx.at>
9695
9696 * keyboard.c (read_char): Fix case where last_nonmenu_event
9697 returned a bad value with submenus. (Bug#447)
9698
944636b8
CY
96992009-01-12 Chong Yidong <cyd@stupidchicken.com>
9700
9701 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9702 family, clear the font width index too.
9703
0dad7c6f
JR
97042009-01-11 Jason Rumney <jasonr@gnu.org>
9705
9706 * keyboard.c (cmd_error_internal): Exit when errors occur before
9707 frame creation and not in daemon mode. (Bug#1836)
9708
7c2363af
CY
97092009-01-10 Chong Yidong <cyd@stupidchicken.com>
9710
9711 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9712 of a display vector, backtrack.
9713 (try_window_reusing_current_matrix): Check glyph type before
9714 referencing charpos member.
9715
97b1b294
EZ
97162009-01-10 Eli Zaretskii <eliz@gnu.org>
9717
9718 Fix Bug #876:
9719
9720 * coding.c (inhibit_null_byte_detection): New variable.
9721 (detect_coding, detect_coding_system): Don't pay attention to null
9722 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9723 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9724 <inhibit-iso-escape-detection>: Doc fix.
9725
4624b6e3
JR
97262009-01-09 Jason Rumney <jasonr@gnu.org>
9727
9728 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9729 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9730 Only report Unicode Plane 2 fonts as unicode-sip.
9731
323b840c
CY
97322009-01-09 Chong Yidong <cyd@stupidchicken.com>
9733
51d861de
SM
9734 * xfaces.c (Fx_font_family_list): Delete function.
9735 Move compatibility version to faces.el.
323b840c 9736
51d861de 9737 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9738
eba7400d
MR
97392009-01-09 Martin Rudalics <rudalics@gmx.at>
9740
9741 * frame.c (x_set_frame_parameters): Remember requested value for
9742 fullscreen before it's reset by the parameter handler.
9743
4b09796d
GM
97442009-01-09 Glenn Morris <rgm@gnu.org>
9745
9746 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9747 (last_command_event): ... and update all users.
4b09796d
GM
9748 (last_input_char): For clarity, rename to...
9749 (last_input_event): ... and update all users.
9750 (last-command-char, last-input-char): Move to subr.el as aliases.
9751 * cmds.c, commands.h: Update for last_command_char rename.
9752
14ccea62
CY
97532009-01-08 Chong Yidong <cyd@stupidchicken.com>
9754
51d861de 9755 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9756
5f004711
JR
97572009-01-08 Jason Rumney <jasonr@gnu.org>
9758
9759 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9760 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9761 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9762 Don't declare.
fff4e459 9763 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9764 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9765
b71f6f73
KH
97662009-01-07 Kenichi Handa <handa@m17n.org>
9767
50b06221 9768 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9769 remember the coding system used for decoding in
50b06221
KH
9770 coding_system (Bug#1039).
9771
b71f6f73 9772 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9773 breaking the loop. (Bug#870)
b71f6f73
KH
9774 (decode_coding_utf_16, decode_coding_emacs_mule)
9775 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9776 (decode_coding_charset): Likewise.
9777
56f668f7
MR
97782009-01-05 Martin Rudalics <rudalics@gmx.at>
9779
9780 * frame.c (x_set_frame_parameters): Make sure height (width) get
9781 applied when fullwidth (fullheight) is set. (Bug#1522)
9782
5da9424d
JB
97832009-01-04 Juanma Barranquero <lekktu@gmail.com>
9784
9785 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9786 (utc_base): Declare as ULONGLONG, not long double.
9787 (convert_time_raw): Delete.
9788 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9789 (initialize_utc_base): New function.
9790 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9791 (convert_from_time_t): Use initialize_utc_base; compute result with
9792 64-bit arithmetic.
9793 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9794
c4605e09
EZ
97952009-01-03 Eli Zaretskii <eliz@gnu.org>
9796
9acef61c 9797 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9798 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9799 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9800 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9801 [!subprocesses]: Define.
9802 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9803 (Flist_system_processes, Fsystem_process_attributes)
9804 [!subprocesses]: Call list_system_processes and
9805 system_process_attributes instead of returning Qnil.
9806
9acef61c
JB
9807 * dosfns.c (system_process_attributes, list_system_processes):
9808 New functions.
c4605e09
EZ
9809
9810 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9811
9812 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9813 Don't use the default (no-op) implementation.
9814
8b7d0a16
JR
98152009-01-03 Jason Rumney <jasonr@gnu.org>
9816
a6d46bc1
JR
9817 * keyboard.c (parse_modifiers_uncached): Wheel events are
9818 clicks (bug#687).
9819
8b7d0a16
JR
9820 * w32term.c (x_query_colors, x_query_color): New functions.
9821
9822 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9823 (svg_load_image): Cast returned pointers from dynamically loaded
9824 functions. Eliminate W32 specific code.
9825
bfe11752
DN
98262009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9827
89e2438a
DN
9828 * nsfns.m (x_set_foreground_color, x_set_background_color)
9829 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9830 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9831 x_ prefix instead of ns_. Update references.
9832 (syms_of_nsfns): Add a FIXME comment.
9833
9834 * nsterm.m (x_set_cursor_type): New prototype.
9835 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9836
bfe11752
DN
9837 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9838 for Solaris instead of incorrectly providing Qutime and Qcutime.
9839
031da700
EZ
98402009-01-02 Eli Zaretskii <eliz@gnu.org>
9841
9842 * w32.c (process_times): Compute sum of utime and stime.
9843 (system_process_attributes): Add Qtime to the alist.
9844
9845 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9846 and add them to the alist.
9847
9848 * process.c (top level) <Qtime, Qctime>: New variables.
9849 (syms_of_process): staticpro them.
9850 (Fsystem_process_attributes): Add their documentation to the doc
9851 string.
9852
9853 * process.h: Declare Qtime and Qctime.
9854
df23bf08
JR
98552009-01-02 Jason Rumney <jasonr@gnu.org>
9856
9acef61c 9857 * image.c (Qgobject): New symbol.
df23bf08
JR
9858 (syms_of_image): Initialize it.
9859 (init_svg_functions): Load some functions from gobject library.
9860
5bbdf7aa
DN
98612009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9862
9863 * frame.c (make_terminal_frame): Remove redundant code and useless
9864 block.
9865
63136da6
AS
98662009-01-01 Andreas Schwab <schwab@suse.de>
9867
9868 * process.c (conv_sockaddr_to_lisp): Add workaround for
9869 getsockname bug on BSD.
9870
9ef69046
CY
98712009-01-01 Chong Yidong <cyd@stupidchicken.com>
9872
d6fafbe0
CY
9873 * xfns.c (x_create_tip_frame): Set border width of the X window.
9874
51d861de 9875 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9876
f9c34147
JR
98772009-01-01 Jason Rumney <jasonr@gnu.org>
9878
9acef61c 9879 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9880 Don't block input, as per earlier xterm.c changes.
9881
f5497e45
AR
98822008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9883
9884 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9885 (ns_appkit_version_int): New function.
9886 (x-server-version): Use ns_appkit_version_int and follow 21+
9887 convention of returning 3 integers.
9888
c19cab20
KH
98892008-12-30 Kenichi Handa <handa@m17n.org>
9890
9891 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9892 (CHAR_SURROGATE_PAIR_P): New macro.
9893
9894 * font.h (struct font_driver): New member get_variation_glyphs.
9895
9acef61c 9896 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9897 (Ffont_variation_glyphs): New function.
9898 (syms_of_font): Defsubr it.
9899
9900 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9901 ftfont_variation_glyphs.
9902 (setup_otf_gstring): New function.
9903 (ftfont_drive_otf): Use it.
9904 (ftfont_shape_by_flt): Handle variation selector.
9905 (ftfont_variation_glyphs): New function.
9906
28cd591f
MR
99072008-12-30 Martin Rudalics <rudalics@gmx.at>
9908
9909 * frame.c (Vemacs_iconified): Remove.
9910
7f714baf
JR
99112008-12-30 Jason Rumney <jasonr@gnu.org>
9912
9913 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9914 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9915
9d2d22ab
CY
99162008-12-30 Chong Yidong <cyd@stupidchicken.com>
9917
9918 * indent.c (Fvertical_motion): Don't advance iterator if we have
9919 reseated to the desired position.
9920
9921 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9922 checking for pos match.
9923
545312c2
KH
99242008-12-30 Kenichi Handa <handa@m17n.org>
9925
1ede3eb6
KH
9926 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9927 just get the low 8-bit of the code.
9928
545312c2
KH
9929 * font.c (font_intern_prop): Validate str as multibyte.
9930
bd7bbf29
DN
99312008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9932
31e0750e
DN
9933 * dispextern.h (struct face): Move lface and hash from the middle
9934 of bitfields.
9935
bd7bbf29
DN
9936 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9937
b5672e7c
DN
99382008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9939
9940 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9941 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9942 instead of intervals.h.
9943
d704470f
AS
99442008-12-26 Andreas Schwab <schwab@suse.de>
9945
9946 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9947 cons.
9948
54b33868
MR
99492008-12-26 Martin Rudalics <rudalics@gmx.at>
9950
9951 * textprop.c (Qminibuffer_prompt): New variable.
9952 (syms_of_textprop): Initialize it.
9953 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9954 in minibuffer-prompt face. (Bug#1662)
9955
40b615d6
JR
99562008-12-25 Jason Rumney <jasonr@gnu.org>
9957
9958 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9959
baae5c2d
JR
99602008-12-24 Jason Rumney <jasonr@gnu.org>
9961
9962 * ralloc.c (r_alloc_reset_variable): New function.
9963
9964 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9965 record of what points where. (Bug#716)
baae5c2d 9966
a9051c88
DN
99672008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9968
9969 * minibuf.c (read_minibuf): Follow the non-interactive case when
9970 running as a daemon, before detaching.
9971
8b146312
AS
99722008-12-22 Andreas Schwab <schwab@suse.de>
9973
9974 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9975 * gtkutil.c (free_widget_value): Use xfree instead of free.
9976
56f2de10
MR
99772008-12-22 Martin Rudalics <rudalics@gmx.at>
9978
9979 * frame.c (delete_frame): New function derived from
9980 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9981 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9982 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9983 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9984 * frame.h: Extern delete_frame.
9985 * window.c (window_loop):
9986 * terminal.c (delete_terminal):
9987 * xterm.c (x_connection_closed):
9988 * xfns.c (Fx_hide_tip):
9acef61c 9989 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9990
1fc200d6
JR
99912008-12-21 Jason Rumney <jasonr@gnu.org>
9992
9993 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9994 when character maps to .notdef character.
9995
5e252df2
SM
99962008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9997
9998 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9999
99b72cc4
JR
100002008-12-20 Jason Rumney <jasonr@gnu.org>
10001
10002 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10003 a graphical frame on Windows. (Bug#1325)
99b72cc4 10004
acc49a52
JD
100052008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10006
10007 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10008
6ea15123
CY
100092008-12-20 Chong Yidong <cyd@stupidchicken.com>
10010
10011 * minibuf.c (Fread_buffer): Doc fix.
10012
b2dab6c8
JR
100132008-12-20 Jason Rumney <jasonr@gnu.org>
10014
54ea0c87 10015 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10016 server name in UNC paths. (Bug#719)
54ea0c87 10017
b2dab6c8 10018 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10019 charbuf. (Bug#1035)
b2dab6c8 10020
6d1921be
DN
100212008-12-19 Daniel Engeler <engeler@gmail.com>
10022
10023 * sysdep.c (serial_configure): Fix typo.
10024
53934c98
DN
100252008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10026
10027 * sysdep.c: Include alloca.h.
f4f634e8
DN
10028 (system_process_attributes): Add implementation for Solaris.
10029
10030 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10031
06e111a6
DN
100322008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10033
10034 Reorganize implementation of Flist_system_processes and
10035 Fsystem_process_attributes. No functional changes.
10036 * process.c: Don't #include pwd.h, grp.h and limits.h.
10037 (Flist_system_processes): Just call list_system_processes.
10038 (Fsystem_process_attributes): Just call system_process_attributes.
10039 (procfs_list_system_processes, time_from_jiffies)
10040 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10041 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10042
10043 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10044 (list_system_processes): Rename from
10045 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10046 Provide a do nothing implementation.
10047 (system_process_attributes): Rename from
10048 procfs_list_system_processes.
10049 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10050 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10051
10052 * w32.c (list_system_processes): Rename from
10053 w32_list_system_processes.
10054 (system_process_attributes): Rename from
10055 w32_system_process_attributes.
10056
10057 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10058
10059 * process.h (w32_list_system_processes)
10060 (w32_system_process_attributes): Remove.
362654a6
JB
10061 (list_system_processes, system_process_attributes):
10062 New prototypes.
06e111a6 10063
6a705b23
KH
100642008-12-19 Kenichi Handa <handa@m17n.org>
10065
10066 * xfont.c (xfont_decode_coding_xlfd): New function.
10067 (xfont_encode_coding_xlfd): New function.
10068 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10069 (xfont_list): Decode and encode XLFD by iso-8859-1.
10070 (xfont_match): Likewise.
10071 (xfont_list_family): Likewise.
10072 (xfont_open): Likewise.
10073
d66c0241 10074 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10075 names are utf-8.
10076
d66c0241 10077 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10078 names are utf-8.
10079
5a130941
JD
100802008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10081
10082 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10083 changed.
bfd20325
JD
10084 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10085 clicked on a detached tool bar button.
5a130941 10086
fd95644b
DN
100872008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10088
10089 * emacs.c (main): Print and error and exit when no data is read
10090 from the pipe.
10091
e6eee6ae
JR
100922008-12-17 Jason Rumney <jasonr@gnu.org>
10093
10094 * w32font.c (w32font_has_char): Always return -1.
10095
a35dd56b
KH
100962008-12-16 Kenichi Handa <handa@m17n.org>
10097
10098 * font.c (font_open_entity): Fix previous change.
10099
0e3635c2
DN
101002008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10101
10102 * process.c: Include <limits.h>.
10103
d4835507 101042008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10105
10106 * font.c (font_update_drivers): Fix mistake in reconstructing the
10107 driver list.
10108
101092008-12-16 Chong Yidong <cyd@stupidchicken.com>
10110
10111 * font.c (font_clear_cache): Fix format of font cache data.
10112
e2cbc401
CY
101132008-12-15 Chong Yidong <cyd@stupidchicken.com>
10114
10115 * xftfont.c (xftfont_open): Free Xft font pattern if
10116 XftFontOpenPattern fails.
10117
10118 * xterm.c (x_free_frame_resources): Remove extraneous call to
10119 free_frame_faces.
10120
b131d535
CY
101212008-12-13 Chong Yidong <cyd@stupidchicken.com>
10122
10123 * xterm.c (x_delete_display): Move xim_close_dpy call to
10124 x_delete_terminal.
10125 (x_delete_terminal): Call xim_close_dpy.
10126
e6df5336
JR
101272008-12-13 Jason Rumney <jasonr@gnu.org>
10128
10129 * w32font.c (intern_font_name): New function.
10130 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10131 (w32font_open_internal, Fx_select_font): Decode font name.
10132 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10133
10134 * w32font.h (intern_font_name): Declare new function.
10135
10136 * w32uniscribe.c (add_opentype_font_name_to_list):
10137 Use intern_font_name.
10138
20d68145
CY
101392008-12-13 Chong Yidong <cyd@stupidchicken.com>
10140
9f2554de
CY
10141 * frame.c (Fdelete_frame): Call free_font_driver_list.
10142
3d9bec9a
CY
10143 * font.c (free_font_driver_list): Implement missing function.
10144
20d68145
CY
10145 * w32term.c (w32_term_init): Don't initialize the image cache
10146 here; it will be done in init_frame_faces.
10147
10148 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10149 (struct x_display_info): Remove unused member null_pixel. New
10150 member xim_callback_data.
10151
10152 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10153 (xim_initialize): Save pointer to callback function data.
10154 (xim_close_dpy): Free callback function data. Call XCloseIM,
10155 reverting 2008-11-04 change by David Smith.
10156 (x_term_init): Don't initialize the image cache here; it will be
10157 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10158 (x_delete_display): Free x_dnd_atoms member.
10159
96f9306b
KH
101602008-12-13 Kenichi Handa <handa@m17n.org>
10161
6dec9044
JB
10162 * font.c (font_rescale_ratio): Moved from xfaces.c.
10163 Argument type changed. Handle a font-spec too.
96f9306b 10164 (font_score): Check Vface_font_rescale_alist.
6dec9044 10165 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10166
10167 * xfaces.c (font_rescale_ratio): Moved to font.c.
10168
8d5b4964
CY
101692008-12-13 Chong Yidong <cyd@stupidchicken.com>
10170
10171 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10172
e6df5336
JR
101732008-12-12 Jason Rumney <jasonr@gnu.org>
10174
10175 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10176 Vwindow_system_version to the real w32 major version.
10177
97c6058a
DN
101782008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10179
10180 * term.c (init_tty): Move setting the terminal name before the
10181 potential user: maybe_fatal.
10182
ec4e88d7
CY
101832008-12-11 Chong Yidong <cyd@stupidchicken.com>
10184
d4835507
JB
10185 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10186 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10187
b4233ec9
JR
101882008-12-11 Jason Rumney <jasonr@gnu.org>
10189
8ec71e23 10190 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10191 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10192
b4233ec9 10193 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10194 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10195
011a0143
JB
101962008-12-11 Juanma Barranquero <lekktu@gmail.com>
10197
10198 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10199
3c309f34
JB
102002008-12-11 Juanma Barranquero <lekktu@gmail.com>
10201
10202 * process.c (Fsystem_process_attributes, syms_of_process):
10203 Fix typo in name of Ssystem_process_attributes.
10204 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10205
fedc6ab5
JB
102062008-12-11 Juanma Barranquero <lekktu@gmail.com>
10207
10208 * syntax.c (Fmodify_syntax_entry): Doc fix.
10209
ba3de0e8
JB
102102008-12-10 Juanma Barranquero <lekktu@gmail.com>
10211
10212 * font.c (Ffont_spec): Move usage to end of docstring.
10213
174f1c74
JR
102142008-12-10 Jason Rumney <jasonr@gnu.org>
10215
10216 * w32font.c (Qcham): New symbol.
10217 (font_supported_scripts): Add cham, and comments for other new
10218 scripts in bitfield from OpenType spec.
9d32f818
JR
10219 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10220 contain characters beyond the bmp.
174f1c74 10221
7b649478
KH
102222008-12-10 Kenichi Handa <handa@m17n.org>
10223
10224 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10225 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10226 Qunicode_sip.
10227
2133e2d1
JB
102282008-12-10 Juanma Barranquero <lekktu@gmail.com>
10229
10230 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10231 (Fcoding_system_put): Use QCdefault_char.
10232 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10233
9af886ee
CY
102342008-12-09 Chong Yidong <cyd@stupidchicken.com>
10235
74d819eb
CY
10236 * xftfont.c (syms_of_xftfont): Fix typo.
10237
4ccfa1c0 10238 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10239
7c19d3ae
DN
102402008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10241
10242 * emacs.c (main): Close daemon_pipe on exec.
10243
567826bb
CY
102442008-12-08 Chong Yidong <cyd@stupidchicken.com>
10245
10246 * termchar.h (struct tty): New members termcap_term_buffer and
10247 termcap_strings_buffer.
10248
10249 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10250 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10251 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10252 All callers changed.
10253 (init_tty): Store termcap data and string buffers in new struct
10254 tty members termcap_term_buffer and termcap_strings_buffer.
10255 (delete_tty): Free them.
4ccfa1c0 10256 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10257
aa96c42b
SZ
102582008-12-07 Seiji Zenitani <zenitani@mac.com>
10259
10260 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10261 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10262
b7e1d896
CY
102632008-12-06 Chong Yidong <cyd@stupidchicken.com>
10264
10265 * coding.c (make_conversion_work_buffer): Disable buffer
10266 modification hooks in the work buffer.
10267
b5ec91a5
EZ
102682008-12-05 Eli Zaretskii <eliz@gnu.org>
10269
10270 * process.c (procfs_system_process_attributes): If `nread' has a
10271 negative value, assign zero to it.
10272
a5d2a52b
CY
102732008-12-05 Chong Yidong <cyd@stupidchicken.com>
10274
68c5540b 10275 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10276
7bf1bb21
KH
102772008-12-05 Kenichi Handa <handa@m17n.org>
10278
10279 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10280 second character is a combining character.
10281
2fdc7d00
EZ
102822008-12-05 Eli Zaretskii <eliz@gnu.org>
10283
10284 * process.c (procfs_system_process_attributes): Don't use cmd,
10285 cmdsize, and q without initializing them first.
10286
bf6bfba8
JR
102872008-12-04 Jason Rumney <jasonr@gnu.org>
10288
10289 * w32font.c (w32font_draw): Initialize orig_clip before getting
10290 it, and delete it when finished.
10291
a3b1a468
DN
102922008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10293
10294 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10295 case when running as a daemon before detaching.
10296
8b8be8eb
JB
102972008-12-03 Juanma Barranquero <lekktu@gmail.com>
10298
805f2638 10299 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10300
b1bde622
KH
103012008-12-03 Kenichi Handa <handa@m17n.org>
10302
e500c47d
KH
10303 * font.c (font_at): Set `multibyte' at first.
10304
ca516334
KH
10305 * coding.c (decode_coding_charset): Check type of an element of
10306 vector VALIDS.
7bf1bb21 10307 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10308
4ccfa1c0 10309 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10310 (font_for_char): Likewise.
10311
1e5ecd37
CY
103122008-12-03 Chong Yidong <cyd@stupidchicken.com>
10313
d5b01609 10314 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10315 (font_update_lface): Handle fonts with corrupted size specs,
10316 i.e. non-int and non-float.
d5b01609 10317
11e3a6e4 10318 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10319 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10320 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10321
ab06788b
CY
10322 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10323
1e5ecd37 10324 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10325 underline_minimum_offset for underline position.
1e5ecd37 10326
63c125ab
DN
103272008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10328
10329 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10330
10331 * character.c (c_string_width): Specify the type for LEN.
10332
3a8406e1
KH
103332008-12-03 Kenichi Handa <handa@m17n.org>
10334
4ccfa1c0 10335 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10336 (decode_coding_utf_8): Likewise.
4ccfa1c0 10337 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10338 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10339
651df7d9
CY
103402008-12-02 Chong Yidong <cyd@stupidchicken.com>
10341
10342 * keyboard.c (make_lispy_position): Only use PT if the selected
10343 window is current.
10344
1f625c6c
AS
103452008-12-02 Andreas Schwab <schwab@suse.de>
10346
f7741ce9
AS
10347 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10348
1f625c6c
AS
10349 * doprnt.c (doprnt1): Fix size of charbuf.
10350
92bc2678
CY
103512008-12-02 Chong Yidong <cyd@stupidchicken.com>
10352
10353 * keyboard.c (timer_check): Revert last change.
10354
93b9e8cc
JB
103552008-12-02 Juanma Barranquero <lekktu@gmail.com>
10356
10357 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10358
fd7a37d5
JB
103592008-12-01 Juanma Barranquero <lekktu@gmail.com>
10360
10361 * makefile.w32-in: Update dependencies.
10362 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10363
c115043b
AS
103642008-12-01 Andreas Schwab <schwab@suse.de>
10365
10366 * font.c (register_font_driver): Use xmalloc.
10367 (font_put_frame_data): Likewise.
10368
f5668d2a
CY
103692008-12-01 Chong Yidong <cyd@stupidchicken.com>
10370
860d96be
CY
10371 * xfaces.c (realize_x_face): Make abort condition clearer.
10372
f5668d2a
CY
10373 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10374
379c17e7
CY
103752008-11-30 Chong Yidong <cyd@stupidchicken.com>
10376
10377 * keyboard.c (timer_check): After a timer runs, ensure that the
10378 selected window's buffer is current.
10379
35f36d65
JB
103802008-11-30 Juanma Barranquero <lekktu@gmail.com>
10381
f952c61c
JB
10382 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10383 It was accidentally restored by the Unicode merge.
10384
35f36d65
JB
10385 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10386
b23077df
JB
103872008-11-29 Juanma Barranquero <lekktu@gmail.com>
10388
10389 * w32proc.c: Include "coding.h".
10390 (Fw32_short_file_name): Encode filename passed to Windows API.
10391 (Fw32_long_file_name): Encode filename passed to Windows API and
10392 decode back the result. (Bug#1433)
10393
b8ebe9dd
KH
103942008-11-29 Kenichi Handa <handa@m17n.org>
10395
8cc53f96
KH
10396 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10397 not before accessing it.
10398
b8ebe9dd
KH
10399 * charset.c (Fdefine_charset_internal): After calculating
10400 min_char, max_char, and fastmap, copy the charset structure again.
10401 (encode_char): Fix the previous change.
10402
59bc82c0
SZ
104032008-11-28 Seiji Zenitani <zenitani@mac.com>
10404
10405 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10406
10407 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10408
10409 * nsterm.m (x_set_frame_alpha): New function.
10410
32247e3d
EZ
104112008-11-27 Eli Zaretskii <eliz@gnu.org>
10412
10413 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10414
b003e5ff
JB
104152008-11-27 Juanma Barranquero <lekktu@gmail.com>
10416
10417 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10418 pointer to check_face_name.
10419
708550f5
KH
104202008-11-27 Kenichi Handa <handa@m17n.org>
10421
10422 * category.h (SET_CATEGORY_SET): Call set_category_set.
10423 (set_category_set): Extern it.
10424
10425 * category.c (hash_get_category_set): New function.
10426 (Fmodify_category_entry): Adjusted for the change of
10427 char_table_ref_and_range. Call hash_get_category_set to get a
10428 category set to store in the table.
10429
10430 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10431 Funify_charset.
10432
2ae37cf0 10433 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10434 (DECODE_CHAR): Check if the decoder vector is ready.
10435 (ENCODE_CHAR): Check if the encoder char-table is ready.
10436 (maybe_unify_char): Extern it.
10437
10438 * charset.c (Vchar_unified_charset_table): Delete it.
10439 (inhibit_load_charset_map): New variable.
10440 (temp_charset_work): New variable.
10441 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10442 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10443 New macros.
10444 (load_charset_map): Meaning of control_flag changed. If
10445 inhibit_load_charset_map is nonzero, setup a table in
10446 temp_charset_work.
10447 (load_charset): New argument control_flag.
10448 (map_charset_for_dump): New function.
10449 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10450 map_charset_for_dump.
10451 (Fdefine_charset_internal): If the charset method is MAP, load
10452 mapping tables by calling load_charset.
10453 (Funify_charset): Don't load a mapping table but directly set
10454 Vchar_unify_table.
10455 (maybe_unify_char): New function.
10456 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10457 Handle the case of inhibit_load_charset_map being nonzero.
10458 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10459 Handle the case of inhibit_load_charset_map being nonzero.
10460 (Fclear_charset_maps): Just free temp_charset_work.
10461 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10462 variable.
10463
10464 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10465 change of char_table_ref_and_range.
10466 (char_table_ref_and_range): Change the meaning of argument FROM
10467 and TO. Now the caller must provide initial values for *FROM
10468 and *TO.
10469
10470 * fontset.c (fontset_add): Adjusted for the change of
10471 char_table_ref_and_range.
10472 (fontset_get_font_group): Likewise.
10473 (Ffontset_info): Likewise.
10474
10475 * keymap.c (describe_vector): Adjusted for the change of
10476 char_table_ref_and_range. For char-table, put boundary between
10477 non-ASCII and 8-bit characters.
10478
10479 * print.c (print_object): For bool-vector, delete unnecessary
10480 check of ASCII_BYTE_P.
10481
9196133b
JR
104822008-11-26 Jason Rumney <jasonr@gnu.org>
10483
10484 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10485 leading in font height. (Bug#879)
9196133b 10486
9f688acf
GM
104872008-11-26 Glenn Morris <rgm@gnu.org>
10488
10489 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10490 redefinition with ifdef. (Bug#1383)
10491
90d19aff
AR
104922008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10493
10494 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10495
4ccfa1c0 104962008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10497
10498 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10499 New EmacsView methods.
10500 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10501 Fixes bug #1048,1357,1414.
10502
105032008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10504
10505 Fix bug #1362.
10506 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10507 is not an indexed color.
10508 * nsterm.m (free_indexed_color): Add argument checking.
10509 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10510
e7d5ecb3
CY
105112008-11-24 Chong Yidong <cyd@stupidchicken.com>
10512
10513 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10514 Document confirm-after-completion value for
10515 minibuffer-completion-confirm.
10516
c285743c
JR
105172008-11-24 Jason Rumney <jasonr@gnu.org>
10518
10519 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10520 warning.
10521
b0857706
JR
105222008-11-23 Jason Rumney <jasonr@gnu.org>
10523
10524 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10525 restored before returning.
10526
10527 * w32font.c (check_face_name): New function.
10528 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10529 fonts. (Bug#642)
b0857706 10530
ee50ff07
MR
105312008-11-22 Martin Rudalics <rudalics@gmx.at>
10532
10533 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10534 confirm-nonexistent-file-or-buffer in doc-string.
10535
b8ff72fa
SM
105362008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10537
10538 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10539 Fix copy/paste typo. Add checks.
10540
cee53ed4
KH
105412008-11-21 Kenichi Handa <handa@m17n.org>
10542
10543 * coding.c (detect_coding_iso_2022): Reject invalid composition
10544 sequence.
10545 (DECODE_COMPOSITION_START): If the current source is the last
10546 block, and the current composition doesn't end, regard this
10547 sequence as invalid.
10548 (decode_coding_iso_2022): Handle invalid composition sequence.
10549
f6ef1e65
MR
105502008-11-20 Martin Rudalics <rudalics@gmx.at>
10551
10552 * window.c (coordinates_in_window): Don't return
10553 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10554 line when the window is not the rightmost one. (Bug#1372)
10555
e08b1705
MR
105562008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10557
10558 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10559
ad98e89f
EZ
105602008-11-15 Eli Zaretskii <eliz@gnu.org>
10561
10562 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10563 and bright_bg if noninteractive is non-zero.
10564
fb098a4b
CY
105652008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10566
10567 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10568 x_draw_glyph_string_background.
10569
10570 * w32term.c (x_draw_glyph_string): Likewise.
10571
ce952b6e
CY
105722008-11-15 Chong Yidong <cyd@stupidchicken.com>
10573
10574 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10575 the next glyph string once past the overhang width.
10576
10577 * nsterm.m (ns_draw_glyph_string): Likewise.
10578
10579 * w32term.c (x_draw_glyph_string): Likewise.
10580
26ea7079
CY
105812008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10582
10583 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10584 double file close.
10585
1c33c906
MR
105862008-11-14 Martin Rudalics <rudalics@gmx.at>
10587
10588 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10589 dedicated status of window before attempting to display another
10590 buffer in it.
10591
8fc29035
JB
105922008-11-14 Juanma Barranquero <lekktu@gmail.com>
10593
10594 * msdos.c (Fmsdos_long_file_names):
10595 (syms_of_msdos) <dos-unsupported-char-glyph>:
10596 * dosfns.c (Fint86): Fix typos in docstrings.
10597
55fb4286
EZ
105982008-11-14 Eli Zaretskii <eliz@gnu.org>
10599
10600 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10601
3fda0315
KY
106022008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10603
10604 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10605
7e849c17
CY
106062008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10607
10608 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10609
10610 * frame.h: Negative alpha means "don't touch".
10611
10612 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10613
10614 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10615
b9fd67bd
DN
106162008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10617
10618 * hftctl.c:
10619 * chpdef.h:
10620 * acldef.h: Remove files used only for systems no longer supported.
10621
10622 * Makefile.in: Fix .o alphabetical ordering.
10623 (hftctl.o): Remove dependency, file removed.
10624 (keymap.o, print.o): Depend on charset.h.
10625
d5998e03
KH
106262008-11-10 Kenichi Handa <handa@m17n.org>
10627
2ae37cf0 10628 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10629
be70e183
CY
106302008-11-08 Chong Yidong <cyd@stupidchicken.com>
10631
10632 * dired.c (file_name_completion): If completion_ignore_case is
10633 enabled, ignore case when checking completion-regexp-list.
10634
7cf94eac
EZ
106352008-11-08 Eli Zaretskii <eliz@gnu.org>
10636
10637 * vm-limit.c (get_lim_data): Fix last change.
10638
ee107a89
KH
106392008-11-08 Kenichi Handa <handa@m17n.org>
10640
10641 * character.c (Fget_byte): New function.
10642 (syms_of_character): Defsubr Fget_byte.
10643
5fd15622
CY
106442008-11-07 Chong Yidong <cyd@stupidchicken.com>
10645
10646 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10647 cursor position is valid after scrolling.
10648
13d62fad
JB
106492008-11-06 Juanma Barranquero <lekktu@gmail.com>
10650
10651 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10652
a1dd2936
GM
106532008-11-06 Glenn Morris <rgm@gnu.org>
10654
10655 * xterm.c (handle_one_xevent): Don't let popup menus cause
10656 mouse-autoselect-window related window switching. (Bug#1261)
10657
860cd236
CY
106582008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10659
10660 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10661
653a3150
AS
106622008-11-04 Andreas Schwab <schwab@suse.de>
10663
10664 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10665
870f5cac
CY
106662008-11-03 Chong Yidong <cyd@stupidchicken.com>
10667
10668 * xfns.c (Fx_wm_set_size_hint): New function.
10669
1e02f3cb
MR
106702008-11-03 Martin Rudalics <rudalics@gmx.at>
10671
10672 * textprop.c (Fprevious_single_char_property_change): Return 0
10673 when there's no change in a string. (Bug#1301)
10674
e630dfc6
MR
106752008-11-02 Martin Rudalics <rudalics@gmx.at>
10676
10677 * frame.c (do_switch_frame): New argument NORECORD passed to
10678 Fselect_window.
10679 (Fselect_frame): New argument NORECORD passed to
10680 do_switch_frame.
10681 (Fset_frame_selected_window): New argument NORECORD passed to
10682 Fselect_frame.
10683 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10684 in call of do_switch_frame.
10685 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10686 Handle NORECORD argument in call of Fselect_frame.
10687 * lisp.h (do_switch_frame, Fselect_frame)
10688 (Fset_frame_selected_window): Adjust declarations.
10689 * window.c (select_frame_norecord): New function.
10690 (run_window_configuration_change_hook): Use it and call
10691 Fselect_frame with NORECORD set.
10692 (Fselect_window): Pass NORECORD to Fselect_frame.
10693 (Fset_window_configuration): Handle NORECORD argument in call of
10694 do_switch_frame.
10695 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10696 Fset_frame_selected_window.
10697 * keyboard.c (command_loop_1): Handle NORECORD in call of
10698 Fselect_frame (currently ifdefd).
10699
9020b223
GM
107002008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10701
10702 * emacs.c (USAGE2): Untabify.
10703
793ffee8
SM
107042008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10705
10706 * composite.c (fill_gstring_header): Fix copy/paste typo.
10707
ab6d1131
MR
107082008-10-31 Martin Rudalics <rudalics@gmx.at>
10709
10710 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10711 (Fother_window): Rename argument and rewrite doc-string.
10712 (select_window_norecord): Fix return value. (Bug#1276)
10713
601a9cf1
JB
107142008-10-30 Juanma Barranquero <lekktu@gmail.com>
10715
10716 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10717 new frames overriding foreground for tooltips. Based on similar patch
10718 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10719
813b0652
CY
107202008-10-29 Chong Yidong <cyd@stupidchicken.com>
10721
10722 * emacs.c (Fdaemon_initialized): Initialize nfd.
10723
4414f58f
MR
107242008-10-29 Martin Rudalics <rudalics@gmx.at>
10725
10726 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10727 (Fwindow_text_height): Clarify doc-strings.
10728 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10729 doc-string of window-scroll-functions.
10730
ecdcaa09
RS
107312008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10732
10733 * category.c (syms_of_category): Fix typo in docstring.
10734
23fe745a
JB
107352008-10-28 Juanma Barranquero <lekktu@gmail.com>
10736
10737 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10738 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10739 Fix typos in docstrings.
10740
ff808935
DN
107412008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10742
10743 * emacs.c (daemon_pipe): Make non-static.
10744 (IS_DAEMON): Move definition ...
10745 * lisp.h (IS_DAEMON): ... here.
10746 (daemon_pipe): Declare.
10747 (is_daemon): Remove.
10748 * dispnew.c (init_display): Use IS_DAEMON.
10749
fc012771
SM
107502008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10751
10752 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10753 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10754
10755 * emacs.c (is_daemon): Remove.
10756 (main): Don't set is_daemon.
10757 (IS_DAEMON): New macro.
10758 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10759 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10760 parent exits.
10761 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10762
d8bdbe6f
CY
107632008-10-27 Chong Yidong <cyd@stupidchicken.com>
10764
d1a072bf
CY
10765 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10766 over-sized glyph, draw it with the default glyph width.
10767
e2e325aa
CY
10768 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10769 glyph, draw it with the default glyph width.
10770
10771 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10772 glyph, draw it with the default glyph width.
10773
d8bdbe6f
CY
10774 * xdisp.c (try_scrolling): When computing the distance from the
10775 scroll margin to PT, try moving some distance past the window
10776 bottom before giving up.
10777
7bfac547
MR
107782008-10-27 Martin Rudalics <rudalics@gmx.at>
10779
10780 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10781 (Fset_window_buffer): Explain in doc-string that a window can be
10782 "strongly" dedicated to its buffer.
10783
4ff029f6
DN
107842008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10785
10786 * emacs.c (daemon_name): New variable.
10787 (main): Deal with --daemon=SERVER_NAME.
10788 (Fdaemonp): Return a name if one was passed to --daemon.
10789
5790ef40
DN
107902008-10-26 Romain Francoise <romain@orebokech.com>
10791
f9bd0df9 10792 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10793 (main): Create a pipe before forking, make the parent exit only after
10794 the child has closed its end of the pipe. Move closing the
10795 descriptors ...
10796 (Fdaemon_initialized): ... here. New function.
10797
f5385255
SM
107982008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10799
4d632321
SM
10800 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10801 the previous unoptimized table.
10802
f5385255
SM
10803 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10804 the distinction between non-nil and non-t value of `dedicated'.
10805
6c56a0f3
CY
108062008-10-25 Chong Yidong <cyd@stupidchicken.com>
10807
10808 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10809 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10810
fec89261
MR
108112008-10-25 Martin Rudalics <rudalics@gmx.at>
10812
10813 * window.c (Fget_buffer_window, Fdelete_windows_on)
10814 (Freplace_buffer_in_windows): Make buffer argument optional and
10815 rename to buffer_or_name.
10816
34fcddd0
CY
108172008-10-24 Chong Yidong <cyd@stupidchicken.com>
10818
f5385255
SM
10819 * xdisp.c (handle_single_display_spec, handle_display_prop):
10820 Undo 2005-05-16 change.
34fcddd0
CY
10821 (handle_stop): Pop iterator if it's loaded with an empty string.
10822 (get_overlay_strings_1): Don't save iterator if it's loaded with
10823 an empty string (bug#1201).
10824
064766f2
KH
108252008-10-24 Kenichi Handa <handa@m17n.org>
10826
10827 * ftfont.c (ftfont_otf_features): Fix previous change.
10828 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10829 calling ftfont_otf_features.
10830
f9bd0df9 108312008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10832
10833 * font.c (font_match_p): Fix for the case that a vector of
10834 characters is in script-representative-chars.
10835
1dae9197
MA
108362008-10-24 Michael Albinus <michael.albinus@gmx.de>
10837
10838 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10839 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10840 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10841 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10842 macro. (Bug#1186)
1dae9197 10843
f9bd0df9 108442008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10845
10846 * s/sol2-10.h: New file.
10847
878a4584
JB
108482008-10-23 Juanma Barranquero <lekktu@gmail.com>
10849
10850 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10851 poor beast has survived 9+ years and the jump from xterm.c!).
10852
cd265ca6
MR
108532008-10-23 Martin Rudalics <rudalics@gmx.at>
10854
10855 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10856 Reword doc-string.
f5385255 10857 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10858
472a4dc9
JB
108592008-10-23 Juanma Barranquero <lekktu@gmail.com>
10860
10861 * character.c (syms_of_character) <script-representative-chars>:
10862 <unicode-category-table>: Doc fixes.
10863
159bd5a2
NF
108642008-10-23 Noah Friedman <friedman@splode.com>
10865
10866 * coding.c (make_conversion_work_buffer): Check that
10867 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10868 Fget_buffer_create.
10869
49f9c344
KH
108702008-10-23 Kenichi Handa <handa@m17n.org>
10871
10872 * font.c (font_add_log): Check the values of extra properties.
10873
12bb3111
MR
108742008-10-22 Martin Rudalics <rudalics@gmx.at>
10875
10876 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10877 Reword doc-string.
10878 (Fset_window_parameter): Use NILP.
10879 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10880 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10881
bbeb4e99
JB
108822008-10-22 Juanma Barranquero <lekktu@gmail.com>
10883
10884 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10885
108862008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10887
10888 * nsfns.m (ns_appkit_version): New function.
10889 (x-server-version): Use it.
10890 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10891 (x-server-vendor): Don't check_ns().
10892
10893 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10894
a9b555d3
JB
108952008-10-22 Juanma Barranquero <lekktu@gmail.com>
10896
10897 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10898 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10899
4626499f
KH
109002008-10-22 Kenichi Handa <handa@m17n.org>
10901
e3681952
KH
10902 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10903 scripts.
10904
4626499f
KH
10905 * category.c (word_boundary_p): Check scripts instead of charset.
10906 Handle nil value in word-separating-categories and
10907 word-combining-categories.
10908 (syms_of_category): Fix docstrings of word-separating-categories
10909 and word-combining-categories.
10910
1560f91a
EZ
109112008-10-21 Eli Zaretskii <eliz@gnu.org>
10912
10913 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10914 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10915
f4668441
MR
109162008-10-21 Martin Rudalics <rudalics@gmx.at>
10917
10918 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10919 Rename arg "buffer" to "buffer_or_name".
10920 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10921 it optional.
10922 (no_switch_window): Remove since the return value is not used.
a9b555d3 10923 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10924 Consider window as dedicated when Fwindow_dedicated_p returns a
10925 non-nil value.
10926 * lisp.h: Remove prototype for no_switch_window.
10927
fd75ddb2
JD
109282008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10929
10930 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10931 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10932
07295713
KH
109332008-10-21 Kenichi Handa <handa@m17n.org>
10934
10935 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10936 check Vlatin_extra_code_table.
10937
712adc82
EZ
109382008-10-20 Eli Zaretskii <eliz@gnu.org>
10939
10940 * fileio.c (Fset_file_modes): Doc fix.
10941
f549eb0b
MA
109422008-10-19 Michael Albinus <michael.albinus@gmx.de>
10943
10944 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10945 in arrays.
10946
aac0c6e3
MR
109472008-10-19 Martin Rudalics <rudalics@gmx.at>
10948
10949 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10950 Mention kill-buffer in doc-string.
10951 (Fset_window_buffer): Reinsert tem check removed in last commit.
10952 (Fenlarge_window, Fshrink_window): Have argument names and
10953 doc-string follow Elisp manual more closely.
10954
109552008-10-18 Eli Zaretskii <eliz@gnu.org>
10956
10957 * fileio.c (Fset_file_modes): Doc fix.
10958
109592008-10-18 Martin Rudalics <rudalics@gmx.at>
10960
10961 * window.c (Fwindow_width, Fset_window_start)
10962 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10963 (Fdelete_windows_on, Freplace_buffer_in_windows):
10964 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10965 (Fwindow_dedicated_p): Make window argument optional.
10966 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10967 (Fset_window_buffer): Respect any non-nil dedicated value for
10968 window. Rename "buffer" argument to "buffer_or_name".
10969
109702008-10-18 Ulrich Mueller <ulm@gentoo.org>
10971
10972 * m/sh3.h: New file, machine description for SuperH.
10973
109742008-10-17 Martin Rudalics <rudalics@gmx.at>
10975
10976 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10977
109782008-10-17 Kenichi Handa <handa@m17n.org>
10979
10980 * ftfont.c (ftfont_otf_features): Fix indexing
10981 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10982
109832008-10-16 Magnus Henoch <mange@freemail.hu>
10984
10985 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10986 (Fdbus_call_method_asynchronously): Ditto.
10987 This change makes C-h f display the argument list.
10988
109892008-10-16 Chong Yidong <cyd@stupidchicken.com>
10990
10991 * fileio.c (Fexpand_file_name): Doc fix.
10992
10993 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10994 of :foreground and :background equivalent to unspecified (20.x
10995 compatibility).
10996
109972008-10-15 Eli Zaretskii <eliz@gnu.org>
10998
10999 * buffer.c (syms_of_buffer): Doc fix.
11000
110012008-10-14 Kenichi Handa <handa@m17n.org>
11002
11003 * font.c (font_clear_prop): When clearing font width, clear the
11004 average width field too.
11005
110062008-10-12 Andreas Schwab <schwab@suse.de>
11007
11008 * ftfont.c (ftfont_shape_by_flt): Make static.
11009 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11010
11011 * font.c: Don't include <m17n-flt.h>.
11012
110132008-10-10 Eli Zaretskii <eliz@gnu.org>
11014
11015 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11016
110172008-10-09 Eli Zaretskii <eliz@gnu.org>
11018
11019 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11020 away code.
11021
110222008-10-09 Chong Yidong <cyd@stupidchicken.com>
11023
11024 * dispnew.c (update_text_area): Avoid looping due to large glyph
11025 overhangs (bug#1070).
11026
110272008-10-09 Kenichi Handa <handa@m17n.org>
11028
11029 * fontset.c (face_for_char): If face->fontset is negative, just
11030 return ascii_face.
11031
f5385255
SM
11032 * font.c (font_delete_unmatched): Fix previous change.
11033 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11034
110352008-10-09 Martin Rudalics <rudalics@gmx.at>
11036
11037 * frame.c (Fraise_frame): On text-only terminals select frame in
11038 order to make it visible. (Bug#1061)
11039
110402008-10-08 Chong Yidong <cyd@stupidchicken.com>
11041
11042 * fontset.c (fontset_find_font): Check frame validity.
11043
110442008-10-07 Chong Yidong <cyd@stupidchicken.com>
11045
a9b555d3 11046 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11047 (xg_display_close): Allow Emacs to close all displays (bug#985).
11048
110492008-10-06 Andreas Schwab <schwab@suse.de>
11050
f5385255 11051 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11052
110532008-10-06 Chong Yidong <cyd@stupidchicken.com>
11054
f5385255 11055 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11056
a9b555d3 11057 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11058
11059 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11060 during initialization.
11061
110622008-10-04 Eli Zaretskii <eliz@gnu.org>
11063
11064 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11065 whole thing on MSDOS frames as well as on a TTY.
11066
11067 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11068 well as for TTY.
11069 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11070 well as on a TTY.
11071
11072 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11073 as well as for TTY.
11074
11075 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11076
11077 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11078 MSDOS frames as well.
11079
110802008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11081
11082 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11083 correct arguments.
b71ac3dd 11084 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11085
110862008-10-03 Glenn Morris <rgm@gnu.org>
11087
11088 * emacs.c (USAGE1): Add --daemon.
11089
110902008-10-02 Eli Zaretskii <eliz@gnu.org>
11091
11092 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11093 100, so it's in percents as advertised.
11094
110952008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11096
11097 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11098 (ns_output.current_cursor, ns_output.desired_cursor)
11099 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11100 (FRAME_NEW_CURSOR_COLOR): Remove.
11101
11102 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11103 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11104 enumeration (HOLLOW_BOX_CURSOR, etc.).
11105
11106 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11107 (draw_window_cursor): Simplify code.
f5385255
SM
11108 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11109 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11110 updates manually.
a9b555d3
JB
11111 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11112 Use core Emacs cursor types.
aac0c6e3 11113
b8ff72fa 11114 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11115
111162008-10-02 Martin Rudalics <rudalics@gmx.at>
11117
11118 * process.c (Faccept_process_output): Fix doc-string.
11119
111202008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11121
11122 * gmalloc.c (__sbrk): Also define for uClibc.
11123
11124 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11125 for uClibc.
11126
111272008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11128
11129 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11130 styles.
11131 (nsfont_open): Reenable the cache.
11132
111332008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11134
11135 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11136 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11137
111382008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11139
11140 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11141 a suspended terminal.
11142
111432008-09-30 Michael Albinus <michael.albinus@gmx.de>
11144
11145 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11146
111472008-09-30 Eli Zaretskii <eliz@gnu.org>
11148
11149 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11150
111512008-09-30 Chong Yidong <cyd@stupidchicken.com>
11152
11153 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11154 in a continued line coincides with a line beginning.
11155
111562008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11157
11158 * nsfont.m (nsfont_trait_distance): Fix bug.
11159 (nsfont_list): Return a list rather than a vector (syncs with Handa
11160 changes of 2008-05-14).
11161 (nsfont_open): Improve logging.
11162
111632008-09-29 Andreas Schwab <schwab@suse.de>
11164
11165 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11166
111672008-09-28 Martin Rudalics <rudalics@gmx.at>
11168
11169 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11170 name as char-resolve-modifiers.
11171 Reported by: Markus Triska <markus.triska@gmx.at>
11172
111732008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11174
11175 * dispnew.c (init_display): Return earlier when running as a daemon.
11176
111772008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11178
11179 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11180
111812008-09-27 Eli Zaretskii <eliz@gnu.org>
11182
11183 * composite.c (Fcomposition_get_gstring)
11184 (Fcompose_region_internal, Fcompose_string_internal)
11185 (Ffind_composition_internal): Doc fix.
11186 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11187 (syms_of_composite) <auto-composition-function>: Doc fix.
11188 (syms_of_composite) <composition-function-table>: Doc fix.
11189
111902008-09-25 Chong Yidong <cyd@stupidchicken.com>
11191
11192 * search.c (wordify): New argument for lax word-ends.
11193 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11194
111952008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11196
11197 * lisp.h (is_daemon): Declare.
11198 * dispnew.c (init_display): Do not try to initialize the terminal
11199 when running as a daemon.
11200
112012008-09-22 Chong Yidong <cyd@stupidchicken.com>
11202
11203 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11204 x_display_pixel_height.
11205
112062008-09-22 Martin Rudalics <rudalics@gmx.at>
11207
11208 * undo.c (record_point): Don't call Fundo_boundary for first
11209 change. (Bug#731)
11210
112112008-09-22 Juanma Barranquero <lekktu@gmail.com>
11212
11213 * emacs.c (Fdaemonp): Doc fix.
11214
112152008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11216
11217 * emacs.c (main): Place #ifdef in the proper place.
11218
112192008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11220
11221 * emacs.c (standard_args): Add --daemon.
11222 (main): Disconnect from the terminal when --daemon is passed.
11223 (is_daemon): New variable.
11224 (Fdaemonp): New function.
11225 (syms_of_emacs): Defsubr it.
11226
112272008-09-20 Chong Yidong <cyd@stupidchicken.com>
11228
11229 * xdisp.c (get_next_display_element): Handle string display
11230 correctly when checking for the end of a box run.
11231
112322008-09-20 Glenn Morris <rgm@gnu.org>
11233
11234 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11235 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11236 (Frename_file): Avoid copying to trash if a rename involves
11237 a delete. (Bug#964).
11238
112392008-09-20 Eli Zaretskii <eliz@gnu.org>
11240
11241 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11242 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11243 frames as well as termcap frames.
11244 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11245 get_named_tty.
11246
112472008-09-19 Eli Zaretskii <eliz@gnu.org>
11248
11249 * process.c (procfs_system_process_attributes): Fix cmdline in
11250 case /proc/PID/cmdline is empty.
11251
11252 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11253 x_display_pixel_height.
11254
112552008-09-19 Juanma Barranquero <lekktu@gmail.com>
11256
11257 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11258
11259 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11260 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11261
112622008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11263
11264 * dispextern.h (struct it): Move line_wrap away from the middle of
11265 bitfields. Move voffset in struct iterator_stack_entry after the
11266 bitfields. Move tab_width near after another short.
11267
112682008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11269
11270 * frame.h (struct frame): Move alpha from the middle of bitfields.
11271
11272 * window.h (struct window): Move frozen_window_start_p after the
11273 rest of the bitfields to reduce padding.
11274
112752008-09-18 Chong Yidong <cyd@stupidchicken.com>
11276
11277 * xterm.h (x_display_info): Remove `height' and `width' members.
11278
11279 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11280
11281 * w32term.h (w32_display_info): Remove `height', `width',
11282 `height_in', and `width_in' members.
11283
b8ff72fa
SM
11284 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11285 New functions.
aac0c6e3
MR
11286 (x_calc_absolute_position): Use them.
11287 (x_term_init): Omit removed `height' and `width' members.
11288
b8ff72fa
SM
11289 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11290 New functions.
aac0c6e3
MR
11291 (w32_read_socket, x_calc_absolute_position): Use them.
11292 (w32_initialize_display_info, w32_term_init): Omit removed members
11293 of w32_display_info.
11294
b8ff72fa
SM
11295 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11296 New functions.
11297 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11298
b8ff72fa
SM
11299 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11300 New functions.
aac0c6e3
MR
11301 (x_calc_absolute_position): Use them.
11302 (x_term_init): Omit removed `height' and `width' members.
11303
11304 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11305 (compute_tip_xy):
11306 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11307 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11308 x_display_pixel_width.
11309
113102008-09-18 Kenichi Handa <handa@m17n.org>
11311
11312 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11313 (composition_compute_stop_pos): Fix handling of static composition.
11314 (Fcomposition_get_gstring): Check FROM and TO at first.
11315
113162008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11317
46e722a9 11318 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11319 mixup (YAILOM).
11320
113212008-09-17 Chong Yidong <cyd@stupidchicken.com>
11322
11323 * indent.c (Fvertical_motion): Use position reported by iterator
11324 instead of PT for determining screen motion (bug#943).
11325
113262008-09-17 Romain Francoise <romain@orebokech.com>
11327
11328 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11329
113302008-09-17 Kenichi Handa <handa@m17n.org>
11331
11332 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11333
11334 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11335 if necessary.
11336
113372008-09-16 Kenichi Handa <handa@m17n.org>
11338
11339 * coding.c (make_conversion_work_buffer): Avoid calling
11340 Fget_buffer_create if it is not necessary.
11341
113422008-09-15 Martin Rudalics <rudalics@gmx.at>
11343
11344 * window.c (Fselect_window): Don't update window_select_count and
11345 use_time when norecord is not nil.
11346
113472008-09-14 Kenichi Handa <handa@m17n.org>
11348
11349 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11350 specpdl_ptr.
11351
113522008-09-12 Kenichi Handa <handa@m17n.org>
11353
11354 * indent.c (scan_for_column): Don't handle automatic composition
11355 if the current buffer is not associated with a window.
11356
11357 * composite.c (composition_reseat_it): If the current buffer is
11358 not associated with a window, ignore the automatic composition.
11359 (find_automatic_composition): Likewise.
11360
113612008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11362
11363 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11364 (Fgpm_mouse_stop): Use it.
11365 * termhooks.h (close_gpm): Declare.
11366 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11367 connection if Gpm_GetEvent fails.
11368
11369 * window.c (set_window_buffer): Always preserve current-buffer.
11370
113712008-09-12 Glenn Morris <rgm@gnu.org>
11372
11373 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11374
113752008-09-11 Glenn Morris <rgm@gnu.org>
11376
11377 * charset.c (charset-map-path): Doc fix.
11378
113792008-09-10 Kenichi Handa <handa@m17n.org>
11380
11381 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11382
11383 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11384 compose a grapheme cluster with the preceding base glyph.
11385
11386 * composite.c (composition_compute_stop_pos): Fix previous change.
11387 Reset cmp_it->id to -1 at first.
11388
113892008-09-10 Glenn Morris <rgm@gnu.org>
11390
11391 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11392
113932008-09-09 Chong Yidong <cyd@stupidchicken.com>
11394
11395 * keyboard.c (read_key_sequence): Reapply translation maps when
11396 switching keyboards.
11397
113982008-09-09 Kenichi Handa <handa@m17n.org>
11399
11400 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11401 characters.
11402
11403 * composite.c (FORWARD_CHAR): Fix calculation
11404 of (POSITION).pos_byte.
11405 (composition_compute_stop_pos): Limit the search of composition to
11406 at most 500 characters ahead. If we reach the limit or find a
11407 newline, set cmp_it->ch to -2 and return 0.
11408 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11409
114102008-09-08 Kenichi Handa <handa@m17n.org>
11411
11412 * indent.c (Fvertical_motion): Be sure to set
11413 it_overshoot_expected if it.cmp_it.id is non-negative.
11414
114152008-09-07 Andreas Schwab <schwab@suse.de>
11416
11417 * callproc.c (Fcall_process): Don't hold references to string data
11418 across garbage collection. Move initialisation of new_argv down
11419 to avoid compiler bug.
11420
114212008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11422
11423 * process.c (Fsystem_process_attributes): Doc fix.
11424
114252008-09-07 Chong Yidong <cyd@stupidchicken.com>
11426
11427 * callproc.c (Fcall_process): Canonicalize current directory name.
11428
11429 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11430 iterator advances to the next line if the current line ends in a
11431 continued tab.
11432
114332008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11434
11435 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11436 member to point to cmp_from.
11437
11438 * xdisp.c: Doc fix for references to gidx data member.
11439
114402008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11441
11442 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11443
114442008-09-07 Kenichi Handa <handa@m17n.org>
11445
11446 * composite.c (FORWARD_CHAR): Check STOP after
11447 incrementing (POSITION).pos.
11448
114492008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11450
11451 * process.c (Fsystem_process_attributes): Doc fix.
11452
114532008-09-06 Chong Yidong <cyd@stupidchicken.com>
11454
11455 * keyboard.c (Ftop_level): Doc fix.
11456
114572008-09-06 Eli Zaretskii <eliz@gnu.org>
11458
11459 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11460 minibuffer, don't let lower part of menu invade the echo area.
11461
11462 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11463 "char *q" to access menu text and advance through it. Revert the
11464 change that displayed ">" instead of ASCII character 0x10.
11465
114662008-09-05 Eli Zaretskii <eliz@gnu.org>
11467
11468 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11469 toggle boxes and radio buttons on MS-DOS as well.
11470
114712008-09-05 Kenichi Handa <handa@m17n.org>
11472
11473 * composite.c (autocmp_chars): Check lookback count.
11474 (composition_compute_stop_pos): Set cmp_it->lookback.
11475 (composition_reseat_it): Check lookback count.
11476 (struct position_record): New struct.
11477 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11478 (find_automatic_composition): New function.
11479 (composition_adjust_point): Use find_automatic_composition.
11480
11481 * dispextern.h (struct composition_it): New member lookback.
11482
114832008-09-02 Chong Yidong <cyd@stupidchicken.com>
11484
11485 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11486 if moving by a single line.
11487
114882008-09-02 Andreas Schwab <schwab@suse.de>
11489
11490 * xterm.c (x_delete_display): Fix merge error.
11491
11492 * fileio.c (Fexpand_file_name): Remove unused variables.
11493
114942008-09-02 Eli Zaretskii <eliz@gnu.org>
11495
11496 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11497 storage on all platforms, not just on DOS_NT.
11498
114992008-09-02 Jason Rumney <jasonr@gnu.org>
11500
b8ff72fa
SM
11501 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11502 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11503
115042008-09-01 Chong Yidong <cyd@stupidchicken.com>
11505
11506 * xfaces.c (Finternal_set_alternative_font_family_alist)
11507 (Finternal_set_alternative_font_registry_alist): Properly copy
11508 entire alist structure.
11509
115102008-09-01 Kenichi Handa <handa@m17n.org>
11511
d66c0241 11512 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11513 representative chars of the script is a vector.
d66c0241
JB
11514 (ftfont_list): Handle the case where the representative chars of
11515 the script is a vector.
aac0c6e3
MR
11516
11517 * character.c (syms_of_character): Docstring of
11518 script-representative-chars fixed.
11519
115202008-08-31 Eli Zaretskii <eliz@gnu.org>
11521
11522 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11523 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11524 the menu. Allocate larger buffer for `text', to account for
11525 possible ^C characters.
11526
115272008-08-31 Martin Rudalics <rudalics@gmx.at>
11528
11529 * xdisp.c (prepare_menu_bars): Don't call
11530 Vwindow_size_change_functions with arg Qt.
11531
115322008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11533
11534 * font.h (font_range):
11535 * fileio.c (report_file_error):
46e722a9
SM
11536 * composite.c (composition_update_it): Yet another int/Lisp_Object
11537 mixup (YAILOM).
aac0c6e3
MR
11538
115392008-08-30 Glenn Morris <rgm@gnu.org>
11540
11541 * data.c (Fmake_variable_frame_local): Doc fix.
11542
11543 * frame.c (Fmodify_frame_parameters): Doc fix.
11544
115452008-08-30 Eli Zaretskii <eliz@gnu.org>
11546
11547 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11548 needed by GetTokenInformation.
11549 (w32_system_process_attributes): Check return values of all system
11550 APIs.
11551
11552 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11553 only when the state changes.
11554 (IT_update_begin, IT_update_end): Add termscript trace.
11555
11556 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11557 clipboard is unavailable. Set dst to NULL if it doesn't point to
11558 malloc'ed data.
11559 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11560 passing random values to xfree.
11561
11562 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11563 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11564
115652008-08-29 Jason Rumney <jasonr@gnu.org>
11566
11567 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11568
115692008-08-29 Eli Zaretskii <eliz@gnu.org>
11570
11571 * composite.c (fill_gstring_body): Avoid compiler warnings.
11572
11573 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11574 LGLYPH_SET_CODE to avoid compiler warnings.
11575
2ae37cf0 11576 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11577
11578 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11579
11580 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11581 LGLYPH_SET_CODE.
11582
115832008-08-29 Kenichi Handa <handa@m17n.org>
11584
11585 * fileio.c (report_file_error): Don't downcase the first character
11586 of errstring if it is still unibyte.
11587
115882008-08-29 Kenichi Handa <handa@m17n.org>
11589
11590 These changes are to re-implement the automatic composition so
11591 that it doesn't use text properties.
11592
11593 * Makefile.in (ftfont.o): Depend on composite.h.
11594 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11595
11596 * character.h (Vunicode_category_table): Extern it.
11597
11598 * character.c (Vunicode_category_table): New variable.
11599 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11600
11601 * chartab.c (optimize_sub_char_table): Perform more greedy
11602 optimization.
11603
b8ff72fa
SM
11604 * composite.h (enum composition_method):
11605 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11606 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11607 (Vcomposition_function_table): Extern it.
11608 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11609 (composition_gstring_put_cache, composition_gstring_from_id)
11610 (composition_gstring_p, composition_gstring_width)
11611 (composition_compute_stop_pos, composition_reseat_it)
11612 (composition_update_it, composition_adjust_point): Extern them.
11613 (Fcomposition_get_gstring): EXFUN it.
11614
d66c0241 11615 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11616 (Vcomposition_function_table)
11617 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11618 (gstring_hash_table, gstring_work, gstring_work_headers):
11619 New variables.
aac0c6e3
MR
11620 (gstring_lookup_cache, composition_gstring_put_cache)
11621 (composition_gstring_from_id, composition_gstring_p)
11622 (composition_gstring_width, fill_gstring_header)
11623 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11624 (composition_reseat_it, composition_update_it)
b8ff72fa 11625 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11626 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11627 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11628 Defsubr composition_get_gstring.
aac0c6e3
MR
11629
11630 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11631 cmp_id.
11632 (struct glyph_string): Delete the member gidx. New members
11633 cmp_id, cmp_from, and cmp_to.
11634 (enum it_method): Delete GET_FROM_COMPOSITION.
11635 (struct composition_it): New struct.
11636 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11637 Delete c, len, cmp_id, cmp_len in u.comp.
11638
11639 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11640 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11641 (enum lglyph_indices): Likewise.
b8ff72fa 11642 (font_range): Adjust extern.
aac0c6e3
MR
11643 (font_fill_lglyph_metrics): Extern it.
11644
11645 * font.c (QCf): New variable.
11646 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11647 (font_prepare_composition): Delete this function.
11648 (font_range): Type and arguments changed.
11649 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11650 (font_fill_lglyph_metrics): New function.
b8ff72fa 11651 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11652 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11653 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11654 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11655
11656 * fontset.h (font_for_char): Extern it.
11657
11658 * fontset.c (font_for_char): New function.
11659
11660 * ftfont.c: Include composite.h.
11661 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11662 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11663
11664 * indent.c: Include composite.h and dispextern.h.
11665 (check_composition): Delete this function.
11666 (scan_for_column): Handle composition by
11667 composition_compute_stop_pos, composition_reseat_it, and
11668 composition_update_it.
11669 (compute_motion): Likewise.
11670 (Fvertical_motion): Fix checking of composition.
11671
11672 * keyboard.c (adjust_point_for_property): Check composition by
11673 composition_adjust_point.
11674
b8ff72fa 11675 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11676 struct glyph_string.
11677
b8ff72fa
SM
11678 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11679 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11680 struct glyph.
11681 (produce_composite_glyph): Likewise.
11682
b8ff72fa
SM
11683 * w32term.c (x_draw_composite_glyph_string_foreground):
11684 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11685 (x_draw_glyph_string): Likewise.
11686
11687 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11688 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11689
11690 * xdisp.c: Include font.h.
11691 (it_props): Delete the entry for Qauto_composed.
11692 (init_iterator): Initialize it->cmp_it.id to -1.
11693 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11694 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11695 (handle_auto_composed_prop): Delete it.
11696 (handle_composition_prop): Handle only static composition.
11697 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11698 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11699 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11700 (pop_it): Likewise.
11701 (get_next_element): Delete next_element_from_composition.
11702 (CHAR_COMPOSED_P): New macro.
11703 (get_next_display_element): For automatic composition, get a face
11704 from the font in the glyph-string.
11705 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11706 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11707 (next_element_from_string): Check if the character at the current
11708 position is composed by CHAR_COMPOSED_P.
11709 (next_element_from_buffer): Likewise.
d66c0241
JB
11710 (next_element_from_composition): Adjust for the change of struct it.
11711 Update it->cmp_it.
b8ff72fa
SM
11712 (dump_glyph): Adjust for the change of struct glyph.
11713 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11714 it and struct glyph. Don't handle automatic composition here.
11715 (fill_gstring_glyph_string): New function.
11716 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11717 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11718 (BUILD_GSTRING_GLYPH_STRING): New macro.
11719 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11720 automatic composition.
b8ff72fa 11721 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11722 struct glyph.
b8ff72fa 11723 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11724
b8ff72fa 11725 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11726 the change of struct glyph_string.
11727 (x_draw_glyph_string): Likewise.
11728
117292008-08-29 Glenn Morris <rgm@gnu.org>
11730
11731 * buffer.c (word-wrap): Doc fix.
11732 * xdisp.c (truncate-partial-width-windows): Doc fix.
11733 Increase default to 50.
11734
117352008-08-29 Chong Yidong <cyd@stupidchicken.com>
11736
11737 * xdisp.c (update_tool_bar_unwind): New function.
11738 (update_tool_bar): Temporarily set selected frame before building
11739 tool-bar items.
11740
117412008-08-28 Michael Albinus <michael.albinus@gmx.de>
11742
11743 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11744 snprintf, respectively.
11745 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11746
117472008-08-28 Chong Yidong <cyd@stupidchicken.com>
11748
11749 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11750 LDFLAGS to GNUstep CC invocation.
11751
117522008-08-27 Chong Yidong <cyd@stupidchicken.com>
11753
11754 * indent.c (Fvertical_motion): Revert last change. Handle the
11755 general case where we are moving forward, and PT spans multiple
11756 screen lines.
11757
11758 * eval.c (find_handler_clause): Temporarily increase
11759 max-lisp-eval-depth while printing the backtrace buffer, to
11760 guarantee that help-mode code can run.
11761
117622008-08-27 Eli Zaretskii <eliz@gnu.org>
11763
11764 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11765 colors under -rv.
11766 (IT_set_frame_parameters): Don't swap foreground and background
11767 colors if `(reverse . t)' is present in the frame properties.
11768 (internal_terminal_init): Call init_frame_faces only for the
11769 initial frame.
11770
117712008-08-27 Andreas Schwab <schwab@suse.de>
11772
11773 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11774
117752008-08-27 Andreas Schwab <schwab@suse.de>
11776
11777 * search.c (search_buffer): Set char_base to zero only at the end.
11778
117792008-08-27 Kenichi Handa <handa@m17n.org>
11780
b8ff72fa 11781 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11782
117832008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11784
11785 * xterm.c (x_term_init): Temporarily hide the partially
11786 initialized terminal while calling vendor-specific-keysyms.
11787
117882008-08-26 Eli Zaretskii <eliz@gnu.org>
11789
11790 * msdos.c (internal_terminal_init): Most initializations done only
11791 once, especially initial_screen_colors[] and termscript open.
11792
117932008-08-26 Chong Yidong <cyd@stupidchicken.com>
11794
11795 * eval.c (Fcondition_case): Doc fix.
11796
11797 * widgetprv.h (EmacsFramePart): Change font member to the new font
11798 struct.
11799
11800 * widget.c: Include character.h and font.h for XSETFONT.
11801 (setup_frame_gcs): Compute X font id from font struct, just once.
11802
118032008-08-26 Eli Zaretskii <eliz@gnu.org>
11804
11805 * term.c (get_named_tty): Fix last change.
11806
118072008-08-26 Chong Yidong <cyd@stupidchicken.com>
11808
11809 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11810 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11811
118122008-08-25 Eli Zaretskii <eliz@gnu.org>
11813
11814 * frame.c (do_switch_frame): Mark previously displayed frame as
11815 obscured for FRAME_MSDOS_P frames as well.
11816
118172008-08-24 Eli Zaretskii <eliz@gnu.org>
11818
11819 * frame.c (make_terminal_frame): Initialize f->terminal,
11820 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11821 Set the top frame to newly created frame.
11822 (Fmake_terminal_frame): Reuse the_only_display_info.
11823
11824 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11825 estimating available memory.
11826
b97439ce 118272008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11828
11829 * nsterm.m (ns_draw_window_cursor): Don't call
11830 NSDisableScreenUpdates and NSEnableScreenUpdates on
11831 non-NS_IMPL_COCOA systems.
11832
118332008-08-23 Andreas Schwab <schwab@suse.de>
11834
11835 * process.c (procfs_system_process_attributes): Fix use of
11836 uninitialized variables.
11837
118382008-08-23 Eli Zaretskii <eliz@gnu.org>
11839
11840 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11841
11842 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11843 calling tty-set-up-initial-frame-faces.
11844
b8ff72fa
SM
11845 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11846 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11847
11848 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11849 addition to output_termcap.
11850
11851 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11852
11853 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11854 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11855 highlight.
11856
11857 * process.c [!subprocesses]: Define QCname.
11858 (syms_of_process): Intern and staticpro it.
11859
11860 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11861 Adjust for changes in encoding/decoding routines.
11862 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11863 encode_coding and decode_coding.
11864
b8ff72fa 11865 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11866
11867 * dosfns.c: Include frame.h before termhooks.h.
11868 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11869 variable termscript.
11870
11871 * s/msdos.h (USER_FULL_NAME): Define.
11872 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11873
11874 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11875 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11876 pw->pw_gecos.
11877
11878 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11879 SELECTED_FRAME as additional (1st) argument.
11880 (tty_read_avail_input): Handle output_msdos_raw in
11881 addition to output_termcap.
11882
11883 * msdos.c: Include frame.h before termhooks.h.
11884 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11885 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11886 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11887 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11888 (IT_set_terminal_modes, IT_reset_terminal_modes)
11889 (IT_set_frame_parameters): Use tty->termscript instead of a global
11890 variable termscript.
11891 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11892 global variable terminal_coding. Don't refer to
11893 Vnonascii_translation_table.
11894 (internal_terminal_init): Set Vwindow_system in current_kboard.
11895 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11896 Announce date and time of session start, if termscript is open.
11897 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11898 term.c:init_tty). Open termscript only of not already open.
11899 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11900 here instead of dos_ttraw. Don't initialize display if this is an
11901 initial tty. Don't set FRAME_FONT.
11902 (Vwindow_system_version): Bump to 23.
11903 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11904 is available, set up mouse_position_hook.
11905 (dos_ttraw, IT_set_terminal_modes): If called with initial
11906 terminal, do nothing.
11907 (IT_set_frame_parameters): Handle the Qtty_type frame
11908 parameter by calling internal_terminal_init.
11909 (dos_set_window_size, show_mouse_face)
11910 (clear_mouse_face, IT_note_mode_line_highlight)
11911 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11912 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11913 (initialize_msdos_display): New function.
11914 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11915 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11916 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11917 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11918 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11919 (request_sigio, unrequest_sigio): Don't define, now defined on
11920 sysdep.c.
11921 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11922
11923 * term.c [MSDOS]: Include msdos.h.
11924 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11925 conditional to DOS_NT. Allow only one call to this function in a
11926 session. Don't allocate a new struct tty_display_info; instead,
11927 reuse the_only_display_info. Call get_tty_size to get screen
11928 dimensions. Call init_baud_rate to set bad_rate.
11929 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11930 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11931 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11932 (get_tty_terminal, get_named_tty, Ftty_type)
11933 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11934 output_termcap.
b8ff72fa
SM
11935 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11936 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11937 only when subprocesses are supported.
aac0c6e3
MR
11938
11939 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11940 f->output_data.x.
11941 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11942 terminal devices.
11943
5582fbc7 11944 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11945 x_output.
11946 (FRAME_FONT): Use output_data.tty.
11947 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11948 (struct x_display_info): Rename from display_info. Update all users in
11949 msdos.c.
aac0c6e3 11950 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11951 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11952 (dos_ttraw): Update prototype.
11953
11954 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11955 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11956
119572008-08-23 Jason Rumney <jasonr@gnu.org>
11958
11959 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11960 (fn_TIFFSetDirectory): New library function used.
11961 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11962 (tiff_load): Use :index to select among multiple images. Set count
11963 property when multiple images exist.
11964 (gif_format): Use :index, not :image.
11965
119662008-08-23 Chong Yidong <cyd@stupidchicken.com>
11967
11968 * xdisp.c (try_scrolling): Check INT_MAX instead of
11969 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11970 to obtain INT_MAX.
11971
119722008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11973
11974 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11975
119762008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11977
11978 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11979 GNUstep library location.
11980
119812008-08-21 Chong Yidong <cyd@stupidchicken.com>
11982
11983 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11984 before using it.
11985
11986 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11987
119882008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11989
11990 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11991 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11992 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11993 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11994 (EmacsApp-cursor_blink_handler): Remove declaration.
11995 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11996 match 01 Feb 2008 changes in xterm.c.
11997 (ns_read_socket): Add cast to avoid warning.
11998 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11999 GNUstep.
12000
120012008-08-20 Chong Yidong <cyd@stupidchicken.com>
12002
12003 * xselect.c (x_get_foreign_selection): Return nil if desired
12004 selection could not be obtained, instead of signalling an error.
12005
120062008-08-20 David Reitter <david.reitter@gmail.com>
12007
12008 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12009 * nsterm.m: Remove ns-specific code for cursor blinking.
12010 (ns_draw_window_cursor): Clear cursor properly rather than
12011 redrawing the area. Respect width of bar cursors.
12012 These changes enable the use of generic blink-cursor-mode and
12013 generic cursor types in NS and support smooth cursor movements (do
12014 not blink off after command).
12015 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12016 Nextstep, too.
12017
120182008-08-19 Kenichi Handa <handa@m17n.org>
12019
12020 * font.c (Vfont_log_deferred): New variable.
12021 (font_add_log): Check Vfont_log_deferred.
12022 (font_deferred_log): New function.
12023
12024 * font.h (font_deferred_log): Extern it.
12025
12026 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12027 for sorting.
12028 (face_for_char): Use deferred log.
12029
120302008-08-18 Kenichi Handa <handa@m17n.org>
12031
12032 * fontset.c (face_for_char): Add font log.
12033
12034 * font.c (font_add_log): Add the font properties :script, :lang,
12035 and :otf in the log.
12036
120372008-08-17 Chong Yidong <cyd@stupidchicken.com>
12038
12039 * xdisp.c: Remove dead code.
12040 (handle_invisible_prop, next_overlay_string): Defer call to
12041 setup_for_ellipsis.
12042 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12043
120442008-08-15 Chong Yidong <cyd@stupidchicken.com>
12045
12046 * xfaces.c (lookup_derived_face): Properly handle possible zero
12047 return value of get_lface_attributes.
12048 (merge_faces): Don't tell lookup_derived_face to signal an error
12049 if face is not found.
12050
12051 * dired.c (Fdirectory_files): Doc fix.
12052
12053 * process.c (make_process): Initialize kill_without_query struct
12054 member.
12055
120562008-08-15 Eli Zaretskii <eliz@gnu.org>
12057
12058 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12059 Alternative calculation of totphys for Visual Studio 6.
12060
12061 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12062
12063 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12064 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12065 All users changed.
12066 (stat): Only root directory passed to GetDriveType. Allow RAM
12067 disk as well as local fixed disk when w32-get-true-file-attributes
12068 is set to `local'.
12069 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12070 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12071 (w32_cached_id, w32_add_to_cache): New functions.
12072 (get_name_and_id): Look account names in the cache before calling
12073 lookup_account_sid.
12074 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12075 New initialization flags.
12076 (globals_of_w32): Initialize them to zero.
12077 (w32_system_process_attributes): Use w32_cached_id and
12078 w32_add_to_cache.
12079
120802008-08-14 Lawrence Mitchell <wence@gmx.li>
12081
12082 * lread.c (Fread_char, Fread_char_exclusive): If no character
12083 event is read before timeout is reached, return nil, rather than
12084 converting to a number.
12085
120862008-08-14 Chong Yidong <cyd@stupidchicken.com>
12087
12088 * fns.c (use_dialog_box): Doc fix.
12089
12090 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12091 on OS X.
12092
120932008-08-13 Chong Yidong <cyd@stupidchicken.com>
12094
12095 * frame.c (Qns_parse_geometry): New var.
12096 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12097
120982008-08-11 Chong Yidong <cyd@stupidchicken.com>
12099
12100 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12101 space character in calculating tabs.
12102
121032008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12104
12105 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12106
121072008-08-10 Glenn Morris <rgm@gnu.org>
12108
12109 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12110 silence gcc "limited range of data type" warnings in some
12111 make_fixnum_or_float calls.
12112
121132008-08-09 Eli Zaretskii <eliz@gnu.org>
12114
12115 * w32.c (w32_system_process_attributes): If the process does not
12116 exist, return nil.
12117
12118 * w32.c: Include thelp32.h, psapi.h and coding.h.
12119 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12120 declarations.
12121 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12122 (Process32Next_Proc): New typedefs.
12123 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12124 (g_b_init_process32_next, g_b_init_open_thread_token)
12125 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12126 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12127 (g_b_init_get_process_working_set_size)
12128 (g_b_init_global_memory_status_ex): New static variables.
12129 (globals_of_w32): Initialize them.
12130 (create_toolhelp32_snapshot, process32_first, process32_next)
12131 (open_thread_token, impersonate_self, revert_to_self)
12132 (get_process_memory_info, get_process_working_set_size)
12133 (global_memory_status, global_memory_status_ex): New wrapper
12134 functions.
12135 (w32_list_system_processes, w32_system_process_attributes)
12136 (enable_privilege, restore_privilege, ltime, process_times):
12137 New functions.
12138 (convert_time_raw): New function.
12139 (convert_time): Remove conversion of FILETIME into time in 100
12140 nsec units, call convert_time_raw instead.
12141
12142 * process.h (w32_list_system_processes, w32_system_process_attributes):
12143 Add prototypes.
12144 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12145 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12146 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12147 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12148
12149 * process.c (Fsystem_process_attributes): Doc fix.
12150
121512008-08-08 Chong Yidong <cyd@stupidchicken.com>
12152
12153 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12154 a continued multi-char glyph; if so, advance to the actual glyph.
12155
121562008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12157
12158 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12159
12160 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12161 (.m.o): Use it.
12162 * config.in: Regenerate.
12163
121642008-08-07 Chong Yidong <cyd@stupidchicken.com>
12165
12166 * xdisp.c (redisplay_window): Revert last change.
12167 (try_window): Check bottom scroll margin too.
12168
121692008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12170
12171 * config.in: Regenerate.
12172
12173 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12174 -list-load-path-shadows'.
12175 (nsgui.h): Reduce number of things depending on it.
12176
121772008-08-06 Chong Yidong <cyd@stupidchicken.com>
12178
12179 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12180 instead of window-end which does the wrong thing at eob.
12181 (try_cursor_movement): Minor optimization.
12182 (redisplay_window): If scroll margin is defined, don't assume
12183 window doesn't need scrolling.
12184
121852008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12186
12187 * config.in: Regenerate.
12188
12189 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12190 (mostlyclean): Don't delete *.d under NS.
12191
12192 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12193
121942008-08-06 Kenichi Handa <handa@m17n.org>
12195
12196 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12197
121982008-08-06 Andreas Schwab <schwab@suse.de>
12199
12200 * config.in: Regenerate.
12201
122022008-08-05 Chong Yidong <cyd@stupidchicken.com>
12203
12204 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12205 forcing a window start.
12206
12207 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12208 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12209
122102008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12211
12212 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12213 argument.
12214
122152008-08-05 Juanma Barranquero <lekktu@gmail.com>
12216
12217 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12218 <scroll-down-aggressively, before-change-functions>:
12219 <after-change-functions>: Reflow docstrings.
12220
122212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12222 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12223
12224 Dock menu customization, based on a patch by Ken Raeburn, plus some
12225 other fixes.
12226 * nsmenu.m (dockMenu): New variable.
12227 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12228
12229 * nsterm.h (dockMenu): Declare.
12230
12231 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12232 (ns_term_init): Initialize dockMenu.
12233 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12234 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12235 left.
12236
12237 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12238
122392008-08-04 Chong Yidong <cyd@stupidchicken.com>
12240
12241 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12242
12243 * config.in: Regenerate.
12244
122452008-08-04 Seiji Zenitani <zenitani@mac.com>
12246
12247 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12248
122492008-08-04 Chong Yidong <cyd@stupidchicken.com>
12250
12251 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12252
122532008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12254
12255 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12256
12257 * keyboard.h: Comment an #endif.
12258
12259 * lisp.h (have_menus_p): Adjust comment.
12260
12261 * menu.c (find_and_return_menu_selection): Fix comparison with
12262 client_data.
12263
12264 * nsmenu.m (popup_activated_flag): New variable.
12265 (popup_activated): New function.
12266 (menu-or-popup-active-p): New exported lisp definition.
12267 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12268 when popup done.
12269 (ns_popup_dialog): Set popup_activated_flag.
12270
12271 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12272 version for GNUstep (handled by conditional typedef in nsterm.m).
12273 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12274 in rgb.txt).
12275
12276 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12277
12278 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12279
12280 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12281
12282 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12283 shortcircuit if popup_activated like GTK and X toolkit.
12284
12285 * m/inter386.h: Change DARWIN to DARWIN_OS.
12286
12287 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12288 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12289 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12290 comment on NO_SOCK_SIGIO.
12291
122922008-08-03 Chong Yidong <cyd@stupidchicken.com>
12293
12294 * nsterm.m (windowDidResize): Remove stopModal call.
12295
122962008-08-03 Andreas Schwab <schwab@suse.de>
12297
12298 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12299 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12300
123012008-08-02 Chong Yidong <cyd@stupidchicken.com>
12302
12303 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12304 Don't use uninitialized pointer variable when using getrlimit.
12305
123062008-08-02 Jason Rumney <jasonr@gnu.org>
12307
12308 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12309
123102008-08-02 Eli Zaretskii <eliz@gnu.org>
12311
12312 * alloc.c (NSTATICS): Bump to 0x640.
12313
12314 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12315
12316 * lisp.h: Add prototype for directory_files_internal.
12317
12318 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12319 New functions.
12320 (syms_of_process): Defsubr them. Add initializations for various
12321 Q* symbols used in procfs_system_process_attributes.
12322 (procfs_list_system_processes, procfs_system_process_attributes)
12323 [HAVE_PROCFS]: New functions.
12324 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12325 (procfs_get_total_memory): New functions.
12326
123272008-08-01 Juanma Barranquero <lekktu@gmail.com>
12328
12329 * xfaces.c (Fx_load_color_file): Fix previous change;
12330 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12331
123322008-08-01 Michael Albinus <michael.albinus@gmx.de>
12333
12334 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12335
123362008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12337
12338 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12339
123402008-08-01 Chong Yidong <cyd@stupidchicken.com>
12341
12342 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12343
12344 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12345 define NSApplicationDelegateReplySuccess.
12346 (EmacsView -converstationIdentifier): Use long instead of
12347 NSInteger for GNUstep, since it doesn't have NSInteger.
12348
12349 * xmenu.c: Revert last change.
12350
12351 * keyboard.h: Fix last change.
12352
123532008-08-01 Juanma Barranquero <lekktu@gmail.com>
12354
12355 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12356 on Windows.
12357
123582008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12359
12360 Warning clearing and clean-up in NS port.
12361 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12362 Add prototypes.
12363 * nsgui.h (FACE_DEFAULT): Remove, unused.
12364 (XGCValues): Change colors to unsigned long.
12365 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12366 nsterm.m.
12367 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12368 (ns_list_fonts): Remove, unused.
12369 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12370 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12371 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12372 (nsfont_draw): Compare face colors to 0, not nil.
12373 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12374 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12375 (-addSubmenuWithTitle:): Use NSMenuItem class.
12376 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12377 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12378 (ns_clip_to_row): Make gc arg a BOOL.
12379 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12380 ns_clip_to_row() call.
12381 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12382 used). Cast FRAME_FONT assignments.
12383 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12384 (ns_string_to_lispmod): Change arg to const char.
12385 (ns_term_init): Use NSMenuItem class.
12386 (EmacsApp -openFile:): Move to different section of file.
12387 (EmacsApp -application:openFiles:): Don't return a value, call
12388 -replyToOpenOrPrint:.
12389 (EmacsView -keyDown:): Fix up cast.
12390 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12391 (EmacsView -menuDown:): Cast tag in call to
12392 find_and_call_menu_selection().
12393 (ns_list_fonts): Remove, unused.
12394 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12395 (ns_fontname_to_xlfd): Make static.
12396 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12397 Remove prototypes (now in keyboard.h).
12398 (next_menubar_widget_id): Remove, unused.
12399 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12400 Remove prototypes (now in keyboard.h).
12401 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12402
124032008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12404
12405 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12406 (floatfns.o): Depend on syssignal.h.
12407 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12408
12409 * systty.h: Fix previous change that removed BSD_TERMIOS.
12410 Add comments to #ifdefs.
12411
124122008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12413
12414 * w32fns.c (w32-load-color-file): Remove.
12415 (x-open-connection): Use renamed Fx_load_color_file.
12416 * xfaces.c (x-load-color-file): Add.
12417 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12418 Emacs.clr.
12419 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12420
124212008-07-31 Michael Albinus <michael.albinus@gmx.de>
12422
12423 * dbusbind.c (Fdbus_call_method_asynchronously)
12424 (Fdbus_method_error_internal): New defuns.
12425 (xd_read_message): Handle also reply messages.
12426 (Vdbus_registered_functions_table): Extend docstring.
12427
124282008-07-31 Juanma Barranquero <lekktu@gmail.com>
12429
12430 * keyboard.c (gobble_input): Fix previous change.
12431
124322008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12433
12434 * bitmaps/README:
12435 * xfns.c:
12436 * termcap.c:
12437 * term.c:
12438 * syswait.h:
12439 * systty.h:
12440 * systime.h:
12441 * syssignal.h:
12442 * sysdep.c:
12443 * process.h:
12444 * process.c:
12445 * print.c:
12446 * ndir.h:
12447 * lread.c:
12448 * keyboard.c:
12449 * getpagesize.h:
12450 * floatfns.c:
12451 * fileio.c:
12452 * emacs.c:
12453 * doc.c:
12454 * dispnew.c:
12455 * dired.c:
12456 * data.c:
12457 * callproc.c:
12458 * buffer.c:
12459 * README:
12460 * Makefile.in:
12461 * s/template.h:
12462 * s/msdos.h:
12463 * m/vax.h: Remove VMS support.
12464 * s/vms.h:
12465 * vlimit.h:
12466 * uaf.h:
12467 * temacs.opt:
12468 * param.h:
12469 * ioctl.h: Remove file.
12470
124712008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12472
12473 * s/ms-w32.h (MULTI_KBOARD): Remove.
12474 * xterm.c:
12475 * xselect.c:
12476 * xfns.c:
12477 * window.c:
12478 * w32term.c:
12479 * w32fns.c:
12480 * terminal.c:
12481 * termhooks.h:
12482 * term.c:
12483 * sysdep.c:
12484 * keyboard.h:
12485 * keyboard.c:
12486 * frame.h:
12487 * frame.c:
12488 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12489 * config.in: Regenerate.
12490
124912008-07-30 Jason Rumney <jasonr@gnu.org>
12492
12493 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12494
12495 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12496 (w32font_open_internal): Get unicode version of textmetrics.
12497 Don't enable or disable glyph indices here.
12498 (w32font_open): Disable use of glyph indices.
12499
12500 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12501
125022008-07-30 Chong Yidong <cyd@stupidchicken.com>
12503
12504 * minibuf.c (Vread_buffer_function): Doc fix.
12505
125062008-07-30 John Paul Wallington <jpw@pobox.com>
12507
12508 * minibuf.c (read_buffer_completion_ignore_case): New var.
12509 (Fread_buffer): Use it.
12510
125112008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12512
12513 * systty.h (sensemode): Remove empty #if. Remove reference to
12514 BSD_TERMIOS, unused.
12515
12516 * sysdep.c: Remove reference to DGUX.
12517 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12518
12519 * config.in: Regenerate.
12520
125212008-07-30 Jason Rumney <jasonr@gnu.org>
12522
12523 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12524
125252008-07-29 Jason Rumney <jasonr@gnu.org>
12526
12527 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12528 is populated.
12529 (uniscribe_encode_char): Always use uniscribe.
12530 Avoid using context if cache is populated.
12531
125322008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12533
12534 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12535 open menu.
12536
12537 * gtkutil.c (menu_nav_ended): Remove.
12538 (create_menus): Remove signal connect for menu_nav_ended.
12539
125402008-07-28 Chong Yidong <cyd@stupidchicken.com>
12541
12542 * xdisp.c (redisplay_window): Check return value of
12543 compute_window_start_on_continuation_line before forcing a window
12544 start.
12545
125462008-07-28 Jason Rumney <jasonr@gnu.org>
12547
12548 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12549
12550 * w32term.c (w32_enable_unicode_output, cleartype_active):
12551 Remove obsolete display options.
12552 (x_draw_glyph_string_background): Don't use old cleartype_active
12553 workaround.
12554 (w32_initialize): Remove cleartype_active initialization.
12555 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12556
125572008-07-28 Andreas Schwab <schwab@suse.de>
12558
12559 * lisp.h (init_weak_hash_tables, syms_of_font)
12560 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12561 (remove_hash_entry): Don't declare.
12562 * eval.c (maybe_call_debugger): Make static and move before use.
12563 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12564 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12565 * xterm.h (x_set_frame_alpha): Declare.
12566
125672008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12568
12569 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12570 (create_menus): Connect selection-done to menu_nav_ended.
12571
125722008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12573
12574 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12575 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12576 parameter with read of 'alpha' one.
12577 (Qns_frame_parameter): Remove.
5582fbc7 12578 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12579 (next-selection-coding-system, Vselection_coding_system)
12580 (Vnext_selection_coding_system): Drop.
12581
125822008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12583
12584 * nsfns.m (do-applescript, do_applescript): Rename to
12585 ns-do-applescript, ns_do_applescript, and move within file.
12586
125872008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12588
12589 Remove support for Mac Carbon.
12590 * mactoolbox.c:
12591 * macterm.h:
12592 * macterm.c:
12593 * macselect.c:
12594 * macmenu.c:
12595 * macgui.h:
12596 * macfns.c:
12597 * mac.c: Remove file.
12598 * s/darwin.h:
12599 * m/intel386.h:
12600 * xfaces.c:
12601 * xdisp.c:
12602 * window.c:
12603 * tparam.c:
12604 * termhooks.h:
12605 * termcap.c:
12606 * term.c:
12607 * syssignal.h:
12608 * sysselect.h:
12609 * sysdep.c:
12610 * process.c:
12611 * lread.c:
12612 * lisp.h:
12613 * keyboard.c:
12614 * image.c:
12615 * fringe.c:
12616 * frame.h:
12617 * frame.c:
12618 * fontset.c:
12619 * font.h:
12620 * font.c:
12621 * fns.c:
12622 * fileio.c:
12623 * emacs.c:
12624 * dispnew.c:
12625 * dispextern.h:
12626 * config.in:
12627 * atimer.c:
2ae37cf0 12628 * Makefile.in: Remove code for Carbon.
aac0c6e3 12629
f0131492 126302008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12631
12632 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12633
126342008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12635
12636 * macterm.h (kCGBitmapByteOrder32Host): New define for
12637 non-universal SDKs.
12638
12639 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12640 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12641
12642 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12643 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12644
126452008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12646
12647 * w32inevt.c: Include dispextern.h.
12648
126492008-07-26 Andreas Schwab <schwab@suse.de>
12650
12651 * print.c (print_object): Fix off-by-one in last change.
12652
126532008-07-25 Juanma Barranquero <lekktu@gmail.com>
12654
12655 * term.c (syms_of_term): Don't initialize default_orig_pair,
12656 default_set_foreground and default_set_background on Windows.
12657
126582008-07-25 Jason Rumney <jasonr@gnu.org>
12659
12660 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12661 ScriptItemize. Clean up return value checking. Remove unused
12662 variables.
12663 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12664 shaping engine.
12665
12666 * w32font.c (w32font_has_char): Handle the case where we can't
12667 determine the script for a character.
12668
126692008-07-25 Chong Yidong <cyd@stupidchicken.com>
12670
12671 * term.c (syms_of_term): Initialize default_orig_pair,
12672 default_set_foreground, and default_set_background.
12673
12674 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12675 clash (bug#86).
12676 (getloadavg): Callers changed.
12677
12678 * image.c (svg_load_image): Fix last change.
12679 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12680 image size is valid. Use g_object_unref instead of deprecated
12681 rsvg_handle_free to free rsvg handle.
12682 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12683
126842008-07-25 Jason Rumney <jasonr@gnu.org>
12685
12686 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12687 surrogates before looking up glyph index.
12688 (w32font_text_extents): Encode as surrogates if falling back to
12689 functions that need UTF-16 wide chars.
12690
12691 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12692 BMP as surrogates before looking up glyph index.
12693
126942008-07-25 Chong Yidong <cyd@stupidchicken.com>
12695
12696 * image.c (svg_load_image): Check for failure in return value of
12697 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12698
126992008-07-25 Jason Rumney <jasonr@gnu.org>
12700
12701 * w32font.c (Fx_select_font): Reverse sense of second arg.
12702
127032008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12704
12705 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12706 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12707
12708 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12709 (PURESIZE): Use it.
12710
127112008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12712
12713 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12714 * m/alpha.h (TEXT_END):
12715 * m/ibmrs6000.h (TEXT_END):
12716 * m/macppc.h (TEXT_END):
12717 * s/darwin.h (TEXT_END):
12718 * s/msdos.h (TEXT_END): Remove, unused.
12719 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12720 * s/cygwin.h: Remove comment.
12721
12722 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12723 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12724 * m/intel386.h (DOT_GLOBAL_START):
12725 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12726 (USG): Remove, file not used on USG platforms.
12727
12728 * Makefile.in (HAVE_X11): Remove empty #else.
12729
127302008-07-24 Andreas Schwab <schwab@suse.de>
12731
12732 * fileio.c (Finsert_file_contents): Properly adjust undo list
12733 after format conversion.
12734
127352008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12736
12737 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12738 (menu_nav_ended): Remove.
12739 (create_menus): Remove signal connect for menu_nav_ended.
12740 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12741 create_menus.
12742 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12743
127442008-07-23 Jason Rumney <jasonr@gnu.org>
12745
12746 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12747 with opened font.
12748 (w32font_open): Set font type to gdi.
12749
12750 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12751
127522008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12753
12754 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12755 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12756 defines it.
12757 * unexec.c (ADDR_CORRECT): Define unconditionally.
12758
12759 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12760
12761 * unexec.c: Remove code depending on !COFF and USG, the file is
12762 not used for such systems.
12763
12764 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12765 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12766 (LD_SWITCH_SYSTEM_1): Remove, update users.
12767
12768 * s/darwin.h (DATA_END):
12769 * m/intel386.h (DATA_END):
12770 * m/ibmrs6000.h (DATA_END):
12771 * m/alpha.h (DATA_END): Remove, unused.
12772
12773 * config.in: Regenerate.
12774 * s/ms-w32.h (subprocesses): Define unconditionally.
12775 * s/template.h (subprocesses): Update comment.
12776 * s/vms.h (subprocesses):
12777 * s/usg5-4.h (subprocesses):
12778 * s/hpux10-20.h (subprocesses):
12779 * s/gnu-linux.h (subprocesses):
12780 * s/cygwin.h (subprocesses):
12781 * s/bsd-common.h (subprocesses):
12782 * s/aix4-2.h (subprocesses):
12783 * s/darwin.h (subprocesses): Do not define, defined by default now.
12784
12785 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12786 Remove all references.
12787 (temacs): Add GNUstep specific ld flags.
12788
12789 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12790 similarly to what X does.
12791
127922008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12793
12794 * nsfns.m (x-list-fonts): Remove.
12795 (syms_of_nsfns): Drop the x-list-fonts declaration.
12796 * nsterm.m: Get rid of remaining "//" comments.
12797
127982008-07-22 Chong Yidong <cyd@stupidchicken.com>
12799
12800 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12801
12802 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12803 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12804 (Fns_own_selection_internal, Fx_disown_selection_internal)
12805 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12806
12807 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12808 ... */' style of docstrings. Doc fixes.
12809
128102008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12811
12812 * terminfo.c (UP, BC, PC): Undo previous change.
12813
12814 * nsfns.m: Rename ns prefixed functions/variables to the
12815 corresponding x versions. Update references.
12816
128172008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12818
12819 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12820
128212008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12822
12823 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12824 Remove forwarding functions.
12825 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12826 non-static.
12827 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12828 non-static.
12829 (ns_frame_parm_handlers): Use the new names.
12830 (syms_of_nsfns): Move to the end of file.
12831
12832 * nsterm.m (syms_of_nsterm): Move to the end of file.
12833
12834 * dispnew.c (init_display): Remove code for X10.
12835
128362008-07-22 Jason Rumney <jasonr@gnu.org>
12837
12838 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12839 bare drive.
12840
128412008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12842
12843 * nsterm.m (syms_of_nsterm): Remove debugging println.
12844
128452008-07-22 David Reitter <david.reitter@gmail.com>
12846
12847 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12848 Carbon implementation of the same functionality: execute arbitrary
12849 AppleScript code.
12850
128512008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12852
12853 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12854 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12855 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12856 (Fx_display_mm_height, Fx_display_mm_width)
12857 (Fx_display_backing_store, Fx_display_visual_class)
12858 (Fx_display_save_under, Fx_open_connection)
12859 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12860 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12861 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12862 (Fx_display_pixel_width, Fx_display_pixel_height)
12863 (Fx_display_usable_bounds, Fx_display_planes)
12864 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12865 ... */' style of docstrings.
12866
128672008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12868
12869 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12870 on this platform.
12871 (mips):
12872 * m/iris4d.h (mips): Do not define.
12873 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12874
12875 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12876
12877 * image.c:
12878 * nsfns.m:
12879 * nsselect.m:
12880 * nsterm.h:
12881 * nsterm.m: Rename ns prefixed functions/variables to the
12882 corresponding x versions. Update references.
12883
12884 * m/ibms390x.h (NO_REMAP): Do not undefine.
12885
12886 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12887
128882008-07-21 Chong Yidong <cyd@stupidchicken.com>
12889
12890 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12891 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12892 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12893 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12894 (Fns_display_mm_height, Fns_display_mm_width)
12895 (Fns_display_backing_store, Fns_display_visual_class)
12896 (Fns_display_save_under, Fns_open_connection)
12897 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12898 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12899 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12900 (Fns_display_pixel_width, Fns_display_pixel_height)
12901 (Fns_display_usable_bounds, Fx_display_planes)
12902 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12903
129042008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12905
12906 * print.c (print_object): Check print_depth before searching for
12907 circularities.
12908
129092008-07-21 Michael Albinus <michael.albinus@gmx.de>
12910
12911 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12912 only sprintf.
12913
129142008-07-21 Kenichi Handa <handa@m17n.org>
12915
12916 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12917
129182008-07-20 Andreas Schwab <schwab@suse.de>
12919
12920 * syntax.c (find_start_pos, find_start_value)
12921 (find_start_value_byte, find_start_begv, find_defun_start)
12922 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12923
129242008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12925
12926 * s/sol2-3.h: Insert contents of s/sol2.h.
12927 (LD_SWITCH_SYSTEM): Remove redundant definition.
12928 * s/sol2.h: Remove, unused.
12929
129302008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12931
12932 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12933
129342008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12935
12936 * Makefile.in (ns_appdir): Fix typo in find command.
12937
129382008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12939
12940 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12941
12942 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12943 added not supported anymore.
12944
12945 * s/usg5-4-2.h (LIBS_SYSTEM):
12946 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12947
12948 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12949 * s/lynxos.h (GETPGRP_NO_ARG):
12950 * s/hpux10-20.h (NO_SIOCTL_H):
12951 * s/gnu.h (GETPGRP_NO_ARG):
12952 * s/gnu-linux.h (NO_SIOCTL_H):
12953 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12954 * s/cygwin.h (GETPGRP_NO_ARG):
12955 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12956 (C_DEBUG_SWITCH): Remove duplicate definition.
12957
12958 * m/ibms390.h: Remove boilerplate comments.
12959
12960 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12961
12962 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12963 (wait_reading_process_output): Remove code for SunOS, platform not
12964 supported anymore. Use SOLARIS2 instead of sun.
12965
129662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12967
12968 * font.c (font_open_by_name): Under NS, default lface height to zero.
12969 (font_open_for_lface): Under NS, set size based on frame fontsize.
12970 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12971 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12972
129732008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12974
12975 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12976 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12977 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12978 YES/NO.
12979 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12980 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12981 * Makefile.in (clean): Clear out build destination dir.
12982
129832008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12984
12985 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12986 xterm, xselect.
12987 * lisp.h: Remove declaration of hash_remove.
12988 * nsgui.h: Remove redefinitions of hash_remove.
12989 * fns.c (hash_remove): Rename to hash_remove_from_table.
12990
129912008-07-19 Seiji Zenitani <zenitani@mac.com>
12992
12993 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12994 strdup() the family UTF8String before modifying it.
12995
129962008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12997
12998 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12999 NS_FACE_BACKGROUND with 0 instead of nil.
13000 * nsfont.m (nsfont_draw): Same.
13001
130022008-07-19 Chong Yidong <cyd@stupidchicken.com>
13003
13004 * nsfns.m (ns_set_background_color): Fix crash.
13005
130062008-07-18 Chong Yidong <cyd@stupidchicken.com>
13007
13008 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13009
130102008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13011
13012 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13013
130142008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13015
13016 * gtkutil.c: Include <config.h> instead of "config.h".
13017
13018 * lisp.h (Foverlay_buffer): Add EXFUN.
13019
13020 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13021 child process to complete child_setup. Undo 2005-09-21 change.
13022
13023 * s/darwin.h: Mention setsid after vfork.
13024
130252008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13026
13027 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13028 Depend on macgui.h.
13029
13030 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13031 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13032
13033 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13034 and f19.
13035 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13036
13037 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13038 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13039 Remove enumerators.
13040
13041 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13042 Check if FACE_FROM_ID returns NULL.
13043
130442008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13045
13046 * w32inevt.c (change_frame_size): Remove extern declaration.
13047 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13048 change_frame_size.
13049
130502008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13051
13052 * getloadavg.c: Revert last change (2008-07-15).
13053
130542008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13055
13056 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13057 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13058 from configure.
13059
130602008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13061
13062 * s/sol2.h:
13063 * s/sol2-4.h: Reorganize conditionals.
13064
13065 * ecrt0.c: Remove code depending on m68000, not used anymore.
13066
13067 * fns.c (hash_remove): Make static.
13068 * lisp.h (hash_remove): Don't prototype.
13069
13070 * m/ibmrs6000.h:
13071 * m/ibms390x.h:
13072 * m/macppc.h: Remove boilerplate comments.
13073
13074 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13075 Solaris, which does not need them.
13076
13077 * m/vax.h: Remove comments about unsupported systems.
13078
13079 * s/darwin.h: Reorganize ifdefs.
13080
130812008-07-17 Andreas Schwab <schwab@suse.de>
13082
13083 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13084
130852008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13086
13087 Use SDATA. Follow coding convention of placing operators at
13088 beginning of next line rather than end of previous line, and placing
13089 spaces around infix operators.
13090
13091 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13092 in case it was defined already.
13093 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13094 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13095 ns_default.
13096 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13097 Lisp_Objects.
13098 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13099 (ns_defined_color, ns_color_to_lisp): Declare.
13100 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13101 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13102 it's accepted even with USE_LISP_UNION_TYPE.
13103 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13104 (update_frame_tool_bar): Remove apparently obsolete tests for
13105 non-integerness of f->tool_bar_lines.
13106 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13107 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13108 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13109 (nsfont_open): Don't confuse NULL for Qnil.
13110 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13111 * menu.h (find_and_call_menu_selection):
13112 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13113 (find_and_return_menu_selection): Always return something.
13114 * frame.h: Include dispextern.h for Display_Info.
13115 (display_x_get_resource): Declare.
13116
131172008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13118
13119 * syntax.c: Remove stdio.h include accidentally introduced in
13120 Emacs.app commit.
13121 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13122 NS_IMPL_COCOA.
13123 * keyboard.c (handle_async_input, input_available_signal): Remove
13124 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13125
131262008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13127
13128 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13129 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13130 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13131 Use SDATA.
13132
13133 * keymap.c: Remove all NS-specific code.
13134 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13135 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13136 where_is_preferred_modifier, return a different value depending on how
13137 preferred is the binding.
13138 (where_is_internal): Adjust accordingly.
13139 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13140 Adjust to new preferred_sequence_p.
13141 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13142 * keyboard.c (parse_solitary_modifier): Not static any more.
13143 * keyboard.h (parse_solitary_modifier): Declare.
13144
131452008-07-16 Andreas Schwab <schwab@suse.de>
13146
13147 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13148 of easymenu.
13149
131502008-07-16 Chong Yidong <cyd@stupidchicken.com>
13151
13152 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13153 that we don't move off the line.
13154
131552008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13156
13157 * keyboard.c (Qsuper): Remove.
13158 (parse_menu_item): Don't call where_is_internal specially for NS.
13159
131602008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13161
13162 * s/gnu-linux.h: Remove boilerplate comments.
13163
13164 * m/alpha.h (__ELF__): Consolidate conditions.
13165
13166 * m/m68k.h (linux): Use GNU_LINUX instead.
13167 Remove boilerplate comments.
13168
13169 * m/intel386.h: Undo refactoring from previous change.
13170 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13171 too, remove dead code.
13172 (linux): Use GNU_LINUX instead.
13173
131742008-07-16 Jason Rumney <jasonr@gnu.org>
13175
13176 * w32gui.h: Repeat 26 June changes lost by last change.
13177
131782008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13179
13180 * systty.h: Remove code for Aix on 386, unsupported platform.
13181
13182 * s/ms-w32.h: Remove boilerplate comments.
13183 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13184
13185 * s/gnu-linux.h (TERM): Remove support.
13186 (HAVE_SYSVIPC): Remove, unused.
13187 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13188 for this system.
13189
13190 * process.c: Remove support for IRIS, unused.
13191 Remove support for TERM, not relevant anymore.
13192
13193 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13194 used with the definition.
13195
13196 * s/aix4-2.h (static): Do not undef.
13197
13198 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13199 only used on Aix.
13200 (HAVE_SYSVIPC): Remove, unused.
13201
13202 * m/hp800.h (CANNOT_DUMP): Do not undef.
13203
13204 * m/alpha.h: Fix comment.
13205
13206 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13207 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13208 used by this configuration.
13209 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13210 * unexec.c: Remove code depending on HPUX and
13211 USG_SHARED_LIBRARIES, not used with this file. Remove code
13212 depending on IRIS, unused. Remove if 0-ed code.
13213
13214 * s/template.h: Remove comments about static.
13215
13216 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13217 Remove if 0-ed code.
13218 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13219 were the same as the default.
13220 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13221 Remove boilerplate comments.
13222 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13223 (HAVE_SYSVIPC): Remove, unused.
13224 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13225
13226 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13227 Remove boilerplate comments.
13228 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13229 Remove boilerplate comments.
13230 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13231 Remove boilerplate comments.
13232 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13233
13234 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13235 USG systems which do not use DATA_SEG_BITS.
13236 Refactor code. Remove boilerplate comments.
13237
13238 * m/ibms390.h:
13239 * m/m68k.h:
13240 * s/bsd-common.h:
13241 * s/cygwin.h:
13242 * s/darwin.h:
13243 * s/freebsd.h:
13244 * s/gnu.h:
13245 * s/msdos.h: Remove boilerplate comments.
13246
13247 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13248 do not use this file.
aac0c6e3
MR
13249 (IRIS_4D): Remove, unused.
13250
13251 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13252 do not use this file.
aac0c6e3
MR
13253 (SIGN_EXTEND_CHAR):
13254 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13255 * unexmips.c: Remove file, unused.
13256
13257 * editfns.c (Fuser_full_name): Replace the only use of
13258 USER_FULL_NAME with its value.
13259 * config.in: Regenerate.
13260
132612008-07-16 David Reitter <david.reitter@gmail.com>
13262
13263 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13264 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13265
132662008-07-16 Glenn Morris <rgm@gnu.org>
13267
13268 * emacs.c (system-type): Doc fix.
13269
132702008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13271
13272 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13273 If the cache doesn't work, let's fix it, rather than work around it.
13274
132752008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13276
13277 * Makefile.in: Correct additions for nsfont.o in last commit.
13278 * nsfont.m: New file (forgot last commit).
13279
132802008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13281
13282 * callproc.c (set_initial_environment): Initialize
13283 Vprocess_environment under CANNOT_DUMP (fixes crash when
13284 batch-compiling for bootstrap).
13285
132862008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13287 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13288
c4cc8b9a
JB
13289 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13290 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13291
132922008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13293
13294 Changes and additions for NeXTstep windowing system (Cocoa and
13295 GNUstep) support.
13296
13297 * Makefile.in:
13298 * config.in: Support defines and build commands for NS port.
13299 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13300 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13301 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13302 windowing.
13303 (struct face): Add synth_ital field.
13304 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13305 (init_display): Initialize Vinitial_window_system to "ns" when so
13306 compiled.
13307 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13308 (display_arg): Use under NS.
13309 (main): Under NS, allocate autorelease pool and handle command line
13310 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13311 (standard_args): Add NS-specific args.
13312 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13313 * font.c (DEFAULT_ENCODING): New variable.
13314 (font_find_for_lface): Use it.
13315 (syms_of_font): Load syms_of_nsfont under NS.
13316 * font.h: Declare nsfont_driver when compiled under NS.
13317 * fontset.c: When compiling under NS, include nsterm.h.
13318 (fontset_from_font): Autoconstruct fontset under NS.
13319 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13320 symbol, document and use it.
13321 (do_switch_frame): When for_deletion under Cocoa, add
13322 Fraise_frame(Qnil).
13323 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13324 (x_get_arg): Allow "yes" and "no" as boolean values.
13325 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13326 Qright under Cocoa.
13327 (focus-follows-mouse): Default to 0 under NS.
13328 * frame.h (enum output_method): Add output_ns.
13329 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13330 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13331 (FRAME_WINDOW_P): NS-specific definition.
13332 * fringe.c (max_used_fringe_bitmap): Make public.
13333 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13334 (getloadavg): Use NeXT code under descendant OS's.
13335 * image.c (includes and header section, x_create_bitmap_from_data)
13336 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13337 (image_background_transparent, x_clear_image_1)
13338 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13339 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13340 (x_to_xcolors, x_from_xcolors, x_disable_image)
13341 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13342 other GUIs, including XPM support using code originally written for
13343 Carbon GUI.
13344 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13345 using NS API.
13346 (image_ascent): Use font metrics macros instead of direct struct field
13347 access.
13348 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13349 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13350 Also, handle NS as GTK for menu bar purposes.
13351 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13352 toolkit where they differ.
13353 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13354 use cachelist, still needed under NS.
13355 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13356 (struct widget_value): Define it here for menu.c.
13357 * keymap.c (includes): Include modifier internals.
13358 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13359 NS.
13360 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13361 support for preferring sequences using certain modifiers, specified by
13362 the FIRSTONLY argument.
13363 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13364 under NS GNUstep implementation.
13365 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13366 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13367 * menu.c: Include nsterm.h under NS.
13368 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13369 (free_menubar_widget_tree_value, update_submenu_strings)
13370 (find_and_call_menu_selection): Treat NS as X and NT.
13371 (find_and_return_menu_selection): New function, used for popup menus.
13372 * nsgui.h:
13373 * nsterm.h:
13374 * nsfns.m:
13375 * nsimage.m:
13376 * nsmenu.m:
13377 * nsselect.m:
13378 * nsterm.m: New files.
13379 * process.c (wait_reading_process_output): Under NS, call ns_select()
13380 instead of plain select().
13381 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13382 beginning of buffer.
13383 * sysselect.h (init_process): Rename when compiling under Cocoa to
13384 avoid name conflict.
13385 * termhooks.h (display_info): Add ns_display_info to union.
13386 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13387 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13388 COCOA environment.
13389 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13390 unexec() signature. (Note, this will dump, but the resulting file
13391 crashes; unexosx is used instead; keeping around for reference and
13392 possible aid in getting dump working under GNUstep.)
13393 * w32gui.h (button_type, widget_value): Remove definitions (now in
13394 keyboard.h).
13395 * window.c: Include nsterm.h when compiling under NS.
13396 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13397 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13398 other GUI windowing systems.
13399 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13400 GTK.
13401 (x_consider_frame_title): Under NS, set icon type and frame
13402 modified-state indicator; use ns_set_name_as_filename() when using
13403 formatted title.
13404 (update_window_cursor): Make public when compiling under NS.
13405 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13406 (hourglass_atimer, Vhourglass_delay
13407 * xfaces.c (header section, init_frame_faces, clear_font_table)
13408 (defined_color, unload_color, x_face_list_fonts)
13409 (prepare_face_for_display): Add NS support parallel to other GUIs.
13410 Emulate GCs like other non-X GUIs.
13411 (split_font_name): Don't lowercase font name under NS.
13412 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13413 under NS.
13414 * s/darwin.h: Add support for compilation under NS.
13415
134162008-07-15 Jason Rumney <jasonr@gnu.org>
13417
13418 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13419 (w32_show_hourglass): Rename from show_hourglass.
13420 (w32_hide_hourglass): Rename from hide_hourglass.
13421 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13422 (Vhourglass_delay): Declare extern.
13423 (hourglass_started): Remove.
13424
13425 * xdisp.c (Vhourglass_delay): Remove static.
13426 (hourglass_started, start_hourglass, cancel_hourglass):
13427 Don't include these versions on WINDOWSNT.
13428
134292008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13430
13431 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13432 variables (formerly in xfns.c).
13433 (show_hourglass, hide_hourglass): New prototypes (same).
13434 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13435 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13436 in xfns.c).
13437 (syms_of_xdisp): Declare/initialize display-hourglass,
13438 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13439 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13440 formerly in xfns.c.
13441 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13442 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13443 (start_hourglass, cancel_hourglass): Remove.
13444 (show_hourglass, hide_hourglass): Remove prototypes and static
13445 modifiers.
13446 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13447 hourglass_atimer, hourglass_shown_p declaration/initialization.
13448 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13449 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13450 (start_hourglass, cancel_hourglass): Remove.
13451 (show_hourglass, hide_hourglass): Remove prototypes and static
13452 modifiers.
13453 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13454 hourglass_atimer, hourglass_shown_p declaration/initialization.
13455 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13456 (DEFAULT_HOURGLASS_DELAY): Remove.
13457 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13458 hourglass_shown_p declaration/initialization.
13459
134602008-07-14 Jason Rumney <jasonr@gnu.org>
13461
13462 * w32fns.c (w32_get_arg): Remove wrapper function.
13463 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13464 directly.
13465 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13466
134672008-07-14 Kenichi Handa <handa@m17n.org>
13468
13469 * xfont.c (xfont_open): Add workaround for X's bug.
13470
134712008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13472
13473 * fontset.c: Include <stdio.h> unconditionally.
13474
134752008-07-13 Michael Albinus <michael.albinus@gmx.de>
13476
13477 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13478 for filtering.
13479
134802008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13481
13482 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13483
13484 * m/macppc.h:
13485 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13486
c4cc8b9a 13487 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13488 (SPECIAL_EMACS_INT):
13489 * m/ia64.h (SPECIAL_EMACS_INT):
13490 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13491 * s/gnu.h (NLIST_STRUCT):
13492 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13493 * s/gnu-linux.h (LINUX):
13494 * s/msdos.h (HAVE_FACES):
13495 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13496
13497 * systty.h:
13498 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13499 anymore.
13500
135012008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13502
13503 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13504 always defined as int.
13505
13506 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13507 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13508 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13509 * s/freebsd.h (HAVE_WAIT_HEADER):
13510 * s/bsd-common.h (HAVE_UNION_WAIT):
13511 * s/aix4-2.h (HAVE_WAIT_HEADER):
13512 * m/mips.h (HAVE_UNION_WAIT):
13513 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13514 (COFF, static): Do not define, they are undefined later in the file.
13515
13516 * process.c (update_status): Don't use a union.
13517 (status_convert):
13518 (sigchld_handler): Use int instead of WAITTYPE.
13519
135202008-07-12 Chong Yidong <cyd@stupidchicken.com>
13521
13522 * indent.c (Fvertical_motion): Restore hscroll before moving to
13523 goal column.
13524
135252008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13526
13527 * lisp.h: Remove left over code.
13528
135292008-07-11 Andreas Schwab <schwab@suse.de>
13530
13531 * lisp.h: Fix logic in last change.
13532
13533 * menu.h: New file.
13534 * menu.c: Include it.
13535 * xmenu.c: Likewise.
13536 * Makefile.in: Update dependencies.
13537
135382008-07-11 Kenichi Handa <handa@m17n.org>
13539
13540 * fontset.c (fontset_from_font): Cancel the previous change.
13541
135422008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13543
13544 * lisp.h:
13545 * w32heap.c:
13546 * emacs.c:
13547 * alloc.c: Replace all references of NO_UNION_TYPE with
13548 USE_LISP_UNION_TYPE.
13549
13550 * m/xtensa.h (NO_UNION_TYPE):
13551 * m/vax.h (NO_UNION_TYPE):
13552 * m/template.h (NO_UNION_TYPE):
13553 * m/sparc.h (NO_UNION_TYPE):
13554 * m/mips.h (NO_UNION_TYPE):
13555 * m/macppc.h (NO_UNION_TYPE):
13556 * m/m68k.h (NO_UNION_TYPE):
13557 * m/iris4d.h (NO_UNION_TYPE):
13558 * m/intel386.h (NO_UNION_TYPE):
13559 * m/ibms390x.h (NO_UNION_TYPE):
13560 * m/ibms390.h (NO_UNION_TYPE):
13561 * m/ibmrs6000.h (NO_UNION_TYPE):
13562 * m/ia64.h (NO_UNION_TYPE):
13563 * m/hp800.h (NO_UNION_TYPE):
13564 * m/arm.h (NO_UNION_TYPE):
13565 * m/amdx86-64.h (NO_UNION_TYPE):
13566 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13567 defining it the same.
13568
135692008-07-10 Chong Yidong <cyd@stupidchicken.com>
13570
13571 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13572
135732008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13574
13575 * fileio.c:
50426a04 13576 * sysdep.c:
aac0c6e3
MR
13577 * systty.h:
13578 * m/ibmrs6000.h:
13579 * m/iris4d.h:
13580 * s/aix4-2.h:
13581 * s/freebsd.h:
13582 * s/gnu-linux.h:
13583 * s/hpux10-20.h:
13584 * s/hpux11.h:
13585 * s/netbsd.h:
13586 * s/sol2-3.h:
13587 * s/sol2-4.h:
13588 * s/sol2.h:
13589 * s/usg5-4.h:
13590 * s/vms.h: Remove references to unused variables.
13591
135922008-07-10 Andreas Schwab <schwab@suse.de>
13593
13594 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13595 pattern before matching the generic family.
13596
135972008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13598
13599 * unexec.c:
13600 * s/vms.h:
13601 * s/usg5-4-2.h:
13602 * s/sol2-5.h:
13603 * s/freebsd.h:
13604 * s/darwin.h: Remove dead code.
13605
13606 * m/template.h:
13607 * m/sparc.h:
13608 * m/mips.h:
13609 * m/m68k.h:
13610 * m/iris4d.h:
13611 * m/intel386.h:
13612 * m/ibms390x.h:
13613 * m/ibms390.h:
13614 * m/ia64.h:
13615 * m/hp800.h:
13616 * m/arm.h:
13617 * m/amdx86-64.h: Remove dead code and references to unused
13618 and compiler defined symbols.
13619
13620 * unexmips.c:
13621 * unexelf.c: Remove references to desupported systems.
13622
13623 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13624
13625 * m/powermac.h: Remove boilerplate comments.
13626 (NO_REMAP): Remove unused definition.
13627
13628 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13629 define them.
13630
136312008-07-10 Kenichi Handa <handa@m17n.org>
13632
13633 * xfont.c (xfont_open): Log the reason of failure.
13634
136352008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13636
13637 * fontset.c (fontset_get_font_group):
13638 * font.c (font_check_otf): Specify argument types.
13639
136402008-07-09 Kenichi Handa <handa@m17n.org>
13641
13642 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13643 non-ASCII char is found.
13644
13645 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13646 (reorder_font_vector): Change the arg preferred_family to font.
13647 Prefer the spec matching with font.
13648 (fontset_get_font_group): New function.
13649 (fontset_find_font): Change the format of an element of a realized
13650 fontset. Use fontset_get_font_group.
13651 (fontset_font): Try the current fontset, the default fontset, the
13652 fallbacks of the current fontset, and the fallbacks of the default
13653 fontset in this order.
13654 (face_for_char): Delete the shortcut to use the current font.
13655 (fontset_from_font): Don't set fonts for Latin in the fontset.
13656
13657 * font.h (font_make_object, font_match_p): Adjust prototypes.
13658
13659 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13660
13661 * font.c (font_make_object): New arg entity and pixelsize.
13662 (font_check_otf_features, font_check_otf): New functions.
13663 (font_match_p): Check :lang, :script, and :otf properties.
13664
13665 * xfont.c (xfont_open): Adjust it for the change of
13666 font_make_object.
13667 (xfont_text_extents): Fix initial setting of metrics.
13668
13669 * ftfont.c (struct ftfont_info): New member index, delete member
13670 fc_charset_idx. Make the member order compatible with struct
13671 xftfont_info.
13672 (fc_charset_table): Change charset names to registry names.
13673 (ftfont_pattern_entity): Delete the args registry and
13674 fc_charset_idx. Change the value of :font-entity property
13675 to (FONTNAME . INDEX). Always set :registry property to
13676 `iso10646-1'.
13677 (struct ftfont_cache_data): New struct.
13678 (ftfont_lookup_cache): New arg for_face.
13679 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13680 (ftfont_driver): Set the member otf_capability.
13681 (ftfont_get_charset): Adjust it for the change of
13682 fc_charset_table.
13683 (OTF_TAG_SYM): New macro.
13684 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13685 for the change of fc_charset_table.
13686 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13687 ftfont_pattern_entity. Add FC_INDEX to objset.
13688 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13689 and ftfont_pattern_entity.
13690 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13691 font_make_object, struct ftfont_info.
13692 (ftfont_has_char): Use ftfont_get_fc_charset.
13693 (ftfont_otf_features, ftfont_otf_capability): New functions.
13694 (ftfont_shape): Use ftfont_get_otf.
13695 (ftfont_text_extents): Fix initial setting of metrics.
13696
13697 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13698 member order compatible with struct ftfont_info.
13699 (xftfont_open): Add FC_CHARSET to the pattern. Set
13700 xftfont_info->ft_size. Don't unlock the face. Check BDF
13701 properties if appropriate.
13702 (xftfont_close): Unlock the face.
13703 (xftfont_anchor_point, xftfont_shape): Deleted.
13704 (syms_of_xftfont): Don't set members anchor_point and shape of
13705 xftfont_driver.
13706
13707 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13708 font_make_object.
13709
13710 * w32font.c (w32font_open): Adjust it for the change of
13711 font_make_object.
13712 (w32font_open_internal): Don't set properties of font_object here.
13713
137142008-07-08 Chong Yidong <cyd@stupidchicken.com>
13715
13716 * macfns.c (x_create_tip_frame):
13717 * w32fns.c (x_create_tip_frame):
13718 * xfns.c (x_create_tip_frame): Pass parameter argument to
13719 face-set-after-frame-default.
13720
13721 * xfaces.c (Finternal_merge_in_global_face): Save merged
13722 attributes for the default face back into the face vector.
13723
137242008-07-08 Andreas Schwab <schwab@suse.de>
13725
13726 * fontset.h: Declare fontset_from_font. Don't declare
13727 new_fontset_from_font and fontset_from_font_name.
13728 * xterm.c: Include "fontset.h".
13729 * Makefile.in (xterm.o): Update dependencies.
13730
137312008-07-08 Glenn Morris <rgm@gnu.org>
13732
13733 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13734 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13735
137362008-07-07 Chong Yidong <cyd@stupidchicken.com>
13737
13738 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13739 (x_set_frame_parameters): Don't bind it.
13740
137412008-07-07 Juanma Barranquero <lekktu@gmail.com>
13742
13743 * w32fns.c (map_w32_filename): Declare extern.
13744
137452008-07-07 Jason Rumney <jasonr@gnu.org>
13746
13747 * w32term.c (WS_EX_LAYERED): Define if not already.
13748
137492008-07-06 Chong Yidong <cyd@stupidchicken.com>
13750
13751 * xfaces.c (set_font_frame_param): Don't try to set the font
13752 parameter if it is still unspecified in the lface.
13753
137542008-07-05 Chong Yidong <cyd@stupidchicken.com>
13755
13756 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13757 face if it didn't already exist.
13758
13759 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13760
137612008-07-05 Andreas Schwab <schwab@suse.de>
13762
13763 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13764
137652008-07-05 Chong Yidong <cyd@stupidchicken.com>
13766
13767 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13768 word-wrapping.
13769 (IT_DISPLAYING_WHITESPACE): New macro.
13770 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13771 when word-wrapping. Simplify word-wrapping logic. Use correct
13772 pixel positions when saving copies of the iterator.
13773 (display_line): Use proper wrap point if the last character on a
13774 line was preceded by whitespace.
13775
137762008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13777
13778 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13779
137802008-07-04 Kenichi Handa <handa@m17n.org>
13781
13782 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13783
13784 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13785
137862008-07-02 Jason Rumney <jasonr@gnu.org>
13787
13788 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13789 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13790
13791 * xdisp.c (next_element_from_display_vector): Move assignment out
13792 of if statement.
13793
137942008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13795
13796 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13797
13798 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13799 (syms_of_fileio): Initialize and export them.
13800 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13801
13802 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13803 (Fsystem_move_file_to_trash): New function.
13804 (syms_of_w32fns): Export it to lisp.
13805
138062008-07-01 Jason Rumney <jasonr@gnu.org>
13807
13808 * w32font.c (w32font_text_extents): Don't count overhang as part
13809 of width.
13810
138112008-06-30 Miles Bader <miles@gnu.org>
13812
13813 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13814 Add `avoid_cursor_p' field.
13815
13816 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13817 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13818 (append_glyph, append_composite_glyph, produce_image_glyph)
13819 (append_stretch_glyph): Initialize avoid_cursor_p.
13820 (get_it_property): Rename from `get_line_height_property'.
13821 (x_produce_glyphs): Use get_it_property.
13822 (handle_line_prefix, push_display_prop): New functions.
13823 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13824 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13825 New variables.
13826 (syms_of_xdisp): Initialize them.
13827
138282008-06-30 Kenichi Handa <handa@m17n.org>
13829
13830 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13831 XftDefaultSubstitute (they are called in XftFontMatch).
13832 (xftfont_open): Fix args to ftfont_font_format.
13833
13834 * ftfont.c (fc_charset_table): New member lang.
13835 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13836 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13837 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13838 (ftfont_open): Fix args to ftfont_font_format.
13839 (ftfont_font_format): New arg filename.
13840
138412008-06-30 Chong Yidong <cyd@stupidchicken.com>
13842
13843 * xfaces.c (Finternal_merge_in_global_face): If default face was
13844 modified, realize it again. Update the font face attribute.
13845
138462008-06-29 Jason Rumney <jasonr@gnu.org>
13847
13848 * w32term.c (x_set_frame_alpha): Fix logic.
13849
138502008-06-29 Kenichi Handa <handa@m17n.org>
13851
13852 * fontset.c (Finternal_char_font): Return font-object instead of
13853 font-name.
13854
13855 * composite.c (get_composition_id): Fix the width calculation for TAB.
13856
138572008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13858
13859 * indent.c (Fvertical_motion): Properly handle float column arg.
13860
138612008-06-28 Jason Rumney <jasonr@gnu.org>
13862
13863 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13864 (pfnSetLayeredWindowAttributes): New function pointer.
13865 (w32_initialize): Initialize it when supported.
13866 (x_set_frame_alpha): New function.
13867
13868 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13869 (w32_frame_parm_handlers): Set alpha handler.
13870
13871 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13872
138732008-06-27 Jason Rumney <jasonr@gnu.org>
13874
13875 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13876 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13877 (w32_to_x_charset, x_to_w32_charset)
13878 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13879 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13880 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13881 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13882 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13883 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13884 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13885 (Qw32_charset_unicode): Remove.
13886 (syms_of_w32fns): Update for above changes.
13887
13888 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13889 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13890 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13891 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13892 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13893 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13894 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13895 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13896 (syms_of_w32font): Update for above changes.
13897
138982008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13899
13900 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13901 removed #if.
13902 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13903
139042008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13905 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13906
13907 * makefile.w32-in (LOCAL_FLAGS):
13908 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13909
13910 * sysdep.c (_spawnlp, _getpid):
13911 Declare with explicit _cdecl instead of _CRTAPI1.
13912
13913 * editfns.c (Fget_internal_run_time):
13914 Check for WINDOWSNT with #ifdef, not #if.
13915
139162008-06-26 Jason Rumney <jasonr@gnu.org>
13917
13918 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13919
13920 * w32term.c (x_draw_glyph_string_foreground)
13921 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13922 Use FONT_HANDLE macro.
13923 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13924
13925 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13926 (uniscribe_encode_char): Use FONT_HANDLE macro.
13927
13928 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13929 (w32font_text_extents): Use precast w32_font.
13930 (w32font_close): Free cached metrics.
13931 (w32font_open_internal): Allocate space for name on stack.
13932
139332008-06-26 Chong Yidong <cyd@stupidchicken.com>
13934
13935 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13936
139372008-06-26 Jason Rumney <jasonr@gnu.org>
13938
13939 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13940 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13941
139422008-06-26 Juanma Barranquero <lekktu@gmail.com>
13943
13944 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13945
139462008-06-26 Jason Rumney <jasonr@gnu.org>
13947
13948 * w32bdf.c, w32bdf.h: Remove obsolete files.
13949
13950 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13951
13952 * w32gui.h: Don't include w32bdf.h.
13953 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13954 Remove obsolete font support.
13955
13956 * w32font.h (struct w32font_info): Remove compat_w32_font.
13957 Add hfont member.
13958 (FONT_COMPAT): Remove obsolete macro.
13959
13960 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13961 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13962 (w32font_open_internal): Remove compat code. Set new hfont member.
13963 (Fx_select_font): Use new hfont member.
13964
13965 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13966 (uniscribe_encode_char): Use new hfont member.
13967
13968 * w32term.c (x_draw_glyph_string_foreground)
13969 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13970 (x_draw_glyph_string): Use metrics in w32font_info.
13971
139722008-06-26 Kenichi Handa <handa@m17n.org>
13973
13974 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13975
139762008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13977
13978 * unexnext.c:
13979 * m/ews4800.h:
13980 * m/hp9000s300.h:
13981 * m/ibm370aix.h:
13982 * m/mips-siemens.h:
13983 * m/ncr386.h:
13984 * m/next.h:
13985 * m/pmax.h:
13986 * m/powerpcle.h:
13987 * m/tandem-s2.h:
13988 * s/386bsd.h:
13989 * s/bsd386.h:
13990 * s/bsd4-1.h:
13991 * s/bsd4-2.h:
13992 * s/bsdos2-1.h:
13993 * s/bsdos2.h:
13994 * s/bsdos3.h:
13995 * s/bsdos4.h:
13996 * s/nextstep.h:
13997 * s/ultrix4-3.h:
13998 * s/usg5-0.h:
13999 * s/usg5-2-2.h:
14000 * s/usg5-2.h:
14001 * s/usg5-4-3.h:
14002 * s/ux4800.h:
14003 * s/uxpds.h:
14004 * s/uxpv.h: Remove support for obsolete systems.
14005 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14006 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14007 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14008 Remove, insert contents in s/aix4-2.h.
14009 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14010 * s/bsd4-3.h: Rename to ...
14011 * s/bsd-common.h: ... this.
14012 * data.c:
14013 * doc.c:
14014 * ecrt0.c:
14015 * emacs.c:
14016 * fileio.c:
14017 * floatfns.c:
14018 * keyboard.c:
14019 * mem-limits.h:
14020 * print.c:
14021 * process.c:
14022 * sysdep.c:
14023 * syssignal.h:
14024 * systty.h:
14025 * syswait.h:
14026 * term.c:
14027 * unexec.c:
14028 * unexelf.c:
14029 * unexhp9k800.c:
14030 * m/hp800.h:
14031 * m/ibmrs6000.h:
14032 * m/mips.h:
14033 * m/vax.h:
14034 * s/darwin.h:
14035 * s/freebsd.h:
14036 * s/gnu.h:
14037 * s/ms-w32.h:
14038 * s/msdos.h:
14039 * s/netbsd.h:
14040 * s/template.h: Remove references to obsolete variables.
14041
14042 * Makefile.in: Add dependencies for all unexec files.
14043 (admindir): Remove unused variable.
14044 (UNEXEC_SRC): Remove references.
14045
140462008-06-25 Chong Yidong <cyd@stupidchicken.com>
14047
14048 * xfns.c (x_default_font_parameter): If Xft is available, first
14049 try Monospace-12 for the default font.
14050
140512008-06-25 Jason Rumney <jasonr@gnu.org>
14052
14053 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14054
140552008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14056
14057 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14058
14059 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14060
140612008-06-25 Juanma Barranquero <lekktu@gmail.com>
14062
14063 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14064 <scroll-conservatively>: Fix typo in docstring.
14065
14066 * xselect.c (Fx_send_client_event): Doc fix.
14067
140682008-06-25 Kenichi Handa <handa@m17n.org>
14069
14070 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14071
14072 * font.c (font_parse_fcname): Remove unused variables.
14073 (font_sort_entites): Delete the arg SPEC. Caller changed.
14074 Fix for the case of ! best_only.
14075 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14076
14077 * lisp.h (Fstring_to_unibyte): EXFUN it.
14078
14079 * character.h (str_to_unibyte): Extern it.
14080
14081 * character.c (str_to_unibyte): New function.
14082
14083 * fns.c (Fstring_to_unibyte): New function.
14084 (syms_of_fns): Defsubr it.
14085
140862008-06-24 Kenichi Handa <handa@m17n.org>
14087
14088 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14089 DPI too.
14090 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14091
140922008-06-24 Andreas Schwab <schwab@suse.de>
14093
14094 * Makefile.in (${lispsource}loaddefs.el): Rename from
14095 ../lisp/loaddefs.el.
14096 (bootstrap-clean): Do what distclean does but don't remove
14097 Makefile.
14098 (distclean): Depend on bootstrap-clean and remove Makefile.
14099
141002008-06-24 Chong Yidong <cyd@stupidchicken.com>
14101
14102 * buffer.h (struct buffer): New member word_wrap.
14103
14104 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14105 word-wrap.
14106 (init_buffer_once): Initialize them.
14107
14108 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14109 line_wrap enum possessing three possible values.
14110
14111 * termopts.h: Replace truncate_partial_width_windows with
14112 Vtruncate_partial_width_windows.
14113
14114 * dispnew.c (direct_output_for_insert): Avoid direct output when
14115 inserting a space with word wrap on.
14116
14117 * indent.c (compute_motion): Obey integer values of
14118 truncate-partial-width-windows.
14119
14120 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14121 replacing truncate_partial_width_windows.
14122 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14123 truncate only if the window width is below that integer.
14124 (start_display, resize_mini_window, produce_stretch_glyph)
14125 (display_string, move_it_in_display_line_to): Use line_wrap.
14126 (back_to_previous_visible_line_start, reseat_1): Reset
14127 string_from_display_prop_p.
14128 (display_line): Extend default face to end of line when wrapping.
14129
141302008-06-24 Kim F. Storm <storm@cua.dk>
14131
14132 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14133 to wrap continued lines at word boundaries.
14134
141352008-06-24 Jason Rumney <jasonr@gnu.org>
14136
14137 * font.c (Ffont_face_attributes): Multiply pixel size before point
14138 conversion to avoid multiplying rounding error.
14139
141402008-06-23 Jason Rumney <jasonr@gnu.org>
14141
14142 * w32term.c (x_draw_glyph_string_background)
14143 (x_draw_glyph_string): Remove old bdf font code.
14144
14145 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14146
141472008-06-22 Kenichi Handa <handa@m17n.org>
14148
14149 * font.c (font_find_for_lface): Try the adstyle specified in
14150 the property of LFACE_FONT of LFACE (if any).
14151
141522008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14153 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14154
14155 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14156
141572008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14158
14159 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14160 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14161 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14162 (witness-emacs): Remove.
14163 (lisp, shortlisp): Move loaddefs.el earlier.
14164 (mostlyclean): Forget about witness-emacs.
14165
141662008-06-22 Glenn Morris <rgm@gnu.org>
14167
14168 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14169 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14170
141712008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14172
14173 * Makefile.in (PRECOMP): Remove.
14174 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14175 (witness-emacs): Run `compile-first'.
14176 (.el.elc): Use the new compile-onefile target.
14177
141782008-06-21 Kenichi Handa <handa@m17n.org>
14179
14180 * xftfont.c (xftfont_open): Handle QCembolden only when
14181 FC_EMBOLDEN is defined.
14182
141832008-06-21 Andreas Schwab <schwab@suse.de>
14184
14185 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14186 (.el.elc): Likewise.
14187
141882008-06-21 Miles Bader <miles@gnu.org>
14189
14190 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14191 build dir, not the lisp source dir.
14192
141932008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14194
14195 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14196 (bootstrapclean): Remove.
14197 (.el.elc): New rule.
14198 (PRECOMP): New var.
14199 (../lisp/subdirs.el): Remove.
14200 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14201 (witness-emacs): New target.
14202 (mostlyclean): Remove witness-emacs as well.
14203 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14204 Add witness-emacs dependency.
14205
142062008-06-20 Chong Yidong <cyd@stupidchicken.com>
14207
14208 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14209 defined by the font.
14210
142112008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14212
14213 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14214 (bootstrap-clean): New target that keeps TAGS around.
14215 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14216 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14217
142182008-06-20 Jason Rumney <jasonr@gnu.org>
14219
14220 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14221 Remove obsolete font code.
14222
14223 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14224 to determine language support.
14225
142262008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14227
14228 * sysdep.c (cfsetspeed): New fun extracted from the code.
14229 (cfmakeraw): Move before first use.
14230
142312008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14232
14233 * sysdep.c (cfmakeraw): Provide fallback implementation.
14234 (serial_configure): Provide fallback implementation of cfsetspeed.
14235
142362008-06-20 Kenichi Handa <handa@m17n.org>
14237
14238 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14239 the pattern.
14240
14241 * fontset.c (fontset_from_font): Copy font_spec before changing
14242 the elements.
14243
14244 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14245
142462008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14247
14248 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14249 for explicit `font' parameters.
14250
14251 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14252
142532008-06-19 Kenichi Handa <handa@m17n.org>
14254
14255 * frame.c: Include <ctype.h>.
14256 (x_set_font_backend): Allow spacing characters in the X resource
14257 for FontBackend.
14258
142592008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14260
14261 * w32fns.c, xfns.c (Qfont_param): New var.
14262 (syms_of_w32fns): Initialize it.
14263 (x_default_font_parameter): Record explicit `font' into
14264 `font-parameter'.
14265
142662008-06-18 Kenichi Handa <handa@m17n.org>
14267
14268 * font.c (font_parse_xlfd): Fix previous change.
14269 (font_parse_fcname): Don't use :fc-unknown-spec.
14270 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14271 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14272 (font_add_log): Prepend the driver name to the resulting fonts.
14273
14274 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14275 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14276 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14277
14278 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14279 (QCembolden): New variables.
14280 (syms_of_xftfont): DEFSYM them.
14281 (xftfont_open): Call XftFontMatch. Don't trust the result of
14282 XftTextExtents8 if the pixel_size is less than 5.
14283
142842008-06-18 Andreas Schwab <schwab@suse.de>
14285
14286 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14287 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14288
142892008-06-18 Jason Rumney <jasonr@gnu.org>
14290
14291 * w32font.c (w32font_list, w32font_match): Add logging.
14292
14293 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14294
142952008-06-17 Chong Yidong <cyd@stupidchicken.com>
14296
14297 * font.c (font_parse_fcname): Store divider characters for
14298 unknown-spec list. For known key symbols, intern using correct
14299 symbol name.
14300
143012008-06-17 Kenichi Handa <handa@m17n.org>
14302
14303 * xfaces.c (realize_default_face): If the frame is not on window
14304 system, set the fontset of face to nil.
14305
143062008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14307
14308 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14309
143102008-06-16 Juanma Barranquero <lekktu@gmail.com>
14311
14312 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14313 (build_font_name_from_vector): Delete externs.
14314
14315 * xfaces.c (struct font_name): Don't declare.
14316
143172008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14318
14319 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14320
143212008-06-16 Chong Yidong <cyd@stupidchicken.com>
14322
14323 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14324
143252008-06-16 Juanma Barranquero <lekktu@gmail.com>
14326
14327 * font.c (Ffont_spec): Fix usage in docstring.
14328 (Ffont_face_attributes): Doc fix.
14329
143302008-06-16 Andreas Schwab <schwab@suse.de>
14331
14332 * font.c (Ffont_face_attributes): Fix definition.
14333
143342008-06-16 Jason Rumney <jasonr@gnu.org>
14335
14336 * font.h (font_style_symbolic_from_value): Remove.
14337
14338 * font.c (font_style_symbolic_from_value): Remove.
14339 (font_style_symbolic): Revert to pre 2008-06-13 version.
14340
14341 * w32font.c (w32_to_fc_weight): New function.
14342 (w32font_full_name, logfont_to_fcname): Use it.
14343
143442008-06-16 Kenichi Handa <handa@m17n.org>
14345
14346 * font.c (font_check_object): Delete it.
14347 (font_clear_cache): Check if a font-object is alive.
14348 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14349 font-object to nil.
14350 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14351 (font_at): Don't call font_check_object.
14352 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14353
143542008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14355
14356 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14357
143582008-06-16 Chong Yidong <cyd@stupidchicken.com>
14359
14360 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14361
143622008-06-15 Chong Yidong <cyd@stupidchicken.com>
14363
14364 * font.c (font_parse_fcname): Only one decimal point.
14365 (font_unparse_fcname): Handle data in family and foundry indices
14366 as symbols, not strings.
14367 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14368
14369 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14370
14371 * font.h (font_unparse_gtkname): Add prototype.
14372
143732008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14374
14375 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14376
143772008-06-15 Andreas Schwab <schwab@suse.de>
14378
14379 * font.c (font_update_drivers): Fix crash when no drivers match.
14380
143812008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14382
14383 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14384 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14385
143862008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14387
14388 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14389
143902008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14391
14392 * process.c (Fserial_process_configure, Fprocess_send_eof):
14393 Use EQ to compare Lisp_Objects.
14394
143952008-06-13 Jason Rumney <jasonr@gnu.org>
14396
14397 * w32fns.c (Fw32_select_font): Remove old font API function.
14398
14399 * w32font.c (logfont_to_fcname): New function.
14400 (Fx_select_font): New font dialog function compatible with
14401 GTK/fontconfig version.
14402
14403 * font.c (font_style_symbolic_from_value): New function.
14404 (font_style_symbolic): Use it.
14405
14406 * font.h (font_style_symbolic_from_value): Declare new function.
14407
144082008-06-13 Juanma Barranquero <lekktu@gmail.com>
14409
14410 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14411 <font-width-table>: Fix typos in docstrings.
14412
144132008-06-13 Daniel Engeler <engeler@gmail.com>
14414
14415 These changes add serial port access.
14416 * process.c: Add HAVE_SERIAL.
14417 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14418 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14419 (list_processes_1, select_wrapper, Fstop_process)
14420 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14421 (status_notify): Modify to handle serial processes.
14422 [HAVE_SERIAL] (Fserial_process_configure)
14423 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14424 New functions.
14425 * process.h (struct Lisp_Process): Add `type'.
14426 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14427 New functions.
14428 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14429 serial ports.
b71ac3dd 14430 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14431 * w32.h: Add FILE_SERIAL.
14432 (struct _child_process): Add ovl_read, ovl_write.
14433
144342008-06-13 Kenichi Handa <handa@m17n.org>
14435
14436 * dispextern.h (enum lface_attribute_index): New member
14437 LFACE_FOUNDRY_INDEX.
14438
14439 * font.c (font_score): Delete arg alternate_families. Check only
14440 weight, slant, width, and size. Ignore the difference of alias
14441 style symbols.
14442 (font_sort_entites): Adjust for the above change. Reflect the
14443 order of font-driver to scores.
14444 (font_list_entities): Don't check alternate_familes here.
14445 (font_clear_prop): Handle foundry.
14446 (font_update_lface): Don't parse "foundry-family" form here.
14447 Handle FONT_FOUNDRY_INDEX.
14448 (font_find_for_lface): Likewise. Handle alternate families here.
14449 If registry is nil, try iso8859-1 and ascii-0.
14450 (font_open_for_lface): Pay attention to size in ENTITY.
14451 (font_open_by_name): Simplify by calling font_load_for_lface.
14452 (free_font_driver_list): Delete it.
14453 (font_update_drivers): Preserve the order of backends.
14454 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14455 of font_score and font_sort_entites.
14456 (font_update_sort_order): Likewise.
14457
14458 * xfaces.c (LFACE_FOUNDRY): New macro.
14459 (check_lface_attrs): Check foundry.
14460 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14461 (merge_face_vectors): Check foundry.
14462 (merge_face_ref): Likewise.
14463 (Finternal_set_lisp_face_attribute): Likewise.
14464 (x_update_menu_appearance): Likewise.
14465 (Finternal_get_lisp_face_attribute): Likewise.
14466 (lface_hash): Likewise.
14467 (lface_same_font_attributes_p): Likewise.
14468 (x_supports_face_attributes_p): Likewise.
14469 (tty_supports_face_attributes_p): Likewise.
14470 (Finternal_set_alternative_font_family_alist): Intern strings.
14471 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14472 (realize_default_face): Set LFACE_FOUNDRY (lface).
14473
14474 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14475 font-driver at first.
14476
14477 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14478
144792008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14480
14481 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14482
144832008-06-12 Jim Meyering <meyering@redhat.com>
14484
14485 Make unexec_free handle NULL the same way free does.
14486 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14487
144882008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14489
14490 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14491 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14492 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14493 (WEAK_ALIAS): Simplify.
14494 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14495 when searching a unibyte buffer.
14496
144972008-06-12 Chong Yidong <cyd@stupidchicken.com>
14498
14499 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14500
145012008-06-12 Juanma Barranquero <lekktu@gmail.com>
14502
14503 * w32font.c: Include ctype.h.
14504
145052008-06-11 Jason Rumney <jasonr@gnu.org>
14506
14507 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14508 misreported as space.
14509 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14510 as aliases for registry iso10646-1.
14511
145122008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14513
14514 * buffer.c (clone_per_buffer_values): Skip `name'.
14515
145162008-06-11 Chong Yidong <cyd@stupidchicken.com>
14517
14518 * font.c (font_parse_fcname): Fix last change; accept decimal
14519 points in font size.
14520
145212008-06-10 Jason Rumney <jasonr@gnu.org>
14522
14523 * w32uniscribe.c (add_opentype_font_name_to_list):
14524 Skip non unicode fonts.
14525
145262008-06-10 Chong Yidong <cyd@stupidchicken.com>
14527
14528 * xfns.c (Fx_font_dialog): New function.
14529
14530 * gtkutil.c (xg_dialog_response_cb): Rename from
14531 xg_file_response_callback.
14532 (pop_down_dialog): Rename from pop_down_file_dialog.
14533 (xg_get_file_name): Callers changed.
14534 (xg_get_font_name): New function.
14535
14536 * gtkutil.h (xg_get_font_name): Insert prototype.
14537
145382008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14539
14540 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14541 x_underline_minimum_display_offset.
14542 (syms_of_xdisp): Declare it here rather than in xterm.c.
14543 * dispextern.h (underline_minimum_offset): Declare it.
14544 * w32term.c (x_draw_glyph_string): Use it.
14545 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14546 (syms_of_xterm): Don't declare it any more.
14547 (x_draw_glyph_string): Adjust to the new name.
14548
8719abec 145492008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14550
14551 * xterm.c (x_underline_minimum_display_offset): New var.
14552 (x_draw_glyph_string): Use it.
14553 (syms_of_xterm): Declare it.
14554
145552008-06-10 Chong Yidong <cyd@stupidchicken.com>
14556
14557 * font.c (font_parse_fcname): Accept GTK-style font names too.
14558
145592008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14560
14561 * dired.c (file_name_completion): Don't return t if the match is exact
14562 but with different capitalization.
14563 * minibuf.c (Ftry_completion): Simplify.
14564
14565 * window.c (Vwindow_point_insertion_type): New var.
14566 (set_window_buffer): Use it.
14567 (syms_of_window): Init and export it to Lisp.
14568
145692008-06-10 Kenichi Handa <handa@m17n.org>
14570
14571 * font.h (font_intern_prop): Prototype adjusted.
14572
14573 * font.c (font_intern_prop): New arg force_symbol.
14574 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14575 Adjust for the change of font_intern_prop.
14576
14577 * ftfont.c (ftfont_pattern_entity):
14578 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14579 (w32_registry):
14580 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14581 the change of font_intern_prop.
14582
145832008-06-09 Juanma Barranquero <lekktu@gmail.com>
14584
14585 * w32menu.c (digest_single_submenu): Declare extern.
14586
145872008-06-09 Jason Rumney <jasonr@gnu.org>
14588
14589 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14590
14591 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14592 (parse_single_submenu): Remove.
14593 (digest_single_submenu): Remove.
14594 (syms_of_w32menu): Don't initialise variables that have moved
14595 to menu.c.
14596 (set_frame_menubar): Sync with version in xmenu.c.
14597 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14598
14599 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14600 Make static again.
14601
146022008-06-09 Jason Rumney <jasonr@gnu.org>
14603
14604 Changes to w32 files related to the move of common menu code
14605 to menu.c on 2008-06-08 by Chong Yidong.
14606
14607 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14608 defs to w32gui.h.
14609 (single_keymap_panes, push_menu_item, push_menu_pane):
14610 Make globally visible.
14611
14612 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14613 (local_free, malloc_widget_value, free_widget_value)
14614 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14615 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14616 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14617 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14618 (menu_items, menu_items_allocated, menu_items_used)
14619 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14620 (init_menu_items, finish_menu_items, discard_menu_items)
14621 (grow_menu_items, push_submenu_start, push_submenu_end)
14622 (push_left_right_boundary, push_menu_pane, push_menu_item)
14623 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14624 (free_menubar_widget_tree_value, parse_single_submenu)
14625 (update_submenu_strings): Remove functions.
14626 (xmalloc_widget_value): Remove and declare extern.
14627
14628 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14629 (OBJ1): Build it.
14630
14631 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14632 (local_heap, local_alloc, local_free, malloc_widget_value)
14633 (free_widget_value): Define here.
14634
146352008-06-09 Kenichi Handa <handa@m17n.org>
14636
14637 * font.h (Qascii_0): Extern it.
14638
14639 * font.c (Qascii_0): New variable.
14640 (syms_of_font): DEFSYM it.
14641 (font_open_by_name): If the registry "iso8859-1" fails, try also
14642 "ascii-0".
14643
14644 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14645
146462008-06-08 Kenichi Handa <handa@m17n.org>
14647
14648 * .gdbinit (xfont): New command.
14649
146502008-06-08 Andreas Schwab <schwab@suse.de>
14651
14652 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14653 * Makefile.in (menu.o): Update dependencies.
14654
14655 * Makefile.in (obj): Always add menu.o.
14656 * emacs.c (main): Always call syms_of_menu.
14657 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14658
146592008-06-08 Chong Yidong <cyd@stupidchicken.com>
14660
14661 * Makefile.in: Compile menu.c.
14662
14663 * lisp.h: Declare syms_of_menu.
14664
14665 * emacs.c (main): Call syms_of_menu.
14666
14667 * keyboard.h: Relocate platform-independent menu definitions from
14668 xmenu.c.
14669
14670 * menu.c: New file. Relocate platform-independent menu
14671 definitions from xmenu.c. Suggested by Adrian Robert.
14672
14673 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14674 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14675 (menu_items_used, menu_items_n_panes)
14676 (menu_items_submenu_depth): Move to keyboard.h.
14677 (init_menu_items, finish_menu_items, unuse_menu_items)
14678 (discard_menu_items, restore_menu_items, save_menu_items)
14679 (grow_menu_items, push_submenu_start, push_submenu_end)
14680 (push_left_right_boundary, push_menu_pane, push_menu_item)
14681 (keymap_panes, single_keymap_panes, single_menu_item)
14682 (list_of_panes, list_of_items, find_and_call_menu_selection)
14683 (xmalloc_widget_value, free_menubar_widget_value_tree)
14684 (parse_single_submenu, digest_single_submenu)
14685 (update_submenu_strings): Move to menu.c.
14686
146872008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14688
14689 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14690
146912008-06-06 Miles Bader <miles@gnu.org>
14692
14693 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14694 face, not frame default.
14695
146962008-06-05 Martin Rudalics <rudalics@gmx.at>
14697
14698 * window.c (pop_up_windows, pop_up_frames)
14699 (display_buffer_reuse_frames, Vpop_up_frame_function)
14700 (Vdisplay_buffer_function, Veven_window_heights)
14701 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14702 (Vspecial_display_function, Vsame_window_buffer_names)
14703 (Vsame_window_regexps, split_height_threshold)
14704 (Vsplit_window_preferred_function): Move those vars to window.el.
14705 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14706 (Fdisplay_buffer): Move those functions to window.el.
14707 (syms_of_window): Remove corresponding declarations.
14708 (display_buffer): New function.
14709 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14710 * dispnew.c (Flast_nonminibuf_frame): New function.
14711 * buffer.c (Fpop_to_buffer): Move to window.el.
14712
147132008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14714
14715 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14716
147172008-06-05 Kenichi Handa <handa@m17n.org>
14718
14719 * coding.c (detect_coding): Fix previous change.
14720 (detect_coding_system): Likewise.
14721
147222008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14723
14724 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14725
14726 * keymap.c (Vminibuffer_local_filename_must_match_map):
14727 Rename from Vminibuffer_local_must_match_filename_map.
14728 (syms_of_keymap):
14729 * minibuf.c (Fcompleting_read): Adjust accordingly.
14730 * commands.h: Rename declaration as well.
14731
147322008-06-05 Kenichi Handa <handa@m17n.org>
14733
14734 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14735 family name.
14736 (Ffont_put): Likewise.
14737
14738 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14739 current font-spec.
14740
14741 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14742 is unspecified.
14743
14744 * xfaces.c (realize_x_face): If the font-related face attributes
14745 are the same as those of default face, realize a new fontset from
14746 default->fontset.
14747 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14748
147492008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14750
14751 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14752 (move_it_in_display_line): New wrapper.
14753
14754 * window.c (window_scroll_pixel_based_preserve_x)
14755 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14756 (window_scroll_pixel_based, window_scroll_line_based):
14757 Use them to preserve column positions.
14758 (syms_of_window): Initialize them.
14759
14760 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14761 (HPOS . VPOS) pair.
14762
14763 * dispextern.h (move_it_in_display_line): Declare.
14764
147652008-06-05 Juanma Barranquero <lekktu@gmail.com>
14766
14767 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14768 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14769 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14770
147712008-06-04 Juanma Barranquero <lekktu@gmail.com>
14772
14773 * window.c (Fset_window_parameter): Doc fix.
14774 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14775
147762008-06-04 Joakim Verona <joakim@verona.se>
14777
14778 * window.h (struct window): Add new member window_parameters.
14779
14780 * window.c (Fwindow_parameters, Fwindow_parameter)
14781 (Fset_window_parameter): New defuns.
14782 (syms_of_window): Defsubr the new defuns.
14783 (make_window): Initialize window_parameters to nil.
14784
147852008-06-04 John Paul Wallington <jpw@pobox.com>
14786
14787 * eval.c (Fdefmacro): Doc fix.
14788
147892008-06-04 Kenichi Handa <handa@m17n.org>
14790
14791 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14792 Be sure to call setup_coding_system when we find a proper coding system.
14793 (detect_coding_system): Fix handling of coding->head_ascii.
14794
147952008-06-03 Andreas Schwab <schwab@suse.de>
14796
14797 * font.c (font_prop_validate_spacing): Fix last change.
14798
147992008-06-03 Kenichi Handa <handa@m17n.org>
14800
14801 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14802 (font_parse_fcname): Fix handling of unknown key.
14803
14804 * xfont.c (xfont_list): Try an alias.
14805
14806 * charset.c (char_charset): Return NULL if the arg charset_list is
14807 specified and C doesn't belong to any of them.
14808
148092008-06-02 Chip Coldwell <coldwell@redhat.com>
14810
14811 * font.c (font_pixel_size): Don't take cdr of an integer.
14812
148132008-06-02 Jim Meyering <meyering@redhat.com>
14814
14815 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14816 * alloc.c (xfree): Return right away for a NULL arg.
14817 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14818 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14819 * mac.c (create_apple_event_from_event_ref): Likewise.
14820 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14821 Likewise.
14822 * doprnt.c (doprnt1): Likewise.
14823 * frame.c (frame): Likewise.
14824 * keyboard.c (wipe_kboard): Likewise.
14825 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14826 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14827 * term.c (tty_default_color_capabilities, maybe_fatal)
14828 (delete_tty): Likewise.
14829 * w16select.c (string): Likewise.
14830 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14831 * w32bdf.c (w32_free_bdf_font): Likewise.
14832 * w32fns.c (w32_unload_font): Likewise.
14833 * w32font.c (w32font_close): Likewise.
14834 * window.c (size_window): Likewise.
14835 * xselect.c (receive_incremental_selection): Likewise.
14836 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14837 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14838 * w32.c (stat): Likewise.
14839
14840 Remove useless if-before-free tests.
14841 * editfns.c (Fset_time_zone_rule): Likewise.
14842 * lread.c (nosuffix): Likewise.
14843 * ralloc.c (get_bloc): Likewise.
14844 * regex.c (reg_free): Likewise.
14845 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14846 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14847 * xsmfns.c (smc_save_yourself_CB): Likewise.
14848
148492008-06-02 Kenichi Handa <handa@m17n.org>
14850
14851 * font.c (font_find_for_lface): Handle float font size.
14852 (font_open_for_lface): Likewise.
14853
14854 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14855 comparing the properties.
14856
148572008-06-01 Jason Rumney <jasonr@gnu.org>
14858
14859 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14860 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14861 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14862 Don't add empty script list.
14863 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14864
148652008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14866
14867 * Makefile.in (dot, dotdot): Remove, update users.
14868 ".." has been used elsewhere in the file for a long time.
14869 (LIBXT_STATIC): Remove conditional based on unused variable.
14870
148712008-06-01 Miles Bader <miles@gnu.org>
14872
14873 * xfaces.c (Vface_remapping_alist): New variable.
14874 (syms_of_xfaces): Initialize it.
14875 (enum named_merge_point_kind): New type.
14876 (struct named_merge_point): Add `named_merge_point_kind' field.
14877 (push_named_merge_point): Make cycle detection respect different
14878 named-merge-point kinds.
14879 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14880 Remove face-name alias resolution.
14881 (lface_from_face_name): New definition using
14882 `lface_from_face_name_no_resolve'.
14883 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14884 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14885 (get_lface_attributes): New definition that layers face-remapping on
14886 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14887 (lookup_basic_face): New function.
14888 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14889 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14890 `get_lface_attributes'.
14891 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14892 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14893 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14894
14895 * xdisp.c (init_iterator): Pass base_face_id through
14896 `lookup_basic_face' when we actually use it as a face-id.
14897 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14898 DEFAULT_FACE_ID.
14899
14900 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14901 lookup the initial face-id.
14902
14903 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14904
149052008-06-01 Juanma Barranquero <lekktu@gmail.com>
14906
14907 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14908 (Fremove_text_properties): Fix typos in docstrings.
14909
149102008-05-31 Kenichi Handa <handa@m17n.org>
14911
14912 * font.c (font_list_entities): Fix the car part of data to be
14913 stored in the cache.
14914
14915 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14916
149172008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14918
14919 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14920 Add a `test' argument so another predicate than `equal' can be used.
14921 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14922 (map_char_table): Remove unused vars `c' and `i'.
14923 * lisp.h (Foptimize_char_table): Adjust declaration.
14924 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14925
149262008-05-30 Kenichi Handa <handa@m17n.org>
14927
14928 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14929 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14930 defined.
14931
149322008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14933
14934 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14935 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14936 frame-local settings for the same variable.
14937
149382008-05-30 Kenichi Handa <handa@m17n.org>
14939
14940 * fontset.c (Ffont_info): Move to font.c.
14941 (syms_of_fontset): Delete defsubr of Sfont_info.
14942
14943 * font.c (font_style_to_value, font_score): Delete casting of the
14944 args to xstcasecmp.
14945 (register_font_driver): Increment num_font_drivers only when
14946 registering the driver globally.
14947 (Ffont_info): Move from fontset.c. Handle a font object too.
14948 (syms_of_font): Defsubr Sfont_info.
14949
149502008-05-29 Kenichi Handa <handa@m17n.org>
14951
14952 * coding.h (enum define_coding_utf8_arg_index): New enum.
14953 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14954 coding_attr_utf_bom.
14955 (enum utf_bom_type): Rename from utf_16_bom_type.
14956 (struct utf_16_spec): Adjust for the above change.
14957 (struct coding_system): Add utf_8_bom in `spec' union.
14958
14959 * coding.c (CODING_UTF_8_BOM): New macro.
14960 (enum coding_category): Delete coding_category_utf_8, add
14961 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14962 coding_category_utf_8_sig.
14963 (CATEGORY_MASK_UTF_8): Delete it.
14964 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14965 (CATEGORY_MASK_UTF_8_SIG): New macros.
14966 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14967 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14968 CATEGORY_MASK_UTF_8_SIG.
14969 (CATEGORY_MASK_UTF_8): New macro.
14970 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14971 (detect_coding_utf_8): Check BOM.
14972 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14973 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14974 (encode_coding_utf_16): Likewise.
14975 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14976 (detect_coding, detect_coding_system): Handle utf-8-auto.
14977 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14978 (syms_of_coding): Fix setting up of Vcoding_category_table.
14979
149802008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14981
14982 * process.c (Faccept_process_output): If `millisec' is non-nil,
14983 `seconds' default to 0.
14984 (wait_reading_process_output): Also return non-nil if we read output
14985 from a non-running process.
14986
149872008-05-29 Jason Rumney <jasonr@gnu.org>
14988
14989 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14990 `raster' specified.
14991 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14992 in the uniscribe backend, but disallow any font that has no
14993 unicode subrange support.
14994
149952008-05-29 Juanma Barranquero <lekktu@gmail.com>
14996
14997 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14998 Fix typos in docstrings.
14999
150002008-05-29 Kenichi Handa <handa@m17n.org>
15001
15002 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15003 (Fx_family_fonts): Set frame correctly.
15004
150052008-05-28 Jason Rumney <jasonr@gnu.org>
15006
15007 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15008
150092008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15010
15011 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15012 calling build_annotations.
15013
150142008-05-28 Juanma Barranquero <lekktu@gmail.com>
15015
15016 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15017 (Fencode_coding_string):
15018 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15019 <latin-extra-code-table>: Fix typos in docstrings.
15020 (syms_of_coding) <coding-system-alist>: Doc fix.
15021 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15022
150232008-05-28 Kenichi Handa <handa@m17n.org>
15024
15025 * fontset.c (Ffont_info): Don't call font_close_object.
15026
15027 * font.c (font_parse_family_registry): Use Ffont_put to validate
15028 foundry and family.
15029 (font_delete_unmatched): Don't check spacing.
15030 (font_list_entities): Add spacing to the spec to list fonts.
15031
15032 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15033 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15034
15035 * coding.c (encode_coding_raw_text): Fix previous change.
15036 (encode_coding_object): When the dst_object is a buffer and is
15037 different from src_object, move gap to PT.
15038
150392008-05-27 Chong Yidong <cyd@stupidchicken.com>
15040
15041 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15042
150432008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15044
15045 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15046 all branches. Compute it differently.
15047
15048 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15049
150502008-05-27 Juanma Barranquero <lekktu@gmail.com>
15051
15052 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15053 into "else if () ... else ...".
15054
150552008-05-27 Jason Rumney <jasonr@gnu.org>
15056
15057 * w32font.c (w32font_open_internal): Determine if glyph indices
15058 are likely to work here.
15059
150602008-05-27 Chong Yidong <cyd@stupidchicken.com>
15061
15062 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15063 draw overlap glyphs with appropriate highlighting.
15064
150652008-05-27 Kenichi Handa <handa@m17n.org>
15066
15067 * xfont.c (xfont_open): Fix calculation of font->average_width.
15068
150692008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15070
15071 * casefiddle.c (casify_object): Try to guess better whether the
15072 argument is a byte or a char.
15073
150742008-05-26 Andreas Schwab <schwab@suse.de>
15075
15076 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15077 Always send multiples of format size.
15078
15079 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15080
150812008-05-26 Jason Rumney <jasonr@gnu.org>
15082
15083 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15084 (compute_metrics): Don't set failure if we just cleared the cache.
15085 (w32_weight_table): Remove unused variable.
15086 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15087 backwards compatibility.
15088
150892008-05-25 Kenichi Handa <handa@m17n.org>
15090
15091 * w32term.c (x_draw_glyph_string):
15092 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15093
15094 * xfaces.c: Delete unused function prototypes.
15095 (xstrlwr, font_frame): Delete them.
15096 (clear_face_cache): Delete unused variable.
15097
15098 * xftfont.c (xftfont_open): Delete unused variable.
15099 If underline_thickness is not 1, adjust underline_position.
15100
15101 * ftxfont.c (ftxfont_open): Delete unused variable.
15102
15103 * fontset.c (face_for_char): Optimize for the case of no charset
15104 property.
15105
15106 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15107 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15108 (otf_open, font_otf_capability, generate_otf_features)
15109 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15110 Comment out by surrounding "#if 0" and "#endif" for the moment.
15111 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15112 (syms_of_font): Codes for accessing above commented out.
15113
151142008-05-24 Eli Zaretskii <eliz@gnu.org>
15115
15116 * w32proc.c: Include dispextern.h.
15117
15118 * w32.c: Include dispextern.h.
15119
151202008-05-23 Juanma Barranquero <lekktu@gmail.com>
15121
15122 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15123 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15124 Fix typos in docstrings.
15125
151262008-05-23 Jason Rumney <jasonr@gnu.org>
15127
15128 * xsmfns.c: Remove includes that are already included by config.h.
15129
151302008-05-23 Kenichi Handa <handa@m17n.org>
15131
15132 * charset.c (Qemacs, charset_emacs): New variables.
15133 (char_charset): Fix for non-Unicode characters.
15134 (syms_of_charset): Define charset_emacs.
15135
15136 * w32term.c (x_draw_glyph_string): Be sure to update
15137 s->underline_thickness and s->underline_position. Be sure to draw
15138 underline within the current line area.
15139
15140 * xterm.c (x_draw_glyph_string): Be sure to update
15141 s->underline_thickness and s->underline_position. Be sure to draw
15142 underline within the current line area.
15143
15144 * fontset.c: Delete unused variables and add casting for char *
15145 throughout the file.
15146 (fontset_font): Try the fallback fonts of the current fontset
15147 before consulting the default fontset.
15148
15149 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15150
15151 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15152
151532008-05-22 Jason Rumney <jasonr@gnu.org>
15154
15155 * font.c: Don't include strings.h.
15156
15157 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15158
15159 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15160 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15161 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15162 to call xstrcasecmp.
15163
15164 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15165
15166 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15167
15168 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15169
15170 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15171
151722008-05-22 Kenichi Handa <handa@m17n.org>
15173
15174 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15175
15176 * font.c (font_prop_validate_style): Adjust for the format
15177 change of font_style_table.
15178
15179 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15180 two args.
15181
15182 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15183 two args.
15184
151852008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15186
15187 * minibuf.c (keys_of_minibuf): Delete.
15188 * lisp.h (keys_of_minibuf): Delete.
15189 * emacs.c (main): Don't call keys_of_minibuf.
15190
151912008-05-22 Kenichi Handa <handa@m17n.org>
15192
15193 * ftfont.c (ftfont_resolve_generic_family): Rename from
15194 ftfont_list_generic_family. Return a single family for each
15195 generic family.
15196 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15197 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15198 Call font_add_log.
15199 (ftfont_match): Call font_add_log.
15200
15201 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15202 (FONT_DEBUG): Define it.
15203 (font_add_log): Extern it.
15204 (font_assert): Rename from xassert.
15205
15206 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15207 (xfont_list_family): Call font_add_log.
15208 (xfont_match): Likewise.
15209 (memq_no_quit): Delete.
15210
15211 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15212 call of Ffont_xlfd_name.
15213
15214 * xfaces.c (struct table_entry, slant_table, weight_table)
15215 (swidth_table): Move to font.c.
15216
15217 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15218 xassert are changed to font_assert. Delete many unused variables.
15219 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15220 New variables.
15221 (struct table_entry): Move from xfaces.c and modified.
15222 (weight_table, slant_table, width_table): Move from xfaces.c and
15223 contents adjusted for the change of struct table_entry.
15224 (font_style_to_value, font_style_symbolic): Adjust for the
15225 format change of font_style_table.
15226 (font_parse_family_registry): Don't overwrite existing foundry and
15227 family of font_spec.
15228 (font_score): Fix calculation of diff for sizes.
15229 (font_sort_entites): Call font_add_log.
15230 (font_delete_unmatched): Return a newly created list.
15231 (font_list_entities): Fix previous change. Call font_add_log.
15232 (font_matching_entity, font_open_entity, font_close_entity):
15233 Call font_add_log.
15234 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15235 (Finternal_set_font_style_table): Delete.
15236 (BUILD_STYLE_TABLE): New macro.
15237 (build_style_table): New function.
15238 (Vfont_log, font_log_env_checked): New variables.
15239 (font_add_log): New function.
15240 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15241 Declare Lisp variables "font-weight-table", "font-slant-table",
15242 "font-width-table", and "font-log". Initialize font_style_table.
15243
152442008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15245
15246 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15247
152482008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15249 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15250
15251 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15252 (Vframe_alpha_lower_limit): New variable.
15253 (x_set_alpha): New function.
15254
15255 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15256
15257 * xfns.c (x-create-frame, Qalpha):
15258 Initialize the frame parameter `alpha'.
15259 * xterm.c (OPAQUE, OPACITY): New.
15260 (x_set_frame_alpha): New function.
15261 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15262
15263 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15264 * w32fns.c (w32_frame_parm_handlers): Likewise.
15265
152662008-05-20 Jason Rumney <jasonr@gnu.org>
15267
15268 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15269 truetype fonts to opentype list.
15270
152712008-05-20 Juanma Barranquero <lekktu@gmail.com>
15272
15273 * fontset.c (Ffontset_info): Doc fix.
15274 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15275 <ignore-relative-composition>: Fix typos in docstrings.
15276
15277 * font.c (syms-of-font) <font-encoding-alist>:
15278 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15279 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15280 (Ffont_otf_alternates): Doc fixes.
15281
152822008-05-20 Kenichi Handa <handa@m17n.org>
15283
15284 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15285 font.h through out the file.
15286 (FONT_DRIVERS): Rename from FONTOBJ.
15287 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15288 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15289
15290 * emacs.c (main): Call syms_of_font unconditionally.
15291
15292 * font.h (find_font_encoding): Extern it.
15293
15294 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15295 fontset.c.
194d44e7 15296 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15297 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15298 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15299 only when HAVE_WINDOW_SYSTEM is defined.
15300 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15301 when HAVE_WINDOW_SYSTEM is defined.
15302
15303 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15304 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15305
15306 * xfaces.c: Include font.h unconditionally.
15307 (merge_face_ref, merge_face_vectors)
15308 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15309
153102008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15311
15312 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15313 indirect_variable.
15314 * eval.c (lisp_indirect_variable): New fun.
15315 (Fuser_variable_p): Use it.
15316
153172008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15318
15319 * lisp.h (indirect_variable):
15320 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15321 Use Lisp_Symbol pointers rather than Lisp_Object.
15322 Adjust callers.
15323 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15324 To this end, change calling-convention.
15325
15326 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15327 if some non-hidden buffers are selected by string&pred.
15328
153292008-05-19 Chong Yidong <cyd@stupidchicken.com>
15330
15331 * process.c (wait_reading_process_output): Always check status
15332 when in batch mode.
15333
153342008-05-19 Kenichi Handa <handa@m17n.org>
15335
15336 * font.c (font_list_entities): Fix handling of cache.
15337 (font_matching_entity): Likewise.
15338
15339 * ftfont.c (cs_iso8859_1): Delete.
15340 (ft_face_cache): New variable.
15341 (struct ftfont_info): New member fc_charset_idx.
15342 (ftfont_build_basic_charsets): Delete.
15343 (fc_charset_table): New variable.
15344 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15345 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15346 Callers changed.
15347 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15348 (ftfont_spec_pattern): New argument fc_charset_idx.
15349 Check registry more rigidly. Change callers.
15350 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15351 change of :font-entity property of the font.
15352
15353 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15354 property of the font.
15355
153562008-05-18 Juanma Barranquero <lekktu@gmail.com>
15357
15358 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15359 (Funencodable_char_position, Fcheck_coding_systems_region)
15360 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15361 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15362 (Ffind_operation_coding_system, Fset_coding_system_priority)
15363 (Fcoding_system_eol_type): Doc fixes.
15364
153652008-05-17 Glenn Morris <rgm@gnu.org>
15366
15367 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15368
153692008-05-16 Eli Zaretskii <eliz@gnu.org>
15370
15371 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15372 and st_gid.
15373
15374 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15375 HAVE_WINDOW_SYSTEM is not defined.
15376
15377 * xfaces.c (merge_face_ref, merge_face_vectors)
15378 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15379 HAVE_WINDOW_SYSTEM is defined.
15380 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15381
153822008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15383
15384 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15385
153862008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15387
15388 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15389
153902008-05-15 Kenichi Handa <handa@m17n.org>
15391
15392 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15393 preference.
15394
153952008-05-15 Glenn Morris <rgm@gnu.org>
15396
15397 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15398
153992008-05-15 Chong Yidong <cyd@stupidchicken.com>
15400
15401 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15402 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15403
15404 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15405
154062008-05-15 Kenichi Handa <handa@m17n.org>
15407
15408 * ftfont.c (ftfont_list): Downcase family name to check generic
15409 families.
15410
15411 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15412 font-spec for QCfont value.
15413
15414 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15415 buffer. Check the return value of it.
15416
154172008-05-14 Jason Rumney <jasonr@gnu.org>
15418
15419 * w32term.c (w32_get_glyph_overhangs): Remove.
15420 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15421
154222008-05-14 Kenichi Handa <handa@m17n.org>
15423
15424 * font.c (font_prop_validate): Make nil a valid value.
15425 (font_clear_cache): Check if the cached vector of entities is nil
15426 or not.
15427
154282008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15429
15430 * emacs.c (main_thread): Conditionalize on
15431 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15432 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15433
15434 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15435 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15436 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15437
154382008-05-14 Kenichi Handa <handa@m17n.org>
15439
15440 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15441 has no corresponding coding system.
15442
154432008-05-14 Jason Rumney <jasonr@gnu.org>
15444
15445 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15446
15447 * w32font.h (w32font_open_internal): Update declaration.
15448
15449 * w32font.c (w32font_open_internal): Change last argument from
15450 w32font_info struct to font object. Fill in font object from
15451 font_entity. Get Outline metrics if possible. Use them to
15452 calculate underline position and thickness. Use xlfd name as name
15453 property. Don't set codepage.
15454 (w32font_open): Pass font_object to w32font_open_internal. Don't
15455 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15456 (w32font_draw): Use s->font.
15457 (clear_cached_metrics): Don't clear non-existent blocks.
15458
15459 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15460 font was not found.
15461 (x_draw_glyph_string): Use underline position and thickness from font.
15462
15463 * w32uniscribe.c (uniscribe_open): Pass font_object to
15464 w32font_open_internal.
15465
154662008-05-14 Kenichi Handa <handa@m17n.org>
15467
15468 These changes are to delete all legacy font-handling codes, and
15469 make Emacs use only font-backends.
15470
15471 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15472 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15473
15474 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15475
15476 * charset.h (Vcharset_non_preferred_head)
15477 (Vcurrent_iso639_language): Extern them.
15478
15479 * charset.c (Vcharset_non_preferred_head): New variable.
15480 (Vcurrent_iso639_language): New variable.
15481 (syms_of_charset): Declare it as a Lisp variable.
15482 (char_charset): Don't check non preferred charsets. As a last
15483 resort, return charset_unicode.
15484 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15485
15486 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15487 conditionals. Don't check enable_font_backend. Delete all codes
15488 used only when USE_FONT_BACKEND is not defined.
15489
15490 * dispextern.h (struct glyph_string): Change type of `font' to
15491 `struct font *'.
15492 (struct glyph_string): New member underline_position and
15493 underline_thickness.
15494 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15495 (struct face): Change type of `font' to `struct font *'. Remove
15496 members `font_name', `font_info_id'.
15497 (per_char_metric, encode_char): Delete externs.
15498 (calc_pixel_width_or_height): Adjust the prototype.
15499
15500 * emacs.c (enable_font_backend): Delete extern.
15501 (main): Don't set enable_font_backend. Don't check the command
15502 line argument "-disable-font-backend".
15503
15504 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15505 (enum font_property_index): New members FONT_DPI_INDEX,
15506 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15507 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15508 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15509 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15510 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15511 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15512 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15513 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15514 (struct font_spec, struct font_entity): New structs.
15515 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15516 (struct font): Many members from old "struct font_info" moved to
15517 here. Members font and entity deleted.
15518 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15519 the new font-related objects.
15520 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15521 (CHECK_FONT_GET_OBJECT): Likewise.
15522 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15523 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15524 (struct font_driver): New members case_sensitive anc check. Type
15525 of the member list and open changed.
15526 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15527 (font_symbolic_width, font_find_object, font_get_spec)
15528 (font_set_lface_from_name): Delete extern.
15529 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15530
15531 * font.c: Include <strings.h>.
15532 (enable_font_backend): Delete it.
15533 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15534 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15535 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15536 (null_string): Delete it.
15537 (null_vector): Make it static.
15538 (font_family_alist): Delete it.
15539 (Qnormal): Extern it.
15540 (QCextra, QClanguage): Delete it.
15541 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15542 (font_make_spec, font_make_entity, font_make_object)
15543 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15544 the string. Callers changed.
15545 (font_pixel_size): Adjusted for the format change of font-related
15546 objects.
15547 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15548 (font_style_to_value, font_style_symbolic): New function.
15549 (build_font_family_alist): Delete it.
15550 (font_registry_charsets): Use Fassoc_string instead of
15551 assq_no_quit.
15552 (font_prop_validate_symbol): Don't return null_string.
15553 (font_prop_validate_style): Adjusted for the change of
15554 style-related values in a font vector.
15555 (font_property_table): Delete entries for QClanguage and
15556 QCantialias, add entries for QCavgwidth.
15557 (get_font_prop_index): Delete the 2nd argument FROM.
15558 (font_prop_validate): Arguments changed.
15559 (font_put_extra): Adjusted for the change of font-related objects.
15560 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15561 (font_parse_fcname, font_unparse_fcname)
15562 (font_prepare_composition): Likewise.
15563 (font_parse_family_registry): Renamed from font_merge_old_spec.
15564 (otf_open): Delete the 1st arg entity.
15565 (font_otf_capability): Adjusted for the above change.
15566 (font_score): New arg alternate_families. Adjusted for the change
15567 of font-related objects.
15568 (font_sort_entites): New arg best_only.
15569 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15570 Delete them.
15571 (font_match_p): Check alternate families.
15572 (font_find_object): Delete it.
15573 (font_check_object): New function.
15574 (font_clear_cache): Adjusted for the change of font-related objects.
15575 (font_delete_unmatched): New arg.
15576 (font_list_entities): Call font_driver->list with a spec that
15577 doesn't specify style-related properties.
15578 (font_matching_entity): Arguments changed. Caller changed.
15579 (font_open_entity): Adjusted for the change of font-related objects.
15580 (font_close_object, font_has_char, font_encode_char)
15581 (font_get_name, font_get_spec): Likewise.
15582 (font_spec_from_name, font_clear_prop, font_update_lface):
15583 New functions.
15584 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15585 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15586 (font_at): Adjusted for the change of font-related objects.
15587 (font_range): New function.
15588 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15589 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15590 (Fcopy_font_spec, Fmerge_font_spec): New function.
15591 (Ffont_family_list): Renamed from list-families.
15592 (Finternal_set_font_style_table): Arguments changed.
15593 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15594 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15595 change of font-related objects.
15596 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15597
15598 * fontset.h (struct font_info): Delete it. Most members go to
15599 struct font.
15600 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15601 (enum FONT_SPEC_INDEX): Delete it.
15602 (font_info, list_fonts_func, load_font_func, query_font_func)
15603 (set_frame_fontset_func, find_ccl_program_func)
15604 (get_font_repertory_func, new_fontset_from_font_name): Delete
15605 externs.
15606 (fontset_from_font_name): Extern it.
15607 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15608 (FONT_INFO_FROM_FACE): Deleted.
15609 (face_for_font): Adjust prototype.
15610
15611 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15612 conditionals. Don't check enable_font_backend. Delete all codes
15613 used only when USE_FONT_BACKEND is not defined.
15614 (get_font_info_func, list_font_func, load_font_func)
15615 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15616 (get_font_repertory_func): Delete them.
15617 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15618 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15619 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15620 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15621 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15622 (fontset_compare_rfontdef): New function.
15623 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15624 rfont-defs by qsort. Adjusted for the change of font-group vector.
15625 (load_font_get_repertory): Deleted.
15626 (fontset_find_font): Use new macros to ref/set elements of
15627 font-def and rfont-def.
15628 (fontset_font): Fix the timing of remembering that no font for C.
15629 (free_face_fontset): Do nothing if the face has no fontset.
15630 (face_suitable_for_char_p): Use new macros to ref/set elements of
15631 rfont-def.
15632 (face_for_char): Likewise. Call face_for_char with font_object.
15633 (fs_load_font): Delete. Delete #pragma surrounding it.
15634 (fs_query_fontset): Use strcasecmp instead of strcmp.
15635 (generate_ascii_font_name): Adjusted for the format change of
15636 font-spec.
15637 (Fset_fontset_font): Likewise. Use new macros to set elements of
15638 font-def.
15639 (Fnew_fontset): Use font_unparse_xlfd to generate
15640 FONTSET_ASCII (fontset).
15641 (new_fontset_from_font_name): Deleted.
15642 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15643 a fontset is already created for the font. FIx updating of
15644 Vfontset_alias_alist.
15645 (fontset_ascii_font): Deleted.
15646 (Ffont_info): Adjusted for the format change of font-spec.
15647 (Finternal_char_font): Likewise.
15648 (Ffontset_info): Likewise.
15649 (syms_of_fontset): Don't check load_font_func.
15650
15651 * fns.c (internal_equal): Handle PREV_FONT.
15652
15653 * frame.h: Delete USE_FONT_BACKEND conditional.
15654
15655 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15656 conditionals. Don't check enable_font_backend. Delete all codes
15657 used only when USE_FONT_BACKEND is not defined.
15658 (x_set_font): Call x_new_font, not x_new_fontset2.
15659 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15660 already set for the frame.
15661
15662 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15663 a font-entity by font_make_entity. Use font_intern_prop instead
15664 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15665 font property. If a font is scalable, set avgwidth property to 0.
15666 Set font-entity property by font_put_extra.
15667 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15668 (ffont_driver): Adjusted for the change of struct font_driver.
15669 (ftfont_spec_pattern): New function.
15670 (ftfont_list): Return a list, not vector.
15671 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15672 (ftfont_list_family): Don't downcase names.
15673 (ftfont_free_entity): Deleted.
15674 (ftfont_open): Return a font-object. Adjusted for the change of
15675 struct font. Get underline_thickness and underline_position from
15676 font property. Don't update dpyinfo->smallest_font_height and
15677 dpyinfo->smallest_char_width.
15678 (ftfont_close): Don't free `struct font'.
15679 (ftfont_has_char): Adjusted for the format change of font-entity.
15680 (ftfont_encode_char, ftfont_text_extents): Likewise.
15681
15682 * ftxfont.c (ftxfont_list): Return a list, not vector.
15683 (ftxfont_open): Return a font-object. Adjusted for the change of
15684 struct font. Get underline_thickness and underline_position from
15685 font property. Don't update dpyinfo->smallest_font_height and
15686 dpyinfo->smallest_char_width.
15687 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15688 (ftxfont_draw): Adjusted for the change of struct font.
15689
15690 * image.c (image_ascent): Don't include "charset.h". Include
15691 "character.h" and "font.h".
15692
15693 * lisp.h (enum pvec_type): New member PREV_FONT.
15694 (Fassoc_string): EXFUN it.
15695
15696 * print.c: Include font.h.
15697 (print_object): Handle font-related objects.
15698
15699 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15700 conditionals. Don't check enable_font_backend. Delete all codes
15701 used only when USE_FONT_BACKEND is not defined.
15702 (handle_auto_composed_prop): Do nothing if it->f is not on a
15703 window system. Check how many following characters can be
15704 displayed by the same font.
15705 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15706 'struct font *'.
15707 (get_char_face_and_encoding): Assign the whole encoding task to
15708 the `encode-char' method of a font driver.
15709 (fill_composite_glyph_string): Adjusted for the change of `struct
15710 face' and `struct glyph_string'.
15711 (fill_glyph_string): Likewise.
15712 (get_per_char_metric): Arguments changed.
15713 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15714 and `struct glyph_string'.
15715 (produce_stretch_glyph, calc_line_height_property)
15716 (x_produce_glyphs): Likewise.
15717
15718 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15719 conditionals. Don't check enable_font_backend. Delete all codes
15720 used only when USE_FONT_BACKEND is not defined. Use
15721 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15722 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15723 (Qp): Extern them.
15724 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15725 Deleted.
15726 (struct font_name): Deleted.
15727 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15728 (compare_fonts_by_sort_order): New function.
15729 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15730 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15731 Deleted.
15732 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15733 compare_fonts_by_sort_order.
15734 (Fx_font_family_list): Call Ffont_family_list.
15735 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15736 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15737 (face_symbolic_slant, face_symbolic_swidth)
15738 (split_font_name_into_vector, build_font_name_from_vector)
15739 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15740 (font_rescale_ratio, split_font_name, build_font_name)
15741 (free_font_names, sort_fonts, x_face_list_fonts)
15742 (face_font_available_p, sorted_font_list, cmp_font_names)
15743 (font_list_1, concat_font_list, font_list, remove_duplicates):
15744 Deleted.
15745 (Fx_list_fonts): Use Ffont_list.
15746 (LFACE_AVGWIDTH): Deleted.
15747 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15748 by FONTP.
15749 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15750 (set_lface_from_font_name): Delete it.
15751 (set_lface_from_font): Renamed from
15752 set_lface_from_font_and_fontset. Caller changed. Don't set
15753 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15754 for face.
15755 (merge_face_vectors): Copy font-spec if necessary.
15756 Clear properties of the font-spec if necessary.
15757 (merge_face_ref): Clear properties of the font-spec if necessary.
15758 (Finternal_set_lisp_face_attribute): Likewise.
15759 (set_font_frame_param): Use font_load_for_lface to load a
15760 font-object, and call Fmodify_frame_parameters with it.
15761 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15762 font name by Ffont_xlfd_name.
15763 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15764 QCslant, and QCwidth.
15765 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15766 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15767 Compare fonts by EQ.
15768 (lookup_non_ascii_face): Deleted.
15769 (face_for_font): The 2nd argument changed.
15770 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15771 Check atomic font properties by case insensitive.
15772 (realize_non_ascii_face): Set face->overstrike correctly.
15773 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15774 (dump_realized_face): Get font name from
15775 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15776
15777 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15778 conditionals. Don't check enable_font_backend. Delete all codes
15779 used only when USE_FONT_BACKEND is not defined.
15780 (xic_create_xfontset): Original code deleted and renamed from
15781 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15782 (x_make_gc): Don't set GCFont in GCs.
15783 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15784 opened by "fixed".
15785 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15786 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15787 get_font_repertory_func.
15788
15789 * xfont.c: Include <stdlib.h> and "ccl.h".
15790 (struct xfont_info): New structure.
15791 (xfont_query_font): Deleted.
15792 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15793 moved from xterm.c.
15794 (xfont_driver): Adjusted for the change of struct font_driver.
15795 (compare_font_names): New function.
15796 (xfont_list_pattern): Sort font names case insensitively. Make
15797 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15798 (xfont_list): Return a list, not vector.
15799 (xfont_match): If the font doesn't have QCname property, generate
15800 a name from the other font properties.
15801 (xfont_open): Return a font-object. Adjusted for the change of
15802 struct font. Get underline_thickness and underline_position from
15803 font property. Don't update dpyinfo->smallest_font_height and
15804 dpyinfo->smallest_char_width.
15805 (xfont_close): Don't free struct font.
15806 (xfont_prepare_face): Adjusted for the change of struct font.
15807 (xfont_done_face): Deleted.
15808 (xfont_has_char): Adjusted for the change of struct font.
15809 (xfont_encode_char, xfont_draw): Likewise.
15810 (xfont_check): New function.
15811
15812 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15813 callback function.
15814 (xftfont_match): Adjusted for the format change of font-entity.
15815 (xftfont_open): Adjusted for the format change of font-entity and
15816 font-object. Adjusted for the change of struct font. Return a
15817 font-object. Don't update dpyinfo->smallest_font_height and
15818 dpyinfo->smallest_char_width.
15819 (xftfont_close): Block input while calling XftFontClose.
15820 (xftfont_prepare_face): Don't block input while calling
15821 xftfont_get_colors. Adjusted for the change of struct font.
15822 (xftfont_shape): Return value of error case fixed.
15823
15824 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15825
15826 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15827 conditionals.
15828 (FONT_WIDTH): Return (f)->max_width.
15829 (struct x_display_info): Delete member `font'.
15830 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15831 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15832 (struct x_output): Change type of `font' to `struct font *'.
15833
15834 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15835 conditionals. Don't check enable_font_backend. Delete all codes
15836 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15837 (x_per_char_metric, x_encode_char): Deleted.
15838 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15839 (x_compute_glyph_string_overhangs): Adjusted for the change of
15840 `struct face'.
15841 (x_draw_glyph_string_foreground)
15842 (x_draw_composite_glyph_string_foreground): Likewise.
15843 (x_draw_glyph_string): Likewise. Use font->underline_position and
15844 font->underline_thickness.
15845 (x_new_font): Renamed from x_new_fontset2.
15846 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15847 (x_check_font): Call `check' method of a font driver.
15848 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15849 (x_query_font, x_get_font_repertory): Deleted.
15850 (x_find_ccl_program): Renamed and moved to xfont.c.
15851 (x_redisplay_interface): Adjusted for the change of `struct
15852 redisplay_interface'.
15853
15854 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15855 conditionals. Don't check enable_font_backend. Delete all codes
15856 used only when USE_FONT_BACKEND is not defined. Surround non-used
15857 code by "#ifdef OLD_FONT" and "endif".
15858 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15859
15860 * w32font.h (struct w32font_info): New member.
15861 (FONT_COMPAT): New macro.
15862 (w32font_open_internal): Prototype adjusted.
15863
15864 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15865 OLD_FONT" and "endif".
15866
15867 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15868 conditionals. Don't check enable_font_backend. Delete all codes
15869 used only when USE_FONT_BACKEND is not defined.
15870 (w32font_open): Return a font-object. Make a font-object by
15871 font_make_object. Adjusted for the change of struct w32font_info.
15872 (w32font_close): Don't free struct font. Adjusted for the change
15873 of struct w32font_info.
15874 (w32font_encode_char, w32font_text_extents, w32font_draw):
15875 Adjusted for the change of struct w32font_info.
15876 (w32font_draw): Likewise.
15877 (w32font_list_internal): Return a list, not vector.
15878 (w32font_open_internal): Change the 4th arg to font-object.
15879 Adjusted for the change of struct w32font_info and font-object format.
15880 (add_font_name_to_list): Don't downcase names.
15881 (w32_enumfont_pattern_entity): Make a font-entity by
15882 font_make_entity. Adjusted for the format change of font-entity.
15883 Use FONT_SET_STYLE to set a style-related font property. If a
15884 font is scalable, set avgwidth property to 0. Set font-entity
15885 property by font_put_extra.
15886 (font_matches_spec): Adjusted for the format change of font-entity.
15887 (w32_weight_table, w32_decode_weight): New variables.
15888 (w32_encode_weight): New function.
15889 (fill_in_logfont): Adjusted for the format change of font-spec.
15890 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15891 weight value.
15892 (w32font_driver): Adjusted for the change of struct font_driver.
15893
15894 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15895 conditionals. Don't check enable_font_backend. Surround non-used
15896 code by "#ifdef OLD_FONT" and "endif".
15897 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15898 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15899
15900 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15901 conditionals. Don't check enable_font_backend. Delete all codes
15902 used only when USE_FONT_BACKEND is not defined. Surround non-used
15903 code by "#ifdef OLD_FONT" and "endif".
15904
15905 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15906 (uniscribe_open): Return value changed to font-object.
15907 Adjusted for the format change of font-object.
15908 (uniscribe_otf_capability): Adjusted for the change of struct font.
15909 (add_opentype_font_name_to_list): Don't downcase names.
15910 (uniscribe_font_driver): Adjusted for the change of struct
15911 font_driver.
15912
159132008-05-13 Chong Yidong <cyd@stupidchicken.com>
15914
15915 * dispnew.c (update_frame_1): Check if tty output is still valid
15916 before flushing it.
15917
159182008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15919
15920 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15921 to Gtk+ menus.
15922
159232008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15924
15925 * dired.c (file_name_completion): Tweak the code so as to always do it
15926 in a single pass. Tighten the scope of some variables.
15927
15928 * dired.c (Qdefault_directory): New var.
15929 (file_name_completion): Use it instead of Fexpand_file_name.
15930 (syms_of_dired): Initialize it.
15931
159322008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15933
15934 * fileio.c (double_dollars): Remove dead code.
15935
159362008-05-10 Eli Zaretskii <eliz@gnu.org>
15937
15938 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15939 Mention w32-get-true-file-attributes in doc string.
15940
15941 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15942
159432008-05-09 Glenn Morris <rgm@gnu.org>
15944
15945 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15946 2008-04-23.
15947
159482008-05-09 Eli Zaretskii <eliz@gnu.org>
15949
15950 Support for reporting owner and group of each file on MS-Windows:
15951 * dired.c (stat_uname, stat_gname): New functions, with special
15952 implementation for w32.
15953 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15954
15955 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15956 (dflt_group_name): New static variable.
15957 (dflt_group): Rename from the_group.
15958 (init_user_info): Init dflt_group fields. Get user's group name
15959 from LookupAccountSid.
15960 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15961 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15962 New initialization states.
15963 (globals_of_w32): Initialize them to zero. Initialize the default
15964 group name to "None".
15965 (GetFileSecurity_Name): New global var, the name of the function
15966 to call for GetFileSecurity.
15967 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15968 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15969 (get_file_security, get_security_descriptor_owner)
15970 (get_security_descriptor_group, is_valid_sid)
15971 (get_file_security_desc, get_rid, get_name_and_id)
15972 (get_file_owner_and_group): New functions.
15973 (stat): Use get_file_security_desc and get_file_owner_and_group to
15974 report the owner and primary group of each file. Don't ignore the
15975 high 32 bits of file's size, now that st_size is 64-bit wide.
15976 Fix test when to get true file attributes.
15977 (init_user_info): Use get_rid instead of equivalent inline code.
15978 (fstat): Don't ignore the high 32 bits of file's size.
15979
159802008-05-09 Chong Yidong <cyd@stupidchicken.com>
15981
15982 * image.c (png_load): Use correct bit-depth for setting background
15983 color.
15984
159852008-05-08 Eli Zaretskii <eliz@gnu.org>
15986
15987 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15988 epa-hook.elc.
15989
159902008-05-08 Juanma Barranquero <lekktu@gmail.com>
15991
15992 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15993
159942008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15995
15996 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15997 because the original parameters are in pure storage now.
15998 (mac_window): Remove unused params. Update callers.
15999
160002008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16001
16002 * lread.c (substitute_object_recurse): Use lower-level primitives.
16003 Don't signal errors when traversing sub-char-tables.
16004 Don't loop over all the possible characters when traversing char-tables.
16005
16006 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16007 just like we do in print.c.
16008
160092008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16010
16011 * minibuf.c (Ftry_completion): Remove code left over from when we used
16012 scmp instead of Fcompare_strings.
16013
160142008-05-04 Juanma Barranquero <lekktu@gmail.com>
16015
16016 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16017
160182008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16019
16020 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16021 Create bitmap context in native byte order.
16022
16023 * macterm.c (XDrawLine)
16024 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16025 context in native byte order.
16026
160272008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16028
16029 * config.in: Regenerate.
16030
16031 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16032 New definitions for Image I/O support.
16033 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16034 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16035 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16036 (mac_data_provider_release_data, image_load_image_io)
16037 [USE_MAC_IMAGE_IO]: New functions.
16038 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16039 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16040 (init_image_func_pointer) [MAC_OSX]: Remove function.
16041 (image_load_quartz2d) [MAC_OSX]: Check availability of
16042 CGImageCreateWithPNGDataProvider at compile time.
16043 Use lowercase `false' for boolean constant.
16044 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16045 Use image_load_image_io.
16046 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16047 Don't check MyCGImageCreateWithPNGDataProvider.
16048 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16049 Don't call init_image_func_pointer.
16050
16051 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16052
16053 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16054 Make variable non-static.
16055 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16056 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16057
16058 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16059 (RED_FROM_ULONG): Mask off higher bits.
16060 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16061
16062 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16063 Include AvailabilityMacros.h.
16064 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16065 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16066
160672008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16068
16069 * chartab.c (Fset_char_table_range): If range is t, really set all
16070 chars to that value.
16071
160722008-05-03 Eli Zaretskii <eliz@gnu.org>
16073
16074 * dired.c (Ffile_attributes): Don't allow the device number become
16075 negative.
16076
160772008-05-02 Daiki Ueno <ueno@unixuser.org>
16078
16079 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16080
160812008-05-02 Juri Linkov <juri@jurta.org>
16082
16083 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16084 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16085 DEFAULT argument as a list of default values in docstrings.
16086
160872008-05-01 Chong Yidong <cyd@stupidchicken.com>
16088
16089 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16090
160912008-05-01 Martin Rudalics <rudalics@gmx.at>
16092
16093 * dispnew.c (change_frame_size_1): Preserve small windows when
16094 shrinking frames by calling set_window_height|width with third
16095 arg 2.
16096
16097 * window.h (struct window): Replace field too_small_ok by field
16098 resize_proportionally.
16099
16100 * window.c (make_window): Initialize resize_proportionally.
16101 (enlarge_window): Temporarily set resize_proportionally to make
16102 sure that shrink_windows does scale the window proportionally.
16103 (shrink_windows): When window has resize_proportionally set try
16104 to shrink it proportionally by stealing from other windows.
16105 (struct saved_window, Fset_window_configuration)
16106 (compare_window_configurations): Handle resize_proportionally.
16107 (WINDOW_TOTAL_SIZE): New macro.
16108 (window_min_size, shrink_windows, size_window): Use it.
16109 (check_min_window_sizes): Remove. Invalid values of
16110 window-min-height|width are handled by window_min_size_2 now.
16111 (size_window, Fsplit_window, enlarge_window)
16112 (adjust_window_trailing_edge, grow_mini_window): Don't call
16113 check_min_window_sizes.
16114 (window_min_size_2, window_min_size_1, window_min_size):
16115 New argument safe_p for retrieving "safe" minimum sizes.
16116 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16117 (adjust_window_trailing_edge, grow_mini_window):
16118 Adjust arguments of window_min_size... functions.
16119 (shrink_windows): Argument min_size removed. New argument
16120 safe_p allows shrinking windows to their safe minimum sizes.
16121 Calculate minimum size and decide whether a window shall be
16122 deleted for each window individually.
16123 (size_window): When nodelete_p equals 2, tell shrink_windows to
16124 delete windows only if their new minimum size is no more safe.
16125 (shrink_window_lowest_first): Call window_min_size_1 to make
16126 sure to preserve modeline of bottom-most window when resizing
16127 the minibuffer.
16128 (Fset_window_configuration, Fcurrent_window_configuration)
16129 (compare_window_configurations): Do not handle
16130 window-min-height|width any more.
16131 (syms_of_window): Clarify window-min-height|width doc-strings.
16132
161332008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16134
16135 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16136 some more. Copy some of the code from Ftry_completions.
16137 Remove special case code that dates back to initial revision when the
16138 slash was only added when necessary and that can't trigger nowadays.
16139
161402008-04-27 Kenichi Handa <handa@m17n.org>
16141
16142 * font.c (font_prop_validate): Signal `error' instead of `font'.
16143
161442008-04-29 Jason Rumney <jasonr@gnu.org>
16145
16146 * w32fns.c (Fw32_battery_status): New defun.
16147 (syms_of_w32fns): Defsubr it.
16148
161492008-04-28 Andreas Schwab <schwab@suse.de>
16150
16151 * dired.c (file_name_completion): Fix another mixing of encoded
16152 and decoded names.
16153
161542008-04-28 Juanma Barranquero <lekktu@gmail.com>
16155
16156 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16157
161582008-04-27 Juanma Barranquero <lekktu@gmail.com>
16159
16160 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16161
161622008-04-27 Andreas Schwab <schwab@suse.de>
16163
16164 * dired.c (file_name_completion): Fix inappropriate mixing of
16165 encoded and decoded names.
16166
16167 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16168
16169 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16170
161712008-04-26 Eli Zaretskii <eliz@gnu.org>
16172
16173 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16174 2008-03-31, it's not needed anymore with `struct stat' definition
16175 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16176 for the same reasons.
16177
161782008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16179
16180 * m/sparc.h: Additional redefinitions for GNU/Linux.
16181
161822008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16183
16184 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16185 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16186 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16187 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16188 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16189 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16190 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16191 Likewise.
16192
16193 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16194 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16195 (mac_ax_number_of_characters): Add externs.
16196 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16197 [USE_MAC_TSM]: Likewise.
16198 (mac_handle_text_input_event) [MAC_OSX]:
16199 Handle kEventTextInputOffsetToPos for no active input area case.
16200 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16201 (mac_handle_document_access_event)
16202 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16203 (install_application_handler) [MAC_OSX]: Register handlers for
16204 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16205 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16206 Register mac_handle_document_access_event.
16207
16208 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16209 Make functions non-static.
16210
162112008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16212
16213 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16214 (read_file_name_completion_ignore_case, insert_default_directory)
16215 (Qdefault_directory): Move to minibuffer.el.
16216 (Fread_file_name): Call the new `read-file-name' instead.
16217
162182008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16219
16220 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16221 Make function non-static.
16222 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16223 Remove function.
16224 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16225 Move to mactoolbox.c.
16226 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16227
16228 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16229 (mac_rect_make): New macro.
16230
16231 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16232 instead of float.
16233 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16234 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16235 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16236 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16237 CGRectMake.
16238 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16239 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16240 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16241 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16242 instead of WindowRef in argument type.
16243 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16244 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16245 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16246 instead of DISPLAY. All uses changed.
16247 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16248 (x_calc_absolute_position): Simplify so as not to use
16249 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16250
16251 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16252 instead of WindowRef in argument type.
16253 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16254 [TARGET_API_MAC_CARBON]: Remove externs.
16255 (create_apple_event, mac_event_parameters_to_lisp)
16256 [TARGET_API_MAC_CARBON]: Add externs.
16257
16258 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16259 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16260 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16261 is clicked.
16262 (x_activate_menubar): Remove extern for saved_menu_event_location.
16263 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16264 Move from mac.c.
16265
162662008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16267
16268 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16269 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16270
162712008-04-23 Jason Rumney <jasonr@gnu.org>
16272
16273 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16274 attributes only for local files.
16275
16276 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16277 default to Qlocal.
16278
162792008-04-22 Juri Linkov <juri@jurta.org>
16280
16281 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16282 read-buffer-to-switch instead of using the letter "B".
16283
162842008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16285
16286 * fileio.c (Qdefault_directory): New variable.
16287 (Fread_file_name): Use it to pass `dir' to the completion functions.
16288
162892008-04-20 Chong Yidong <cyd@stupidchicken.com>
16290
16291 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16292
162932008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16294
16295 * keyboard.c (Vpre_help_message): Remove.
16296 (show_help_echo): Remove default C code.
16297
16298 * dired.c (directory_files_internal, file_name_completion):
16299 Only call ENCODE_FILE if the string is indeed decoded.
16300
163012008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16302
16303 * Makefile.in (TOOLKIT_DEFINES): Remove.
16304 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16305
163062008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16307
16308 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16309 (mactoolbox.o): New target.
16310
16311 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16312 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16313
16314 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16315 Use mac_set_frame_window_background instead of XSetWindowBackground.
16316 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16317 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16318 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16319 instead of SetWindowTitleWithCFString.
16320 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16321 Move function to mactoolbox.c.
16322 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16323 Use mac_set_window_modified instead of SetWindowModified.
16324 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16325 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16326 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16327 FrontNonFloatingWindow. Use mac_activate_window instead of
16328 ActivateWindow. Use mac_active_non_floating_window instead of
16329 ActiveNonFloatingWindow.
16330 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16331 Use mac_show_hourglass and mac_hide_hourglass.
16332 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16333 instead of GetGlobalMouse.
16334 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16335 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16336 Use mac_bring_window_to_front instead of BringToFront.
16337 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16338 mactoolbox.c.
16339 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16340 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16341 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16342 mactoolbox.c.
16343
16344 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16345 (XtPointer): Move typedef from macmenu.c.
16346 (enum button_type): Move enum from macmenu.c.
16347 (widget_value): Move typedef from macmenu.c.
16348 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16349 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16350 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16351 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16352 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16353 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16354 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16355 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16356 (Selection): Move typedef from macselect.c.
16357 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16358 macterm.c.
16359 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16360 (mac_is_window_collapsed, mac_bring_window_to_front)
16361 (mac_send_window_behind, mac_hide_window, mac_show_window)
16362 (mac_collapse_window, mac_front_non_floating_window)
16363 (mac_active_non_floating_window, mac_activate_window)
16364 (mac_move_window_structure, mac_move_window, mac_size_window)
16365 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16366
16367 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16368 (enum mac_menu_kind): Move enum to mactoolbox.c.
16369 (min_menu_id): Move variable to mactoolbox.c.
16370 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16371 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16372 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16373 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16374 [TARGET_API_MAC_CARBON]: Likewise.
16375 (XtPointer): Move typedef to macgui.h.
16376 (enum button_type): Move enum to macgui.h.
16377 (widget_value): Move typedef to macgui.h.
16378 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16379 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16380 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16381 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16382 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16383 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16384 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16385 (popup_activated_flag): Make variable non-static.
16386 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16387 (add_menu_item, fill_menu, dispose_menus):
16388 Move functions to mactoolbox.c.
16389 (restore_show_help_function, menu_target_item_handler)
16390 (install_menu_target_item_handler, mac_handle_dialog_event)
16391 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16392 [TARGET_API_MAC_CARBON]: Likewise.
16393 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16394 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16395 (find_and_call_menu_selection, name_is_separator): Make function
16396 non-static.
16397 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16398 to mactoolbox.c.
16399 (set_frame_menubar): Don't call install_menu_quit_handler.
16400 (menu_item_selection): New variable.
16401 (mac_menu_show): Use create_and_show_popup_menu.
16402 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16403 selection but set variable menu_item_selection. All uses changed.
16404 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16405 Call install_menu_quit_handler. Move to mactoolbox.c.
16406
16407 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16408 (Selection): Move typedef to macgui.h.
16409 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16410 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16411 Make variables non-static.
16412 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16413 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16414 Make functions non-static.
16415 (Vmac_service_selection) [MAC_OSX]: Likewise.
16416 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16417 (mac_valid_selection_target_p, mac_clear_selection)
16418 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16419 (mac_put_selection_value, mac_selection_has_target_p)
16420 (mac_get_selection_value, mac_get_selection_target_list)
16421 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16422 Move functions to mactoolbox.c.
16423 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16424 Likewise.
16425 (copy_scrap_flavor_data, mac_handle_service_event)
16426 (install_service_handler) [MAC_OSX]: Likewise.
16427 (syms_of_macselect) <Vmac_dnd_known_types>:
16428 Use mac_dnd_default_known_types.
16429
16430 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16431 Move to mactoolbox.c.
16432 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16433 (Fx_selection_owner_p): Add EXFUN.
16434 (install_window_handler, remove_window_handler, XSetWindowBackground):
16435 Remove externs.
16436 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16437 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16438 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16439 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16440 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16441 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16442 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16443 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16444 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16445 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16446 (mac_valid_selection_target_p, mac_clear_selection)
16447 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16448 (mac_put_selection_value, mac_selection_has_target_p)
16449 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16450 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16451 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16452 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16453 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16454 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16455 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16456 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16457 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16458
16459 * mactoolbox.c: New file.
16460
164612008-04-18 Jason Rumney <jasonr@gnu.org>
16462
16463 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16464
164652008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16466
16467 * character.c (Fmultibyte_char_to_unibyte):
16468 Return latin1 chars unchanged.
16469
16470 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16471 relocated if it points to `name'.
16472
164732008-04-17 Kenichi Handa <handa@m17n.org>
16474
16475 * data.c (Faset): Allow setting a multibyte character in an
16476 ASCII-only unibyte string.
16477
16478 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16479
164802008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16481
16482 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16483 done in config.h.
16484
164852008-04-16 Juanma Barranquero <lekktu@gmail.com>
16486
16487 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16488 (Fchar_direction): Add usage in the docstring.
16489
164902008-04-15 Chong Yidong <cyd@stupidchicken.com>
16491
16492 * keyboard.c (read_key_sequence): Remove always-true checks.
16493
164942008-04-14 Jason Rumney <jasonr@gnu.org>
16495
16496 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16497 compatibility struct, for better underline positioning.
16498
164992008-04-13 David Hansen <david.hansen@gmx.net>
16500
16501 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16502 string.
16503
165042008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16505
16506 * m/hp800.h (XUINT, XSET): Remove.
16507
165082008-04-12 Juanma Barranquero <lekktu@gmail.com>
16509
16510 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16511 previous change.
16512
165132008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16514
16515 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16516 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16517
165182008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16519
16520 * keymap.h (map_keymap_canonical): Declare.
16521 * xmenu.c (single_keymap_panes): Use it.
16522
165232008-04-11 Glenn Morris <rgm@gnu.org>
16524
16525 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16526 set the target's value to that of the alias.
16527
165282008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16529
16530 * term.c (set_tty_color_mode): Left over typo.
16531
165322008-04-10 Michael Albinus <michael.albinus@gmx.de>
16533
16534 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16535 only after check for file name handler functions. Signal, when
16536 native functionality is not supported.
16537 (syms_of_fileio): Declare it unconditionally.
16538
165392008-04-10 Jason Rumney <jasonr@gnu.org>
16540
16541 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16542 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16543
16544 * w32.c (logon_network_drive): Also logon to remote drives that
16545 are mapped to drive letters.
16546
165472008-04-10 Glenn Morris <rgm@gnu.org>
16548
16549 * xdisp.c (truncate-partial-width-windows): Doc fix.
16550
165512008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16552
16553 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16554 Move functions to minibuffer.el.
16555 (syms_of_fileio): Don't declare them.
16556
165572008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16558
16559 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16560 (syms_of_minibuf): Remove its initialization.
16561
16562 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16563
165642008-04-09 Juanma Barranquero <lekktu@gmail.com>
16565
16566 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16567
165682008-04-09 Jason Rumney <jasonr@gnu.org>
16569
16570 * makefile.w32-in (distclean): Delete makefile too.
16571 (maintainer-clean): New target.
16572
16573 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16574
16575 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16576 for new font backend and composite cases.
16577
165782008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16579
16580 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16581 Most of the code moved to run_timers.
16582 (do_pending_atimers): Call run_timers.
16583 (run_timers): New function.
16584
16585 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16586 run atimers.
16587
16588 * process.c (wait_reading_process_output): The same as above.
16589
165902008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16591
16592 * minibuf.c (last_exact_completion): Remove variable.
16593 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16594 (complete_and_exit_1, complete_and_exit_2)
16595 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16596 (Fdisplay_completion_list, display_completion_list_1)
16597 (Fminibuffer_completion_help, Fself_insert_and_exit)
16598 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16599 minibuffer.el.
16600 (syms_of_minibuf): Remove corresponding initializations.
16601
16602 * keyboard.c (Qdeactivate_mark): New var.
16603 (command_loop_1): Use it to call `deactivate-mark'.
16604 (syms_of_keyboard): Initialize it.
16605
16606 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16607 to another frame.
16608 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16609 Don't call set_tty_color_mode.
16610 (store_frame_param): Reset previous_frame rather than call
16611 set_tty_color_mode.
16612 * term.c (set_tty_color_mode): Rewrite.
16613 * dispextern.h (set_tty_color_mode): New type.
16614 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16615
166162008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16617
16618 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16619 for generic chars, which do not exist any more in emacs-unicode.
16620
166212008-04-08 Michael Albinus <michael.albinus@gmx.de>
16622
16623 * coding.c (detect_coding_emacs_mule)
16624 (Ffind_operation_coding_system): Fix typo.
16625
166262008-04-08 Jason Rumney <jasonr@gnu.org>
16627
16628 * w32uniscribe.c (SNAME): Extract only symbol name.
16629
16630 * w32font.h (struct w32_metric_cache): New struct.
16631 (w32font_info): Use it.
16632 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16633 (CACHE_BLOCKSIZE): New constants.
16634
16635 * w32font.c (Qja, Qko, Qzh): New symbols.
16636 (syms_of_w32font): Initialise them.
16637 (font_matches_spec): Use them to filter by language.
16638 (recompute_cached_metrics): Remove function.
16639 (compute_metrics, clear_cached_metrics): New functions.
16640 (w32font_encode_char): Use them to manage metric cache.
16641 (w32font_text_extents): Cache metrics for all glyphs on demand.
16642 Delay converting glyph indices to WORD until needed.
16643 (w32font_open_internal): Initialize metric cache to empty.
16644 (registry_to_w32_charset): Charset should always be a symbol.
16645 (fill_in_logfont, list_all_matching_fonts): Family should
16646 always be a symbol.
16647
166482008-04-06 Jason Rumney <jasonr@gnu.org>
16649
16650 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16651 Give up if glyph indices not supported. Use uniscribe obtained
16652 ABC widths for individual metrics. Map glyph clusters back to
16653 characters using fClusterStart flag. Return number of glyphs
16654 produced, not chars processed.
16655 (uniscribe_shape): Map char at FROM to current glyph.
16656
166572008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16658
16659 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16660 Use SetMenuItemHierarchicalMenu.
16661
166622008-04-05 Jason Rumney <jasonr@gnu.org>
16663
16664 * image.c (pbm_load): Allow color values up to 65535.
16665 Throw an error if max_color_idx is outside the supported range.
16666 Report an error when image size is invalid.
16667 Read two bytes at a time when raw images have max_color_idx above 255.
16668
aac0c6e3
MR
166692008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16670
16671 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16672 append "CCL: Quitted" when the CCL program is quitted.
16673 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16674
16675 * ccl.h (struct ccl_program): New member quit_silently.
16676
166772008-04-05 Chong Yidong <cyd@stupidchicken.com>
16678
16679 * search.c (compile_pattern_1): Treat non-nil and non-string of
16680 search-spaces-regexp as nil.
16681
16682 * minibuf.c (Fassoc_string): Tweak docstring.
16683
166842008-04-05 Eli Zaretskii <eliz@gnu.org>
16685
16686 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16687 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16688 2008-03-14 to force inode be positive.
16689
16690 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16691 _S_* ones, since we now use our own sys/stat.h.
16692 (stat, fstat): Don't mangle the inode number.
16693 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16694
166952008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16696
16697 * frame.h (struct frame): Give one more bit to `visible' since we use
16698 values larger than 1 to indicate obscured frames on ttys.
16699
16700 * keymap.c (Qkeymap_canonicalize): New var.
16701 (Fmap_keymap_internal): New fun.
16702 (describe_map): Use keymap-canonicalize.
16703
16704 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16705 (Fundo_boundary): Set them.
16706 (syms_of_undo): Initialize them.
16707 (record_point): Use them instead of last_point_position*.
16708 (last_undo_buffer): Change type.
16709
167102008-04-04 Jason Rumney <jasonr@gnu.org>
16711
16712 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16713 (recompute_cached_metrics): Don't set ascent and descent per char.
16714
16715 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16716 (uniscribe_check_otf): Add GC protection before consing.
16717 Rearrange loop for counting features.
16718
167192008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16720
16721 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16722 buffer with byte-size of source buffer.
16723
167242008-04-03 Chong Yidong <cyd@stupidchicken.com>
16725
16726 * callint.c (Fcall_interactively): Handle temporary region even
16727 when shift-select-mode is off.
16728
167292008-04-03 Jason Rumney <jasonr@gnu.org>
16730
16731 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16732
167332008-04-03 Kenichi Handa <handa@m17n.org>
16734
16735 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16736 (CATEGORY_MASK_UTF_16): Likewise.
16737 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16738 binary file.
16739 (detect_coding): Add null-byte detection for a binary file.
16740 (detect_coding_system): Likewise.
16741
167422008-04-03 Jason Rumney <jasonr@gnu.org>
16743
16744 * w32uniscribe.c: New file.
16745
16746 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16747
16748 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16749
16750 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16751 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16752 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16753 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16754 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16755 (Qphonetic): New symbols.
16756 (syms_of_w32font): Initialize them.
16757 (font_supported_scripts): Use them.
16758 (w32font_list_family): List all charsets.
16759 (w32font_text_extents, recompute_cached_metrics): Fix metric
16760 calculations.
16761 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16762 Give opentype fonts their own format.
16763 (font_matches_spec): New arguments backend and logfont.
16764 Handle :otf spec for uniscribe backend.
16765 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16766 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16767
16768 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16769 font backend.
16770 (globals_of_w32fns): Initialize uniscribe font backend.
16771
16772 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16773 dependencies.
16774 (w32uniscribe.$(O)): New file to build.
16775 (FONT_OBJ): Include w32uniscribe.$(O).
16776 (LIBS): Add uniscribe libraries.
16777
16778 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16779
167802008-04-02 Chong Yidong <cyd@stupidchicken.com>
16781
16782 * callint.c (Vshift_select_mode): New var.
16783 (Finteractive): Document new ^ spec.
16784 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16785 is present.
16786
16787 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16788 (command_loop_1): Avoid running the direct display versions of
16789 forward-char and backward-char if shift-selection may occur.
16790 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16791 shift-translation takes place.
16792
16793 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16794 avoid clobbering by define-minor-mode.
16795
16796 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16797 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16798
16799 * syntax.c (Fforward_word): Add ^ interactive spec.
16800
16801 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16802 (Fscroll_right): Add ^ interactive spec.
16803
168042008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16805
16806 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16807
16808 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16809
16810 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16811
168122008-03-31 Juri Linkov <juri@jurta.org>
16813
16814 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16815
168162008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16817
16818 * gtkutil.c (xg_set_geometry): Fix indentation.
16819 (xg_resize_outer_widget): Remove.
16820 (x_wm_size_hint_off): Fix indentation.
16821 (xg_frame_set_char_size): Call flush_and_sync after
16822 gtk_window_resize.
16823 (x_wm_set_size_hint): Pass NULL as geometry window to
16824 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16825 Add menu bar and tool bar height to base height.
16826 (xg_update_frame_menubar, free_frame_menubar)
16827 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16828 (update_frame_tool_bar, free_frame_tool_bar):
16829 Change xg_resize_outer_widget to xg_frame_set_char_size.
16830
168312008-03-30 Michael Albinus <michael.albinus@gmx.de>
16832
16833 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16834 (Fdbus_call_method): New parameter TIMEOUT.
16835 (dbus-send-signal): Optimize UNGCPRO call.
16836
168372008-03-29 Juri Linkov <juri@jurta.org>
16838
16839 * window.c (Fdisplay_buffer): Move call to
16840 Vsplit_window_preferred_function out of conditions that check
16841 if window is eligible for vertical splitting.
16842 When Vsplit_window_preferred_function is non-nil, call it and use
16843 its non-nil return value as window. Otherwise, continue doing
16844 vertical splitting using Fsplit_window with arg horflag=nil.
16845 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16846 default value from `split-window' to nil.
16847
168482008-03-29 Juri Linkov <juri@jurta.org>
16849
16850 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16851 for interactive code letters 'b' and 'B'.
16852
168532008-03-29 Eli Zaretskii <eliz@gnu.org>
16854
16855 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16856 multibyte string.
16857
168582008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16859
16860 * keyboard.c (pending_funcalls): New var.
16861 (timer_check): Run it.
16862 (syms_of_keyboard): Initialize it.
16863 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16864 (Vdelete_terminal_functions): New vars.
16865 (syms_of_terminal): Initialize them.
16866 (Fdelete_terminal): Run delete-terminal-functions.
16867 * xdisp.c (safe_eval): Rewrite.
16868 (safe_call2): New fun.
16869 * frame.c (Qdelete_frame_functions): New var.
16870 (syms_of_frame): Initialize it.
16871 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16872 * lisp.h (safe_call2, pending_funcalls): Declare.
16873
168742008-03-28 Andreas Schwab <schwab@suse.de>
16875
16876 * indent.c (Fmove_to_column): Move declaration before statements.
16877
168782008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16879
16880 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16881 (struct frame): Use bit fields for boolean vars.
16882
16883 * process.c (server_accept_connection): Simplify naming.
16884 (emacs_get_tty_pgrp): Use SDATA.
16885
16886 * coding.c (decode_coding_object): Fix last change.
16887
168882008-03-27 Jason Rumney <jasonr@gnu.org>
16889
16890 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16891
168922008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16893
16894 * charset.c (Fdefine_charset_internal): Change the way of
16895 registering charsets in Vcharset_order_list.
16896 (syms_of_charset): Make the charset `eight-bit' supplementary.
16897
168982008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16899
16900 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16901 operations, to avoid having the difference between pointers
16902 overflow.
16903
169042008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16905
16906 * indent.c (check_display_width): New fun.
16907 (scan_for_column): Use it.
16908
16909 * data.c (syms_of_data): Mark most-positive-fixnum and
16910 most-negative-fixnum as constants.
16911
16912 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16913
16914 * indent.c (scan_for_column): Extract from current_column_1.
16915 Merge with the same code from Fmove_to_column.
16916 (current_column_1, Fmove_to_column): Use it.
16917
169182008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16919
16920 * keymap.c (map_keymap_internal): New fun.
16921 (map_keymap): Use it.
16922 (Fmap_keymap_internal): New fun.
16923 (Fmap_keymap): Remove left-out test from before make_save_value.
16924
16925 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16926
16927 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16928 Use XCAR/XCDR.
16929
16930 * process.h (struct Lisp_Process): Remove filter_multibyte.
16931 * process.c (QCfilter_multibyte): Remove.
16932 (setup_process_coding_systems): Don't use filter_multibyte.
16933 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16934 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16935 (Fset_process_filter_multibyte): Change the coding-system to
16936 approximate the previous behavior.
16937 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16938 coding-system.
16939
16940 * coding.c (decode_coding_object): When not decoding into a buffer,
16941 obey the coding system's preference of (uni|multi)byte.
16942
169432008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16944
16945 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16946 every char is changed and has a different byte-length.
16947 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16948 Fix int -> EMACS_INT.
16949
169502008-03-23 David Hansen <david.hansen@gmx.net>
16951
16952 * dbusbind.c (xd_read_message): Remove extra copying of message
16953 strings. Check for NULL `interface' or `member'.
16954
169552008-03-22 Eli Zaretskii <eliz@gnu.org>
16956
16957 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16958 cFileName a file name that includes `?' characters, use the 8+3
16959 alias in cAlternateFileName instead.
16960
169612008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16962
16963 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16964
169652008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16966
16967 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16968 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16969 work on current_buffer only instead (that was already the case
16970 for some of the code anyway).
16971 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16972 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16973 (SET_PT, SET_PT_BOTH): Adjust.
16974 * intervals.h (set_point, temp_set_point, set_point_both)
16975 (temp_set_point_both): Remove redundant declarations.
16976
169772008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16978
16979 * fileio.c (Finsert_file_contents):
16980 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16981 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16982 when buffer != current_buffer anyway.
16983
169842008-03-20 Andreas Schwab <schwab@suse.de>
16985
16986 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16987 as default.
16988
169892008-03-19 Jason Rumney <jasonr@gnu.org>
16990
16991 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16992 (syms_of_w32fns): Initialize them.
16993 (HOURGLASS_ID): New constant.
16994 (x_window_to_frame): Don't check hourglass_window.
16995 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16996 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16997 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16998 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16999 Only change the cursor if hourglass is not active.
17000 (Fx_create_frame): Initialize frame's current_cursor.
17001 (hourglass_atimer): Remove.
17002 (hourglass_started): New function.
17003 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17004 (show_hourglass): Adapt to w32, changing argument to frame.
17005
17006 * w32term.h (struct w32_output): Remove hourglass_window.
17007 Add current_cursor.
17008
17009 * eval.c (call_debugger, Fsignal):
17010 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17011 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17012 (Fexecute_extended_command, cancel_hourglass_unwind):
17013 * minibuf.c (read_minibuf):
17014 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17015
170162008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17017
17018 * window.c (run_funs): New fun.
17019 (run_window_configuration_change_hook): Use it to run the buffer-local
17020 and the global part of the hook.
17021
17022 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17023 (unwind_format_mode_line): Restore selected window.
17024 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17025
170262008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17027
17028 * editfns.c (Fchar_equal): Check they are valid characters.
17029
17030 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17031
170322008-03-17 Andreas Schwab <schwab@suse.de>
17033
17034 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17035 against a charset.
17036
17037 * lisp.h (Fbuffer_list): Declare.
17038
170392008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17040
aac0c6e3
MR
17041 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17042 handlebox_widget is != 0.
17043
170442008-03-16 Juri Linkov <juri@jurta.org>
17045
17046 * callint.c (Fcall_interactively): For interactive code letters
17047 'b' and 'B' put the buffer list into the list of default "future"
17048 values of the minibuffer.
17049
170502008-03-16 Andreas Schwab <schwab@suse.de>
17051
17052 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17053 modifiers.
17054
17055 * regex.c (re_match_2_internal): Correct matching of a charset
17056 against latin-1 characters.
17057
170582008-03-16 Kenichi Handa <handa@m17n.org>
17059
17060 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17061 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17062 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17063 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17064 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17065 CHAR_STRING_ADVANCE.
17066 (produce_chars): Fix for the case that the source and the
17067 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17068 instead of CHAR_STRING_ADVANCE.
17069 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17070 STRING_CHAR_ADVANCE.
17071
170722008-03-15 Andreas Schwab <schwab@suse.de>
17073
17074 * regex.c (re_match_2_internal): Correct matching of eight bit
17075 characters in unibyte strings.
17076
170772008-03-15 Martin Rudalics <rudalics@gmx.at>
17078
17079 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17080 at end of range when it coincides with the end of the buffer.
17081
170822008-03-14 Eli Zaretskii <eliz@gnu.org>
17083
17084 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17085
17086 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17087
170882008-03-14 Jason Rumney <jasonr@gnu.org>
17089
17090 * editfns.c (initial_tz): New variable.
17091 (syms_of_editfns): Initialize it.
17092 (Fset_time_zone_rule): Set it when first called.
17093 Use it when TZSTRING is nil.
17094
17095 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17096 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17097 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17098 (globals_of_w32fns): Initialize them.
17099 (compute_tip_xy): Use them to position tooltips.
17100
171012008-03-14 Glenn Morris <rgm@gnu.org>
17102
17103 * emacs.c (main): Revert previous change.
17104 (standard_args): Revert -internal-script back to -scriptload,
17105 and remove the long-option form.
17106
171072008-03-13 Glenn Morris <rgm@gnu.org>
17108
17109 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17110 Remove option -enable-font-backend.
17111
171122008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17113
17114 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17115
171162008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17117
17118 * xterm.c (x_connection_closed): For GTK: If this is the last
17119 terminal just exit without closing the display.
17120
171212008-03-11 Jason Rumney <jasonr@gnu.org>
17122
17123 * w32font.c (w32font_full_name): Use floor to round.
17124
f0131492 171252008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17126
17127 * sound.c (alsa_configure): Declare vol at beginning of block.
17128
17129 * fontset.c (Ffontset_info): Remove extra semicolon.
17130
171312008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17132
17133 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17134 size of resulting string.
17135
171362008-03-10 Jason Rumney <jasonr@gnu.org>
17137
17138 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17139
171402008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17141
17142 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17143 Don't pretend as if characters with display property haven't been
17144 consumed for string-replacing-string case.
17145
171462008-03-08 Kim F. Storm <storm@cua.dk>
17147
17148 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17149 (get_next_display_element, next_element_from_string)
17150 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17151
171522008-03-08 Andreas Schwab <schwab@suse.de>
17153
17154 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17155
171562008-03-06 Jason Rumney <jasonr@gnu.org>
17157
17158 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17159 when charset not specified. Only translate ANSI to unicode when
17160 font_type is truetype.
17161 (w32font_coverage_ok): New function.
17162 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17163
171642008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17165
17166 * lread.c (Fread_char): Resolve modifiers.
17167 (Fread_char_exclusive): Likewise.
17168
17169 * character.c (char_resolve_modifier_mask): New function.
17170 (char_string): Use char_resolve_modifier_mask.
17171 (Fchar_resolve_modifiers): New function.
17172 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17173 function.
17174
171752008-03-04 Jason Rumney <jasonr@gnu.org>
17176
17177 * makefile.w32-in: Always include w32font.c in the build.
17178 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17179
171802008-03-04 Andreas Schwab <schwab@suse.de>
17181
17182 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17183 (versionclean): Likewise.
17184
171852008-03-04 Juanma Barranquero <lekktu@gmail.com>
17186
17187 * .cvsignore: Add oo.
17188
171892008-03-03 Andreas Schwab <schwab@suse.de>
17190
17191 * coding.c (decode_coding_object): Inhibit gap shrinking while
17192 decoding in place.
17193
171942008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17195
17196 * w32term.c: Remove unused include "gnu.h".
17197 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17198
17199 * gnu.h: Rename to ...
17200 * emacs-icon.h: ... this.
17201 * xterm.c: Use emacs-icon.h instead of gnu.h.
17202 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17203
172042008-03-03 Juanma Barranquero <lekktu@gmail.com>
17205
17206 * w32font.c: Include math.h.
17207
172082008-03-03 Jason Rumney <jasonr@gnu.org>
17209
17210 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17211 Compute options separately.
17212 (w32font_open_internal): Set glyph_idx before caching metrics.
17213
17214 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17215 Define if system headers don't.
17216 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17217 (w32font_encode_char): Don't declare here.
17218
17219 * w32font.c (Quniscribe, QCformat): New symbols.
17220 (syms_of_w32font): Define them.
17221 (w32font_has_char): Indicate uncertainty.
17222 (w32font_encode_char): Encode as glyph point. Make static.
17223 (recompute_cached_metrics): New function.
17224 (w32font_open_internal): Use it. Set font to use glyph points
17225 initially. Set format based on type of font.
17226 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17227 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17228 on it. Set format based on information available here.
17229 (add_font_entity_to_list): Identify backend based on opentype_only.
17230
172312008-03-02 Andreas Schwab <schwab@suse.de>
17232
17233 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17234
17235 * coding.c (decode_coding_big5, produce_chars):
17236 Fix typos in last change.
17237
172382008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17239
17240 * gnu.h: New icon.
17241
172422008-03-02 Kenichi Handa <handa@m17n.org>
17243
17244 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17245 `dos', don't decode '\r' if that is the last in the source.
17246 (decode_coding_utf_16, decode_coding_emacs_mule)
17247 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17248 (decode_coding_raw_text, decode_coding_charset): Likewise.
17249 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17250
172512008-03-01 Jason Rumney <jasonr@gnu.org>
17252
17253 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17254
172552008-03-01 Kim F. Storm <storm@cua.dk>
17256
17257 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17258
172592008-03-01 Jason Rumney <jasonr@gnu.org>
17260
17261 * w32font.c (w32font_full_name): New function.
17262 (w32font_open_internal): Use it.
17263
172642008-03-01 Kim F. Storm <storm@cua.dk>
17265
17266 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17267
172682008-03-01 Jason Rumney <jasonr@gnu.org>
17269
17270 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17271
172722008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17273
17274 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17275 xg_frame_resized when the event is for the edit widget.
17276
17277 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17278
17279 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17280 set_char_size.
17281 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17282 operations on widgets here. Just set frame size if needed.
17283 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17284 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17285 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17286 the whole frame.
17287 (xg_create_tool_bar): Move attachment of the tool bar to
17288 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17289 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17290
172912008-03-01 Jason Rumney <jasonr@gnu.org>
17292
17293 * w32fns.c (w32_msg_pump): Disable debug code.
17294
172952008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17296
17297 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17298
172992008-02-29 Chong Yidong <cyd@stupidchicken.com>
17300
17301 * xdisp.c (next_overlay_string): Don't set
17302 overlay_strings_at_end_processed_p if we're currently reading from
17303 a display string.
17304
173052008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17306
17307 * xdisp.c (get_overlay_strings_1): Fix typo.
17308
173092008-02-29 Chong Yidong <cyd@stupidchicken.com>
17310
17311 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17312
173132008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17314
17315 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17316
17317 * xdisp.c (display_mode_element): Cancel the previous change.
17318 (decode_mode_spec): Likewise.
17319 (handle_auto_composed_prop): Don't make composition if it->string
17320 is a string.
17321
173222008-02-27 Kim F. Storm <storm@cua.dk>
17323
17324 * lisp.h (GLYPH): Change type from int to struct with separate char
17325 and face_id members.
17326 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17327 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17328 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17329 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17330 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17331 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17332 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17333 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17334 handle new Lisp glyph code encoding, either an integer or a cons.
17335
17336 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17337 (GLYPH_ALIAS): Delete.
17338 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17339 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17340 (GLYPH_FROM_CHAR): Replace macro by ...
17341 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17342
17343 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17344 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17345 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17346 (GLYPH_INVALID_P): New macro.
17347 (spec_glyph_lookup_face): Update prototype.
17348
17349 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17350 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17351 new glyph code encoding.
17352 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17353 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17354
17355 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17356 Adapt to new glyph type and new glyph code encoding.
17357
17358 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17359
17360 * indent.c (current_column, current_column_1, Fmove_to_column)
17361 (compute_motion): Adapt to new glyph code encoding.
17362
17363 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17364
173652008-02-27 Chong Yidong <cyd@stupidchicken.com>
17366
17367 * process.c (wait_reading_process_output): Check for window
17368 changes caused by timers.
17369 Suggested by Johan Bockgård.
17370
173712008-02-27 Glenn Morris <rgm@gnu.org>
17372
17373 * emacs.c (USAGE1): Add `--disable-font-backend'.
17374
173752008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17376
17377 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17378 is made to the buffer.
17379
173802008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17381
17382 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17383 (face_at_string_position):
17384 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17385 (face_at_string_position):
17386 * xdisp.c (display_string, next_overlay_change):
17387 * buffer.h (overlays_at):
17388 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17389 Update callers.
17390
173912008-02-26 Chong Yidong <cyd@stupidchicken.com>
17392
17393 * editfns.c (Fformat): Doc fix.
17394
173952008-02-26 Juanma Barranquero <lekktu@gmail.com>
17396
17397 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17398 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17399 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17400
174012008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17402
17403 * buffer.c (Fbuffer_swap_text): New function.
17404 (syms_of_buffer): Defsubr it.
17405
174062008-02-25 Chong Yidong <cyd@stupidchicken.com>
17407
17408 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17409
174102008-02-25 Jason Rumney <jasonr@gnu.org>
17411
17412 * w32font.c (w32font_draw): Draw one character at a time when padding.
17413
174142008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17415
17416 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17417 Handle a nil arg. Use run_window_configuration_change_hook.
17418 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17419 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17420 Use run_window_configuration_change_hook.
17421
174222008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17423
17424 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17425 1-pixel width.
17426
174272008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17428
17429 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17430 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17431 if the glyph in the font is zero pixel with.
17432
17433 * dispextern.h (struct glyph_string): New member padding_p.
17434
17435 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17436
17437 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17438
17439 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17440
17441 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17442
17443 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17444
174452008-02-25 Jason Rumney <jasonr@gnu.org>
17446
17447 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17448
174492008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17450
17451 Allow fine-grained image-cache flushing.
17452 * dispextern.h (struct image): Add `dependencies' field.
17453 (clear_image_caches): Change arg to Lisp_Object.
17454 * image.c (make_image): Initialize `dependencies' field.
17455 (clear_image_cache): Change arg to allow fine-grained flushing.
17456 Perform the flush even if image-cache-eviction-delay is nil.
17457 (clear_image_caches): Change arg to Lisp_Object.
17458 (Fclear_image_cache): Expand meaning of the argument.
17459 (mark_image): Mark `dependencies' field.
17460 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17461 (lface_hash): Use XHASH rather than XFASTINT.
17462 (face_at_buffer_position): Fix int -> EMACS_INT position.
17463 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17464 (select_frame_for_redisplay): Remove code duplication.
17465 (redisplay_internal): Adapt arg to call to clear_image_caches.
17466
174672008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17468
17469 * s/vms4-0.h:
17470 * s/vms4-2.h:
17471 * s/vms4-4.h:
17472 * s/vms5-5.h: Remove, unused.
17473
17474 * s/irix5-2.h:
17475 * s/irix6-0.h:
17476 * s/riscos5.h:
17477 * s/mach-bsd4-3.h:
17478 * m/mips4.h: Remove files for obsolete systems.
17479
17480 * Makefile.in:
17481 * filelock.c:
17482 * unexmips.c:
17483 * m/hp9000s300.h:
17484 * m/iris4d.h:
17485 * s/aix3-1.h:
17486 * s/hpux.h:
17487 * s/msdos.h:
17488 * s/usg5-0.h:
17489 * s/usg5-2-2.h:
17490 * s/usg5-2.h:
17491 * s/usg5-3.h: Remove references to obsolete variables.
17492
17493 * s/irix5-0.h: Remove, move all the contents ...
17494 * s/irix6-5.h: ... here. Simplify.
17495 * config.in: Regenerate.
17496
174972008-02-24 Jason Rumney <jasonr@gnu.org>
17498
17499 * w32term.c (x_draw_glyph_string_background): Clear the background
17500 manually when cleartype is in use.
17501 (x_draw_glyph_string_foreground): Draw text transparently when
17502 cleartype is in use.
17503
17504 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17505 a font into it unless we have to.
17506
175072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17508
17509 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17510 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17511
aac0c6e3
MR
175122008-02-18 Jason Rumney <jasonr@gnu.org>
17513
17514 * w32fns.c (Fw32_shell_execute): Encode parameters.
17515
175162008-02-09 Eli Zaretskii <eliz@gnu.org>
17517
17518 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17519
175202008-02-05 Juanma Barranquero <lekktu@gmail.com>
17521
17522 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17523
175242008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17525
17526 * xterm.c (x_set_offset): Don't change the gravity if
17527 CHANGE_GRAVITY is -1.
17528
175292008-02-23 Chong Yidong <cyd@stupidchicken.com>
17530
17531 * fileio.c (auto_save_error_occurred): New var.
17532 (auto_save_error): Set it.
17533 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17534 error occurred.
17535
175362008-02-23 Eli Zaretskii <eliz@gnu.org>
17537
17538 * w32.c (globals_of_w32): Add initializations for
17539 g_b_init_get_sid_sub_authority and
17540 g_b_init_get_sid_sub_authority_count.
17541
175422008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17543
17544 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17545 (font_parse_xlfd): Use them for sanity check.
17546 (Finternal_set_font_style_table): Make sure the table is bijective.
17547
17548 Consolidate the image_cache to the terminal struct.
17549 * termhooks.h (P_): Remove redundant def.
17550 (struct terminal): New field `image_cache'.
17551 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17552 of FRAME_X_IMAGE_CACHE.
17553 * xterm.h (struct x_display_info): Remove image_cache field.
17554 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17555 * w32term.h (struct w32_display_info): Remove image_cache field.
17556 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17557 * macterm.h (struct mac_display_info): Remove image_cache field.
17558 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17559 * xterm.c (x_term_init):
17560 * w32term.c (w32_term_init):
17561 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17562 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17563 Remove declarations.
17564 (clear_image_caches, mark_image_cache): New declarations.
17565 * xfaces.c (clear_face_cache):
17566 * xdisp.c (redisplay_internal): Use clear_image_caches.
17567 * image.c (clear_image_cache): Don't check that a frame is on
17568 a window-system before checking if it shares the same cache.
17569 (clear_image_caches): New function.
17570 (Fclear_image_cache): Use it.
17571 (mark_image): Move from allo.c.
17572 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17573 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17574 (mark_object): Don't call mark_image_cache for frames.
17575 (mark_terminals): Call mark_image_cache.
17576
17577 * lisp.h (Fdelete_terminal): Declare.
17578
17579 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17580 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17581 wrong_type_argument.
17582
175832008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17584
17585 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17586 malayalam.el, and tamil.el. Add sinhala.el.
17587
175882008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17589
17590 * xterm.c (x_connection_closed): Consolidate identical tests.
17591 (x_delete_terminal): Don't crash if called via x_connection_closed.
17592
175932008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17594
17595 * xdisp.c (decode_mode_spec): New arg string.
17596 (display_mode_element): Adjust for the above change.
17597
175982008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17599
17600 * callint.c (Fcall_interactively): Use AREF.
17601
176022008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17603
17604 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17605
176062008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17607
17608 * xfns.c (Fx_show_tip): Set string to " " if empty.
17609
176102008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17611
17612 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17613 with Qt.
17614
176152008-02-17 Kenichi Handa <handa@m17n.org>
17616
17617 * ftfont.c (ftfont_shape): Return Lispy number.
17618
17619 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17620 for GCs.
17621 (Finternal_set_font_selection_order): Call font_update_sort_order
17622 only when enable_font_backend is set.
17623 (realize_x_face): Set face->font_info to that of default face only
17624 when enable_font_backend is set.
17625
17626 * xdisp.c (handle_composition_prop): Set it->c to the fist
17627 character of the composed region.
17628 (fill_composite_glyph_string): Set base_face->font_info to
17629 s->font_info. Get a face for ascii from base_face->ascii_face.
17630 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17631 with a face already decided.
17632 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17633 non-negative.
17634 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17635 call font_prepare_composition unconditionally.
17636
17637 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17638
17639 * xterm.h (struct x_display_info): New member font.
17640
17641 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17642 (x_set_mouse_face_gc, x_new_font): Likewise.
17643 (x_term_init): Setup display_info->font.
17644 (x_delete_terminal): Free display_info->font.
17645
17646 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17647
17648 * ftxfont.c (ftxfont_default_fid): Delete it.
17649 (ftxfont_open): Set xfont->fid to 0.
17650 (ftxfont_end_for_frame): Clear data specific to the frame and the
17651 font-driver.
17652
17653 * xftfont.c (xftfont_default_fid): Delete it.
17654 (xftfont_open): Set xfont->fid to 0.
17655
17656 * fontset.c (FONTSET_OBJLIST): New macro.
17657 (fontset_find_font): Update font-object list of the fontset.
17658 (free_realized_fontset): New function.
17659 (free_face_fontset): Call free_realized_fontset.
17660 (Ffont_info): Call font_close_object only when enable_font_backend
17661 is set.
17662
17663 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17664 [HAVE_NTGUI]: Include w32term.h.
17665 [MAC_OS]: Include macterm.ch.
17666 (font_otf_ValueRecord): Use make_number.
17667 (font_finish_cache): Fix handling of reference count.
17668 (font_clear_cache): Update num_fonts.
17669 (font_open_entity): Update smallest_char_width and
17670 smallest_font_height of the frame.
17671 (font_close_object): Update num_fonts.
17672 (Fclear_font_cache): Fix finding the target cache data.
17673
176742008-02-16 Glenn Morris <rgm@gnu.org>
17675
17676 * fontset.c (Finternal_char_font): Fix compilation warning.
17677
176782008-02-16 Eli Zaretskii <eliz@gnu.org>
17679
17680 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17681 instead of char arrays. Enlarge the size of array passed to
17682 get_token_information.
17683
17684 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17685 warnings.
17686
176872008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17688
17689 * .gdbinit: Don't set `args', it breaks gdb --args.
17690
176912008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17692
17693 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17694 within a narrowed buffer.
17695
176962008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17697
17698 * coding.c (decode_coding_object, encode_coding_object):
17699 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17700
177012008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17702
17703 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17704 hardcoding 1.
17705 (detect_coding_system):
17706 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17707 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17708 * insdel.c (insert_from_gap):
17709 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17710 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17711 (string_to_multibyte):
17712 * character.c (chars_in_text, multibyte_chars_in_text):
17713 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17714
17715 * character.h (FETCH_STRING_CHAR_ADVANCE)
17716 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17717 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17718 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17719
17720 * casefiddle.c (casify_region): Only call after-change and composition
17721 functions on the part of the region that was changed.
17722
17723 * keyboard.c (read_avail_input):
17724 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17725
177262008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17727
17728 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17729 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17730
177312008-02-11 Juanma Barranquero <lekktu@gmail.com>
17732
17733 * w32menu.c (push_submenu_start, push_submenu_end)
17734 (push_left_right_boundary, push_menu_pane, push_menu_item):
17735 * keyboard.c (read_key_sequence): Don't pass args with side effects
17736 to AREF, it fails when compiling with -DENABLE_CHECKING.
17737
177382008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17739
17740 * Makefile.in (${lispsource}international/charprop.el):
17741 Delete this target.
17742
17743 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17744 emacs-unicode-2.
17745
177462008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17747
17748 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17749
177502008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17751
17752 * frame.c (Qnoelisp): New symbol.
17753 (syms_of_frame): Initialize it.
17754 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17755 harmless Elisp code, from a strong `force' from x_connection_closed.
17756 * frame.h (Qnoelisp): Declare.
17757 * xterm.c (x_connection_closed): Pass `noelisp'.
17758
17759 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17760 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17761 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17762 rather than `int' for the type of `type'.
17763
177642008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17765
17766 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17767
17768 * Makefile.in (GNUC): Remove support for gcc-1.x.
17769
177702008-02-10 Richard Stallman <rms@gnu.org>
17771
17772 * lisp.h (ASET): Use AREF, not ASLOT.
17773
177742008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17775
17776 * lisp.h (ASET): Check bounds.
17777
177782008-02-10 Glenn Morris <rgm@gnu.org>
17779
17780 * buffer.c (mode-name): Doc fix.
17781
177822008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17783
17784 * Makefile.in:
17785 * emacs.c:
17786 * gmalloc.c:
17787 * keyboard.c:
17788 * lisp.h:
17789 * m/ibm370aix.h:
17790 * process.c:
17791 * regex.c:
17792 * s/hpux.h:
17793 * sysdep.c:
17794 * sysselect.h:
17795 * systty.h:
17796 * unexec.c:
17797 * w32term.c:
17798 * xsmfns.c:
17799 * xterm.c: Remove code that deals with obsolete variables.
17800
17801 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17802
17803 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17804 nothing else needs it anymore.
17805
178062008-02-09 Eli Zaretskii <eliz@gnu.org>
17807
17808 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17809 instead of unibyte_char_to_multibyte.
17810
178112008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17812
17813 * s/gnu-linux.h: Remove commented out code.
17814
17815 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17816
17817 * Makefile.in: Update what RMS says about using autoconf.
17818 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17819 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17820 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17821 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17822
178232008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17824
17825 * keymap.c (Fkey_description): Move side effect outside of macro call.
17826
17827 * xfaces.c (Finternal_make_lisp_face):
17828 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17829
17830 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17831 (syms_of_fontset): Use ASET.
17832
17833 * fns.c (concat): Move side effect outside of macro call.
17834 (hash_clear): Use ASET.
17835
178362008-02-08 Richard Stallman <rms@gnu.org>
17837
17838 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17839 If FORCE, and frame has a surrogate minibuffer for another frame,
17840 delete the other frame first.
17841
178422008-02-07 Timo Savola <timo.savola@iki.fi>
17843
17844 * xterm.c (x_detect_focus_change): Handle embed client message.
17845 (handle_one_xevent): Ditto.
17846 (handle_one_xevent): If embedded and we get a button press/release,
17847 request focus.
17848 (xembed_set_info, xembed_send_message): New functions.
17849 (x_make_frame_visible): Call xembed_set_info if embedded.
17850 (x_make_frame_invisible): Call xembed_set_info if embedded.
17851 (x_term_init): Initialize Xatom_XEMBED.
17852 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17853 (x_iconify_frame): Ditto.
17854
17855 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17856 (enum xembed_info, enum xembed_message, enum xembed_focus)
17857 (enum xembed_modifier, enum xembed_accelerator): New.
17858 (xembed_set_info, xembed_send_message): Declare.
17859 (FRAME_X_EMBEDDED_P): New.
17860
17861 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17862 gtk_plug_new.
17863
17864 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17865 window ID of a frame.
17866 (x_window): Reparent frame if embedded.
17867 (Fx_create_frame): Don't set border width if embedded.
17868
17869 * emacs.c (USAGE3): Add --parent-id.
17870 (standard_args): Ditto.
17871
178722008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17873
17874 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17875
178762008-02-07 Jim Meyering <meyering@redhat.com>
17877
17878 Use "do...while (0)", not "if (1)...else" in macro definitions.
17879 The latter provokes a warning from gcc about the empty else, when
17880 followed by ";". Also, without that trailing semicolon, it would
17881 silently swallow up any following statement.
17882 * syntax.h (SETUP_SYNTAX_TABLE)
17883 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17884 * buffer.h (DECODE_POSITION): Likewise.
17885 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17886 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17887 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17888 (FETCH_CHAR_ADVANCE): Likewise.
17889 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17890
178912008-02-07 Jim Meyering <meyering@redhat.com>
17892
17893 * lread.c [lint]: Don't include <sys/inode.h>.
17894
178952008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17896
17897 * xselect.c (x_handle_dnd_message):
17898 * xmenu.c (digest_single_submenu, xmenu_show):
17899 * xdisp.c (with_echo_area_buffer_unwind_data)
17900 (format_mode_line_unwind_data, unwind_format_mode_line)
17901 (display_menu_bar):
17902 * eval.c (Ffetch_bytecode):
17903 * doc.c (store_function_docstring):
17904 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17905 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17906 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17907
179082008-02-07 Kenichi Handa <handa@m17n.org>
17909
17910 * ftxfont.c (ftxfont_open): Don't set
17911 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17912
17913 * ftfont.c (ftfont_open): Fix previous change.
17914
179152008-02-06 Jason Rumney <jasonr@gnu.org>
17916
17917 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17918 Use cached metrics for ASCII characters.
17919 (w32font_open_internal): Don't set font's owning_frame.
17920 Cache metrics for ASCII characters.
17921
17922 * w32font.h (struct w32font_info): Add ascii_metrics.
17923 Remove owning_frame.
17924
179252008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17926
17927 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17928 to negative value.
17929
17930 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17931
17932 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17933
17934 * charset.c (syms_of_charset): Set QCtest and Qeq.
17935
179362008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17937
17938 * process.c (Fstart_process):
17939 * callproc.c (Fcall_process): Handle the case where
17940 Funhandled_file_name_directory returns nil.
17941
17942 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17943 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17944 * font.c (check_gstring): Use them and AREF to access the vector before
17945 we know it's really a gstring.
17946 (Ffont_shape_text): Fix typo.
46e722a9 17947 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17948
17949 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17950 Declare.
17951
17952 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17953
179542008-02-05 Jason Rumney <jasonr@gnu.org>
17955
17956 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17957 Set smallest_font_height and smallest_char_width in display info.
17958
179592008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17960
17961 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17962
179632008-02-05 Miles Bader <miles@gnu.org>
17964
17965 * xfaces.c (get_lface_attributes, merge_named_face)
17966 (lookup_named_face, lookup_derived_face, realize_named_face):
17967 Revert 2008-02-01 change by cyd@stupidchicken.com.
17968
179692008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17970
17971 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17972 fallback fonts.
17973 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17974
179752008-02-04 Jason Rumney <jasonr@gnu.org>
17976
17977 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17978 set full_name.
17979 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17980
179812008-02-03 Jason Rumney <jasonr@gnu.org>
17982
17983 * makefile.w32-in (OBJ1): Include font.o here.
17984 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17985
179862008-02-02 Jason Rumney <jasonr@gnu.org>
17987
17988 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17989
179902008-02-01 Jason Rumney <jasonr@gnu.org>
17991
17992 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17993
17994 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17995
179962008-02-01 Andreas Schwab <schwab@suse.de>
17997
17998 * Makefile.in (shortlisp, lisp): Update for rename of
17999 ../lisp/language/myanmar.el.
18000
180012008-02-01 Chong Yidong <cyd@stupidchicken.com>
18002
18003 * xfaces.c (get_lface_attributes): Delete function.
18004 (merge_named_face, lookup_named_face, lookup_derived_face)
18005 (realize_named_face): Call lface_from_face_name directly, and use
18006 the fact that merge_face_vectors does not alter its FROM argument.
18007
180082008-02-01 Jason Rumney <jasonr@gnu.org>
18009
18010 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18011 input in the default locale. Handle non-Unicode multibyte input.
18012
180132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18014
18015 * fontset.c (reorder_font_vector): Exclude nil elements from the
18016 font group. Don't try multiple fonts.
18017 (fontset_font): Adjust for the above change.
18018 (Finternal_char_font): Return nil if the found font doesn't
18019 contain the character ch.
18020
18021 * Makefile.in (lisp, shortlisp): Add cham.el.
18022
180232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18024
18025 * font.h (FONTP): Make it return 1 also for a font-object.
18026
18027 * .gdbinit (xfontset): New function.
18028
18029 * font.c (font_find_for_lface): Check if the character C is
18030 supported or not only for the first font.
18031
18032 * fontset.c (reorder_font_vector): Fix typo.
18033 (fontset_find_font): Don't add a font-spec specifying a script.
18034 Use 0 (not Qt) for the indication of empty font-group. Change the
18035 format of RFONT-DEF. Return Qt if no font in the font-group
18036 support the character.
18037 (fontset_font): Adjust for the above change. If no font was
18038 found the character, remember that.
18039 (face_for_char): Adjust for the change of RFONT-DEF.
18040 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18041 no font for the target.
18042 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18043
180442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18045
18046 * font.c (font_load_for_face): Handle the case that the font in
18047 face->lface is a string.
18048
180492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18050
18051 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18052
180532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18054
18055 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18056 Fix previous change. If the frame is not on a window system,
18057 signal an error.
18058
180592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18060
18061 * coding.c (decode_coding_object, encode_coding_object): Adjust
18062 marker positions after conversion.
18063
18064 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18065
180662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18067
18068 * font.c (font_find_for_lface): Fix the handling of the return
18069 value of font_has_char.
18070 (Ffont_shape_text): Fix previous change.
18071
18072 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18073 (fontset_ref_and_range): Delete it.
18074 (fontset_find_font): Call char_table_ref_and_range instead of
18075 FONTSET_REF_AND_RANGE.
18076 (make_fontset): Don't setup font groups of Latin here.
18077 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18078 (new_fontset_from_font): Make the specified font the default for
18079 all Latin characters.
18080
180812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18082
18083 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18084 is on a window system before accessing the fontset of the frame.
18085
180862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18087
18088 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18089
18090 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18091 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18092
18093 * font.c (Ffont_shape_text): If the font driver doesn't have a
18094 shaper function, make zero-width glyphs to have at least one-pixel
18095 width. Fix setting of `to' field of glyphs.
18096
180972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18098
18099 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18100 glyphs.
18101
18102 * font.h (struct font_driver): Improve docstring of member `shape'.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * composite.c (syms_of_composite): Fix docstring of
18107 auto-composition-function.
18108
18109 * font.h (LGLYPH_SIZE): New macro.
18110
18111 * font.c (Ffont_fill_gstring): Stop filling when a character not
18112 supported by the font is found.
18113 (Ffont_shape_text): When a shape callback function returns nil,
18114 try at most two more times with larger gstring.
18115 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18116
18117 * xdisp.c (handle_auto_composed_prop): Change the argument to
18118 auto-composition-function.
18119
18120 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18121 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18122 Lispy glyph and store it in the lgstring.
18123
18124 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18125
18126 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18127
181282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18129
18130 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18131
18132 * fontset.c (Vfont_encoding_charset_alist): New variable.
18133 (syms_of_fontset): DEFVAR it.
18134 (reorder_font_vector, fontset_find_font): Optimize for the case of
18135 no need of reordering.
18136 (face_for_char): Map the charset property by
18137 Vfont_encoding_charset_alist.
18138
181392008-02-01 Jason Rumney <jasonr@gnu.org>
18140
18141 * w32font.c (logfonts_match): Don't check adstyle here.
18142 (font_matches_spec): Check here against physical font instead.
18143 (add_font_entity_to_list): Avoid some substitutions.
18144
18145 * font.c (font_parse_fcname): Default weight and slant to normal.
18146 (font_score): Prefer normal fonts if weight or slant unspecified.
18147 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18148 match freetype scores.
18149
181502008-02-01 Jason Rumney <jasonr@gnu.org>
18151
18152 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18153 font, as it may have been deleted.
18154 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18155 most common hyphenless variation.
18156 (logfonts_match): Check generic family.
18157 (font_matches_spec): Don't check generic family here.
18158 (fill_in_logfont): Set generic family based on adstyle.
18159
18160 * w32font.h (w32font_get_cache): Update declaration.
18161
181622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18163
18164 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18165
18166 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18167 If none of the new drivers are available, call font_update_drivers
18168 with the old drivers.
18169
18170 * w32font.c (w32font_get_cache): Adjust the argument type.
18171
18172 * xfont.c (xfont_get_cache): Adjust the argument type.
18173
18174 * font.h (struct font_driver): Change argument type of get_cache.
18175
18176 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18177
18178 * font.c (Ffont_get): Fix arguments to Fassoc.
18179 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18180 (font_clear_cache): New function.
18181 (font_list_entities, font_matching_entity): Use font_get_cache.
18182 (font_update_drivers): Call font_clear_cache when finishing a driver.
18183
18184 * fontset.c (fontset_find_font): Fix previous change.
18185
181862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18187
18188 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18189 dpyinfo->font_table.
18190 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18191 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18192
18193 * font.c (font_at): Handle the case that the arg C is negative.
18194 Handle the unibyte case.
18195 (Ffont_at): Call font_at with the arg C -1.
18196
18197 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18198 the position here, and call font_at with the arg C -1.
18199 Don't check the range of the existing composition at the point.
18200
182012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18202
18203 * fontset.c (fontset_add): New args charset_id and family.
18204 Change caller.
18205 (load_font_get_repertory, fontset_find_font): Assume that
18206 font_spec is always a font-spec object.
18207 (Fset_fontset_font): Always store a font-spec object in a fontset.
18208
18209 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18210 instead of get_property_and_range.
18211
182122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18213
18214 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18215 (xftfont_open): Don't keep locking face.
18216 (xftfont_close): Don't unlock face.
18217 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18218
18219 * fontset.c (fontset_find_font): Don't prefer a font of
18220 supplementary charset.
18221
182222008-02-01 Kenichi Handa <handa@m17n.org>
18223
18224 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18225 script, langsys_tag to langsys, new member script.
18226 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18227 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18228 listing to the script specified in that property. Fix arg to
18229 OTF_check_features.
18230
182312008-02-01 Jason Rumney <jasonr@gnu.org>
18232
18233 * w32font.h: New file.
18234
18235 * w32font.c: Include it.
18236 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18237 (w32font_open): Set owning_frame.
18238 (w32font_text_extents): Use owning_frame.
18239 (struct font_callback_data): Add opentype_only field.
18240 (add_font_entity_to_list): Use it to filter fonts.
18241 Don't check against full name.
18242 (w32font_list_internal): New function.
18243 (w32font_list): Use it.
18244 (w32font_match_internal): New function.
18245 (w32font_match): Use it.
18246 (w32font_open_internal): New function.
18247 (w32font_open): Use it.
18248 (w32font_get_cache, w32font_close, w32font_has_char)
18249 (w32font_encode_char, w32font_text_extents, w32font_draw):
18250 Make non-static.
18251
18252 * makefile.w32-in (w32font.o): Depend on w32font.h.
18253
182542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18255
18256 * charset.c (Fdefine_charset_internal): Record a supplementary
18257 charset at the tail of Vcharset_order_list.
18258
18259 * font.c (Ffont_shape_text): Fix the return value.
18260
18261 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18262
18263 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18264
182652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18266
18267 * ftfont.c (struct OpenTypeSpec): New struct.
18268 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18269 (ftfont_get_open_type_spec): New function.
18270 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18271
18272 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18273
182742008-02-01 Jason Rumney <jasonr@gnu.org>
18275
18276 * w32font.c (add_font_entity_to_list): Compare only the beginning
18277 of full name.
18278
182792008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18282 Never return HANDLED_RECOMPUTE_PROPS.
18283
182842008-02-01 Kenichi Handa <handa@m17n.org>
18285
18286 * font.c (font_gstring_produce): Delete it.
18287
18288 * composite.h (COMPOSITION_METHOD):
18289 Handle COMPOSITION_WITH_GLYPH_STRING.
18290
182912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18292
18293 * xfont.c (Qx): Delete.
18294 (syms_of_xfont): Don't initialize Qx.
18295
18296 * composite.h (enum composition_method):
18297 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18298
182992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18300
18301 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18302 (choose_face_font): Accept new form of font-spec.
18303
18304 * frame.h (font_driver_list): Declare it unconditionally.
18305 (struct frame): Define members font_driver_list and font_data_list
18306 unconditionally.
18307
18308 * fontset.c: Include "font.h" unconditionally.
18309 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18310 (Fset_fontset_font): Accept a font-spec object.
18311
18312 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18313 PIXEL_SIZE part a wild card.
18314
18315 * dispextern.h (struct glyph_string): Define members clip and
18316 num_clips unconditionally.
18317 (struct face): Define members font_info and extra unconditionally.
18318
18319 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18320 ftfont_info only when HAVE_LIBOTF is defined.
18321
183222008-02-01 Andreas Schwab <schwab@suse.de>
18323
18324 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18325 and end.
18326
183272008-02-01 Jason Rumney <jasonr@gnu.org>
18328
18329 * w32font.c (w32font_driver): Add new fields.
18330
183312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18332
18333 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18334 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18335 (LIBES): Add @M17N_FLT_CFLAGS@.
18336
18337 * composite.c (compose_text): Don't treat the new style
18338 composition specially.
18339
18340 * emacs.c (main): Call syms_of_font unconditionally.
18341
18342 * font.h (FONT_ENTITY_NOT_LOADABLE)
18343 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18344 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18345 (struct font_driver): New member shape.
18346 (font_registry_charsets): Extern it.
18347 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18348 (font_otf_capability, font_drive_otf): Delete their externs.
18349
18350 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18351 (font_charset_alist, font_registry_charsets): Move from xfont.c
18352 and rename.
18353 (font_prop_validate_otf): New function.
18354 (font_property_table): Register it for QCotf.
18355 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18356 (font_drive_otf): Delete.
18357 (font_prepare_composition): New arg F. Adjust for the change of
18358 lispy gstring.
18359 (font_find_for_lface): New arg C.
18360 (font_load_for_face): Adjust for the change of font_find_for_lface.
18361 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18362 lispy gstring.
18363 (Ffont_shape_text): New function.
18364 (Fopen_font): If the font size is not given, use 12-pixel.
18365 (Ffont_at): New arg STRING.
18366 (syms_of_font): Initalize font_charset_alist.
18367 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18368 conditionally.
18369
18370 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18371 fonts of the same font-spec. Change the format of RFONT-DEF.
18372 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18373 Adjust for the change of RFONT-DEF.
18374 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18375
18376 * ftfont.h: New file.
18377
18378 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18379 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18380 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18381 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18382 font_otf_capability and font_drive_otf, set ftfont_shape.
18383 (ftfont_list): Adjust for the change of :otf property value.
18384 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18385 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18386 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18387 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18388 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18389 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18390
18391 * w32term.c (x_draw_composite_glyph_string_foreground):
18392 Adjust for the change of lispy gstring.
18393
18394 * xdisp.c (handle_composition_prop): Adjust for the change of
18395 lispy gstring. Call a function for auto-composition with the
18396 third arg it->window.
18397 (fill_composite_glyph_string): Adjust for the change of lispy string.
18398 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18399
18400 * xfaces.c (set_font_frame_param): Adjust for the change of
18401 font_find_for_lface.
18402
18403 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18404 (xfont_registry_charsets): Likewise. Change caller.
18405 (syms_of_xfont): Don't handle x_font_charset_alist.
18406
18407 * xftfont.c: Include "ftfont.h".
18408 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18409 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18410 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18411 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18412 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18413 Set xftfont_driver.shape to xftfont_shape.
18414
18415 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18416 the change of lispy gstring.
18417
184182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18419
18420 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18421
184222008-02-01 Jason Rumney <jasonr@gnu.org>
18423
18424 * w32font.c (w32font_draw): Fill background manually.
18425
184262008-02-01 Jason Rumney <jasonr@gnu.org>
18427
18428 * font.c (Qfontp): Remove unused symbol.
18429 (QCantialias): New symbol.
18430 (syms_of_font): Define it.
18431 (font_property_table): Set a validator for QCantialias.
18432
18433 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18434 Define if not already.
18435 (QCfamily): Share with xfaces.c.
18436 (Qstandard, Qsubpixel, Qnatural): New symbols.
18437 (syms_of_w32font): Define them. Don't define QCfamily here.
18438 (w32_antialias_type, lispy_antialias_type): New functions.
18439 (w32_enumfont_pattern_entity): New arg requested_font.
18440 Set antialias parameter if non-default was requested.
18441 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18442
184432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18444
18445 * lread.c (read1): Undo the previous change.
18446
184472008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18448
18449 * frame.c (Fdelete_frame): Call font_update_drivers only when
18450 USE_FONT_BACKEND is defined.
18451
184522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18453
18454 * font.h (struct font_bitmap): New member bits_per_pixel.
18455 (struct font_driver): New members start_for_frame and end_for_frame.
18456 (struct font_data_list): New struct.
18457 (font_put_frame_data, font_get_frame_data): Extern them.
18458
18459 * frame.h (struct frame): New member font_data_list.
18460
18461 * font.c (font_update_drivers): Call driver->start_for_frame and
18462 driver->end_for_frame at proper timings.
18463 (font_put_frame_data, font_get_frame_data): New functions.
18464 (Ffont_spec): Add usage in the docstring.
18465
18466 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18467 (Fdelete_frame): Call font_update_drivers.
18468
18469 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18470 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18471 (xftfont_get_xft_draw): New function.
18472 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18473 (xftfont_end_for_frame): New function.
18474 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18475
18476 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18477 Change argument. Cache GCs in the per-frame data.
18478 (struct ftxfont_frame_data): New struct.
18479 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18480 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18481 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18482 (ftxfont_end_for_frame): New function.
18483 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18484
18485 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18486
184872008-02-01 Kenichi Handa <handa@m17n.org>
18488
18489 * xselect.c (Vselection_coding_system)
18490 (Vnext_selection_coding_system): Delete them.
18491 (syms_of_xselect): Don't declare selection-coding-system and
18492 next-selection-coding-system. They are declared in select.el.
18493
184942008-02-01 Jason Rumney <jasonr@gnu.org>
18495
18496 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18497
18498 * w32fns.c: Include imm.h.
18499 (get_composition_string_fn, get_ime_context_fn): New optional
18500 system functions.
18501 (globals_of_w32fns): Load them from imm32.dll.
18502 (ignore_ime_char): New flag.
18503 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18504 WM_IME_ENDCOMPOSITION messages.
18505
18506 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18507 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18508
185092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18510
18511 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18512 (READCHAR_REPORT_MULTIBYTE): New macro.
18513 (readchar): New 2nd arg MULTIBYTE.
18514 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18515 Make symbol's name multibyte according to the multibyteness of the
18516 source.
18517
185182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18519
18520 * xfaces.c (face_for_overlay_string): Call lookup_face with
18521 correct arguments (fix of synching with the trunk).
18522
185232008-02-01 Kenichi Handa <handa@m17n.org>
18524
18525 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18526 (font_prop_validate_non_neg, font_prop_validate_spacing):
18527 Delete argument prop_index.
18528 (font_property_table): Change arguments to validater. Change Callers.
18529 (font_lispy_object): Delete.
18530 (font_at): Use font_find_object instead fo font_lispy_object.
18531
185322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18533
18534 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18535 and file names.
18536
185372008-02-01 Jason Rumney <jasonr@gnu.org>
18538
18539 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18540 (font_matches_spec): Remove debug output.
18541 (add_font_entity_to_list): Avoid using substituted fonts.
18542
185432008-02-01 Jason Rumney <jasonr@gnu.org>
18544
18545 * doc.c (Fsnarf_documentation):
18546 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18547
185482008-02-01 Miles Bader <miles@gnu.org>
18549
18550 * dispextern.h (struct glyph_row): Only define "clip" field if
18551 HAVE_WINDOW_SYSTEM is defined.
18552
185532008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18554
18555 Fix up multi-tty merge.
18556
18557 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18558 and indentation.
18559
18560 * xfaces.c (free_realized_face, clear_face_gcs):
18561 Include font_done_for_face in the input_blocked section, just in case.
18562
18563 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18564 (get_char_face_and_encoding): Undo last change and remove the *other*
18565 duplicate definition (i.e. keep the one that's better scoped and that
18566 includes code for the font-backend).
18567
18568 * terminal.c (create_terminal): Default keyboard_coding to
18569 `no-conversion' and terminal_coding to `undecided'.
18570
18571 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18572
18573 * fontset.c (free_realized_fontsets): Check that the table entry does
18574 contain a fontset before trying to compare it to `base'.
18575
18576 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18577 syms_of_charset, and syms_of_coding earlier because init_window_once
18578 now needs Vcoding_system_hash_table to be setup.
18579
18580 * coding.h (default_buffer_file_coding): Remove.
18581
18582 * coding.c (default_buffer_file_coding): Remove.
18583 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18584 than ->symbol, and use the terminal-local coding system.
18585 (syms_of_coding): Don't setup the coding-systems that are not
18586 terminal-local.
18587 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18588
18589 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18590 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18591
18592 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18593 in chartab.c and were re-added here by mistake.
18594 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18595
18596 * doc.c (Fsnarf_documentation):
18597 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18598 src to etc.
18599
18600 * ChangeLog.10: Add mistakenly removed entry.
18601
186022008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18603
18604 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18605
186062008-02-01 Miles Bader <miles@gnu.org>
18607
18608 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18609 Add extra args to FACE_FOR_CHAR.
18610
186112008-02-01 Kenichi Handa <handa@m17n.org>
18612
18613 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18614 in sequence.
18615
18616 * chartab.c (map_sub_char_table, map_char_table): If the range
18617 contains just one character, call the function with that character
18618 even if the depth is not 3.
18619
186202008-02-01 Jason Rumney <jasonr@gnu.org>
18621
18622 * w32font.c (w32font_text_extents): Calculate metrics for the
18623 whole string.
18624
186252008-02-01 Jason Rumney <jasonr@gnu.org>
18626
18627 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18628
186292008-02-01 Jason Rumney <jasonr@gnu.org>
18630
18631 * w32term.c (x_set_glyph_string_clipping): Use
18632 get_glyph_string_clip_rects.
18633 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18634 Adjust for the change of struct glyph_string.
18635
18636 * w32font.c (w32font_draw): Do clipping here.
18637
186382008-02-01 Kenichi Handa <handa@m17n.org>
18639
18640 * xftfont.c (xftfont_draw): Adjust for the change of struct
18641 glyph_string.
18642
18643 * xterm.c (x_set_glyph_string_clipping): Use
18644 get_glyph_string_clip_rects.
18645 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18646 Adjust for the change of struct glyph_string.
18647
18648 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18649 the resulting clip(s}.
18650 (expose_overlaps): Add arg r. Change callers. Set it to
18651 row->clip temporarily.
18652 (expose_window): Redraw rows overlapping the exposed area.
18653
18654 * dispextern.h (struct glyph_row): New member clip.
18655 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18656 clip_height, new member clip, and num_clips.
18657
186582008-02-01 Kenichi Handa <handa@m17n.org>
18659
18660 * data.c (Fchar_or_string_p): Fix docstring.
18661
186622008-02-01 Kenichi Handa <handa@m17n.org>
18663
18664 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18665 create a temporary XftDraw object.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * font.c (Ffontp): Fix docstring.
18670
18671 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18672 strong evidence of ISO-2022.
18673
186742008-02-01 Kenichi Handa <handa@m17n.org>
18675
18676 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18677 SYNTAX_ENTRY_FOLLOW_PARENT.
18678
186792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18680
18681 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18682 its type.
18683 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18684 Update to the new type of weak_hash_tables and next_weak.
18685
18686 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18687 a plain C pointer to Lisp_Hash_Table.
18688
18689 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18690 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18691 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18692 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18693 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18694 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18695 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18696 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18697 (GC_EQ): Remove since they've been identical to their non-GC_
18698 alter-egos ever since the markbit was eradicated.
18699
18700 * alloc.c:
18701 * buffer.c:
18702 * buffer.h:
18703 * data.c:
18704 * fileio.c:
18705 * filelock.c:
18706 * fns.c:
18707 * frame.h:
18708 * lisp.h:
18709 * macterm.c:
18710 * print.c:
18711 * process.c:
18712 * w32fns.c:
18713 * w32menu.c:
18714 * w32term.c:
18715 * xfns.c:
18716 * xmenu.c:
18717 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18718
187192008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * chartab.c (map_sub_char_table): Make it work for the top-level
18722 char-table. Fix handling of parent char-table.
18723 (map_char_table): Adjust for the above change.
18724
187252008-02-01 Jason Rumney <jasonr@gnu.org>
18726
18727 * w32font.c (Qgdi): Rename from Qw32.
18728
187292008-02-01 Jason Rumney <jasonr@gnu.org>
18730
18731 * w32bdf.c (get_quoted_string): Make function static.
18732
187332008-02-01 Kenichi Handa <handa@m17n.org>
18734
18735 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18736 bigger ascent and descent than those of the font, use them as
18737 font's ascent and descent.
18738
187392008-02-01 Kenichi Handa <handa@m17n.org>
18740
18741 * Makefile.in (${lispsource}international/charprop.el): Move this
18742 target within "#ifdef HAVE_UNIDATA" and "#endif".
18743
187442008-02-01 Kenichi Handa <handa@m17n.org>
18745
18746 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18747 (shortlisp): Add ../lisp/language/tai-viet.el.
18748
187492008-02-01 Ulrich Mueller <ulm@gentoo.org>
18750
18751 * Makefile.in (${lispsource}international/charprop.el): Depend on
18752 temacs${EXEEXT}.
18753
187542008-02-01 Jason Rumney <jasonr@gnu.org>
18755
18756 * w32font.c (w32font_close): Delete the GDI font object.
18757
18758 * w32menu.c: Include character.h.
18759
18760 * w32proc.c: Likewise.
18761
18762 * w32select.c: Likewise.
18763
18764 * makefile.w32-in (w32proc.o): Depend on character.h.
18765
187662008-02-01 Jason Rumney <jasonr@gnu.org>
18767
18768 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18769
18770 * w32menu.c (syms_of_w32menu): Likewise.
18771
18772 * w32proc.c (syms_of_ntproc): Likewise.
18773
18774 * w32select.c (syms_of_w32select): Likewise.
18775
18776 * w32term.c (syms_of_w32term): Likewise.
18777
187782008-02-01 Jason Rumney <jasonr@gnu.org>
18779
18780 * w32font.c (w32font_draw): Delete brush after using it.
18781
187822008-02-01 Jason Rumney <jasonr@gnu.org>
18783
18784 * w32font.c (w32font_open): Don't set font_idx.
18785 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18786 to font settings.
18787 (w32font_draw): Fill background explicitly.
18788
187892008-02-01 Jason Rumney <jasonr@gnu.org>
18790
18791 * w32term.c (w32_initialize): Don't call w32font_initialize.
18792
18793 * w32font.c (w32font_info): Remove subranges.
18794 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18795 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18796 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18797 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18798 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18799 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18800 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18801 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18802 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18803 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18804 New symbols.
18805 (font_callback_data): New struct.
18806 (w32font_list, w32font_match): Use it.
18807 (w32font_open): Don't populate subranges.
18808 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18809 (w32font_encode_char): Always return unicode code-point as-is.
18810 (w32font_text_extents): Supply a transformation matrix to
18811 GetGlyphOutline. Never look up by glyph index. Avoid looping
18812 twice. Use unicode version of GetTexExtentPoint32 instead of
18813 glyph index version.
18814 (set_fonts_frame): Remove.
18815 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18816 set frame parameter. Use backward compatible fake foundries.
18817 Save generic family in extra slot under QCfamily. Make width slot
18818 constant. Save QCspacing value. Save list of scripts instead of
18819 binary subranges.
18820 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18821 (add_font_entity_to_list): Use font_callback_data struct. Filter
18822 unwanted fonts.
18823 (add_one_font_entity_to_list): Use font_callback_data struct.
18824 (w32_registry): Default to iso10646_1.
18825 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18826 string font registries. Don't fill in font name if it is a generic
18827 family name, fill family instead. Use spacing, family and script
18828 extra info to fill pitch, family and charset fields.
18829 (list_all_matching_fonts): Use font_callback_data struct.
18830 (unicode_range_for_char): Remove.
18831 (font_supported_scripts): New function.
18832 (w32font_initialize): Remove.
18833 (syms_of_w32font): Update which symbols are defined.
18834
188352008-02-01 Jason Rumney <jasonr@gnu.org>
18836
18837 * font.c (font_pixel_size): Reverse assq_no_quit args.
18838
18839 * w32term.h (FONT_WIDTH): Report max width, not average.
18840 (FONT_MAX_WIDTH): Remove.
18841 (FONT_AVG_WIDTH): New macro.
18842
18843 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18844 redefinition of FONT_WIDTH.
18845
18846 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18847 (w32_cache_char_metrics): Use FONT_WIDTH.
18848
18849 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18850
188512008-02-01 Jason Rumney <jasonr@gnu.org>
18852
18853 * w32font.c (w32font_open): Make lfHeight negative.
18854
18855 * w32fns.c (x_default_font_parameter): Use new style font name.
18856 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18857
188582008-02-01 Jason Rumney <jasonr@gnu.org>
18859
18860 * w32font.c (QCsubranges): New symbol.
18861 (w32font_open, w32font_has_char): Get subranges from subproperty
18862 of extra.
18863 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18864 (syms_of_w32font): Define :subranges symbol.
18865
18866 * font.c (font_put_extra): Expose externally.
18867
18868 * font.h (font_put_extra): Move declaration from font.c.
18869
18870 * font.c (Ffont_get): Use font driver to determine otf capability.
18871 (adjust_anchor): Check if driver defines anchor_point before using.
18872
18873 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18874 (w32font_draw): Use options.
18875 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18876 Fix detection of truetype fonts.
18877 (registry_to_w32_charset): Handle charsets other than iso8859-1
18878 expressed as lisp symbols.
18879 (w32_registry): Express charset as lisp symbol.
18880 (fill_in_logfont): Reverse pixel and point height logic.
18881 Don't set width here. Set quality to default.
18882
18883 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18884 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18885
18886 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18887 Remove redundant loop and allocation.
18888
18889 * makefile.w32-in (font.o, w32font.o): New objects.
18890 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18891 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18892
18893 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18894 STORE_XCHARB a valid l-value.
18895
18896 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18897 calculations for non-Truetype fonts.
18898 (x_draw_glyph_string): Sync with xterm.c.
18899 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18900 Remove redundant code.
18901 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18902
18903 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18904 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18905
18906 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18907 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18908
18909 * w32font.c: New file for w32 font backend.
18910
189112008-02-01 Kenichi Handa <handa@m17n.org>
18912
18913 * term.c: Don't include "buffer.h" twice.
18914
189152008-02-01 Kenichi Handa <handa@m17n.org>
18916
18917 * character.c (Funibyte_string): New function.
18918 (syms_of_character): Defsubr it.
18919
189202008-02-01 Jason Rumney <jasonr@gnu.org>
18921
18922 * w32term.c [USE_FONT_BACKEND]:
18923 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18924 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18925 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18926 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18927 (x_free_frame_resources): Sync with xterm.c.
18928
189292008-02-01 Andreas Schwab <schwab@suse.de>
18930
18931 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18932 char-table size.
18933
189342008-02-01 Kenichi Handa <handa@m17n.org>
18935
18936 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18937
189382008-02-01 Kenichi Handa <handa@m17n.org>
18939
18940 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18941 font_otf_gpos, add font_drive_otf.
18942
18943 * fontset.c (fontset_find_font): Pay attention to font size
18944 specified for a font.
18945 (reorder_font_vector): Check contents of font_def.
18946
18947 * font.c (struct otf_list): Delete it.
18948 (otf_list): Make it a lisp variable.
18949 (otf_open): Use lispy otf_list.
18950 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18951 (check_otf_features): New function.
18952 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18953 New functions.
18954 (font_drive_otf): New function merging font_otf_gsub and
18955 font_otf_gpos.
18956 (font_open_for_lface): New arg spec. Change argument order.
18957 (font_load_for_face): Adjust for the change of font_open_for_lface.
18958 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18959 Ffont_otf_gpos.
18960 (syms_of_font): Staticpro otf_list. Delete defsubr of
18961 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18962
18963 * xfaces.c (set_font_frame_param): Adjust for the change of
18964 font_open_for_lface.
18965
18966 * font.h (font_open_for_lface): Adjust prototype.
18967 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18968 member otf_drive.
18969 (font_otf_gsub, font_otf_gpos): Delete externs.
18970 (font_drive_otf): Extern it.
18971
189722008-02-01 Kenichi Handa <handa@m17n.org>
18973
18974 * font.c (font_at): If the window W is not on a window system,
18975 return Qnil.
18976
18977 * coding.c (produce_chars, encode_coding): Don't call
18978 insert_from_gap if no characters to produce.
18979
189802008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18983 Fclear_face_cache.
18984
18985 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18986
189872008-02-01 Miles Bader <miles@gnu.org>
18988
18989 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18990 Parse "--disable-font-backend" option.
18991 (standard_args): Add "--disable-font-backend" option.
18992
189932008-02-01 Kenichi Handa <handa@m17n.org>
18994
18995 * fontset.c (fontset_find_font): New function.
18996 (fontset_font): Use fontset_find_font.
18997 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18998 Register the specified font for all Latin characters.
18999 (new_fontset_from_font): Register the specified font for all Latin
19000 characters.
19001 (dump_fontset): For a realized fontset, include the base fontset
19002 name in the returned vector.
19003
190042008-02-01 Kenichi Handa <handa@m17n.org>
19005
19006 * character.h (CHAR_STRING): Cast C to unsigned on calling
19007 char_string.
19008
19009 * character.c (char_string): Type of arg C changed to unsigned.
19010 Signal an error if C is an invalid character code.
19011
19012 * editfns.c (general_insert_function, Fchar_to_string):
19013 Use CHARACTERP, not INTEGERP.
19014
190152008-02-01 Kenichi Handa <handa@m17n.org>
19016
19017 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19018 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19019
19020 * regex.c (analyse_first): Fix for multibyte characters in "case
19021 charset:" and "case categoryspec:".
19022
190232008-02-01 Andreas Schwab <schwab@suse.de>
19024
19025 * Makefile.in (LIBES): Move standard libraries to the end.
19026
190272008-02-01 Kenichi Handa <handa@m17n.org>
19028
19029 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19030 nonzero, don't shrink the buffer nextb.
19031
19032 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19033
19034 * coding.c (coding_alloc_by_making_gap): New arg offset.
19035 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19036 offset.
19037 (decode_coding_iso_2022): Update coding->safe_charsets.
19038 (decode_coding_gap): Temporarily set
19039 current_buffer->text->inhibit_shrinking to 1.
19040
190412008-02-01 Kenichi Handa <handa@m17n.org>
19042
19043 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19044 indexing into elements of s->cmp and s->char2b.
19045
190462008-02-01 Juanma Barranquero <lekktu@gmail.com>
19047
19048 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19049
190502008-02-01 Kenichi Handa <handa@m17n.org>
19051
19052 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19053 target_multibyte instead of multibyte.
19054 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19055 (bcmp_translate): Change the argument name from multibyte to
19056 target_multibyte.
19057
190582008-02-01 Kenichi Handa <handa@m17n.org>
19059
19060 These changes are to compile a regexp into a pattern that can be
19061 used both for multibyte and unibyte targets.
19062
19063 * Makefile.in (search.o): Depend on charset.h.
19064
19065 * character.c (multibyte_char_to_unibyte_safe): New function.
19066
19067 * search.c: Include "charset.h".
19068 (compile_pattern_1): Delete argument multibyte. Don't set
19069 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19070 (compile_pattern): Don't compare cp->buf.target_multibyte.
19071 Compare cp->buf.charset_unibyte.
19072 (compile_pattern): Set cp->buf.target_multibyte.
19073
19074 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19075
19076 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19077
19078 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19079 multibyte. Change callers.
19080 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19081 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19082 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19083 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19084 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19085 (regex_compile): Make the compiled pattern usable both for
19086 multibyte and unibyte targets.
19087 (analyse_first): Make the fastmap usable both for multibyte and
19088 unibyte targets.
19089 (TRANSLATE_VIA_MULTIBYTE): Delete.
19090 (re_match_2_internal): Pay attention to the case that the
19091 multibyteness of bufp and target may be different.
19092
190932008-02-01 Kenichi Handa <handa@m17n.org>
19094
19095 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19096 empty box occupy at least one column width.
19097
190982008-02-01 Miles Bader <miles@gnu.org>
19099
19100 * Makefile.in: Remove redundant HAVE_XFT clause.
19101
191022008-02-01 Kenichi Handa <handa@m17n.org>
19103
19104 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19105
191062008-02-01 Kenichi Handa <handa@m17n.org>
19107
19108 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19109 being nil.
19110
191112008-02-01 Kenichi Handa <handa@m17n.org>
19112
19113 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19114
191152008-02-01 Kenichi Handa <handa@m17n.org>
19116
19117 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19118
191192008-02-01 Kenichi Handa <handa@m17n.org>
19120
19121 * search.c (simple_search): Fix previous change.
19122
191232008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * xftfont.c (ftfont_font_format): Extern declaration.
19126
19127 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19128
19129 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19130 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19131
19132 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19133 (ftfont_font_format): Fix previous change.
19134
19135 * font.h (Ffont_xlfd_name): EXFUN it.
19136
19137 * font.c (font_parse_xlfd): Fix the array size of `f'.
19138 (register_font_driver): Use EQ to compare driver->type.
19139
19140 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19141 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19142 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19143
191442008-02-01 Kenichi Handa <handa@m17n.org>
19145
19146 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19147 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19148
191492008-02-01 Kenichi Handa <handa@m17n.org>
19150
19151 * xfont.c (xfont_open): Set font->format.
19152
19153 * xftfont.c (xftfont_open): Set font->format.
19154
19155 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19156 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19157 (ftfont_open): Set font->format.
19158 (ftfont_font_format): New function.
19159
19160 * font.h (struct font): New member format.
19161
19162 * font.c (Qopentype): New variable.
19163 (syms_of_font): Defsym it.
19164 (Fquery_font): Change the format of the last element of the return
19165 value.
19166
191672008-02-01 Kenichi Handa <handa@m17n.org>
19168
19169 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19170 last resort.
19171
191722008-02-01 Kenichi Handa <handa@m17n.org>
19173
19174 * coding.c (detect_coding_charset): Fix detection of multi-byte
19175 charset.
19176
191772008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19178
19179 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19180
191812008-02-01 Kenichi Handa <handa@m17n.org>
19182
19183 * xdisp.c (get_next_display_element): Set it->face_id for the
19184 first component of a composition.
19185 (x_produce_glyphs): Check if the font is changed or not for composition.
19186
191872008-02-01 Kenichi Handa <handa@m17n.org>
19188
19189 * fontset.c (Qlatin): New variable.
19190 (syms_of_fontset): Define it as a lisp symbol.
19191 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19192
191932008-02-01 Kenichi Handa <handa@m17n.org>
19194
19195 * font.c (font_unparse_fcname): Pay attention to the case that
19196 some of font property is a null string.
19197
191982008-02-01 Kenichi Handa <handa@m17n.org>
19199
19200 * term.c: Include "composite.h".
19201 (encode_terminal_code): Output all components of composition.
19202 Check the size of encode_terminal_src.
19203 (produce_glyphs): For composition, call produce_composite_glyph.
19204 (append_composite_glyph, produce_composite_glyph): New functions.
19205
19206 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19207 is not found, get font_info from the current ascii face.
19208
192092008-02-01 Kenichi Handa <handa@m17n.org>
19210
19211 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19212 buffer-file-name to Qnil before calling insert_from_buffer.
19213
19214 * font.c (font_unparse_fcname): Pay attention to the case that
19215 foundry is a null string.
19216
192172008-02-01 Kenichi Handa <handa@m17n.org>
19218
19219 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19220
19221 * font.c (Qunicode_sip): New variable.
19222 (syms_of_font): Declare it as a Lisp symbol.
19223
19224 * font.h (Qunicode_sip): Extern it.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * composite.c (get_composition_id): Pay attention to TAB component.
19229
19230 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19231 TAB. Adjust for the change of s->char2b which always points to
19232 the first element of allocated memory.
19233
19234 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19235
19236 * xdisp.c (handle_composition_prop): Set it->c to the first
19237 non-TAB component.
19238 (fill_composite_glyph_string): Change argument.
19239 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19240 (x_produce_glyphs): Fix handling of left/right padding.
19241
192422008-02-01 Kenichi Handa <handa@m17n.org>
19243
19244 * coding.c (detect_coding_system): Fix for handling off
19245 inhibit_iso_escape_detection. Fix for the case that no coding
19246 system is defined for a specific coding category.
19247
192482008-02-01 Kenichi Handa <handa@m17n.org>
19249
19250 * font.c (font_matching_entity): Delete unused local var.
19251
19252 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19253 opening a font.
19254
19255 * fileio.c (Finsert_file_contents): On recovering a file, assume
19256 Unix-like eol.
19257 (choose_write_coding_system): On auto-saving a file, force
19258 Unix-like eol.
19259
19260 * coding.c (setup_coding_system): Fix setting of
19261 coding->common_flags based on eol_type.
19262 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19263 inherit from it.
19264
192652008-02-01 Kenichi Handa <handa@m17n.org>
19266
19267 * alloc.c (NSTATICS): Increas to 0x600.
19268
192692008-02-01 Kenichi Handa <handa@m17n.org>
19270
19271 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19272 (ftfont_list): Don't check :name property.
19273 (ftfont_match): New function.
19274 (ftfont_pattern_entity): If the pattern doesn't contain
19275 FC_SPACING, don't assume FC_MONO.
19276
19277 * font.h (struct font_driver): New member `match'.
19278 (font_update_drivers): Adjust prototype.
19279
19280 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19281 property of FONT.
19282 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19283 them unconditionally.
19284 (font_matching_entity): New function.
19285 (font_open_by_name): Try font_matching_entity if exact match is
19286 not found.
19287 (font_update_drivers): Delete the arg FONT. Return a list of
19288 actually used backends. Don't free faces, font caches here.
19289 Don't store data in frame parameters. Don't call x_set_font.
19290 (Ffont_spec): Store :name property as is.
19291 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19292 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19293 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19294 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19295 Call font->driver->otf_gsub instead of font_otf_gsub.
19296
19297 * frame.c (x_set_font_backend): Do more works that were done in
19298 font_update_drivers before.
19299
19300 * xfont.c (xfont_match): New function.
19301 (xfont_driver): Set xfont_driver.match to xfont_match.
19302 (xfont_draw): Set font in GC if necessary.
19303
19304 * ftxfont.c (ftxfont_match): New function.
19305 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19306
19307 * xftfont.c (xftfont_match): New function.
19308 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19309
193102008-02-01 Kenichi Handa <handa@m17n.org>
19311
19312 * font.h (struct font): New member scalable.
19313 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19314 (font_otf_gsub): Adjust prototype.
19315
19316 * font.c (font_otf_capability): Fix handling of the default langsys.
19317 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19318 Check the contents of SPEC.
19319 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19320 (check_gstring): New function.
19321 (REPLACEMENT_CHARACTER): New macro.
19322 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19323 glyph codes of GSTRING.
19324 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19325 (font_prepare_composition): Set cmp->glyph_len.
19326 (font_open_entity): Set font->scalable.
19327 (Ffont_get): Handle :otf property.
19328 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19329 functions.
19330 (Fquery_font): Use font->font.full_name.
19331 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19332 Sfont_otf_alternates.
19333
19334 * ftfont.c (ftfont_open): Set font->font.full_name and
19335 font->font.name properly. Fix calculation of font->font.height
19336 and font->min_width.
19337
19338 * ftxfont.c (ftxfont_create_gcs): New function.
19339 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19340 (ftxfont_draw_backgrond): Fix filling region.
19341 (ftxfont_default_fid): New function.
19342 (ftxfont_open): Set xfont->fid to the return value of
19343 ftxfont_default_fid.
19344 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19345 (ftxfont_done_face): Free only GCs that are created by
19346 ftxfont_create_gcs.
19347 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19348
19349 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19350 Clip to src->width, etc (not src->clip_XXX).
19351
19352 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19353 FontBackend frame parameter.
19354
193552008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 * font.h (struct font_driver_list): New member `on'.
19358 (Fclear_font_cache): EXFUN it.
19359 (font_update_drivers): Extern it.
19360
19361 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19362 (font_list_entities): Check driver_list->on.
19363 (register_font_driver): Initalize `on' member to 0.
19364 (font_update_drivers): New function.
19365 (Fclear_font_cache): Check driver_list->on.
19366
19367 * frame.h (Qfont_backend): Extern it.
19368 (x_set_font_backend): Extern it.
19369
19370 * frame.c (Qfont_backend): New variable.
19371 (frame_parms): New element for font-backend.
19372 (x_set_font_backend): New function.
19373
19374 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19375 FontBackend frame parameter.
19376 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19377 x_set_font_backend.
19378
19379 * xfont.c (xfont_list): Don't try listing by :name property if the
19380 name is not for XLFD.
19381
193822008-02-01 Kenichi Handa <handa@m17n.org>
19383
19384 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19385 (LGLYPH_SET_TO): New macros.
19386 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19387 element of G is vector or not.
19388 (font_at): Extern it.
19389
19390 * font.c: Include window.h.
19391 (font_lispy_object): New function.
19392 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19393 end of valid glyph.
19394 (font_close_object): Fix getting (struct font *).
19395 (font_at): New function.
19396 (Ffont_get): If FONT is a font-object, get entity from it.
19397 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19398 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19399 range check.
19400 (Ffont_at): New function.
19401 (syms_of_font): Defsubr Sfont_at.
19402
19403 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19404 before the entry for Qcomposition.
19405 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19406 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19407 the font in gstring.
19408 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19409 LGLYPH_FORM (g) to detect the end of valid glyph.
19410 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19411 we are composing with gstring.
19412
19413 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19414 Check if adjustment is vector or not.
19415
19416 * Makefile.in (font.o): Make it depends on window.h.
19417
194182008-02-01 Kenichi Handa <handa@m17n.org>
19419
19420 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19421 adjustment is vector or not.
19422
194232008-02-01 Miles Bader <miles@gnu.org>
19424
19425 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19426
194272008-02-01 Kenichi Handa <handa@m17n.org>
19428
19429 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19430 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19431 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19432
19433 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19434 (DEVICE_DELTA): Fix typo.
19435 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19436 LGLYPH format.
19437
19438 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19439 the change of LGLYPH format.
19440
194412008-02-01 Kenichi Handa <handa@m17n.org>
19442
19443 * ftfont.c (ftfont_list): Fix typo.
19444 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19445
194462008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19447
19448 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19449
19450 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19451 xftface_info is non-NULL.
19452
194532008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19454
19455 * ftfont.c (ftfont_list): Move misplaced #endif.
19456
194572008-02-01 Kenichi Handa <handa@m17n.org>
19458
19459 * ftfont.c (ftfont_list): Pay attention to the case that
19460 FC_CAPABILITY is not defined.
19461
194622008-02-01 Kenichi Handa <handa@m17n.org>
19463
19464 * xftfont.c (xftfont_open): Set charset related members to -1.
19465
19466 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19467 QCname.
19468 (ftfont_open): Set charset related members to -1.
19469
19470 * fontset.c (Votf_script_alist): New variable.
19471 (syms_of_fontset): Initialize it.
19472 (fontset_font): Delete unused variable.
19473
19474 * fontset.h (Votf_script_alist): Extern it.
19475
19476 * font.c (font_find_for_lface): Optimize code.
19477
19478 * font.h (font_close_object, font_merge_old_spec): Extern them.
19479
194802008-02-01 Kenichi Handa <handa@m17n.org>
19481
19482 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19483 (syms_of_font): Initialize them.
19484 (font_pixel_size): Allow float value in dpi.
19485 (font_prop_validate_type): Delete.
19486 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19487 Change caller.
19488 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19489 (font_prop_validate_extra): Delete.
19490 (font_prop_validate_spacing): New function.
19491 (font_property_table): Add elements for all known properties.
19492 (get_font_prop_index): Rename from check_font_prop_name. New
19493 argument FROM. Change caller.
19494 (font_prop_validate): Validate all known properties.
19495 (font_put_extra): Delete argument force. Change caller.
19496 (font_expand_wildcards): Make it static. Fix the way of shrinking
19497 the possible range.
19498 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19499 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19500 Change caller.
19501 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19502 (font_parse_fcname): Delete argument merge. Fix parsing of point
19503 size. Don't validate properties values here. Change caller.
19504 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19505 (font_open_by_name): Delete unused variable.
19506 (Ffont_spec): Likewise. Validate property values.
19507 (Ffont_match_p): New function.
19508
19509 * font.h (QCscalable): Extern it.
19510 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19511
19512 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19513
19514 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19515 (xfont_list_pattern): New function.
19516 (xfont_list): Use xfont_list_pattern.
19517
195182008-02-01 Kenichi Handa <handa@m17n.org>
19519
19520 * font.h (Flist_fonts): EXFUN it.
19521
195222008-02-01 Jason Rumney <jasonr@gnu.org>
19523
19524 * w32term.c (w32_initialize): Add back smoothing_type and
19525 smoothing_enabled definitions.
19526
195272008-02-01 Kenichi Handa <handa@m17n.org>
19528
19529 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19530 s->face->font on determining underline position.
19531
195322008-02-01 Kenichi Handa <handa@m17n.org>
19533
19534 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19535 (font_has_char): Accept font-object too.
19536 (font_find_for_lface): Try at first with a size specified in face.
19537
195382008-02-01 Kenichi Handa <handa@m17n.org>
19539
19540 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19541 font_open_by_name.
19542
195432008-02-01 Kenichi Handa <handa@m17n.org>
19544
19545 * font.h (QCspacing, QCdpi): Extern them.
19546 (enum font_spacing): New enum.
19547 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19548
19549 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19550 (QCspacing, QCdpi): New variables.
19551 (syms_of_font): Initialize them.
19552 (font_pixel_size): New function.
19553 (font_put_extra): New function.
19554 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19555 in FONT_EXTRA.
19556 (font_parse_fcname): Handle enumerated values (e.g. bold).
19557 Fix handling font size. Add QCname property that contains only
19558 unknown properties.
19559 (font_score): Change argument. Change caller. Pay attention to
19560 FONT_PIXEL_SIZE_QUANTUM.
19561 (font_sort_entites, font_list_entities, font_find_for_lface)
19562 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19563 (Ffont_spec): Add QCname property that contains only unknown properties.
19564
19565 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19566 include weight in listing pattern, instead check weight of each
19567 listed font. Don't include scalable in pattern. Pay attention to
19568 FONT_PIXEL_SIZE_QUANTUM.
19569
195702008-02-01 Kenichi Handa <handa@m17n.org>
19571
19572 * font.c (font_parse_fcname): Fix parsing of point-size.
19573 (font_unparse_fcname): Produce symbolic names for style properties.
19574 (font_list_entities): Handle float size correctly.
19575 (font_open_by_name): Prefer `normal' property values if the name
19576 doesn't specify them.
19577
19578 * fontset.c (Finternal_char_font): Use font_get_name, not
19579 Ffont_xlfd_name.
19580
19581 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19582 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19583 pattern. Don't force scalable.
19584
19585 * xftfont.c (xftfont_open): For generating a name, start from
19586 96-byte buffer.
19587
195882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19589
19590 * frame.h (x_new_fontset2): Fix prototype.
19591
195922008-02-01 Kenichi Handa <handa@m17n.org>
19593
19594 * font.h (struct font_driver): Delete member parse_name.
19595 (font_match_p, font_get_spec, font_parse_fcname)
19596 (font_unparse_fcname): Extern them.
19597 (font_get_name): Adjust prototype.
19598
19599 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19600 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19601 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19602 unnecessary checks for weight, slant, and swidth.
19603 (font_parse_fcname): New function.
19604 (font_unparse_fcname): New function.
19605 (font_parse_name): New function.
19606 (font_match_p): New function.
19607 (font_get_name): Change return value to Lisp string.
19608 (font_get_spec): New function.
19609 (Qunspecified, Qignore_defface): Don't extern them.
19610 (font_find_for_lface): Assume that LFACE is fully specified.
19611 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19612 object, use it for FACE.
19613 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19614 driver->parse_name.
19615 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19616
19617 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19618 prototype.
19619
19620 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19621 argument F. Don't call Fnew_fontset. Instead, directly call
19622 make_fontset.
19623
19624 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19625
19626 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19627 of x_new_fontset2.
19628
19629 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19630 (Qsans__serif): New variables.
19631 (ftfont_generic_family_list): New variable.
19632 (syms_of_ftfont): Initialize the above variables.
19633 (ftfont_pattern_entity): Delete argument NAME.
19634 (ftfont_list_generic_family): New function.
19635 (ftfont_parse_name): Delete this function.
19636 (ftfont_list): Try generic family only when FcFontList found no font.
19637 (ftfont_list_family): Fix args to FcObjectSetBuild.
19638
19639 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19640 object in attrs[LFACE_FONT_INDEX].
19641 (set_lface_from_font_name): Cancel all changes for font-backend.
19642 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19643 function.
19644 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19645 font object in QCfont attribute.
19646 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19647 (realize_default_face) [USE_FONT_BACKEND]: Call
19648 set_lface_from_font_and_fontset.
19649
19650 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19651 "fixed", and signal error here if no suitable font was found.
19652
19653 * xfont.c (xfont_parse_name): Delete this function.
19654
19655 * xftfont.c (xftfont_open): Change coding style of error
19656 handling. Generate fontconfig's fontname pattern.
19657
19658 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19659 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19660
19661 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19662 Both args FONTSET and FONT_OBJECT must be existing ones.
19663
196642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19665
19666 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19667
196682008-02-01 Kenichi Handa <handa@m17n.org>
19669
19670 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19671
19672 * font.h (struct font): Fix typo.
19673
19674 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19675 XLFD_XXX_INDEX.
19676 (enum xlfd_field_mask): New enum.
19677 (intern_font_field): Changed argument. Change caller. If digits
19678 are followed by non-digits, return a symbol.
19679 (font_expand_wildcards): New function.
19680 (font_parse_xlfd): Fix wildcard handling.
19681 (Ffont_spec): If :name is specified, reflect the info in the other
19682 properties.
19683
19684 * ftfont.c (ftfont_pattern_entity): Fix typo.
19685 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19686 locale.
19687
196882008-02-01 Kenichi Handa <handa@m17n.org>
19689
19690 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19691
19692 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19693 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19694 registry doesn't specify encoding part.
19695 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19696 (font_open_by_name): At first try parsing the name.
19697 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19698 as Lisp symbols.
19699
19700 * fontset.c (reorder_font_vector): Pay attention to the case that
19701 the 3rd element of font_def is nil.
19702 (fontset_font): For the default fontset, append one more fontset
19703 elements for a script-based font specification. Don't add script
19704 attribute on finding a font.
19705 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19706 font name.
19707 (fontset_ascii_font): If a font can't be opened, return nil.
19708
19709 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19710 (ftfont_pattern_entity): New function.
19711 (ftfont_get_cache): Assume that freetype_font_cache is already
19712 initialized.
19713 (ftfont_list): Handle the case that a file is specified in font
19714 name. Use ftfont_pattern_entity to generate entities.
19715 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19716 (syms_of_ftfont): Initialize freetype_font_cache.
19717
19718 * xftfont.c (xftfont_open): Make the font name fontconfig's
19719 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19720 (xftfont_close): Free font->font.name if not NULL.
19721
19722 * xfont.c (xfont_list): If script is specified for a font, return
19723 null_vector.
19724 (xfont_list_family): Declare argument type.
19725
19726 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19727 name, set LFACE_FONT (lface) to nil.
19728
19729 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19730 return Qnil.
19731
197322008-02-01 Kenichi Handa <handa@m17n.org>
19733
19734 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19735 (standard_args): Add "-enable-font-backend".
19736
197372008-02-01 Kenichi Handa <handa@m17n.org>
19738
19739 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19740 (struct xftdraw_list, xftdraw_list): Delete them.
19741 (register_xftdraw, check_xftdraw): Delete them.
19742 (xftfont_prepare_face): Don't call register_xftdraw.
19743 (xftfont_done_face): Don't call check_xftdraw.
19744 (xftfont_draw): Get background color only when with_background is
19745 nonzero.
19746
19747 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19748
197492008-02-01 Kenichi Handa <handa@m17n.org>
19750
19751 These changes are for the new font handling codes.
19752
19753 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19754 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19755 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19756 (FONTSRC, FONTOBJ): New variables.
19757 (obj): Add $(FONTOBJ).
19758 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19759 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19760 @LIBOTF_LIBS@.
19761 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19762 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19763
19764 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19765
19766 * character.h (Vscript_representative_chars): Extern it.
19767
19768 * character.c (Vscript_representative_chars): New variable.
19769 (syms_of_character): Declare it as a Lisp variable.
19770
19771 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19772 enable_font_backend is nonzero, accept the composition method
19773 COMPOSITION_WITH_GLYPH_STRING.
19774
19775 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19776 enumeration COMPOSITION_WITH_GLYPH_STRING.
19777
19778 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19779 members clip_x, clip_y, clip_width, and clip_height.
19780 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19781
19782 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19783 --enable-font-backend. Call syms_of_font.
19784
19785 * fns.c (assoc_no_quit): New function.
19786
19787 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19788 (face_for_font, new_fontset_from_font)
19789 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19790
19791 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19792 (fontset_font, fontset_ascii, face_for_char)
19793 (make_fontset_for_ascii_face, Ffont_info)
19794 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19795 is nonzero, use font-backend mechanism.
19796 (find_font_encoding): Make it non-static.
19797 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19798 New functions.
19799
19800 * frame.h (struct frame): New members resx and resy.
19801 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19802 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19803
19804 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19805 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19806
19807 * lisp.h (assoc_no_quit): Extern it.
19808
19809 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19810 Through out the file, use FONT_INFO_FROM_FACE instead of
19811 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19812 rif->per_char_metric.
19813 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19814 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19815 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19816 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19817 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19818 nonzero, use font-backend mechanism.
19819 (get_per_char_metric): New function.
19820
19821 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19822 (set_lface_from_font_name)
19823 (set_font_frame_param, free_realized_face)
19824 (prepare_face_for_display, clear_face_gcs)
19825 (Finternal_set_font_selection_order, realize_x_face)
19826 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19827 font-backend mechanism.
19828 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19829 (load_face_font) [USE_FONT_BACKEND]: Abort.
19830 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19831 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19832
19833 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19834 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19835 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19836 nonzero, register all available font drivers. Call
19837 x_default_font_parameter for deciding a font.
19838 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19839
19840 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19841 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19842 (x_set_glyph_string_clipping_exactly)
19843 (x_compute_glyph_string_overhangs)
19844 (x_draw_glyph_string_foreground)
19845 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19846 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19847 enable_font_backend is nonzero, use font-backend mechanism.
19848 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19849
198502008-02-01 Kenichi Handa <handa@m17n.org>
19851
19852 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19853 system_eol_type.
19854 (syms_of_coding): Initialize system_eol_type.
19855
19856 * process.c (Fset_process_coding_system): Inherit system's eol
19857 format if necessary.
19858
198592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19860
19861 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19862
198632008-02-01 Kenichi Handa <handa@m17n.org>
19864
19865 * coding.c (decode_eol): Pay attention to buffer relocation in
19866 del_range_2.
19867 (decode_coding): Call decode_eol before restoring undo_list.
19868
198692008-02-01 Kenichi Handa <handa@m17n.org>
19870
19871 * charset.c (Fdefine_charset_internal): Fix setting of
19872 emacs_mule_bytes.
19873
198742008-02-01 Kenichi Handa <handa@m17n.org>
19875
19876 * keyboard.c (read_char): Check if C is a character or not before
19877 looking up Vkeyboard_translate_table.
19878
198792008-02-01 Kenichi Handa <handa@m17n.org>
19880
19881 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19882 condition to terminate the loop.
19883
198842008-02-01 Kenichi Handa <handa@m17n.org>
19885
19886 * coding.c (produce_composition): Compare charbuf[i] instead of
19887 args[i] against 0.
19888 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19889
198902008-02-01 Kenichi Handa <handa@m17n.org>
19891
19892 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19893 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19894 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19895 detect_coding.
19896 (emacs_mule_char): Handle old style (Emacs 20) component character
19897 of a composition.
19898 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19899 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19900 composition rule.
19901 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19902
199032008-02-01 Kenichi Handa <handa@m17n.org>
19904
19905 * coding.c (encode_coding_ccl): Allocate destination dynamically
19906 when necessary.
19907
199082008-02-01 Kenichi Handa <handa@m17n.org>
19909
19910 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19911 the loop. When quitted, show a proper error message.
19912
199132008-02-01 Kenichi Handa <handa@m17n.org>
19914
19915 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19916 src->clip_head and src->clip_tail temporarily instead of src->hl.
19917
19918 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19919 character sequence.
19920 (Fccl_execute_on_string): Use ASET, not XSET.
19921
199222008-02-01 Kenichi Handa <handa@m17n.org>
19923
19924 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19925
199262008-02-01 Kenichi Handa <handa@m17n.org>
19927
19928 * coding.c (decode_coding): Fix the condition of terminating the
19929 decoding loop.
19930
199312008-02-01 Kenichi Handa <handa@m17n.org>
19932
19933 * data.c (Faset): On setting a character bigger than 255 in a
19934 unibyte string, signal an error instead of make the string multibyte.
19935
199362008-02-01 Kenichi Handa <handa@m17n.org>
19937
19938 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19939 made by a mapping table.
19940
199412008-02-01 Kenichi Handa <handa@m17n.org>
19942
19943 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19944 not.
19945 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19946 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19947
19948 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19949 s->face is NULL or not.
19950
199512008-02-01 Kenichi Handa <handa@m17n.org>
19952
19953 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19954 (x_draw_glyph_string): Fix drawing of right_overhang and
19955 left_overhang around/on cursor.
19956
19957 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19958
199592008-02-01 Kenichi Handa <handa@m17n.org>
19960
19961 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19962
199632008-02-01 Kenichi Handa <handa@m17n.org>
19964
19965 * coding.c (Fdefine_coding_system_internal)
19966 (Fdefine_coding_system_alias): Avoid a duplicated element in
19967 Vcoding_system_alist.
19968
199692008-02-01 Kenichi Handa <handa@m17n.org>
19970
19971 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19972
19973 * coding.c (Qcoding_system_define_form): New variable.
19974 (syms_of_coding): Intern and staticpro it.
19975 (Fcoding_system_p): Check Qcoding_system_define_form.
19976 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19977
19978 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19979 Fcoding_system_p.
19980 (CHECK_CODING_SYSTEM): If ID is not available, call
19981 Fcheck_coding_system.
19982 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19983 Try also Fcheck_coding_system.
19984
199852008-02-01 Kenichi Handa <handa@m17n.org>
19986
19987 * coding.c (code_conversion_restore): GCPRO arg.
19988
199892008-02-01 Kenichi Handa <handa@m17n.org>
19990
19991 * character.c (lisp_string_width): Check multibyteness of STRING.
19992
199932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19994
19995 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19996 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19997 (decode_mac_font_name): Use decode_coding_c_string instead of
19998 decode_coding.
19999 (x_load_font): Initialize fontp->fontset to -1. Set
20000 fontp->encoding_type.
20001
200022008-02-01 Kenichi Handa <handa@m17n.org>
20003
20004 * search.c (search_buffer): Give up BM search on case-fold-search
20005 if one of a target character has a case-equivalence of different
20006 byte length even if that target charcter is an ASCII.
20007 (simple_search): Fix calculation of byte length of matched text.
20008 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20009
200102008-02-01 Kenichi Handa <handa@m17n.org>
20011
20012 * coding.c (decode_coding): Fix handling of invalid bytes.
20013
200142008-02-01 Kenichi Handa <handa@m17n.org>
20015
20016 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20017 Unicode characters.
20018
200192008-02-01 Kenichi Handa <handa@m17n.org>
20020
20021 * coding.c (encode_coding_object): If a pre-write-conversion
20022 function makes a new buffer, kill it.
20023
200242008-02-01 Kenichi Handa <handa@m17n.org>
20025
20026 * coding.c (QCascii_compatible_p): New variable.
20027 (syms_of_coding): Initialize it.
20028 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20029 calling string_char.
20030 (record_conversion_result): Add `default:' case.
20031 (coding_charset_list): Delete unused variable `coding_type'.
20032 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20033 property in the plist of the coding system.
20034 (Fcoding_system_put): Check QCascii_compatible_p.
20035
200362008-02-01 Miles Bader <miles@gnu.org>
20037
20038 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20039 removed calculation of frame `f', as it's now used.
20040
200412008-02-01 Kenichi Handa <handa@m17n.org>
20042
20043 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20044 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20045 (UNIDATA): New variable.
20046 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20047 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20048 $(RUN_TEMACS) unconditionally.
20049
200502008-02-01 Kenichi Handa <handa@m17n.org>
20051
20052 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20053 (admindir): New variable.
20054 ($(lispsource)international/charprop.el): New target.
20055
200562008-02-01 Miles Bader <miles@gnu.org>
20057
20058 * character.c (chars-in-region): Remove obsolete function.
20059 (syms_of_character): Remove its initialization.
20060
200612008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20062
20063 * w32select.c (validate_coding_system)
20064 (setup_windows_coding_system): New functions.
20065 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20066 setup_windows_coding_system.
20067 (setup_config, Fw32_get_clipboard_data): Use
20068 validate_coding_system.
20069 (Fx_selection_exists): Move call to setup_config to a place
20070 where signals are allowed.
20071
20072 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20073 (Fcheck_coding_system): Add declarations.
20074
200752008-02-01 Kenichi Handa <handa@m17n.org>
20076
20077 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20078
200792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20080
20081 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20082 string as the second argument for x_new_fontset.
20083
200842008-02-01 Kenichi Handa <handa@m17n.org>
20085
20086 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20087 (encode_coding_object): Use safe_call instead of call2.
20088
200892008-02-01 Kenichi Handa <handa@m17n.org>
20090
20091 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20092
20093 * Makefile.in (lisp): Include charprop.el.
20094
200952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20096
20097 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20098 Not sure if it's unnecessary.
20099
201002008-02-01 Steven Tamm <steventamm@mac.com>
20101
20102 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20103 some possibly unnecessary fontset checking code that crashed
20104 when creating a new frame.
20105
201062008-02-01 Kenichi Handa <handa@m17n.org>
20107
20108 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20109 lookup_face.
20110
20111 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20112
20113 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20114
201152008-02-01 Kenichi Handa <handa@m17n.org>
20116
20117 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20118 (coding_charset_list): New function.
20119
20120 * coding.h (coding_charset_list): Extern it.
20121
201222008-02-01 Kenichi Handa <handa@m17n.org>
20123
20124 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20125 concatenation of family and registry.
20126
201272008-02-01 Kenichi Handa <handa@m17n.org>
20128
20129 * character.h (BYTE8_STRING): Fix typo.
20130
20131 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20132 string to multibyte (sync to HEAD).
20133
20134 * casefiddle.c (casify_region): Handle changes in byte-length
20135 using replace_range_2 (sync to HEAD).
20136
201372008-02-01 Andreas Schwab <schwab@suse.de>
20138
20139 * chartab.c (map_char_table): GCPRO table and arg.
20140
201412008-02-01 Kenichi Handa <handa@m17n.org>
20142
20143 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20144 already at limit.
20145
201462008-02-01 Kenichi Handa <handa@m17n.org>
20147
20148 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20149 instead of fast_c_string_match_ignore_case.
20150 (find_font_encoding): Change argument to Lisp_Object. Use
20151 fast_string_match_ignore_case instead of
20152 fast_c_string_match_ignore_case. Change caller.
20153
201542008-02-01 Kenichi Handa <handa@m17n.org>
20155
20156 * xdisp.c (get_next_display_element): In unibyte case, decide to
20157 display in octal form by checking a character by
20158 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20159
20160 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20161
20162 * character.c (unibyte_has_multibyte_table): New variable.
20163
20164 * character.h (unibyte_has_multibyte_table): Extern it.
20165 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20166
201672008-02-01 Kenichi Handa <handa@m17n.org>
20168
20169 * coding.c (encode_coding_iso_2022): Fix handling of charset
20170 annotation.
20171
201722008-02-01 Kenichi Handa <handa@m17n.org>
20173
20174 * coding.c (setup_coding_system): If coding_system is nil, use
20175 Qundecided.
20176 (Fterminal_coding_system): Return nil if terminal coding system is
20177 `undecided'.
20178 (syms_of_coding): Define coding-system `undecided' here. Setup
20179 terminal_coding as `undecided'.
20180
201812008-02-01 Kenichi Handa <handa@m17n.org>
20182
20183 * xdisp.c (message_dolog, set_message_1): Call
20184 unibyte_char_to_multibyte with arg type int.
20185
20186 * lread.c (read1): Fix reading of a char-table.
20187
20188 * print.c (print_object): Include sub char-table in circularities
20189 detection.
20190
201912008-02-01 Kenichi Handa <handa@m17n.org>
20192
20193 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20194 Append the found sequences in car of ARGS instead of prepending.
20195
201962008-02-01 Kenichi Handa <handa@m17n.org>
20197
20198 * fileio.c (report_file_error): Make a unibyte string from
20199 strerror (errorno).
20200 (Fsubstitute_in_file_name): Fix the arg to
20201 unibyte_char_to_multibyte. It is evaluated twice.
20202
202032008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20206
202072008-02-01 Kenichi Handa <handa@m17n.org>
20208
20209 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20210 BOM is not found.
20211 (detect_coding, detect_coding_system): Optimization for ISO-2022
20212 when no 8-bit data is found.
20213
202142008-02-01 Jason Rumney <jasonr@gnu.org>
20215
20216 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20217
202182008-02-01 Kenichi Handa <handa@m17n.org>
20219
20220 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20221 CHARS.
20222
202232008-02-01 Steven Tamm <steventamm@mac.com>
20224
20225 * macterm.c (mac_encode_char): Add charset argument and update
20226 to use encoding_type.
20227 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20228 switch to pure fontset.
20229 (decode_mac_font_name): Temporarily remove decoding.
20230 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20231 (x_load_font): Temporarily remove encoding.
20232
202332008-02-01 Kenichi Handa <handa@m17n.org>
20234
20235 * xfaces.c (Fface_font): If frame is not on a window system,
20236 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20237 refer to face->font.
20238 (split_font_name_into_vector, build_font_name_from_vector)
20239 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20240 when HAVE_WINDOW_SYSTEM is defined.
20241
202422008-02-01 Kenichi Handa <handa@m17n.org>
20243
20244 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20245 (x_produce_glyphs): Fix setting of members of cmp in case
20246 cmp->glyph_len is zero.
20247
20248 * fontset.c (Fset_fontset_font): Fix docstring.
20249 (Ffontset_info): Make it backward compatible. New arg ALL.
20250
202512008-02-01 Kim F. Storm <storm@cua.dk>
20252
20253 * process.c (read_process_output): Grow decoding_buf when needed;
20254 this could cause a crash in allocate_string and compact_small_strings.
20255
202562008-02-01 Kenichi Handa <handa@m17n.org>
20257
20258 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20259
202602008-02-01 Kenichi Handa <handa@m17n.org>
20261
20262 * coding.c (setup_coding_system): Set coding->common_flags
20263 correctly for raw-text.
20264 (consume_chars): On encoding unibyte text by raw-text, don't check
20265 multibyte form.
20266 (encode_coding): On encoding by raw-text, never use translation tables.
20267
20268 * fileio.c (e_write): Short cut for the case of no encoding.
20269
202702008-02-01 Kenichi Handa <handa@m17n.org>
20271
20272 * coding.c (detect_coding, detect_coding_system): Delete unused
20273 variables.
20274
202752008-02-01 Kenichi Handa <handa@m17n.org>
20276
20277 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20278 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20279
202802008-02-01 Kenichi Handa <handa@m17n.org>
20281
20282 * coding.c (Ffind_coding_systems_region_internal): Include
20283 raw-text and no-conversion in the result.
20284
202852008-02-01 Kenichi Handa <handa@m17n.org>
20286
20287 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20288 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20289 FONT_DEF.
20290 (font_def_arg, add_arg, from_arg, to_arg): New args.
20291 (set_fontset_font): Change argument.
20292 (Fset_fontset_font): Fix for the case that TARGET is a script
20293 name and charset name.
20294 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20295
202962008-02-01 Kenichi Handa <handa@m17n.org>
20297
20298 * fontset.c (fontset_font): Rename from fontset_face. Change return
20299 value.
20300 (face_suitable_for_char_p, face_for_char): Adjust for the change
20301 of fontset_font.
20302 (make_fontset_for_ascii_face): Fix setting of the fontset element
20303 for ASCII.
20304 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20305 to get a font name.
20306 (Ffontset_info): Adjust for the change of fontset_font.
20307
20308 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20309
20310 * character.h (LEADING_CODE_LATIN_1_MIN)
20311 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20312
203132008-02-01 Kenichi Handa <handa@m17n.org>
20314
20315 * editfns.c (check_translation): New function.
20316 (Ftranslate_region_internal): Handle M:N mapping.
20317
203182008-02-01 Kenichi Handa <handa@m17n.org>
20319
20320 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20321
203222008-02-01 Kenichi Handa <handa@m17n.org>
20323
20324 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20325 goto invalid_code.
20326 (decode_coding_iso_2022): Fix handling of invalid designation.
20327
20328 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20329 after calling code_conversion_save.
20330
203312008-02-01 Kenichi Handa <handa@m17n.org>
20332
20333 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20334
20335 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20336
20337 * fontset.c: Include "intervals.h".
20338 (fontset_face): Fix comparing of Lisp_Objects.
20339 (free_face_fontset, new_fontset_from_font_name): Fix
20340 Lisp_Object/int mixup.
20341
20342 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20343
20344 * coding.c: Add many prototypes for static functions.
20345 (get_translation_table): Allow max_lookup to be NULL.
20346 (decode_coding, Ffind_coding_systems_region_internal)
20347 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20348 get_translation_table with max_lookup NULL.
20349
203502008-02-01 Kenichi Handa <handa@m17n.org>
20351
20352 * coding.c (get_translation_table): Declare it as Lisp_Object.
20353 (LOOKUP_TRANSLATION_TABLE): New macro.
20354 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20355 instead of CHAR_TABLE_REF.
20356
203572008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20360 annotation data format.
20361 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20362 Change arguments FROM and TO to single argument NCHARS. Change caller.
20363 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20364 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20365 (decode_coding_ccl, decode_coding_charset): Pay attention to
20366 coding->charbuf_used.
20367 (get_translation): New function.
20368 (produce_chars): New arguments translation_table and last_block.
20369 Translate characters here. Return number of carryover chars.
20370 Change caller.
20371 (produce_composition): New argument pos. Change caller.
20372 Adjust for the change of annotation data format.
20373 (produce_charset, produce_annotation): Likewise.
20374 (decode_coding, encode_coding): Don't call translate_chars.
20375 (consume_chars): New arg translation_table. Change caller.
20376 (translate_chars): Delete.
20377 (syms_of_coding): Make translation-table's number of extra slots 2.
20378
203792008-02-01 Kenichi Handa <handa@m17n.org>
20380
20381 * search.c (simple_search): Fix setting this_pos_byte in backward
20382 search.
20383
20384 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20385 byte sequence.
20386 (detect_coding_ccl): Fix setting of the variable valids.
20387
203882008-02-01 Kenichi Handa <handa@m17n.org>
20389
20390 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20391
20392 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20393
20394 * editfns.c (Ftranslate_region_internal): Rename from
20395 Ftranslate_region. Accept a char-table in TABLE.
20396 (syms_of_editfns): Defsubr Stranslate_region_internal.
20397
20398 * xfaces.c (set_lface_from_font_name): If a font is specified for
20399 a frame, generate a fontset from the font.
20400 (build_scalable_font_name): If the scalable font is requested for
20401 a specific size, don't change that size.
20402 (try_font_list): Try a scalable font also in the case that a
20403 pattern string is specified.
20404
204052008-02-01 Kenichi Handa <handa@m17n.org>
20406
20407 * xfaces.c (Fface_font): New optional arg CHARACTER.
20408
204092008-02-01 Kenichi Handa <handa@m17n.org>
20410
20411 * charset.h (CHARSET_OFFSET): New macro.
20412
204132008-02-01 Kenichi Handa <handa@m17n.org>
20414
20415 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20416
20417 * fontset.c (fontset_face): Handle the case that repertory is a
20418 char-table.
20419 (find_font_encoding): Return nil for unknown encoding.
20420 (Fset_fontset_font): Ignore a font of unknown encoding.
20421
204222008-02-01 Kenichi Handa <handa@m17n.org>
20423
20424 * keymap.c (describe_vector): Handle default value of a char table.
20425
20426 * fontset.c (fontset_face): Handle fallback fonts correctly.
20427 (Ffontset_info): Return infomation about fallback fonts.
20428
204292008-02-01 Kenichi Handa <handa@m17n.org>
20430
20431 * fontset.c (FONTSET_DEFAULT): New macro.
20432 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20433 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20434 the case that it is nil.
20435 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20436 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20437
20438 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20439 subset or superset.
20440
204412008-02-01 Kenichi Handa <handa@m17n.org>
20442
20443 * emacs.c (main): Call init_charset after syms_of_XXX.
20444
20445 * charset.c (Vcharset_map_directory): Delete.
20446 (Vcharset_map_path): New variable.
20447 (load_charset_map_from_file): Use Vcharset_map_path instead.
20448 (init_charset): Initialize Vcharset_map_path.
20449 (syms_of_charset): Delete declaration of "charset-map-directory",
20450 add declaration of "charset-map-path".
20451
204522008-02-01 Kenichi Handa <handa@m17n.org>
20453
20454 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20455 ASCII only string.
20456
20457 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20458
20459 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20460 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20461
204622008-02-01 Kenichi Handa <handa@m17n.org>
20463
20464 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20465
20466 * coding.c (QCmnemonic, QCdefalut_char)
20467 (QCdecode_translation_table, QCencode_translation_table)
20468 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20469 (get_translation_table): Return a list of translation tables if
20470 necessary.
20471 (decode_coding): Call get_translation_table with ENCODEP 0.
20472 (char_encodable_p): If translation_table is non-nil, always call
20473 translate_char.
20474 (Fdefine_coding_system_internal): Accept list of translation
20475 tables as :encode-translation-table and :decode-translation-table.
20476 (Fcoding_system_put): New function.
20477 (syms_of_coding): Declare new symbols. Defsubr
20478 Scoding_system_put.
20479 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20480 typically JISX0212.
20481
20482 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20483 when the charset is superset type.
20484
20485 * character.c (translate_char): Accept list of translation tables.
20486
204872008-02-01 Kenichi Handa <handa@m17n.org>
20488
20489 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20490 (CODING_ATTR_TRANS_TBL): New macro.
20491
20492 * coding.c (get_translation_table): New function.
20493 (translate_chars): Fix the bug of skipping annotation data.
20494 (decode_coding, encode_coding): Utilize get_translation_table.
20495 (char_encodable_p, Funencodable_char_position): Translate char if
20496 necessary.
20497 (Ffind_coding_systems_region_internal)
20498 (Fcheck_coding_systems_region): Setup translation table for encode
20499 in a coding system attribute vector in advance.
20500 (Fdefine_coding_system_internal): Allow a symbol as translation
20501 table. For shift-jis type coding system, allow 4th charset.
20502
205032008-02-01 Kenichi Handa <handa@m17n.org>
20504
20505 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20506
20507 * xdisp.c (get_next_display_element): Pass -1 as POS to
20508 FACE_FOR_CHAR if displaying a C-string.
20509
205102008-02-01 Kenichi Handa <handa@m17n.org>
20511
20512 * composite.c (get_composition_id): Handle xoff and yoff in a
20513 composition rule.
20514
20515 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20516 (struct composition): New member lbearing and rbearing.
20517
20518 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20519 (x_get_glyph_overhangs): Handle a composition glyph.
20520 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20521
20522 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20523 composition glyph.
20524
205252008-02-01 Kenichi Handa <handa@m17n.org>
20526
20527 * print.c: Include charset.h.
20528 (Vprint_charset_text_property): New variable.
20529 (Qdefault): Extern it.
20530 (PRINT_STRING_NON_CHARSET_FOUND)
20531 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20532 (print_check_string_result): New variable.
20533 (print_check_string_charset_prop): New function.
20534 (print_prune_charset_plist): New variable.
20535 (print_prune_string_charset): New function.
20536 (print_object): Call print_prune_string_charset if
20537 Vprint_charset_text_property is not t.
20538 (print_interval): Print nothing if interval->plist is nil.
20539 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20540 variable. Init and staticpro print_prune_charset_plist.
20541
205422008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * fontset.c (new_fontset_from_font_name): Use the specified font
20545 for all characters in the new fontset.
20546
20547 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20548 OBJECT args.
20549
20550 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20551 OBJECT args for composition too.
20552
20553 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20554 OBJECT args.
20555
205562008-02-01 Kenichi Handa <handa@m17n.org>
20557
20558 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20559
20560 * fontset.c (reorder_font_vector): Adjust for the change of
20561 FONT_DEF format.
20562 (fontset_face): New arg id. Change caller.
20563 (face_for_char): New args pos and object.
20564 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20565 (fs_query_fontset): Check NAME by Fassoc too.
20566 (Fset_fontset_font): Allow non-XLFD font name.
20567 (Ffontset_info): Adjust for the change of FONT_DEF format.
20568
20569 * fontset.h (face_for_char): Adjust prototype.
20570
20571 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20572 (append_space, extend_face_to_end_of_line)
20573 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20574 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20575
20576 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20577 POS and OBJECT args.
20578
20579 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20580 POS and OBJECT args.
20581
205822008-02-01 Jason Rumney <jasonr@gnu.org>
20583
20584 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20585 of GlobalAlloc'ed memory.
20586
205872008-02-01 Kenichi Handa <handa@m17n.org>
20588
20589 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20590
20591 * charset.h (charset_table_used): Delete extern.
20592
20593 * charset.c (charset_table_used): Make it static.
20594 (map_charset_chars): Fix args to c_function with.
20595
20596 * chartab.c (map_sub_char_table_for_charset): Fix args to
20597 c_function with.
20598
20599 * coding.h (enum coding_result_code): Delete
20600 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20601
20602 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20603 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20604 (Vlast_code_conversion_error): New variables.
20605 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20606 (ONE_MORE_BYTE): Record error if any instead of signaling an
20607 error. If non-ASCII multibyte char is found, return the negative
20608 value of the code. All callers changed to check it.
20609 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20610 (record_conversion_result): New function. Change all codes setting
20611 coding->result to call this function.
20612 (detect_coding_utf_8, decode_coding_utf_8)
20613 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20614 Don't use the local variable incomplete.
20615 (emacs_mule_char): Change the second arg to `const'.
20616 (decode_coding): Fix of flushing out unprocessed data.
20617 (make_conversion_work_buffer): Fix making of a work buffer.
20618 (decode_coding_object): Return coding->dst_object.
20619
20620 * fontset.c (set_fontset_font): Fix args.
20621
20622 * lisp.h (CHARACTERBITS): Define as 22.
20623
20624 * process.c (send_process): Be sure to set coding->src_multibyte.
20625
20626 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20627
206282008-02-01 Kenichi Handa <handa@m17n.org>
20629
20630 * xdisp.c (handle_auto_composed_prop): Give limit to
20631 Fnext_single_char_property_change.
20632
206332008-02-01 Kenichi Handa <handa@m17n.org>
20634
20635 * composite.c (syms_of_composite): Don't make the composition hash
20636 table weak.
20637
20638 * fontset.c (Fset_fontset_font): Fix docstring.
20639
20640 * lisp.h (detect_coding_system): Adjust prototype.
20641
20642 * fileio.c (kill_workbuf_unwind): Delete this function.
20643 (Finsert_file_contents): Adjust the call of detect_coding_system.
20644 Get conversion_buffer by code_conversion_save. Use the macro
20645 CODING_MAY_REQUIRE_DECODING. After decoding, update
20646 coding_system.
20647
20648 * coding.h (make_conversion_work_buffer): Delete extern.
20649 (code_conversion_save): Extern it.
20650
20651 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20652 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20653 (decode_coding_utf_8): Don't do eol converion.
20654 (detect_coding_utf_16): Check coding->src_chars, not
20655 coding->src_bytes. Add heuristics for those that have no signature.
20656 (decode_coding_emacs_mule, decode_coding_iso_2022)
20657 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20658 Don't do eol converion.
20659 (adjust_coding_eol_type): Return a new coding system.
20660 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20661 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20662 each change.
20663 (decode_coding): Pay attention to undo_list. Do eol conversion for
20664 all types of coding-systems (if necessary).
20665 (Vcode_conversion_work_buf_list): Delete it.
20666 (Vcode_conversion_reused_workbuf): Rename from
20667 Vcode_conversion_reused_work_buf.
20668 (Vcode_conversion_workbuf_name): New variable.
20669 (reused_workbuf_in_use): New variable.
20670 (make_conversion_work_buffer): Delete the arg DEPTH.
20671 (code_conversion_restore): Change argument to cons.
20672 (code_conversion_save): Delete the argument BUFFER. Change callers.
20673 (detect_coding_system): New argument src_chars. Change callers.
20674 Fix for utf-16 detection.
20675 (init_coding_once): Don't use ISO_carriage_return.
20676 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20677 reused_workbuf_in_use.
20678
206792008-02-01 Kenichi Handa <handa@m17n.org>
20680
20681 * keymap.c (store_in_keymap): Pay attention to the case that idx
20682 is a cons specifying a character range.
20683
206842008-02-01 Kenichi Handa <handa@m17n.org>
20685
20686 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20687 HANDLED_RECOMPUTE_PROPS.
20688
20689 * coding.c (Fdefine_coding_system_internal): Fix checking of
20690 ascii compatibility.
20691
206922008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * charset.c (find_charsets_in_text): Delete unused locale variable.
20695 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20696
20697 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20698 Resync charset_list to Vemacs_mule_charset_list.
20699
20700 * keymap.c (store_in_keymap): Pay attention to the case that idx
20701 is a cons specifying a character range.
20702
207032008-02-01 Kenichi Handa <handa@m17n.org>
20704
20705 * composite.c (update_compositions): Bind inhibit-read-only, etc
20706 to t before calling remove-list-of-text-properties.
20707
20708 * print.c (print_object): Always print ASCII chars as is.
20709
207102008-02-01 Kenichi Handa <handa@m17n.org>
20711
20712 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20713
20714 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20715 is a char table.
20716
207172008-02-01 Kenichi Handa <handa@m17n.org>
20718
20719 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20720
207212008-02-01 Kenichi Handa <handa@m17n.org>
20722
20723 * xfaces.c (set_lface_from_font_name): Fix for the case that
20724 FONTNAME is not fontset name.
20725
207262008-02-01 Kenichi Handa <handa@m17n.org>
20727
20728 * fns.c (base64_encode_1): Fix previous change.
20729
207302008-02-01 Kenichi Handa <handa@m17n.org>
20731
20732 * fontset.c (set_fontset_font): New function.
20733 (Fset_fontset_font): If a font is specified for a charset, use
20734 map_charset_chars to store the font spec in a fontset.
20735
207362008-02-01 Kenichi Handa <handa@m17n.org>
20737
20738 * fontset.c (fontset_face): Create a fallback fontset on demand.
20739 (make_fontset): Don't create a fallback fontset here.
20740 (free_face_fontset): Free a fallback fontset (if any) too.
20741 (n_auto_fontsets): Delete this variable.
20742 (auto_fontset_alist): New variable.
20743 (new_fontset_from_font_name): Check auto_fontset_alist.
20744 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20745 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20746 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20747 Defsubr Sfontset_list_all.
20748
207492008-02-01 Kenichi Handa <handa@m17n.org>
20750
20751 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20752
207532008-02-01 Kenichi Handa <handa@m17n.org>
20754
20755 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20756
207572008-02-01 Kenichi Handa <handa@m17n.org>
20758
20759 * editfns.c (Fgoto_char): Fix docstring.
20760
207612008-02-01 Kenichi Handa <handa@m17n.org>
20762
20763 * insdel.c (insert_from_gap): Adjust intervals correctly.
20764
207652008-02-01 Jason Rumney <jasonr@gnu.org>
20766
20767 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20768 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20769 (w32_initialize): Try to load it.
20770 (x_get_font_repertory): Use it if available.
20771 (w32_encode_char): Add shortcut for unicode output.
20772
20773 * w32fns.c (w32_load_system_font): Default charset to -1.
20774 (x_to_w32_charset): Match all fonts for unicode.
20775 (w32_to_x_charset): New parameter matching. Don't return partial
20776 or wildcard charsets.
20777 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20778 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20779 (w32_to_x_font): Match charset to real charset.
20780 (enum_font_cb2): Always list unicode versions.
20781
20782 * makefile.w32-in (temacs): Increase EMHEAP.
20783
207842008-02-01 Jason Rumney <jasonr@gnu.org>
20785
20786 * w32term.c (w32_encode_char): New charset parameter.
20787 font_info.encoding becomes encoding_type.
20788 (x_get_font_repertory): New function. Warning: stub only!
20789 (x_new_font): Return quickly if font already set.
20790 (x_new_fontset): fontsetname parameter is Lisp_Object.
20791 Use new fs_query_fontset. Try new_fontset_from_font_name.
20792 Use fontset_name for return value.
20793
20794 * w32term.h: Declare x_get_font_repertory.
20795
20796 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20797 place of find_charset_in_text. Use encode_coding_object in place
20798 of encode_coding.
20799 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20800 decode_coding.
20801
20802 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20803 of x_new_fontset.
20804 (w32_load_system_font): Initialize charset as unicode.
20805 font_info.encoding becomes encoding_type.
20806 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20807 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20808 (syms_of_w32fns): Set get_font_repertory_func.
20809
20810 * w32console.c: Include character.h. Use terminal_encode_buffer
20811 from term.c.
20812 (write_glyphs): Use new version of encode_terminal_code. Use
20813 encode_coding_object in place of encode_coding.
20814
20815 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20816 encoding becomes encoding_type.
20817
20818 * term.c (terminal_encode_buffer): Make externally visible.
20819
20820 * makefile.w32-in: Add character.h dependancies.
20821 (character.o, chartab.o): New targets.
20822
208232008-02-01 Kenichi Handa <handa@m17n.org>
20824
20825 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20826 CODING_ID_EOL_TYPE.
20827
208282008-02-01 Andreas Schwab <schwab@suse.de>
20829
20830 * coding.c (produce_chars): Revert last change.
20831
208322008-02-01 Kenichi Handa <handa@m17n.org>
20833
20834 * charset.h (charset_unicode): Extern it.
20835
20836 * charset.c (string_xstring_p): Check by (C >= 0x100).
20837 (find_charsets_in_text): Change format of the arc CHARSETS. New
20838 arg MULTIBYTE.
20839 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20840 change of find_charsets_in_text.
20841 (Fsplit_char): Fix doc. Never return unknown.
20842
20843 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20844
20845 * coding.c (Fdefine_coding_system_alias): Update
20846 Vcoding_system_list.
20847
20848 * fontset.c (load_font_get_repertory): Pay attention to the case
20849 that ENCODING of a font is specified by a char-table.
20850
20851 * xterm.c (x_get_font_repertory): Handle the case that the
20852 encoding of font is other than Unicode.
20853
208542008-02-01 Kenichi Handa <handa@m17n.org>
20855
20856 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20857 if a character is encodable by the terminal coding system. If
20858 not, produces proper number of `?'s. Update
20859 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20860 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20861
208622008-02-01 Kenichi Handa <handa@m17n.org>
20863
20864 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20865 variables.
20866 (encode_terminal_code): Change argument. Encode multiple
20867 characters at once. Store the result of encoding in
20868 terminal_encode_buffer.
20869 (write_glyphs, insert_glyphs): Adjust for the change of
20870 encode_terminal_code.
20871 (term_init): Initialize terminal_encode_buffer and
20872 terminal_encode_buf_size.
20873
20874 * coding.c (consume_chars): If coding->src_object is nil, don't
20875 check annotation.
20876
208772008-02-01 Kenichi Handa <handa@m17n.org>
20878
20879 * character.c (char_string): Use ASCII_CHAR_P instead of
20880 SINGLE_BYTE_CHAR_P.
20881
208822008-02-01 Kenichi Handa <handa@m17n.org>
20883
20884 * xdisp.c (handle_auto_composed_prop): Check if the last
20885 characters of auto-composed region is newly composed with the
20886 following characters.
20887 (handle_composition_prop): Fix checking of point being inside
20888 composition.
20889
208902008-02-01 Kenichi Handa <handa@m17n.org>
20891
20892 * fns.c (concat): Don't change multibyteness of the result by
20893 concatenating an 8-bit character.
20894
20895 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20896 multibyteness of the result when newelt is an 8-bit character.
20897
208982008-02-01 Dave Love <fx@gnu.org>
20899
20900 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20901 EMACS_INT.
20902
20903 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20904
20905 * xfaces.c (face_numeric_value): Declare dim size_t.
20906 (Finternal_lisp_face_equal_p): Remove unused f.
20907
20908 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20909 (MATRIX_ROW): Remove unused vars.
20910 (draw_glyphs, x_insert_glyphs, fast_find_position)
20911 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20912 byte/char counts.
20913
20914 * regex.c (regex_compile): Remove unused var.
20915
20916 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20917
20918 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20919 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20920
20921 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20922
20923 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20924
20925 * fileio.c (Fwrite_region): Remove unused var.
20926
20927 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20928 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20929
20930 * composite.c (Fremove_list_of_text_properties): Declare.
20931
20932 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20933 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20934 (coding_inherit_eol_type): Remove unused attrs.
20935 (detect_coding): Cast arg of detect_eol.
20936
20937 * charset.c (syms_of_charset): Remove unused var p.
20938 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20939 byte/char counts.
20940
20941 * casetab.c (set_case_table): Remove unused var.
20942
20943 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20944 unused vars.
20945
209462008-02-01 Dave Love <fx@gnu.org>
20947
20948 * xterm.c (x_bitmap_mask): Declare.
20949
209502008-02-01 Dave Love <fx@gnu.org>
20951
20952 * xterm.c (x_term_init): Fix type error.
20953
20954 * lisp.h: Add Funibyte_char_to_multibyte.
20955
20956 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20957 (Fset_coding_system_priority): Doc fix.
20958
20959 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20960
20961 * indent.c (check_composition): Make start and end EMACS_INT.
20962
20963 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20964
20965 * xdisp.c (handle_composition_prop, check_point_in_composition):
20966 Make buffer positions EMACS_INT.
20967
20968 * composite.c (find_composition, run_composition_function)
20969 (update_compositions, Ffind_composition_internal): Make buffer
20970 positions EMACS_INT.
20971
20972 * composite.h (find_composition, update_compositions): Make
20973 position args EMACS_INT.
20974
20975 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20976
20977 * intervals.c (get_property_and_range):
20978 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20979
20980 * unexalpha.c: Don't include varargs.h.
20981
209822008-02-01 Dave Love <fx@gnu.org>
20983
20984 * coding.h (ENCODE_UTF_8): New.
20985
20986 * Makefile.in (gtkutil.o): Depend on coding.h.
20987
20988 * coding.c (Fset_coding_system_priority): Doc fix.
20989
209902008-02-01 Kenichi Handa <handa@m17n.org>
20991
20992 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20993 the case of auto saving.
20994
209952008-02-01 Andreas Schwab <schwab@suse.de>
20996
20997 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20998 `range' from GC.
20999
210002008-02-01 Kenichi Handa <handa@m17n.org>
21001
21002 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21003
210042008-02-01 Kenichi Handa <handa@m17n.org>
21005
21006 * fileio.c (choose_write_coding_system): Return a decided coding system.
21007 (Fwrite_region): Set Vlast_coding_system_used to the return value
21008 of choose_write_coding_system.
21009
210102008-02-01 Kenichi Handa <handa@m17n.org>
21011
21012 * charset.c (Fset_charset_priority): Pay attention to duplicated
21013 arguments.
21014
21015 * coding.c (QCcategory): New variable.
21016 (syms_of_coding): Defsym it. Set all elements of
21017 Vcoding_category_table and their symbol values.
21018 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21019 coding-category-XXX, and coding-category-list.
21020 (Fdefine_coding_system_internal): Add category in the plist.
21021
210222008-02-01 Kenichi Handa <handa@m17n.org>
21023
21024 * callproc.c (Fcall_process): Handle carryover correctly.
21025
21026 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21027 (raw_text_coding_system): Check NILP (coding_system).
21028 (coding_inherit_eol_type): Check NILP (coding_system) and
21029 NILP (parent).
21030 (consume_chars): Fix for the case of raw-text.
21031
21032 * process.c (read_process_output): Handle carryover correctly.
21033
210342008-02-01 Dave Love <fx@gnu.org>
21035
21036 * regex.c (re_search_2): Fix last change.
21037
210382008-02-01 Kenichi Handa <handa@m17n.org>
21039
21040 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21041 target_multibyte. Even in a unibyte case, return a converted
21042 multibyte char.
21043 (GET_CHAR_AFTER): New macro.
21044 (PATFETCH): Translate via multibyte char.
21045 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21046 (SETUP_MULTIBYTE_RANGE): New macro.
21047 (regex_compile): Setup compiled code so that its multibyteness
21048 matches that of a target. Fix the handling of "[X-YZ]" using
21049 SETUP_MULTIBYTE_RANGE.
21050 (analyse_first) <charset>: For filling fastmap for all multibyte
21051 characters, don't check by BASE_LEADING_CODE_P.
21052 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21053 the same as RE_MULTIBYTE_P (bufp) now.
21054 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21055 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21056 (TRANSLATE_VIA_MULTIBYTE): New macro.
21057 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21058 It is the same as RE_MULTIBYTE_P (bufp) now.
21059 <exactn>: Translate via multibyte.
21060 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21061 translate it.
21062 <charset, charset_not>: Fetch a character by
21063 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21064 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21065 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21066 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21067 by GET_CHAR_AFTER.
21068 (bcmp_translate): Likewise.
21069
21070 * search.c (compile_pattern): Check the member target_multibyte,
21071 not the member multibyte of buf.
21072
21073 * lread.c (read1): While reading a string, set force_singlebyte
21074 and force_multibyte correctly.
21075
21076 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21077 up of unibyte_to_multibyte_table.
21078
210792008-02-01 Kenichi Handa <handa@m17n.org>
21080
21081 * coding.c (setup_coding_system): If coding has
21082 post-read-conversion or pre-write-conversion, set
21083 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21084 respectively.
21085 (decode_coding_gap): Run post-read-conversion if any.
21086
21087 * fileio.c (Finsert_file_contents): Even if we read into a
21088 unibyte buffer, check if we must decode the result or not.
21089
210902008-02-01 Kenichi Handa <handa@m17n.org>
21091
21092 * coding.c (make_conversion_work_buffer): Change the work buffer
21093 name to the same one as that of Emacs 21.
21094
210952008-02-01 Kenichi Handa <handa@m17n.org>
21096
21097 * coding.h (make_conversion_work_buffer): Adjust prototype.
21098 (code_conversion_restore): Don't extern it.
21099
21100 * coding.c (detected_mask): Delete unused variable.
21101 (decode_coding_iso_2022): Pay attention to the byte sequence of
21102 CTEXT extended segment, and retain those bytes as is.
21103 (decode_coding_ccl): Delete unused variable `valids'.
21104 (setup_coding_system): Delete unused variable `category'.
21105 (consume_chars): Delete unused variable `category'. Make it work
21106 for non-multibyte case.
21107 (make_conversion_work_buffer): Change argument.
21108 (saved_coding): Delete unused variable.
21109 (code_conversion_restore): Don't check saved_coding->destination.
21110 (code_conversion_save): New function.
21111 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21112 instead of record_unwind_protect.
21113 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21114 (detect_coding_system): Delete unused variable `mask'.
21115 (Fdefine_coding_system_internal): Delete unused variable id.
21116
21117 * fileio.c (kill_workbuf_unwind): New function.
21118 (Finsert_file_contents): On replacing, call
21119 make_conversion_work_buffer with correct args, and call
21120 record_unwind_protect with the first arg kill_workbuf_unwind.
21121
21122 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21123
211242008-02-01 Kenichi Handa <handa@m17n.org>
21125
21126 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21127 (fontset_add): Fix for the case that TO is less than TO1.
21128 (Ffontset_info): Don't use fallback fontset on checking the
21129 default fontset.
21130 (dump_fontset): New function for debugging.
21131
21132 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21133 coding_type is Qcharset.
21134
211352008-02-01 Kenichi Handa <handa@m17n.org>
21136
21137 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21138 (map_char_table): Don't inherit the value from the parent on
21139 initializing VAL. Adjust for the above change.
21140
211412008-02-01 Kenichi Handa <handa@m17n.org>
21142
21143 * coding.c (Qsignature, Qendian): Delete these variables.
21144 (syms_of_coding): Don't initialize them.
21145 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21146 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21147 detect_info->found.
21148 (decode_coding_utf_16): Don't detect BOM here.
21149 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21150 is NOT utf_16_without_bom.
21151 (setup_coding_system): For a coding system of type utf-16, check
21152 if the attribute :endian is Qbig or not (not nil or not), and set
21153 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21154 (detect_coding): If coding type is utf-16 and BOM detection is
21155 required, detect it.
21156 (Fdefine_coding_system_internal): For a coding system of type
21157 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21158
211592008-02-01 Kenichi Handa <handa@m17n.org>
21160
21161 * coding.c (coding_set_source): Fix for the case that the current
21162 buffer is different from coding->src_object.
21163 (decode_coding_object): Don't use the conversion work buffer if
21164 DST_OBJECT is a buffer.
21165
211662008-02-01 Dave Love <fx@gnu.org>
21167
21168 * lread.c (read_emacs_mule_char) [len==2]: Index
21169 emacs_mule_charset correctly.
21170
211712008-02-01 Dave Love <fx@gnu.org>
21172
21173 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21174 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21175 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21176 treated specially.)
21177 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21178 (detected_mask): Remove Big5 bits.
21179
211802008-02-01 Kenichi Handa <handa@m17n.org>
21181
21182 The following changes are to make the font rescaling facility
21183 compatible with Emacs 21.
21184
21185 * xfaces.c (Vface_font_rescale_alist): Rename from
21186 Vface_resizing_fonts.
21187 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21188 (font_rescale_ratio): Rename from font_resizing_ratio.
21189 (split_font_name): Set font->rescale_ratio.
21190 (better_font_p): Pay attention to font->rescale_ratio.
21191 (build_scalable_font_name): Likewise. Change RESX, and RESY
21192 fields.
21193 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21194
211952008-02-01 Kenichi Handa <handa@m17n.org>
21196
21197 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21198 (Qutf_16_le): Remove these variables.
21199 (syms_of_coding): Don't DEFSYM them.
21200 (decode_coding_utf_16): Fix handling of BOM.
21201 (encode_coding_utf_16): Fix handling of BOM.
21202
212032008-02-01 Kenichi Handa <handa@m17n.org>
21204
21205 * fileio.c (Finsert_file_contents): On replacing, before decoding
21206 the file into the work buffer, set point of the work buffer to the end.
21207
212082008-02-01 Dave Love <fx@gnu.org>
21209
21210 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21211
212122008-02-01 Dave Love <fx@gnu.org>
21213
21214 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21215 and fix C types.
21216
212172008-02-01 Kenichi Handa <handa@m17n.org>
21218
21219 * xdisp.c (SKIP_GLYPHS): New macro.
21220 (set_cursor_from_row): Pay attention to string display properties.
21221
21222 * category.c (copy_category_entry): Fix for the case that RANGE
21223 is an integer.
21224
21225 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21226
21227 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21228
212292008-02-01 Kenichi Handa <handa@m17n.org>
21230
21231 * charset.c (Fcharset_id_internal): New function.
21232 (syms_of_charset): Defsubr it.
21233
21234 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21235 with the last arg charset_list acquired from coding.
21236 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21237 the attribute coding_attr_ccl_valids.
21238
21239 * coding.h (enum define_coding_ccl_arg_index): Set the first
21240 member coding_arg_ccl_decoder to coding_arg_max.
21241
21242 * ccl.h (ccl_driver): Adjust prototype.
21243
21244 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21245 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21246 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21247 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21248 last arg Qnil.
21249
212502008-02-01 Kenichi Handa <handa@m17n.org>
21251
21252 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21253 call encode_char.
21254
21255 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21256
212572008-02-01 Dave Love <fx@gnu.org>
21258
21259 * composite.c (syms_of_composite): Make composition_hash_table weak.
21260
212612008-02-01 Kenichi Handa <handa@m17n.org>
21262
21263 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21264 (font_name_registry): Don't extern them.
21265 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21266
21267 * fontset.h (Qfontset): Don't extern it.
21268 (new_fontset_from_font_name): Extern it.
21269
21270 * fontset.c: Give 8 extra slots to fontset objects.
21271 (Qfontset_info): New variable.
21272 (syms_of_fontset): Defsym it.
21273 (FONTSET_FALLBACK): New macro.
21274 (fontset_face): Try also the default fontset.
21275 (make_fontset): Realize a fallback fontset from the default fontset.
21276 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21277 using split_font_name_into_vector and build_font_name_from_vector.
21278 (Fset_fontset_font): Access the elements of font_spec by enum
21279 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21280 name by using split_font_name_into_vector.
21281 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21282 generate a proper font name from the fontset name. Update
21283 Vfontset_alias_alist.
21284 (n_auto_fontsets): New variable.
21285 (new_fontset_from_font_name): New function.
21286 (Ffont_info): Store the information about fonts generated from the
21287 default fontset in the first extra slot of the returned char-table.
21288
21289 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21290 (font_name_registry): Delete function.
21291 (split_font_name_into_vector): New function.
21292 (build_font_name_from_vector): New function.
21293 (font_list): The argument REGISTRY is now a list of registry names.
21294 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21295 specifies an explicit font name, return the name as is. Make a
21296 list of registy names.
21297
21298 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21299 of x_new_fontset.
21300 (Fx_create_frame): Don't call x_new_fontset here. Just use
21301 x_list_fonts to check the existence of fonts.
21302
21303 * xterm.h (x_new_fontset): Adjust prototype.
21304
21305 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21306 string. Use new_fontset_from_font_name to create a fontset from a
21307 font name.
21308
213092008-02-01 Kenichi Handa <handa@m17n.org>
21310
21311 * syntax.c (Vfind_word_boundary_function_table): New name for
21312 Vnext_word_boundary_function_table.
21313 (find-word-boundary-function-table): New name for
21314 next-word-boundary-function-table.
21315
213162008-02-01 Dave Love <fx@gnu.org>
21317
21318 * Makefile.in: Fix some dependencies.
21319
21320 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21321 set it to nil before returning.
21322
21323 * composite.c (update_compositions): Fix type error.
21324
21325 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21326
213272008-02-01 Kenichi Handa <handa@m17n.org>
21328
21329 * xterm.c (x_new_font): Optimize for the case that the font is
21330 already set for the frame.
21331
213322008-02-01 Kenichi Handa <handa@m17n.org>
21333
21334 * chartab.c (char_table_ascii): Check if the char table contents
21335 is sub-char-table or not.
21336 (char_table_set, char_table_set_range): Fix argument to
21337 char_table_ascii.
21338
21339 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21340 (detect_coding_utf_8, detect_coding_utf_16)
21341 (detect_coding_emacs_mule, detect_coding_iso_2022)
21342 (detect_coding_sjis, detect_coding_big5)
21343 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21344 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21345 sequence is valid in this coding system. Change callers.
21346 (MAX_ANNOTATION_LENGTH): New macro.
21347 (ADD_ANNOTATION_DATA): New macro.
21348 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21349 ADD_ANNOTATION_DATA. Change the format of annotation data.
21350 (ADD_CHARSET_DATA): New macro.
21351 (emacs_mule_char): New argument ID. Change callers.
21352 (decode_coding_emacs_mule, decode_coding_iso_2022)
21353 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21354 Produce charset annotation data in coding->charbuf.
21355 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21356 to charset annotation data in coding->charbuf.
21357 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21358 coding->common_flags if the coding system is iso-2022 based and
21359 uses designation.
21360 (produce_composition): Adjust for the new annotation data format.
21361 (produce_charset): New function.
21362 (produce_annotation): Handle charset annotation.
21363 (handle_composition_annotation, handle_charset_annotation): New
21364 functions.
21365 (consume_chars): Handle charset annotation. Utilize the above two
21366 functions.
21367 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21368 buffer, get the deleted text as a string and set
21369 coding->src_object to that string.
21370 (detect_coding, detect_coding_system): Use the new struct
21371 coding_detection_info.
21372
21373 * coding.h (struct coding_detection_info): New structure.
21374 (struct coding_system): Adjust prototype of the member `detector'.
21375 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21376
213772008-02-01 Kenichi Handa <handa@m17n.org>
21378
21379 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21380
213812008-02-01 Dave Love <fx@gnu.org>
21382
21383 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21384 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21385 to new local and nullify apropos_accumulate before returning.
21386 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21387
213882008-02-01 Kenichi Handa <handa@m17n.org>
21389
21390 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21391 correctly.
e3eea1fc 21392
aac0c6e3
MR
213932008-02-01 Dave Love <fx@gnu.org>
21394
21395 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21396
213972008-02-01 Kenichi Handa <handa@m17n.org>
21398
21399 The following changes are to make character composition happen
21400 automatically on displaying.
21401
21402 * Makefile.in (lisp, shortlisp): Add composite.elc.
21403
21404 * composite.h (Qauto_composed, Vauto_composition_function)
21405 (Qauto_composition_function): Extern them.
21406
21407 * composite.c (Vcomposition_function_table)
21408 (Qcomposition_function_table): Delete variables.
21409 (Qauto_composed, Vauto_composition_function)
21410 (Qauto_composition_function): New variables.
21411 (run_composition_function): Don't call
21412 compose-chars-after-function.
21413 (update_compositions): Clear `auto-composed' text property.
21414 (compose_chars_in_text): Delete this function.
21415 (syms_of_composite): Staticpro Qauto_composed and
21416 Qauto_composition_function. Declare Vauto_composition_function as
21417 a Lisp variable.
21418
21419 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21420
21421 * xdisp.c (it_props): Add an entry for Qauto_composed.
21422 (handle_auto_composed_prop): New function.
21423
21424 * xselect.c (selection_data_to_lisp_data): Don't call
21425 compose_chars_in_text.
21426
214272008-02-01 Dave Love <fx@gnu.org>
21428
21429 * keyboard.c (read_char): Modify checking around use of
21430 Vkeyboard_translate_table.
21431
21432 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21433 and fix C types.
21434
214352008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21438 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21439 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21440 the case that the last byte is '\r' correctly.
21441 (decode_coding): Flush out the unprocessed data correctly.
21442 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21443
214442008-02-01 Dave Love <fx@gnu.org>
21445
21446 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21447 Add XK_ISO... case.
21448 (xaw_scroll_callback): Revert last change.
21449
214502008-02-01 Kenichi Handa <handa@m17n.org>
21451
21452 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21453
214542008-02-01 Kenichi Handa <handa@m17n.org>
21455
21456 * xfaces.c (Vface_resizing_fonts): New variable.
21457 (struct font_name): New member `resizing_ratio'.
21458 (font_resizing_ratio): New function.
21459 (split_font_name): Set font->resizing_ratio.
21460 (better_font_p): Pay attention to font->resizing_ratio.
21461 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21462 RESX, and RESY fields.
21463 (try_alternative_families): Try scalable fonts if
21464 Vscalable_fonts_allowed is not Qt.
21465 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21466
214672008-02-01 Dave Love <fx@gnu.org>
21468
21469 * xterm.c (xaw_scroll_callback): Cast correctly.
21470
214712008-02-01 Dave Love <fx@gnu.org>
21472
21473 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21474 (lispy_kana_keys): Comment out.
21475 (make_lispy_event) [XK_kana_A]: Comment out.
21476
21477 * xterm.c (xaw_scroll_callback): Cast call_data.
21478 (XTread_socket): Deal with ASCII keysyms.
21479 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21480
214812008-02-01 Dave Love <fx@gnu.org>
21482
21483 * xterm.c (Vx_keysym_table): New.
21484 (syms_of_xterm): Initialize it.
21485 (XTread_socket): Use it.
21486 From head: Eliminate incorrect optimization that tried to avoid
21487 decoding the output of X*LookupString.
21488 (x_get_font_repertory): Delete charset declaration.
21489
214902008-02-01 Kenichi Handa <handa@m17n.org>
21491
21492 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21493 return 0.
21494 (Fdefine_coding_system_internal): Setup
21495 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21496
214972008-02-01 Dave Love <fx@gnu.org>
21498
21499 * coding.c (Fcheck_coding_system): Doc fix.
21500
21501 * editfns.c (Finsert_byte): Return a proper value.
21502
215032008-02-01 Kenichi Handa <handa@m17n.org>
21504
21505 * coding.c (decode_coding): Fix args to translate_chars. Pay
21506 attention to Vstandard_translation_table_for_decode.
21507 (encode_coding): Fix args to translate_chars. Pay attention to
21508 Vstandard_translation_table_for_encode.
21509
21510 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21511 SINGLE_BYTE_CHAR_P.
21512
21513 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21514 not by SINGLE_BYTE_CHAR_P.
21515
21516 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21517 SINGLE_BYTE_CHAR_P.
21518
21519 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21520 SINGLE_BYTE_CHAR_P.
21521
21522 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21523 by SINGLE_BYTE_CHAR_P.
21524
21525 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21526 SINGLE_BYTE_CHAR_P.
21527
215282008-02-01 Dave Love <fx@gnu.org>
21529
21530 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21531
215322008-02-01 Dave Love <fx@gnu.org>
21533
21534 * fns.c (Flanginfo): Fix typo.
21535
21536 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21537
215382008-02-01 Kenichi Handa <handa@m17n.org>
21539
21540 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21541 (detect_coding_emacs_mule, detect_coding_iso_2022)
21542 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21543 incomplete byte sequence. Don't update *mask when correctly detected.
21544 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21545 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21546 (detect_coding, detect_coding_system): Adjust for the changes above.
21547
215482008-02-01 Kenichi Handa <handa@m17n.org>
21549
21550 * character.c (char_string): Rename from
21551 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21552 (string_char): Rename from string_char.
21553
21554 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21555 if C is greater than MAX_3_BYTE_CHAR.
21556 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21557 string_char instead of string_char_with_unification.
21558
215592008-02-01 Dave Love <fx@gnu.org>
21560
21561 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21562
215632008-02-01 Kenichi Handa <handa@m17n.org>
21564
21565 * keymap.c (push_key_description): Pay attention to force_multibyte.
21566
21567 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21568
215692008-02-01 Dave Love <fx@gnu.org>
21570
21571 * charset.c (define_charset_internal): Rename `supprementary'.
21572
21573 * Makefile.in (lisp, shortlisp): Remove latin-N.
21574
215752008-02-01 Dave Love <fx@gnu.org>
21576
21577 * xfns.c (x_window, x_window): Use use_xim.
21578
21579 * xterm.c (use_xim): Initialize.
21580 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21581 (x_term_init): Maybe set use_xim.
21582
21583 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21584
215852008-02-01 Kenichi Handa <handa@m17n.org>
21586
21587 * search.c (search_buffer): Fix case-fold-search of multibyte
21588 characters.
21589 (boyer_moore): Rename the last argument to char_high_bits.
21590
215912008-02-01 Kenichi Handa <handa@m17n.org>
21592
21593 * xdisp.c (display_string): Fix for the case of zero width glyph.
21594
21595 * xfns.c (x_set_font): Change the error message of the case that
21596 x_new_fontset returns Qt.
21597
21598 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21599 (Finternal_set_lisp_face_attribute): Use signal_error for the
21600 error of invalid fontset.
21601
21602 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21603 fontset, return Qt.
21604
216052008-02-01 Dave Love <fx@gnu.org>
21606
21607 * unexelf.c (unexec): Make .got handling not SGI-specific.
21608
21609 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21610
21611 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21612
21613 * keyboard.c (read_key_sequence): Fix type error.
21614
21615 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21616 type error.
21617
21618 * fontset.c (fontset_add): Return Lisp_Object.
21619
216202008-02-01 Dave Love <fx@gnu.org>
21621
21622 * charset.h (charset_ordered_list_tick): Declare extern.
21623
216242008-02-01 Kenichi Handa <handa@m17n.org>
21625
21626 The following changes (and some of 2008-02-01 changes of mine) are
21627 for handling syntax, category, and case conversion for unibyte
21628 characters by converting them to multibyte on the fly. With these
21629 changes, we don't have to setup syntax and case tables for unibyte
21630 characters in each language environment.
21631
21632 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21633 multibyte if necessary.
21634
21635 * bytecode.c (Fbyte_code): Likewise.
21636
21637 * character.h (LEADING_CODE_LATIN_1_MIN)
21638 (LEADING_CODE_LATIN_1_MAX): New macros.
21639 (unibyte_to_multibyte_table): Extern it.
21640 (unibyte_char_to_multibyte): New macro.
21641 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21642 (CHAR_LEADING_CODE): New macro.
21643 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21644
21645 * character.c (unibyte_to_multibyte_table): New variable.
21646 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21647 (multibyte_char_to_unibyte): If C is an eight-bit character,
21648 convert it to the corresponding byte value.
21649
21650 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21651 not 1, signals an error. Update the elements of
21652 unibyte_to_multibyte_table.
21653 (init_charset_once): Initialize unibyte_to_multibyte_table.
21654 (syms_of_charset): Define the charset `iso-8859-1'.
21655
21656 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21657 as is without converting it to unibyte. In a unibyte buffer,
21658 convert C to multibyte before checking the syntax.
21659
21660 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21661
21662 * minibuf.c (Fminibuffer_complete_word): Use the macro
21663 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21664
21665 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21666
21667 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21668 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21669 that is zero, convert an eight-bit char to multibyte.
21670 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21671 non-emacs case.
21672 (PATFETCH): Convert an eight-bit char to multibyte.
21673 (HANDLE_UNIBYTE_RANGE): New macro.
21674 (regex_compile): Setup the compiled pattern for multibyte chars
21675 even if the given regex string is unibyte. Use PATFETCH_RAW
21676 instead of PATFETCH in many places. To handle `charset'
21677 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21678 only for ASCII chars.
21679 (analyse_first) <exactn>: Simplify because the compiled pattern
21680 is multibyte.
21681 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21682 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21683 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21684 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21685 multibyte always 1.
21686 (re_search_2): In emacs, set the locale variable multibyte to 1,
21687 otherwise to 0. New local variable target_multibyte. Check it
21688 to decide the multibyteness of STR1 and STR2. If
21689 target_multibyte is zero, convert unibyte chars to multibyte
21690 before translating and checking fastmap.
21691 (TARGET_CHAR_AND_LENGTH): New macro.
21692 (re_match_2_internal): In emacs, set the locale variable multibyte
21693 to 1, otherwise to 0. New local variable target_multibyte. Check
21694 it to decide the multibyteness of STR1 and STR2. Use
21695 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21696 <charset, charset_not>: If multibyte is nonzero, check fastmap
21697 only for ASCII chars. Call bcmp_translate with
21698 target_multibyte, not with multibyte.
21699 <begline>: Declare the local variable C as `unsigned'.
21700 (bcmp_translate): Change the last arg name to target_multibyte.
21701
21702 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21703 the regexp pattern and the matching target. Set cp->buf.multibyte
21704 to the multibyteness of the regexp pattern. Set
21705 cp->but.target_multibyte to the multibyteness of the matching target.
21706 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21707 FETCH_STRING_CHAR_ADVANCE.
21708 (Freplace_match): Convert unibyte chars to multibyte.
21709
21710 * syntax.c (char_quoted, back_comment, scan_words)
21711 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21712 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21713 unibyte chars to multibyte.
21714 (skip_chars): Delete the arg syntaxp, and move the code for
21715 handling syntaxes to skip_syntaxes. Change callers.
21716 Fix the case that the multibyteness of STRING and the current
21717 buffer doesn't match.
21718 (skip_syntaxes): New function.
21719 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21720 SINGLE_BYTE_CHAR_P.
21721
217222008-02-01 Kenichi Handa <handa@m17n.org>
21723
21724 * xfaces.c (QCfontset): New variable.
21725 (LFACE_FONTSET): New macro.
21726 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21727 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21728 (Finternal_set_lisp_face_attribute)
21729 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21730 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21731 check also LFACE_FONTSET_INDEX.
21732 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21733 attrs[LFACE_FONT_INDEX].
21734 (syms_of_xfaces): Intern and staticpro QCfontset.
21735
21736 * dispextern.h (enum lface_attribute_index): New member
21737 LFACE_FONTSET_INDEX.
21738
21739 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21740
217412008-02-01 Kenichi Handa <handa@m17n.org>
21742
21743 * coding.c (coding_set_destination): Fix coding->destination for
21744 the case converting a region.
21745 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21746 (encode_coding_object): Fix coding->dst_pos and
21747 coding->dst_pos_byte for the case converting a region.
21748
21749 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21750
21751 * character.h (BYTE8_STRING): New macro.
21752
21753 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21754
217552008-02-01 Kenichi Handa <handa@m17n.org>
21756
21757 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21758 characters by octal form.
21759
21760 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21761
21762 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21763 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21764 _fetch_multibyte_char_len.
21765 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21766
21767 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21768
21769 * casefiddle.c (casify_object): Simplify. Handle the case that
21770 the case conversion change the byte length.
21771 (casify_region): Likewise.
21772
21773 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21774
21775 * character.c (_fetch_multibyte_char_len): Delete this variable.
21776 (syms_of_character): Setup Vprintable_chars.
21777
21778 * editfns.c (Fchar_equal): Fix for the unibyte case.
21779 (Finsert_byte): New function.
21780 (syms_of_editfns): Defsubr it.
21781
21782 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21783 of direct code 0x3ffff.
21784
21785 * search.c (Freplace_match): Fix for the unibyte case.
21786
217872008-02-01 Kenichi Handa <handa@m17n.org>
21788
21789 * lread.c (safe_to_load_p): Fix the logic.
21790
21791 * syntax.c (scan_words): Don't treat characters belonging to
21792 different scripts as constituting a word.
21793
21794 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21795
21796 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21797
21798 * emacs.c (main): In the case of --unibyte, instead of aborting on
21799 finding non-empty buffer, make it unibyte.
21800
218012008-02-01 Kenichi Handa <handa@m17n.org>
21802
21803 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21804 to create a fontset.
21805
218062008-02-01 Dave Love <fx@gnu.org>
21807
21808 * character.c (Funibyte_char_to_multibyte): Doc fix.
21809
21810 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21811
218122008-02-01 Kenichi Handa <handa@m17n.org>
21813
21814 * fontset.c (fontset_add): Make the type `int'.
21815 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21816
21817 * character.c (unibyte_char_to_multibyte)
21818 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21819 charset_unibyte, not charset_primary.
21820
21821 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21822
21823 * charset.c (charset_unibyte): Rename from charset_primary.
21824 (Funibyte_charset): Rename from Fprimary_charset.
21825 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21826 (syms_of_charset): Adjust for the above changes.
21827
21828 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21829 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21830 it->multibyte_p is zero.
21831
21832 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21833 Delete extern.
21834
218352008-02-01 Kenichi Handa <handa@m17n.org>
21836
21837 * coding.c (Fdefine_coding_system_internal): Fix category setting
21838 for a coding system of type iso-2022.
21839
218402008-02-01 Kenichi Handa <handa@m17n.org>
21841
21842 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21843
218442008-02-01 Kenichi Handa <handa@m17n.org>
21845
21846 * syntax.c (Vnext_word_boundary_function_table): New variable.
21847 (next-word-boundary-function-table): Declare it as a Lisp variable
21848 in syms_of_syntax.
21849 (scan_words): Call functions in Vnext_word_boundary_function_table
21850 if any.
21851
21852 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21853
21854 * fontset.c (fs_load_font): If fontp->charset is not negative,
21855 return fontp without setting its members.
21856
218572008-02-01 Dave Love <fx@gnu.org>
21858
21859 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21860
21861 * m/sparc.h (HAVE_ALLOCA): Delete.
21862
21863 * s/irix6-5.h: Don't include strings.h.
21864 (bcopy, bzero, bcmp): Don't undef.
21865
21866 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21867
21868 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21869 (TIOCSIGSEND): Don't test IRIX6.
21870 (bcopy, bzero, bcmp): Define conditionally.
21871
218722008-02-01 Kenichi Handa <handa@m17n.org>
21873
21874 * buffer.c (Qas, Qmake, Qto): New variables.
21875 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21876 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21877
21878 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21879 we are inserting a process output into a multibyte buffer.
21880
21881 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21882 multibyte_char_to_unibyte.
21883
21884 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21885 by the primary charset, make it eight-bit char.
21886 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21887
21888 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21889 (charset_8_bit__control, charset_8_bit_graphic)
21890 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21891 (define_charset_internal): New function.
21892 (syms_of_charset): Call define_charset_internal for pre-defined
21893 charsets.
21894
21895 * charset.h (charset_8_bit): Extern it.
21896
21897 * coding.c (make_conversion_work_buffer): Adjust for the change
21898 of Fset_buffer_multibyte.
21899 (encode_coding_raw_text): Increment p0 in the loop.
21900
21901 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21902
21903 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21904 for the change of Fset_buffer_multibyte.
21905
21906 * fns.c (Fstring_to_multibyte): New function.
21907 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21908
219092008-02-01 Dave Love <fx@gnu.org>
21910
21911 * xfns.c (x_put_x_image): Declare args.
21912
21913 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21914 (try_font_list): Declare an arg.
21915
21916 * xdisp.c (message2_nolog, set_message): Declare an arg.
21917
21918 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21919
21920 * syntax.c (scan_sexps_forward): Declare an arg.
21921
21922 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21923 Declare an arg.
21924
21925 * lisp.h (Fnew_fontset): Declare.
21926
21927 * keymap.c (push_key_description): Call CHARACTERP correctly.
21928
21929 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21930 (face_for_char): Delete unused vars.
21931 (Fset_fontset_font): Doc fix. Delete unused vars.
21932
21933 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21934
21935 * composite.c (update_compositions): Declare arg.
21936
21937 * cm.c (calccost, cmgoto): Declare args.
21938
21939 * charset.c: Remove `emacs' conditional. Doc fixes.
21940 (map_char_table_for_charset): Declare.
21941
21942 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21943
21944 * ccl.c: Remove `emacs' conditional.
21945
219462008-02-01 Kenichi Handa <handa@m17n.org>
21947
21948 The following changes are to allow specifying multiple font
21949 patterns for a character range (specified by script or charset).
21950
21951 * Makefile.in (abbrev.o): Depend on syntax.h.
21952 (xfaces.o): Depend on charset.h.
21953
21954 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21955 SINGLE_BYTE_CHAR_P.
21956
21957 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21958
21959 * character.h (Vchar_script_table): Extern it.
21960
21961 * character.c (Vscript_alist): Delete.
21962 (Vchar_script_table, Qchar_script_table): New variable.
21963 (syms_of_character): Declare Vchar_script_table as a lisp variable
21964 and initialize it.
21965
21966 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21967 have property char-table-extra-slots, make no extra slot.
21968
21969 * dispextern.h (struct face): Delete member `charset'.
21970 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21971 SINGLE_BYTE_CHAR_P.
21972 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21973 Add prototypes.
21974 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21975 (generate_ascii_font_name): Rename from generate_ascii_font.
21976
21977 * fontset.h (get_font_repertory_func): New prototype.
21978 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21979 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21980
21981 * fontset.c (Qprepend, Qappend): New variables.
21982 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21983 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21984 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21985 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21986 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21987 (load_font_get_repertory): New functions.
21988 (fontset_set): Delete.
21989 (fontset_face): New arg FACE. Return face ID, not face.
21990 Complete re-write to handle new fontset structure. Change caller.
21991 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21992 (face_for_char): Don't call lookup_face.
21993 (make_fontset_for_ascii_face): New arg FACE.
21994 (fs_load_font): New arg CHARSET_ID. Don't check
21995 Vfont_encoding_alist here.
21996 (find_font_encoding): New function.
21997 (list_fontsets): Use STRINGP, not ! NILP.
21998 (accumulate_script_ranges): New function.
21999 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22000 re-written to handle new fontset structure.
22001 (Ffontset_font): Return a copy of element.
22002 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22003 docstring of font-encoding-alist.
22004
22005 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22006 (Fset_fotset_font): Fix arguments to 5.
22007
22008 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22009
22010 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22011 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22012 (highlight_trailing_whitespace): Adjust for the change of
22013 lookup_named_face.
22014
22015 * xfaces.c: Include charset.h.
22016 (load_face_font): Delete argument C. Change caller.
22017 (generate_ascii_font_name): Rename from generate_ascii_font.
22018 (font_name_registry): New function.
22019 (cache_face): Store ascii faces before non-ascii faces in buckets.
22020 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22021 Lookup only ascii faces.
22022 (lookup_non_ascii_face): New function.
22023 (lookup_named_face): Delete argument C. Change caller.
22024 (lookup_derived_face): Delete argument C. Change caller.
22025 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22026 a string, just call font_list with it.
22027 (choose_face_font): Delete arguments FACE and C. New arg
22028 FONT_SPEC. Change caller.
22029 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22030 Change caller.
22031 (realize_non_ascii_face): New function.
22032 (realize_x_face): Call load_face_font here.
22033 (realize_tty_face): Delete argument C. Change caller.
22034 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22035 get a face ID.
22036 (dump_realized_face): Don't print charset of FACE.
22037
22038 * xfns.c (x_set_font): Always call x_new_fontset and
22039 store_frame_parameter.
22040 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22041 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22042
22043 * xterm.h (x_get_font_repertory): Extern it.
22044
22045 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22046 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22047 it->multibyte_p is zero.
22048 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22049 (x_new_fontset): If FONTSETNAME doesn't match any existing
22050 fontsets, create a new one.
22051 (x_get_font_repertory): New function.
22052
220532008-02-01 Kenichi Handa <handa@m17n.org>
22054
22055 * coding.c (Ffind_coding_systems_region_internal): Detect an
22056 ASCII only string correctly.
22057
22058 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22059 version is 0.
22060
220612008-02-01 Kenichi Handa <handa@m17n.org>
22062
22063 * lread.c: Include "coding.h".
22064 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22065 (load_each_byte, unread_char): New variables.
22066 (readchar_backlog): Delete.
22067 (readchar): Return a character unless load_each_byte is nonzero.
22068 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22069 cons. If unread_char is not -1, simply return it.
22070 (unreadchar): Handle the case that readcharfun is
22071 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22072 (read_multibyte): Delete.
22073 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22074 (read_emacs_mule_char): New functions.
22075 (Fload): Even if the file doesn't have the extension ".elc", if
22076 safe_to_load_p returns a positive version number, assume that the
22077 file contains bytecompiled code. If the version is less than 22,
22078 load the file while decoding multibyte sequences by emacs-mule.
22079 (readevalloop): Don't use readchar_backlog.
22080 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22081 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22082 (read_escape): Delete the arg BYTEREP.
22083 (read1): Set load_each_byte to 1 temporarily while handling
22084 #@NUMBER. Don't call read_multibyte.
22085 (read_vector): Call Fread with a cons. If readcharfun is
22086 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22087 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22088 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22089 and Qload_force_doc_strings.
22090
220912008-02-01 Kenichi Handa <handa@m17n.org>
22092
22093 * xdisp.c (face_before_or_after_it_pos): Call
22094 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22095
220962008-02-01 Kenichi Handa <handa@m17n.org>
22097
22098 * character.h (TRAILING_CODE_P): New macro.
22099 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22100 (string_char_with_unification): Fix prototype.
22101 (Vscript_alist): Extern it.
22102
22103 * character.c (Vscript_alist): New variable.
22104 (string_char_with_unification, str_as_unibyte)
22105 (string_escape_byte8): Add `const' to local variables.
22106 (syms_of_character): Declare script-alist as a Lisp variable.
22107
22108 * charset.h (Vcharset_ordered_list): Extern it.
22109 (charset_ordered_list_tick): Extern it.
22110 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22111 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22112 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22113 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22114 (Funify_charset): Adjust for the change of Funify_charset.
22115
22116 * charset.c (charset_ordered_list_tick): New variable.
22117 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22118 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22119 deunify instead of unify a charset.
aac0c6e3
MR
22120 (string_xstring_p): Add `const' to local variables.
22121 (find_charsets_in_text): Add `const' to arguments and local variables.
22122 (encode_char): Adjust for the change of Funify_charset. Fix
22123 detecting of invalid code.
22124 (Fset_charset_priority): Increment charset_ordered_list_tick.
22125 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22126 and TO_CODE.
22127
22128 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22129 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22130 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22131 (decode_coding_ccl, consume_chars)
22132 (Ffind_coding_systems_region_internal)
22133 (Fcheck_coding_systems_region): Add `const' to local variables.
22134
22135 * print.c (print_object): Use octal form for printing the
22136 contents of a bool vector.
22137
221382008-02-01 Dave Love <fx@gnu.org>
22139
22140 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22141 <version == 20>: Refuse to load.
22142
221432008-02-01 Dave Love <fx@gnu.org>
22144
22145 * fns.c: Move coding.h.
22146 (Qcodeset, Qdays, Qmonths): New.
22147 (concat): Use CHARACTERP instead of INTEGERP.
22148 (Flocale_codeset): Delete.
22149 (Flanginfo): New function.
22150 (syms_of_fns): Change accordingly.
22151
22152 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22153
221542008-02-01 Dave Love <fx@gnu.org>
22155
22156 * casetab.c (init_casetab_once, init_casetab_once): Fix
22157 CHAR_TABLE_SET call.
22158
22159 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22160
22161 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22162
22163 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22164 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22165 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22166
22167 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22168
22169 * coding.c (ENCODE_DESIGNATION, decode_eol)
22170 (make_conversion_work_buffer, code_conversion_restore)
22171 (Fdefine_coding_system_internal): Convert Lisp types.
22172 (code_conversion_restore): Use EQ, not ==.
22173 (Fencode_coding_string): Fix code_convert_string call.
22174
22175 * coding.h (code_convert_region): Fix prototype.
22176
22177 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22178
22179 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22180 (Ffontset_info): Convert Lisp types.
22181
22182 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22183
22184 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22185
22186 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22187
22188 * chartab.c: Include "...h", not <...h> in some cases.
22189
22190 * callproc.c (Fcall_process): Remove unused variables.
22191
221922008-02-01 Dave Love <fx@gnu.org>
22193
22194 * coding.c (Fset_coding_system_priority): Allow null arg list.
22195
221962008-02-01 Dave Love <fx@gnu.org>
22197
22198 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22199 (Fself_insert_and_exit): Use CHARACTERP.
22200
22201 * callproc.c (Fcall_process): Remove unused vars.
22202
22203 * xterm.c (XTread_socket): Add extra dead keysyms.
22204
22205 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22206
22207 * dispextern.h: Remove prototypes for redraw_frame,
22208 redraw_garbaged_frames.
22209
22210 * cmds.c (Fself_insert_command): Use CHARACTERP.
22211
22212 * chartab.c (make_sub_char_table): Remove unused var.
22213 (Fset_char_table_default, Fmap_char_table): Doc fix.
22214
22215 * keymap.c (access_keymap): Remove generic char code.
22216 (push_key_description): Use CHARACTERP.
22217
222182008-02-01 Dave Love <fx@gnu.org>
22219
22220 * charset.c: Doc fixes.
22221 (Funify_charset): Extra checking.
22222
222232008-02-01 Dave Love <fx@gnu.org>
22224
22225 * lread.c: Remove some unused variables.
22226 (safe_to_load_p): If safe, return the magic number version byte.
22227 (Fload): Maybe use load-with-code-conversion.
22228
222292008-02-01 Kenichi Handa <handa@m17n.org>
22230
22231 * category.c (Fmodify_category_entry): Don't modify the contents
22232 of category_set for characters out of the range. Avoid
22233 unnecessary modification.
22234
22235 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22236 Vchar_unify_table. The default value of the table is now nil.
22237
22238 * character.c (syms_of_character): Setup Vchar_width_table for
22239 eight-bit-control and raw-byte chars.
22240
22241 * charset.h (enum define_charset_arg_index): Delete
22242 charset_arg_parents and add charset_arg_subset and
22243 charset_arg_superset.
22244 (enum charset_attr_index): Delete charset_parents and add
22245 charset_subset and charset_superset.
22246 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22247 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22248 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22249 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22250 (CHARSET_SUPERSET): New macros.
22251 (charset_work): Extern it.
22252 (ENCODE_CHAR): Use charset_work.
22253 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22254 (map_charset_chars): Extern it.
22255
22256 * charset.c (load_charset_map): Set the default value of encoder
22257 and deunifier char-tables to nil.
22258 (map_charset_chars): Change argument. Change callers. Use
22259 map_char_table_for_charset instead of map_char_table.
22260 (Fmap_charset_chars): New optional args from_code and to_code.
22261 (Fdefine_charset_internal): Adjust for the change of
22262 `define-charset' (:parents -> :subset or :superset).
22263 (charset_work): New variable.
22264 (encode_char, syms_of_charset): Adjust for the change of
22265 Fdefine_charset_internal.
22266 (Ffind_charset_string): Setup the vector `charsets' correctly.
22267
22268 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22269 the previous change.
22270 (char_table_ref_and_range): Adjust for the above change.
22271 (map_sub_char_table_for_charset): New function.
22272 (map_char_table_for_charset): New function.
22273
22274 * keymap.c (describe_vector): Handle a char-table directly here.
22275 (describe_char_table): Delete.
22276
22277 * lisp.h (map_charset_chars): Delete.
22278
222792008-02-01 Dave Love <fx@gnu.org>
22280
22281 * fns.c (count_combining): Comment out (unused).
22282 (Flocale_codeset): New.
22283 (syms_of_fns): Defsubr it.
22284
22285 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22286 (size_t): Remove.
22287
222882008-02-01 Dave Love <fx@gnu.org>
22289
22290 * Makefile.in (chartab.o): Depend on charset.h.
22291
222922008-02-01 Kenichi Handa <handa@m17n.org>
22293
22294 * character.c (syms_of_character): Set the default value of
22295 Vprintable_chars to Qnil.
22296
222972008-02-01 Dave Love <fx@gnu.org>
22298
22299 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22300
223012008-02-01 Kenichi Handa <handa@m17n.org>
22302
22303 * charset.c (load_charset_map): Handle the case that from < to
22304 correctly.
22305
22306 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22307 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22308 Pay attention to raw-8-bit chars.
22309
223102008-02-01 Kenichi Handa <handa@m17n.org>
22311
22312 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22313 It is not bytecompiled now.
22314
22315 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22316 (charset_jisx0208): New variables.
22317 (Fdefine_charset_internal): Setup them if appropriate.
22318 (init_charset_once): Initialize them to -1.
22319
22320 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22321 (charset_jisx0208): Extern them.
22322
22323 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22324 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22325 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22326 (setup_iso_safe_charsets): Fix arguments to Fassq.
22327 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22328 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22329 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22330 (encode_coding_iso_2022): Change the 1st arg to
22331 ENCODE_ISO_CHARACTER to a variable.
22332
223332008-02-01 Kenichi Handa <handa@m17n.org>
22334
22335 * charset.h (enum define_charset_arg_index): New enums
22336 charset_arg_min_code and charset_arg_max_code.
22337 (struct charset): New member char_index_offset.
22338
22339 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22340 Take charset->char_index_offset into account.
22341 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22342 args[charset_arg_max_code]. Setup charset.char_index_offset.
22343 (syms_of_charset): Fix args to Fdefine_charset_internal.
22344
223452008-02-01 Dave Love <fx@gnu.org>
22346
22347 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22348
223492008-02-01 Dave Love <fx@gnu.org>
22350
22351 * coding.c: Doc fixes.
22352 (Fcoding_system_aliases): Fix return value.
22353 (Qmac): Remove (duplicated) definition.
22354
223552008-02-01 Dave Love <fx@gnu.org>
22356
362654a6
JB
22357 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22358 New functions.
aac0c6e3
MR
22359
22360 * character.c (Fstring): Doc fix.
22361
22362 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22363
362654a6 22364 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22365 (font-encoding-alist): Doc fix.
22366
223672008-02-01 Dave Love <fx@gnu.org>
22368
22369 * term.c (costs_set): Declare static, non-initialized for pcc.
22370 (encode_terminal_code): Remove unused var.
22371
22372 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22373 for K&R.
22374
22375 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22376
22377 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22378 (suffixes): Move out of make_subsidiaries for K&R.
22379
22380 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22381
22382 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22383
223842008-02-01 Dave Love <fx@gnu.org>
22385
22386 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22387
22388 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22389
223902008-02-01 Yong Lu <lyongu@asia-infonet.com>
22391
22392 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22393
22394 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22395
223962008-02-01 Kenichi Handa <handa@m17n.org>
22397
22398 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22399 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22400
224012008-02-01 Kenichi Handa <handa@m17n.org>
22402
22403 * coding.c (decode_coding_charset): Adjust for the change of
22404 Fdefine_coding_system_internal.
22405 (Fdefine_coding_system_internal): For a coding system of
22406 `charset' type, store a list of charset IDs in
22407 `charset_attr_charset_valids' element of coding attributes.
22408
224092008-02-01 Kenichi Handa <handa@m17n.org>
22410
22411 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22412 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22413 caller. Handle 2-byte and 3-byte charsets correctly.
22414 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22415 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22416 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22417 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22418 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22419 sequence.
22420 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22421 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22422 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22423 and alt&rule composition.
22424 (decode_coding_iso_2022): Handle composition correctly.
22425 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22426
22427 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22428 re-defining a charset. If the charset has :emacs-mule-id, setup
22429 emacs_mule_bytes.
22430 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22431
224322008-02-01 Kenichi Handa <handa@m17n.org>
22433
22434 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22435 (encode_coding_big5, encode_coding_charset): If coding requires safe
22436 encoding, produce a character specified by
22437 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22438
224392008-02-01 Dave Love <fx@gnu.org>
22440
22441 * xterm.c (XSetIMValues): Declare.
22442
22443 * process.c: Conditionally include sys/wait.h, pty.h.
22444
22445 * print.c (print_object): Fix print format for 64-bit systems.
22446
22447 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22448
22449 * buffer.c (emacs_strerror): Declare.
22450
22451 * fontset.c (Fclear_face_cache): Declare.
22452 (accumulate_font_info): Comment-out (unused).
22453 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22454 variables.
22455
22456 * character.h (string_escape_byte8): Declare.
22457
22458 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22459 unused vars.
22460 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22461 (Fmap_charset_chars): Doc fix.
22462
22463 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22464 (Fset_coding_system_priority, Fset_coding_system_priority)
22465 (Fdefine_coding_system_internal): Doc fix.
22466
224672008-02-01 Dave Love <fx@gnu.org>
22468
22469 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22470
224712008-02-01 Kenichi Handa <handa@m17n.org>
22472
22473 * character.c (string_escape_byte8): Make multibyte string with
22474 correct size.
22475
22476 * charset.c (Fmake_char): Delete unnecessary code.
22477
224782008-02-01 Kenichi Handa <handa@m17n.org>
22479
22480 * xfns.c (x_encode_text): Allocate coding.destination here, and
22481 call encode_coding_object with dst_object Qnil.
22482
22483 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22484 multibyte form correctly.
22485
22486 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22487 against Vfont_encoding_alist.
22488
22489 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22490 handling of charset list.
22491 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22492 (decode_coding_object): Move point to coding->dst_pos before
22493 calling post-read-conversion function.
22494 (encode_coding_object): Give correct arguments to
22495 pre-write-conversion. Ignore the return value of
22496 pre-write-conversion function. Pay attention to the case that
22497 pre-write-conversion changes the current buffer. If dst_object is
22498 Qt, even if coding->src_bytes is zero, allocate at least one byte
22499 to coding->destination.
22500
22501 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22502
22503 * charset.c (Fmake_char): Make it more backward compatible.
22504 (Fmap_charset_chars): Fix docstring.
22505
225062008-02-01 Dave Love <fx@gnu.org>
22507
22508 * coding.c: Doc fixes.
22509 (Fdefine_coding_system_alias): Use names, not symbols, in
22510 coding-system-alist.
22511
225122008-02-01 Kenichi Handa <handa@m17n.org>
22513
22514 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22515 of calling free_realized_face.
22516
225172008-02-01 Yong Lu <lyongu@asia-infonet.com>
22518
22519 * charset.c (read_hex): Don't treat SPC as a comment starter.
22520 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22521 (Fdecode_char): Fix typo.
22522
225232008-02-01 Kenichi Handa <handa@m17n.org>
22524
22525 * charset.h (struct charset): New member `code_space_mask'.
22526
22527 * coding.c (coding_set_source): Delete the local variable beg_byte.
22528 (encode_coding_charset, Fdefine_coding_system_internal):
22529 Delete the local variable charset.
22530 (Fdefine_coding_system_internal): Setup
22531 attrs[coding_attr_charset_valids] correctly.
22532
22533 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22534 member to check if CODE is valid or not.
22535 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22536 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22537 is within the range of charset->min_code and carset->max_code.
22538
225392008-02-01 Dave Love <fx@gnu.org>
22540
22541 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22542
22543 * dispextern.h (generate_ascii_font): Fix return type.
22544
22545 * xfaces.c (generate_ascii_font): Fix arg declaration.
22546
22547 * coding.c (coding_inherit_eol_type)
22548 (Fset_terminal_coding_system_internal)
22549 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22550
225512008-02-01 Kenichi Handa <handa@m17n.org>
22552
22553 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22554 multiple charsets correctly.
22555
225562008-02-01 Kenichi Handa <handa@m17n.org>
22557
22558 * search.c (boyer_moore): Fix handling of multibyte character
22559 translation.
22560
22561 * xdisp.c (display_mode_element): When the variable `elt' is
22562 changed, update `this' and `lisp_string'.
22563
225642008-02-01 Kenichi Handa <handa@m17n.org>
22565
22566 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22567
22568 * callproc.c (Fcall_process): Be sure to give the current buffer
22569 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22570
22571 * charset.c (struct charset_map_entries): New struct.
22572 (load_charset_map): Rename from parse_charset_map. New args
22573 entries and n_entries. Change caller.
22574 (load_charset_map_from_file): Rename from load_charset_map.
22575 Change caller. New arg control_flag. Call load_charset_map at
22576 the tail.
22577 (load_charset_map_from_vector): New function.
22578 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22579 (encode_char): If the charset is compact, change a character index
22580 to a code point.
22581
22582 * coding.c (coding_alloc_by_making_gap): Check the case that the
22583 source and destination are the same correctly.
22584 (decode_coding_raw_text): Set coding->consumed_char and
22585 coding->consumed to 0.
22586 (produce_chars): If coding->chars_at_source is nonzero, update
22587 coding->consumed_char and coding->consumed before calling
22588 alloc_destination.
22589 (Fdefine_coding_system_alias): Register ALIAS in
22590 Vcoding_system_alist.
22591 (syms_of_coding): Define `no-conversion' coding system at the tail.
22592
22593 * fileio.c (Finsert_file_contents): Set coding_system instead of
22594 val. If the current buffer is multibyte, always call
22595 decode_coding_gap.
22596
22597 * xfaces.c (try_font_list): Give higher priority to fontset's
22598 family than face's family.
22599
226002008-02-01 Kenichi Handa <handa@m17n.org>
22601
22602 * callproc.c (Fcall_process): Be sure to give the current buffer
22603 to decode_coding_c_string.
22604
22605 * xfaces.c (try_font_list): Give a family specified in a fontset
22606 higher priority than a family specified in a face.
22607
226082008-02-01 Kenichi Handa <handa@m17n.org>
22609
22610 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22611 Fix arguments to insert_from_buffer.
22612
22613 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22614
226152008-02-01 Kenichi Handa <handa@m17n.org>
22616
22617 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22618 (decode_coding_gap): Set coding->dst_multibyte correctly.
22619
226202008-02-01 Kenichi Handa <handa@m17n.org>
22621
22622 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22623 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22624 (encode_coding_utf_16): Substitute coding->default_char for
22625 non-Unicode characters.
22626 (decode_coding): Don't call record_insert here.
22627 (setup_coding_system): Initialize `surrogate' of
22628 coding->spec.utf_16 to 0.
22629 (EMIT_ONE_BYTE): Fix for multibyte case.
22630
22631 * insdel.c (insert_from_gap): Call record_insert.
22632
226332008-02-01 Kenichi Handa <handa@m17n.org>
22634
22635 * casefiddle.c (casify_region): Fix multibyte case.
22636
22637 * character.c (c_string_width): Add return type `int'.
22638 (char_string_with_unification): Delete arg ADVANCED.
22639
22640 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22641 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22642 (CHAR_STRING_ADVANCE): Make it do-while statement.
22643
22644 * chartab.c (sub_char_table_set_range): Optimize for the case
22645 DEPTH == 3. Add workaround code for a GCC optimization bug.
22646
22647 * charset.c (parse_charset_map): Remove an unused variable.
22648
22649 * coding.c: Delete unused variables.
22650
22651 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22652 earlier. If inserted is zero and the coding system doesn't
22653 require flushing, don't call decode_coding_gap.
22654
22655 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22656
226572008-02-01 Kenichi Handa <handa@m17n.org>
22658
22659 The following changes are for using Unicode as an internal
22660 character model, and use UTF-8 format for buffer/string
22661 representation.
22662
22663 * .gdbinit (xchartable): Adjust for the change of char table structure.
22664 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22665
22666 * Makefile.in (obj): Add character.o and chartab.o.
22667 (lisp, shortlisp): Remove utf-8.elc.
22668 (*.o): For many files, change dependency on charset.h to
22669 character.h, and add dependency on character.h.
22670 (character.o, chartab.o): New targets.
22671
22672 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22673 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22674 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22675 of "charset.h".
22676
22677 * dired.c, filelock.c: Include "character.h".
22678
22679 * alloc.c: Include "character.h" instead of "charset.h".
22680 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22681 (syms_of_alloc): Remove defsubr for Smake_char_table.
22682
22683 * buffer.c: Include "character.h" instead of "charset.h", don't
22684 include "coding.h".
22685 (Fset_buffer_multibyte): Adjust for UTF-8.
22686
22687 * buffer.h: EXFUN Fbuffer_live_p.
22688
22689 * callproc.c: Include "character.h" instead of "charset.h".
22690 (Fcall_process): Big change for the new code-conversion APIs.
22691
22692 * casetab.c: Include "character.h" instead of "charset.h".
22693 (set_canon, set_identity, shuffle): Adjust for the new
22694 map_char_table spec.
22695 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22696 accessing the char table structure.
22697
22698 * chartab.c: New file that implements char table.
22699
22700 * category.c: Include "character.h".
22701 (copy_category_entry): New function.
22702 (copy_category_table): Call map_char_table and copy_category_entry.
22703 (Fmake_category_table): Initialize all top-level slots.
22704 (char_category_set): New function.
22705 (modify_lower_category_set): Delete.
22706 (Fmodify_category_entry): Call char_table_ref_and_range.
22707
22708 * category.h (CATEGORY_SET): Just call char_category_set.
22709
22710 * ccl.c: Include "character.h".
22711 (Qccl, Qcclp): New variables.
22712 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22713 it's less than 256.
22714 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22715 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22716 and DST type.
22717 (ccl_driver): Change types of argument, adjust code accordingly.
22718 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22719 ccl_driver.
22720 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22721
22722 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22723 New members src_multibyte, dst_multibyte, consumed, and produced.
22724 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22725 (CODING_SPEC_CCL_PROGRAM): New macro.
22726 (ccl_driver): Update prototype.
22727 (Qccl, Qcclp, Fccl_program_p): Extern them.
22728 (CHECK_CCL_PROGRAM): New macro.
22729
22730 * character.c, character.h, chartab.c: New files.
22731
22732 * charset.c: Mostly re-written. Move character and multibyte sequence
22733 handling codes to character.c.
22734
22735 * charset.h: Mostly re-written. Move character and multibyte sequence
22736 handling codes to character.h.
22737
22738 * coding.c, coding.h: Mostly re-written.
22739
22740 * composite.c: Include "character.h" instead of "charset.h".
22741 (CHAR_WIDTH): Move to character.h.
22742 (HASH_KEY, HASH_VALUE): Delete.
22743
22744 * composite.h (enum composition_method): Change order of enumeration
22745 symbols.
22746
22747 * data.c: Include "character.h" instead of "charset.h".
22748 (Faref): Call CHAR_TABLE_REF for a char table.
22749 (Faset): Call CHAR_TABLE_SET for a char table.
22750
22751 * dispextern.h (free_realized_face, check_face_attribytes)
22752 (generate_ascii_font): Extern them.
22753 (free_realized_multibyte_face): Delete extern.
22754
22755 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22756 table structure.
22757
22758 * editfns.c: Include "character.h" instead of "charset.h".
22759 (Fchar_to_string): Always call CHAR_STRING.
22760
22761 * emacs.c (main): Call init_charset_once, init_charset,
22762 syms_of_chartab, and syms_of_character.
22763
22764 * fileio.c: Include "character.h" instead of "charset.h".
22765 (Finsert_file_contents): Big change for the new code-conversion API.
22766 (choose_write_coding_system, Fwrite_region): Likewise.
22767 (build_annotations_2): Delete.
22768 (e_write): Big change for the new code-conversion API.
22769
22770 * fns.c: Include "character.h" instead of "charset.h".
22771 (copy_sub_char_table): Move to chartab.c.
22772 (Fcopy_sequence): Call copy_char_table for a char table.
22773 (concat): Delete codes calling count_multibyte.
22774 (string_char_to_byte, string_byte_to_char): Adjust for the new
22775 multibyte form.
22776 (internal_equal): Adjust for the change of char table structure.
22777 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22778 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22779 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22780 (char_table_translate, optimize_sub_char_table)
22781 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22782 chartab.c.
22783 (char_table_ref_and_index): Delete.
22784 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22785 (Fmd5): Call preferred_coding_system instead of accessing
22786 Vcoding_category_list. Adjust for the new code-conversion API.
22787 (syms_of_fns): Move defsubr for char table related functions to
22788 chartab.c.
22789
22790 * fontset.c: Mostly re-written.
22791
22792 * fontset.h (struct font_info): Change type of the member encoding_type.
22793 (enum FONT_SPEC_INDEX): New enum.
22794 (fontset_font_pattern, fs_load_font): Update prototype.
22795 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22796
22797 * indent.c: Include "character.h" instead of "charset.h".
22798 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22799
22800 * insdel.c: Include "character.h" instead of "charset.h".
22801 (copy_text): Don't refer to Vnonascii_translation_table.
22802 (insert_from_gap): New function.
22803
22804 * keyboard.c: Include "character.h" instead of "charset.h".
22805 (command_loop_1): Never call direct_output_forward_char before
22806 a non-ASCII character.
22807 (read_char): If Vkeyboard_translate_table is a char table, always
22808 translate a character.
22809
22810 * keymap.c: Include "character.h".
22811 (store_in_keymap): Handle the case that IDX is a cons.
22812 (Fdefine_key): Handle the case that KEY is a cons and the car part
22813 is also a cons (range).
22814 (push_key_description): Adjust for the new character code.
22815 (describe_vector): Call describe_char_table for a char table.
22816 (describe_char_table): New function.
22817
22818 * keymap.h (describe_char_table): Extern it.
22819
22820 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22821 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22822 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22823 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22824 Delete.
22825 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22826 structure.
22827 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22828 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22829 (CHARTAB_SIZE_BITS_3): New macros.
22830 (chartab_size): Extern it.
22831 (struct Lisp_Char_Table): Re-design.
22832 (struct Lisp_Sub_Char_Table): New structure.
22833 (HASH_KEY, HASH_VALUE): Move from fns.c.
22834 (CHARACTERBITS): Define as 22.
22835 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22836 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22837 (GC_SUB_CHAR_TABLE_P): New macro.
22838 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22839 (code_convert_string_norecord): Deleted extern.
22840 (init_character_once, syms_of_character, init_charset)
22841 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22842
22843 * lread.c: Include "character.h".
22844 (read_multibyte): New arg NBYTES.
22845 (read_escape): Change the meaning of returned *BYTEREP.
22846 (to_multibyte): Delete.
22847 (read1): Adjust the handling of char table and string.
22848
22849 * print.c: Include "character.h" instead of "charset.h".
22850 (print_string): Convert 8-bit raw bytes to octal form by
22851 string_escape_byte8.
22852 (print_object): Adjust for the new multibyte form. Print 8-bit
22853 raw bytes always in octal form. Handle sub char table correctly.
22854
22855 * process.c: Include "character.h" instead of "charset.h".
22856 (read_process_output, send_process): Adjust for the new
22857 code-conversion API.
22858
22859 * puresize.h (BASE_PURESIZE): Increase.
22860
22861 * regex.c: Include "character.h" instead of "charset.h".
22862 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22863 (regex_compile): Accept a range whose starting and ending
22864 character have different leading bytes.
22865 (analyse_first): Adjust for the above change.
22866
22867 * search.c: Include "character.h" instead of "charset.h".
22868 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22869 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22870
22871 * syntax.c: Include "character.h" instead of "charset.h".
22872 (syntax_parent_lookup): Delete.
22873 (Fmodify_syntax_entry): Accept a cons as CHAR.
22874 (skip_chars): Adjust for the new multibyte form.
22875 (init_syntax_once): Call char_table_set_range instead of directly
22876 accessing the structure of a char table.
22877
22878 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22879 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22880 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22881 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22882
22883 * term.c: Include "buffer.h" and "character.h".
22884 (encode_terminal_code, write_glyphs): Adjust for the new
22885 code-conversion API.
22886 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22887
22888 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22889
22890 * xdisp.c: Include "character.h".
22891 (get_next_display_element): Adjust for the new multibyte form.
22892 (disp_char_vector): Adjust for the new char table structure.
22893 (decode_mode_spec_coding): Adjust for the new structure of
22894 coding system.
22895 (decode_mode_spec): Adjust for the new code-conversion API.
22896
22897 * xfaces.c: Include "character.h" instead of "charset.h".
22898 (load_face_font): Adjust for the change of choose_face_font and
22899 FS_LOAD_FONT.
22900 (generate_ascii_font): New function.
22901 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22902 (set_font_frame_param): Adjust for the change of choose_face_font.
22903 (free_realized_face): Make it public.
22904 (free_realized_faces_for_fontset): Rename from
22905 free_realized_multibyte_face. Free also faces realized for ASCII.
22906 (choose_face_font): Change arguments. Adjust for the change of
22907 fontset_font_pattern and FS_LOAD_FONT.
22908
22909 * xfns.c: Include "character.h".
22910 (x_encode_text): Adjust for the new code-conversion API.
22911
22912 * xselect.c: Don't include "charset.h".
22913 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22914
22915 * xterm.c: Include "character.h".
22916 (x_encode_char): New argument CHARSET. Change caller.
22917 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22918 Call ENCODE_CHAR instead of SPLIT_CHAR.
22919 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22920 CHAR_WIDTH instead of CHARSET_WIDTH.
22921 (XTread_socket): Adjust for the new code-conversion API.
22922 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22923 (x_load_font): Adjust for the change of struct font.
22924
229252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22926
22927 * xfaces.c (face_at_buffer_position): Remove unused vars.
22928
229292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22930
22931 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22932 Fix overflow checking.
22933
229342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22935
22936 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22937 Cancel previous change.
22938
229392008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22940
22941 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22942 ccl->eight_bit_control. Fix check for buffer overflow.
22943 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22944 (ccl_driver): Initialize extra_bytes to 0.
22945
229462008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22947
22948 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22949 return it ORed with ctrl_modifier.
22950
229512008-01-29 Miles Bader <miles@gnu.org>
22952
22953 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22954
229552008-01-28 Jason Rumney <jasonr@gnu.org>
22956
22957 * w32.c (stat): Don't double check for networked drive.
22958
229592008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22960
22961 * window.c (run_window_configuration_change_hook): New function.
22962 Code extracted from set_window_buffer. Set the selected frame.
22963 (set_window_buffer): Use it.
22964 * window.h (run_window_configuration_change_hook): Declare.
22965 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22966
22967 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22968
229692008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22970
22971 * Makefile.in: Remove references to unused macros.
22972
229732008-01-26 Eli Zaretskii <eliz@gnu.org>
22974
22975 * w32.c (g_b_init_get_sid_sub_authority)
22976 (g_b_init_get_sid_sub_authority_count): New static variables.
22977 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22978 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22979 (init_user_info): Use them to retrieve uid and gid.
22980 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22981 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22982 st_uid and st_gid of the file.
22983
229842008-01-26 Jason Rumney <jasonr@gnu.org>
22985
22986 * w32.c (logon_network_drive): New function.
22987 (stat): Use it.
22988
229892008-01-26 Chong Yidong <cyd@stupidchicken.com>
22990
22991 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22992 invisible text covered with an ellipsis.
22993
229942008-01-25 Richard Stallman <rms@gnu.org>
22995
22996 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22997 jump back to beginning. Move some other initializations after that.
22998 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22999 New variables.
23000 (syms_of_xdisp): Init them.
23001
23002 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23003
23004 * buffer.c (reset_buffer_local_variables):
23005 Implement `permanent-local-hook'.
23006 (Qpermanent_local_hook): New variable.
23007 (syms_of_buffer): Init and staticpro it.
23008
230092008-01-25 Michael Albinus <michael.albinus@gmx.de>
23010
23011 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23012
230132008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23014
23015 * fns.c (Fclrhash): Return TABLE.
23016
230172008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23018
23019 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23020 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23021 is set even without positional changes.
23022 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23023
23024 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23025
230262008-01-23 Jason Rumney <jasonr@gnu.org>
23027
23028 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23029
23030 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23031 the unicode range available in MULE by locale-coding-system.
23032 Improve dbcs lead byte detection. Set event timestamp and modifiers
23033 earlier.
23034
230352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23036
23037 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23038 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23039 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23040 when used on child processes.
23041
230422008-01-21 Michael Albinus <michael.albinus@gmx.de>
23043
23044 * dbusbind.c (Fdbus_method_return_internal): Rename from
23045 Fdbus_method_return.
23046 (Fdbus_unregister_object): Move to dbus.el.
23047 (Fdbus_call_method, Fdbus_method_return_internal)
23048 (Fdbus_send_signal): Improve debug messages.
23049
230502008-01-20 Martin Rudalics <rudalics@gmx.at>
23051
23052 * undo.c (undo_inhibit_record_point): New variable.
23053 (syms_of_undo): Initialize it.
23054 (record_point): Don't record point when undo_inhibit_record_point
23055 is set.
23056
230572008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23058
23059 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23060
23061 * xdisp.c (Qauto_hscroll_mode): New var.
23062 (syms_of_xdisp): Initialize it.
23063 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23064 window's buffer.
23065 (hscroll_windows): Don't check automatic_hscrolling_p here.
23066
23067 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23068 vscroll if we're setting window-buffer to the value it already has.
23069
230702008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23071
23072 * m/intel386.h: Remove references to XENIX.
23073
230742008-01-17 Andreas Schwab <schwab@suse.de>
23075
23076 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23077 instead of HAVE_X86_64_LIB64_DIR.
23078 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23079
230802008-01-17 Glenn Morris <rgm@gnu.org>
23081
23082 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23083 to HAVE_X86_64_LIB64_DIR.
23084
230852008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23086
23087 * s/irix3-3.h:
23088 * s/irix4-0.h:
23089 * s/386-ix.h:
23090 * s/domain.h:
23091 * s/hpux9-x11r4.h:
23092 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23093
23094 * sysdep.c: Remove code containing references to symbols defined
23095 by unsupported systems.
23096
230972008-01-16 Glenn Morris <rgm@gnu.org>
23098
23099 * coding.c (select-safe-coding-system-function): Doc fix.
23100
231012008-01-15 Glenn Morris <rgm@gnu.org>
23102
23103 * config.in: Revert 2008-01-13 change: this is a generated file.
23104
231052008-01-13 Tom Tromey <tromey@redhat.com>
23106
23107 * lisp.h: Fix typo.
23108
231092008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23110
23111 * m/sequent-ptx.h:
23112 * m/sequent.h:
23113 * s/ptx.h:
23114 * s/ptx4-2.h:
23115 * s/ptx4.h: Remove files for systems no longer supported.
23116
23117 * callproc.c (Fcall_process): Fix previous change.
23118
231192008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23120
23121 * unexsunos4.c: Remove file, system not supported anymore.
23122
23123 * m/mips.h:
23124 * m/intel386.h:
23125 * callproc.c:
23126 * config.in:
23127 * ecrt0.c:
23128 * emacs.c:
23129 * fileio.c:
23130 * frame.c:
23131 * getpagesize.h:
23132 * keyboard.c:
23133 * lread.c:
23134 * process.c:
23135 * puresize.h:
23136 * sysdep.c:
23137 * systty.h:
23138 * syswait.h:
23139 * unexec.c:
23140 * xdisp.c:
23141 * alloc.c: Remove code containing references to symbols defined by
23142 unsupported systems.
23143
231442008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23145
23146 * coding.c (detect_coding_mask): Fix previous change.
23147
231482008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23149
23150 * coding.c (detect_coding_iso2022): New arg
23151 latin_extra_code_state. Allow Latin extra codes only
23152 when *latin_extra_code_state is nonzero.
23153 (detect_coding_mask): If there is a NULL byte, detect the encoding
23154 as UTF-16 or binary. If Latin extra codes exist, detect the
23155 encoding as ISO-2022 only when there's no other proper encoding is
23156 found.
23157
231582008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23159
23160 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23161 #ifdef MAC_OS.
23162
231632008-01-08 Richard Stallman <rms@gnu.org>
23164
23165 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23166
231672008-01-06 Nick Roberts <nickrob@snap.net.nz>
23168
23169 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23170 menu bar in parentheses.
23171
231722008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23173
23174 * m/7300.h:
23175 * m/acorn.h:
23176 * m/alliant-2800.h:
23177 * m/alliant.h:
23178 * m/alliant1.h:
23179 * m/alliant4.h:
23180 * m/altos.h:
23181 * m/amdahl.h:
23182 * m/apollo.h:
23183 * m/att3b.h:
23184 * m/aviion-intel.h:
23185 * m/aviion.h:
23186 * m/celerity.h:
23187 * m/clipper.h:
23188 * m/cnvrgnt.h:
23189 * m/convex.h:
23190 * m/cydra5.h:
23191 * m/delta88k.h:
23192 * m/dpx2.h:
23193 * m/dual.h:
23194 * m/elxsi.h:
23195 * m/f301.h:
23196 * m/gould-np1.h:
23197 * m/gould.h:
23198 * m/i860.h:
23199 * m/ibmps2-aix.h:
23200 * m/ibmrt-aix.h:
23201 * m/ibmrt.h:
23202 * m/irist.h:
23203 * m/is386.h:
23204 * m/isi-ov.h:
23205 * m/mega68.h:
23206 * m/mg1.h:
23207 * m/news-r6.h:
23208 * m/news-risc.h:
23209 * m/news.h:
23210 * m/nh3000.h:
23211 * m/nh4000.h:
23212 * m/ns16000.h:
23213 * m/ns32000.h:
23214 * m/nu.h:
23215 * m/orion.h:
23216 * m/orion105.h:
23217 * m/paragon.h:
23218 * m/pfa50.h:
23219 * m/plexus.h:
23220 * m/pyramid.h:
23221 * m/pyrmips.h:
23222 * m/sh3el.h:
23223 * m/sps7.h:
23224 * m/sr2k.h:
23225 * m/stride.h:
23226 * m/sun1.h:
23227 * m/sun2.h:
23228 * m/sun3-68881.h:
23229 * m/sun3-fpa.h:
23230 * m/sun3-soft.h:
23231 * m/sun3.h:
23232 * m/sun386.h:
23233 * m/symmetry.h:
23234 * m/tad68k.h:
23235 * m/tahoe.h:
23236 * m/targon31.h:
23237 * m/tek4300.h:
23238 * m/tekxd88.h:
23239 * m/tower32.h:
23240 * m/tower32v3.h:
23241 * m/ustation.h:
23242 * m/wicat.h:
23243 * m/xps100.h:
23244 * s/cxux.h:
23245 * s/cxux7.h:
23246 * s/dgux.h:
23247 * s/dgux4.h:
23248 * s/dgux5-4-3.h:
23249 * s/dgux5-4r2.h:
23250 * s/esix.h:
23251 * s/esix5r4.h:
23252 * s/hiuxmpp.h:
23253 * s/hiuxwe2.h:
23254 * s/iris3-5.h:
23255 * s/iris3-6.h:
23256 * s/isc2-2.h:
23257 * s/isc3-0.h:
23258 * s/isc4-0.h:
23259 * s/isc4-1.h:
23260 * s/newsos5.h:
23261 * s/newsos6.h:
23262 * s/osf1.h:
23263 * s/osf5-0.h:
23264 * s/riscix1-1.h:
23265 * s/riscix12.h:
23266 * s/sco4.h:
23267 * s/sco5.h:
23268 * s/sunos4-0.h:
23269 * s/sunos4-1.h:
23270 * s/sunos413.h:
23271 * s/sunos4shr.h:
23272 * s/umax.h:
23273 * s/unipl5-2.h:
23274 * s/xenix.h:
23275 * cxux-crt0.s:
23276 * unexapollo.c:
23277 * unexconvex.c:
23278 * unexenix.c:
23279 * unexsni.c: Remove files for systems no longer supported.
23280
23281 * m/intel386.h: Remove references to unsupported systems.
23282
23283 * w32.c (get_emacs_configuration): Remove reference to i860.
23284
23285 * sysdep.c: Remove dead code.
23286
232872008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23288
23289 * s/rtu.h:
23290 * m/masscomp.h: Remove files. Platform is obsolete.
23291
232922008-01-04 Michael Albinus <michael.albinus@gmx.de>
23293
23294 * dbusbind.c (Fdbus_method_return): New function.
23295 (xd_read_message): Add the serial number to the event.
23296 (Fdbus_register_method): Activate the function.
23297
232982008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23299
23300 * keyboard.c (read_key_sequence): Fix typo.
23301
233022008-01-03 Michael Albinus <michael.albinus@gmx.de>
23303
23304 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23305 (xd_signature, xd_append_arg): Handle element type detection for
23306 empty arrays.
23307 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23308 SDATA () calls; this must be solved more general.
23309 (Fdbus_register_signal): Use SBYTES instead of strlen.
23310
233112008-01-03 Magnus Henoch <magnus@zemdatav>
23312
23313 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23314 unsigned int for byte values (necessary for big-endian platform).
23315 (Fdbus_call_method): Handle the case of no returned arguments.
23316
233172007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23318
23319 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23320
233212007-12-31 Magnus Henoch <mange@freemail.hu>
23322
23323 * dbusbind.c (xd_signature): Signature of variant is just "v".
23324
233252007-12-30 Michael Albinus <michael.albinus@gmx.de>
23326
23327 * dbusbind.c: Fix several errors and compiler warnings.
23328 Reported by Tom Tromey <tromey@redhat.com>.
23329 (XD_ERROR, XD_DEBUG_MESSAGE)
23330 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23331 (xd_append_arg): Part for basic D-Bus types rewritten.
23332 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23333 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23334 appropriate.
23335 (xd_read_message): Return Qnil. Don't signal an error; it is not
23336 useful during event reading.
23337 (Fdbus_register_signal): Signal an error if the check for
23338 FUNCTIONP fails.
23339 (Fdbus_register_method): New function. The implementation is not
23340 complete, the call of the function signals an error therefore.
23341 (Fdbus_unregister_object): New function, renamed from
23342 Fdbus_unregister_signal. The initial check signals an error, if
23343 the object is not well formed.
23344
233452007-12-30 Richard Stallman <rms@gnu.org>
23346
23347 * textprop.c (get_char_property_and_overlay):
23348 Signal error if POSITION is out of range in a buffer.
23349
233502007-12-29 Martin Rudalics <rudalics@gmx.at>
23351
23352 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23353 because the original parameters are in pure storage now.
23354
233552007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23356
23357 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23358
233592007-12-22 Eli Zaretskii <eliz@gnu.org>
23360
23361 * callint.c (syms_of_callint) <command-history>: Add reference to
23362 history-length in the doc string.
23363
233642007-12-17 Jason Rumney <jasonr@gnu.org>
23365
23366 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23367 before passing as wParam.
23368
233692007-12-22 Michael Albinus <michael.albinus@gmx.de>
23370
23371 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23372 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23373 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23374 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23375 as number.
23376 (Fdbus_call_method): Fix docstring.
23377
233782007-12-21 Michael Albinus <michael.albinus@gmx.de>
23379
23380 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23381 New macros.
23382 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23383 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23384 Simplify.
23385 (xd_signature): New function.
23386 (xd_append_arg): Compute also signatures. Major rewrite.
23387 (xd_retrieve_arg): Make debug messages friendly.
23388 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23389 Check for signatures of arguments.
23390
233912007-12-19 Michael Albinus <michael.albinus@gmx.de>
23392
23393 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23394 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23395 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23396 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23397 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23398 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23399 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23400 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23401 (xd_retrieve_value): Remove. Functionality included in ...
23402 (xd_append_arg): New function.
23403 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23404
234052007-12-16 Michael Albinus <michael.albinus@gmx.de>
23406
23407 * dbusbind.c (top): Include <stdio.h>.
23408 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23409 dbus_message_new_method_call and dbus_message_new_signal.
23410 (Fdbus_register_signal): Rename unique_name to uname.
23411 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23412 non-existing unique name. Fix typos in matching rule. Return an
23413 object which is useful in Fdbus_unregister_signal.
23414 (Fdbus_unregister_signal): Reimplementation, in order to remove
23415 only the corresponding entry.
23416 (Vdbus_registered_functions_table): Change the order of entries.
23417 Apply these changes in xd_read_message and Fdbus_register_signal.
23418
234192007-12-16 Andreas Schwab <schwab@suse.de>
23420
23421 * fileio.c (Finsert_file_contents): Fix overflow check to not
23422 depend on undefined integer overflow.
23423
234242007-12-14 Jason Rumney <jasonr@gnu.org>
23425
23426 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23427 for characters above 127.
23428
234292007-12-13 Jason Rumney <jasonr@gnu.org>
23430
23431 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23432 before dereferencing array.
23433 (lookup_vk_code): Remove zero comparison.
23434
234352007-12-14 Michael Albinus <michael.albinus@gmx.de>
23436
23437 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23438 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23439 Use `unsigned int' instead of `uint'.
23440 (xd_read_message, Fdbus_register_signal): Split expressions into
23441 multiple lines before operators "&&" and "||", according to the
23442 GNU Coding Standards.
23443
234442007-12-14 Eli Zaretskii <eliz@gnu.org>
23445
23446 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23447
234482007-12-12 Juri Linkov <juri@jurta.org>
23449
23450 * buffer.c (Frename_buffer): In interactive spec replace
23451 `read-buffer' with `read-string' that uses `buffer-name-history'
23452 as history, and the current buffer's name as default.
23453
234542007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23455
23456 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23457 manipulating the backtrace manually.
23458 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23459 (struct backtrace, backtrace_list): Remove.
23460 (command_loop_1): Remove dead var `no_direct'.
23461
23462 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23463 preserve non-built-in buffer-local variables.
23464 (Fkill_all_local_variables): Don't re-create&re-set permanent
23465 buffer-local variables.
23466
234672007-12-09 Juri Linkov <juri@jurta.org>
23468
23469 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23470 Lisp code that uses `read-buffer' with current buffer as default.
23471
234722007-12-08 Michael Albinus <michael.albinus@gmx.de>
23473
23474 * dbusbind.c (xd_read_message): Generate an event for every
23475 registered handler. There might be several handlers registered
23476 for the same signal.
23477 (Fdbus_register_signal): Don't overwrite a registration for the
23478 same signal. Add a new registration if handlers are different.
23479 (Vdbus_registered_functions_table): Rework doc string.
23480
234812007-12-07 Michael Albinus <michael.albinus@gmx.de>
23482
23483 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23484 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23485 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23486 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23487 Unify argument lists.
23488 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23489 arguments and hash table keys. Use unique name for service.
23490 (Fdbus_unregister_signal): Remove checks.
23491 (Vdbus_registered_functions_table): Fix doc string.
23492
234932007-12-05 Magnus Henoch <mange@freemail.hu>
23494
23495 * process.c (make_process): Initialize pty_flag to 0.
23496
234972007-12-05 Jason Rumney <jasonr@gnu.org>
23498
23499 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23500 specified XBMs.
23501
235022007-12-05 Richard Stallman <rms@gnu.org>
23503
23504 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23505
235062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23507
23508 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23509 New variable.
23510 (mac_try_close_socket) [MAC_OSX]: New function.
23511 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23512 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23513
23514 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23515 Use mac_try_close_socket.
23516
235172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23518
23519 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23520 reloc_base.
23521 (copy_dysymtab): Compute relocation base here.
23522 (rebase_reloc_address) [__ppc64__]: New function.
23523 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23524 changed.
23525
235262007-12-05 Jason Rumney <jasonr@gnu.org>
23527
23528 * w32proc.c (sys_spawnve): Quote args with wildcards.
23529
235302007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23531
23532 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23533 __objc_* sections.
23534 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23535
235362007-12-05 Michael Albinus <michael.albinus@gmx.de>
23537
23538 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23539 Move check for Vdbus_registered_functions_table to
23540 xd_read_queued_messages.
23541 (xd_read_queued_messages): Protect xd_read_message calls by
23542 internal_condition_case_1.
23543
235442007-12-04 Michael Albinus <michael.albinus@gmx.de>
23545
23546 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23547 Qdbus_system_bus and Qdbus_session_bus, respectively.
23548 (Vdbus_intern_symbols): Remove.
23549 (Vdbus_registered_functions_table): New hash table.
23550 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23551 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23552 Rewrite in order to manage registered functions by hash table
23553 Vdbus_registered_functions_table.
23554
235552007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23556
23557 * xterm.c: Update URL to Window Manager Specification in comment.
23558
235592007-12-02 Michael Albinus <michael.albinus@gmx.de>
23560
23561 * config.in (HAVE_DBUS): Add.
23562
23563 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23564 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23565 (obj): Add $(DBUS_OBJ).
23566 (LIBES): Add $(DBUS_LIBS).
23567 (dbusbind.o): New target.
23568
23569 * dbusbind.c: New file.
23570
23571 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23572
23573 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23574 (Qdbus_event): New Lisp symbol.
23575 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23576 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23577 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23578
23579 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23580
235812007-12-01 Richard Stallman <rms@gnu.org>
23582
23583 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23584
235852007-11-30 Jason Rumney <jasonr@gnu.org>
23586
23587 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23588 (w32con_reset_terminal_modes): Clear screen buffer.
23589 (w32_face_attributes): Don't use color indexes that are out of range.
23590 Only reverse the default colors.
23591
23592 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23593 WINDOWSNT.
23594
23595 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23596
235972007-11-29 Jason Rumney <jasonr@gnu.org>
23598
23599 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23600 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23601 if the terminal colors are initialized.
23602 (unspecified_fg, unspecified_bg): Remove unused declarations.
23603
236042007-11-29 Andreas Schwab <schwab@suse.de>
23605
23606 * keyboard.c (apply_modifiers): Fix typo.
23607
236082007-11-29 Richard Stallman <rms@gnu.org>
23609
23610 * keymap.c (Fcurrent_local_map): Doc fix.
23611
236122007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23613
23614 * s/gnu-kfreebsd.h: New file.
23615
236162007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23617
23618 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23619 Don't cast redundantly.
23620
23621 * keyboard.c (KEY_TO_CHAR): New macro.
23622 (parse_modifiers, apply_modifiers): Accept integer arguments.
23623 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23624 for chars and symbol keys.
23625 After doing such remapping, apply function-key-map again.
23626
236272007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23628
23629 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23630 compiled anymore.
23631
236322007-11-26 Andreas Schwab <schwab@suse.de>
23633
23634 * process.c (list_processes_1): Fix indentation level of the
23635 command column.
23636
236372007-11-23 Andreas Schwab <schwab@suse.de>
23638
23639 * editfns.c (Fformat): Handle %c specially since it requires the
23640 argument to be of type int.
23641
236422007-11-23 Markus Triska <markus.triska@gmx.at>
23643
23644 * emacs.c (main): Call init_editfns before init_process, since
23645 init_process sets Vprocess_connection_type depending on OS release.
23646
236472007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23648
23649 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23650 (find_symbol_value): Use do_symval_forwarding.
23651
23652 * data.c (set_internal): Set the value in the `cons-cell' (for
23653 Buffer_Local_values) not only for frame-local variables.
23654
236552007-11-22 Andreas Schwab <schwab@suse.de>
23656
23657 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23658 values to sprintf.
23659 * keymap.c (Fsingle_key_description): Likewise.
23660 * print.c (print_object): Likewise.
23661
236622007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23663
23664 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23665 file for image is nil.
23666
236672007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23668
23669 * term.c: Include stdarg.h.
23670 (fatal): Implement using varargs.
23671 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23672
236732007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23674
23675 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23676 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23677 Update call to buffer_slot_type_mismatch.
23678 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23679 (buffer_slot_type_mismatch): Update.
23680 * buffer.c (buffer_local_types): Remove.
23681 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23682 (defvar_per_buffer): Set the type in the buffer_objfwd.
23683
236842007-11-21 Jason Rumney <jasonr@gnu.org>
23685
23686 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23687 CreateFileMapping returns NULL on failure.
23688
236892007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23690
23691 * search.c (Fset_match_data): Remove the `evaporate' feature.
23692 (unwind_set_match_data): Don't use the `evaporate' feature.
23693
236942007-11-21 Jason Rumney <jasonr@gnu.org>
23695
23696 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23697
23698 * w32console.c (w32con_write_glyphs): Remove unused variables.
23699
237002007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23701
23702 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23703
23704 * s/darwin.h (MULTI_KBOARD): Remove.
23705
23706 * macfns.c (x_create_tip_frame, Fx_create_frame)
23707 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23708
237092007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23710
23711 * buffer.c (Fbuffer_local_value): Remove redundant test.
23712 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23713 than in `current-buffer' to match the comment.
23714 Do the swap using swap_in_global_binding.
23715
23716 * data.c (store_symval_forwarding, set_internal):
23717 * eval.c (specbind): Remove dead code.
23718
23719 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23720 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23721 Since we do not want to see internal Lisp_*fwd objects here.
23722
237232007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23724
23725 * sysdep.c (init_system_name): Use getaddrinfo if available.
23726
23727 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23728 (x_scroll_bar_note_movement): start, end, with, height in struct
23729 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23730
237312007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23732
23733 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23734
237352007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23736
23737 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23738 This undoes Richard's change of 14-Oct-2002.
23739
23740 * alloc.c (allocate_other_vector):
23741 * lisp.h (allocate_other_vector): Remove.
23742
23743 * window.c (struct save_window_data): Move non-lisp data to the end
23744 and make it `int' rather than Lisp_Object.
23745 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23746 Done wrap/unwrap integer values.
23747 (Fset_window_configuration, compare_window_configurations):
23748 Update use of fields to their new types.
23749
23750 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23751 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23752 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23753 (SET_SCROLL_BAR_X_WINDOW): Remove.
23754 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23755 Access the new x_window field directly.
23756 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23757 Don't wrap/unwrap integers into Lisp_Objects.
23758 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23759 (x_scroll_bar_report_motion):
23760 Don't wrap/unwrap integers into Lisp_Objects.
23761 (x_term_init): Use SDATA.
23762 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23763 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23764 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23765 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23766 * xfns.c (x_set_background_color):
23767 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23768 Access the new x_window field directly.
23769
23770 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23771 (allocate_pseudovector): Make non-static.
23772
23773 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23774 (allocate_pseudovector): Declare.
23775 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23776
237772007-11-15 Andreas Schwab <schwab@suse.de>
23778
23779 * editfns.c (Fformat): Correctly format EMACS_INT values.
23780 Also take precision into account when formatting an integer.
23781
23782 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23783
237842007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23785
23786 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23787 (syms_of_keyboard): Defsubr it.
23788
23789 * data.c (swap_in_global_binding): Fix longstanding bug where
23790 store_symval_forwarding was not called with the right second argument,
23791 thus causing objfwd-ing from being dropped.
23792
237932007-11-14 Juanma Barranquero <lekktu@gmail.com>
23794
23795 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23796 (Fx_display_pixel_height, Fx_display_planes)
23797 (Fx_display_color_cells, Fx_server_max_request_size)
23798 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23799 (Fx_display_visual_class, Fx_display_save_under):
23800 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23801 (Fx_display_pixel_height, Fx_display_planes)
23802 (Fx_display_color_cells, Fx_server_max_request_size)
23803 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23804 (Fx_display_mm_height, Fx_display_mm_width)
23805 (Fx_display_backing_store, Fx_display_visual_class)
23806 (Fw32_select_font, Fx_display_save_under):
23807 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23808 (Fx_display_pixel_height, Fx_display_planes)
23809 (Fx_display_color_cells, Fx_server_max_request_size)
23810 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23811 (Fx_display_save_under): Fix typos in docstrings.
23812
238132007-11-14 Juanma Barranquero <lekktu@gmail.com>
23814
23815 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23816 corresponding to deleted entries; they are an implementation detail.
23817 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23818 Remove variables.
23819 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23820 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23821 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23822 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23823 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23824 (Fw32_define_rgb_color, Fw32_load_color_file)
23825 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23826 Fix typos in docstrings.
23827 (Fx_server_version): Reflow docstring.
23828 (Fw32_shell_execute): Doc fixes.
23829
238302007-11-13 Juanma Barranquero <lekktu@gmail.com>
23831
23832 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23833 if w32_parse_hot_key returned nil.
23834
238352007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23836
23837 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23838
238392007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23840
aac0c6e3
MR
23841 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23842
23843 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23844
23845 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23846 Remove W32_SCROLL_BAR_CLICK_EVENT.
23847
23848 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23849 Add MULTIMEDIA_KEY_EVENT.
23850
23851 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23852 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23853 (make_lispy_event) [WINDOWSNT]: Use it to translate
23854 MULTIMEDIA_KEY_EVENT.
23855
23856 * w32term.h (WM_APPCOMMAND): Define if not already.
23857 (GET_APPCOMMAND_LPARAM): Likewise.
23858
23859 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23860 WM_APPCOMMAND.
23861
23862 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23863 (syms_of_w32fns): Export and initialize it.
23864 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23865
238662007-11-09 Chong Yidong <cyd@stupidchicken.com>
23867
23868 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23869 twice.
23870
23871 * xdisp.c (handle_face_prop): Fix last change.
23872
238732007-11-09 Richard Stallman <rms@gnu.org>
23874
23875 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23876 not just for after-strings and before-strings.
23877 Call face_for_overlay_string and pass the overlay to it.
23878 (handle_display_prop): Determine whether property came from an overlay.
23879 Pass OVERLAY arg to handle_single_display_spec.
23880 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23881 (load_overlay_strings): Fill in it->string_overlays.
23882 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23883
23884 * xfaces.c (face_for_overlay_string): Function renamed from
23885 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23886
23887 * dispextern.h (struct it): New elt string_overlays.
23888 New elt from_overlay, also in stack.
23889 Rearrange a few elements.
23890 (face_for_overlay_string): Decl renamed from
23891 face_at_buffer_position_no_overlays, and add argument.
23892
238932007-11-09 Richard Stallman <rms@gnu.org>
23894
23895 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23896 to get the base face for an overlay string.
23897
23898 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23899
23900 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23901
23902 * xdisp.c (handle_stop): Move some code out of loop.
23903
239042007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23905
23906 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23907 Fix conversion from Lisp object to ATSUFontID.
23908
239092007-11-09 Jason Rumney <jasonr@gnu.org>
23910
23911 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23912
239132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23914
23915 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23916 Don't assume regions are aligned to page boundary.
23917 (print_load_command_name): Add LC_UUID if defined.
23918
239192007-11-09 Richard Stallman <rms@gnu.org>
23920
23921 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23922
239232007-11-07 Jason Rumney <jasonr@gnu.org>
23924
23925 * s/windows95.h: Remove.
23926
239272007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23928
23929 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23930 abort with a message on unhandled store_type values.
23931
239322007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23933
23934 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23935 Remove HAVE_X11R5 and HAVE_X11R4.
23936
239372007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23938
23939 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23940
239412007-11-01 Johan Bockgård <bojohan@gnu.org>
23942
23943 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23944 Don't set s->stippled_p here, since it has already been set by
23945 x_set_glyph_string_gc from x_draw_glyph_string.
23946
239472007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23948
23949 * sunfns.c: Remove file.
23950
23951 * m/sun386.h:
23952 * m/sun2.h:
23953 * m/sparc.h: Remove Sun windows code.
23954
239552007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23956
23957 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23958 (init_keyboard): Set current_kboard's window-system to nil.
23959 (tty_read_avail_input): Typo.
23960 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23961
239622007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23963
23964 * s/usg5-4.h:
23965 * s/usg5-3.h:
23966 * s/ptx.h:
23967 * m/is386.h:
23968 * m/ibmps2-aix.h:
23969 * Makefile.in: Remove all mentions of X10.
23970
23971 * dispnew.c (syms_of_display): Don't mention version 10.
23972
239732007-10-28 Juanma Barranquero <lekktu@gmail.com>
23974
23975 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23976 ($(BLD)/abbrev.$(O)): Remove.
23977
239782007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23979
23980 Rewrite abbrev.c in Elisp.
23981 * image.c (Qcount): Don't declare as extern.
23982 (syms_of_image): Initialize and staticpro `Qcount'.
23983 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23984 * emacs.c (main): Don't call syms_of_abbrev.
23985 * Makefile.in (obj): Remove abbrev.o.
23986 (abbrev.o): Remove.
23987 * abbrev.c: Remove.
23988
239892007-10-26 Martin Rudalics <rudalics@gmx.at>
23990
23991 * window.c (window_min_size_2): Don't count header-line.
23992
239932007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23994
23995 * frame.h (struct frame): Move all bit fields after the first bit
23996 field to take advantage of the available space. Group all the
23997 chars together to reduce wasted space due to padding.
23998
239992007-10-26 Juanma Barranquero <lekktu@gmail.com>
24000
24001 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24002
24003 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24004 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24005 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24006 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24007 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24008 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24009 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24010 (last_marked, mark_object_loop_halt): Make static.
24011
24012 * frame.c (syms_of_frame) <delete-frame-functions>:
24013 Fix typo in docstring.
24014
240152007-10-25 Juanma Barranquero <lekktu@gmail.com>
24016
24017 * w32.c (init_environment): Fix tiny memory leak.
24018 (w32_get_resource): Remove unused variable `ok'.
24019
240202007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24021
24022 Make `window-system' into a keyboard-local variable (rather than
24023 frame-local as done originally by multi-tty).
24024
24025 * keyboard.h (struct kboard): Add Vwindow_system.
24026 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24027 (mark_kboards): Mark Vwindow_system.
24028
24029 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24030 (init_display): Don't set the obsolete `window-system' frame-param.
24031
24032 * xterm.c (x_term_init):
24033 * w32term.c (w32_create_terminal):
24034 * term.c (init_tty): Set Vwindow_system.
24035 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24036 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24037
24038 * xfns.c (Fx_create_frame, x_create_tip_frame):
24039 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24040 * macfns.c (Fx_create_frame):
24041 Don't set the obsolete `window-system' frame-param.
24042
24043 * frame.h (Qwindow_system): Remove.
24044 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24045 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24046
240472007-10-24 Richard Stallman <rms@gnu.org>
24048
24049 * frame.c (x_figure_window_size): For fullscreen case,
24050 set USPosition | PPosition without clobbering rest of window_prompting.
24051
24052 * keyboard.c (Fcurrent_idle_time): Doc fix.
24053
24054 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24055
240562007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24057
24058 * process.c (unwind_request_sigio): Only define if __ultrix__.
24059
24060 * callproc.c (child_setup): Remove spurious *.
24061
24062 * lisp.h (Fget_text_property): Declare.
24063 (have_menus_p): Declare it here rather than in sys-dep header files.
24064 * macterm.h (have_menus_p):
24065 * msdos.h (have_menus_p):
24066 * xterm.h (have_menus_p): Remove.
24067
24068 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24069 (Fmake_variable_frame_local): Just check the variable's const-ness
24070 rather than checking nil or t.
24071
240722007-10-22 Jason Rumney <jasonr@gnu.org>
24073
24074 * w32fns.c: Include math.h.
24075 (w32_abort): Declaration moved to nt/config.nt.
24076
24077 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24078 (abort): Redefinition moved to nt/config.nt.
24079
24080 * m/windowsnt.h: Remove.
24081
240822007-10-22 Juanma Barranquero <lekktu@gmail.com>
24083
24084 * emacs.c (Fdump_emacs): Fix typo in message.
24085 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24086 <installation-directory>: Reflow docstring.
24087
240882007-10-22 Juri Linkov <juri@jurta.org>
24089
24090 * minibuf.c: Allow minibuffer default to be a list of default values.
24091 With empty input use the first element of this list as returned default.
24092 (string_to_object)
24093 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24094 (read_minibuf): If defalt is cons, set histstring to its car.
24095 (Fread_string): If default_value is cons, set val to its car.
24096 (Fread_buffer): If def is cons, use its car.
24097 (Fcompleting_read): If defalt is cons, set val to its car.
24098
240992007-10-21 Michael Albinus <michael.albinus@gmx.de>
24100
24101 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24102
241032007-10-20 Juanma Barranquero <lekktu@gmail.com>
24104
24105 * doc.c (Fdocumentation): Check for advice in all cases.
24106
241072007-10-19 Chong Yidong <cyd@stupidchicken.com>
24108
24109 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24110
241112007-10-19 Richard Stallman <rms@gnu.org>
24112
24113 * doc.c (Fdocumentation): Check for and handle an advised function.
24114
241152007-10-19 Juanma Barranquero <lekktu@gmail.com>
24116
24117 * process.c (Fset_process_filter): Doc fix.
24118
241192007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24120
24121 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24122 which caused key-translation-map to applied repeatedly (thus breaking
24123 double-mode).
24124
241252007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24126
24127 * xselect.c (x_own_selection, x_handle_selection_clear)
24128 (x_clear_frame_selections):
24129 * w32menu.c (list_of_panes, list_of_items):
24130 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24131 * textprop.c (validate_plist, interval_has_all_properties)
24132 (interval_has_some_properties, interval_has_some_properties_list)
24133 (add_properties, text_property_list):
24134 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24135 * minibuf.c (Fassoc_string):
24136 * macselect.c (x_own_selection, x_clear_frame_selections)
24137 (Fx_disown_selection_internal):
24138 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24139 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24140
241412007-10-17 Chong Yidong <cyd@stupidchicken.com>
24142
24143 * process.c: Link to libs for calling res_init() if available.
24144 (Fmake_network_process): Call res_init() before getaddrinfo or
24145 gethostbyname, if possible.
24146
241472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24148
24149 * lread.c (read1): Set pvectype for char_tables.
24150
24151 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24152 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24153 Add type checks.
24154 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24155
24156 * alloc.c (free_misc): Use XMISCTYPE.
24157 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24158
241592007-10-17 Glenn Morris <rgm@gnu.org>
24160
24161 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24162 (syms_of_minibuf): Add Qcompletion_ignore_case.
24163 * dired.c (Qcompletion_ignore_case): Change to external.
24164 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24165 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24166 (Fread_file_name): Use it rather than intern'ing.
24167
24168 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24169 (Fread_coding_system): Ignore case of user input.
24170
241712007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24172
24173 * xdisp.c (handle_display_prop): Ignore display specs after
24174 replacing one when string text is being replaced.
24175 (handle_single_display_spec): Pretend as if characters with display
24176 property haven't been consumed only when buffer text is being replaced.
24177
241782007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24179
24180 * xfns.c (Fx_create_frame, Fx_display_list):
24181 * window.c (window_fixed_size_p, enlarge_window)
24182 (shrink_window_lowest_first):
24183 * macterm.c (init_font_name_table):
24184 * macfns.c (Fx_create_frame, Fx_display_list):
24185 * lread.c (close_load_descs):
24186 * keyboard.c (read_char_x_menu_prompt):
24187 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24188 * coding.c (code_convert_region_unwind): Test the type of an object
24189 rather than just !NILP before extracting data from it.
24190
24191 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24192
24193 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24194 (XMISCANY): New macro.
24195 (XMISCTYPE): Use it.
24196 (struct Lisp_Misc_Any): New type.
24197 (union Lisp_Misc): Use it.
24198 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24199 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24200 (find_symbol_value, set_internal, default_value, Fset_default)
24201 (Fmake_variable_buffer_local, Fmake_local_variable)
24202 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24203 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24204 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24205 * alloc.c (allocate_buffer): Set the size and tag.
24206 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24207 Use XMISCANY.
24208 (die): Follow the GNU convention for error messages.
24209 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24210 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24211 tag any more.
24212 (set_buffer_internal_1):
24213 * frame.c (store_frame_param):
24214 * eval.c (specbind):
24215 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24216
24217 * doc.c (Fsnarf_documentation): Simplify.
24218
242192007-10-14 Juanma Barranquero <lekktu@gmail.com>
24220
24221 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24222 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24223
242242007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24225
24226 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24227
242282007-10-14 Juanma Barranquero <lekktu@gmail.com>
24229
24230 * eval.c (do_autoload): Don't save autoloads.
24231
24232 * data.c (Ffset): Save autoload of the function being set.
24233
242342007-10-07 John Paul Wallington <jpw@pobox.com>
24235
24236 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24237 parameter before setting up faces.
24238
242392007-10-13 Eli Zaretskii <eliz@gnu.org>
24240
24241 * ccl.c (Fregister_code_conversion_map):
24242 * keyboard.c (append_tool_bar_item): Reformat last change.
24243
24244 * lisp.h (eabs): Rename from `abs'. All callers changed.
24245
242462007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24247
24248 * buffer.c (add_overlay_mod_hooklist):
24249 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24250 * fontset.c (make_fontset):
24251 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24252 (append_tool_bar_item):
24253 * macmenu.c (grow_menu_items):
24254 * w32menu.c (grow_menu_items):
24255 * xmenu.c (grow_menu_items): Use larger_vector.
24256
242572007-10-13 Eli Zaretskii <eliz@gnu.org>
24258
24259 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24260 selected frame'' on MSDOS).
24261
242622007-10-12 Martin Rudalics <rudalics@gmx.at>
24263
24264 * frame.c (Qexplicit_name): New variable.
24265 (x_report_frame_params): Report it in parameter alist.
24266 (syms_of_frame): Intern and staticpro it.
24267
242682007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24269
24270 * macfns.c (x_create_tip_frame): Set terminal for frame.
24271
242722007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24273
24274 * frame.c (Qenvironment): Remove.
24275 (syms_of_frame) <Qenvironment>: Don't initialize.
24276 (Fdelete_frame): Don't treat the `environment' param specially.
24277 * frame.h (Qenvironment): Don't declare.
24278 * callproc.c (set_initial_environment): Don't set unused frame param.
24279
24280 * frame.c (Fframe_with_environment): Remove.
24281 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24282
24283 * lisp.h (Fframe_with_environment): Don't declare.
24284
242852007-10-10 Juanma Barranquero <lekktu@gmail.com>
24286
24287 * indent.c (indent_tabs_mode, last_known_column)
24288 (last_known_column_modified): Make static.
24289 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24290
242912007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24292
24293 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24294
242952007-10-09 Jason Rumney <jasonr@gnu.org>
24296
24297 * w32term.c (x_set_window_size): Disable code that attempts to tell
24298 Lisp code about a size change before it actually happens.
24299
243002007-10-09 Richard Stallman <rms@gnu.org>
24301
24302 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24303 return HANDLED_RETURN.
24304
243052007-10-08 Martin Rudalics <rudalics@gmx.at>
24306
24307 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24308 when there's an unread command event.
24309
24310 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24311 window autoselection act appropriately when leaving selected frame.
24312 (syms_of_frame): Initialize focus_follows_mouse.
24313 * frame.h (focus_follows_mouse): Extern it.
24314 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24315 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24316 * msdos.c (dos_rawgetc): Likewise.
24317 * w32term.c (w32_read_socket): Likewise.
24318 * xterm.c (handle_one_xevent): Likewise.
24319 * xdisp.c (syms_of_xdisp): In doc-string of
24320 mouse-autoselect-window mention focus-follows-mouse.
24321
243222007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24323
24324 * macterm.c (mac_load_query_font): Fix missing return value.
24325 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24326 Add BLOCK_INPUT.
24327
243282007-10-08 Richard Stallman <rms@gnu.org>
24329
24330 * xdisp.c (get_window_cursor_type): Implement documented behavior
24331 for cursor-in-non-selected-windows = t.
24332
243332007-10-08 Jason Rumney <jasonr@gnu.org>
24334
24335 * w32.c (w32_get_resource): Always close registry keys.
24336
243372007-10-08 Jason Rumney <jasonr@gnu.org>
24338
24339 * makefile.w32-in (LIBS): Add COMCTL32.
24340
24341 * w32fns.c (globals_of_w32fns): Init common controls.
24342
243432007-10-08 Richard Stallman <rms@gnu.org>
24344
24345 * image.c (our_memory_buffer): Rename from omfib_buffer.
24346
243472007-10-08 Richard Stallman <rms@gnu.org>
24348
24349 * buffer.c (Foverlays_at): Doc fix.
24350
243512007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24352
24353 * fns.c (Fplist_put): Preserve uneven tail data.
24354
243552007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24356
24357 * termhooks.h (enum event_kind): Remove trailing comma.
24358
24359 * frame.h (enum): Remove trailing comma.
24360
243612007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24362
24363 * w32proc.c (delete_child): Don't terminate threads of zombies.
24364
243652007-10-08 Martin Rudalics <rudalics@gmx.at>
24366
24367 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24368
24369 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24370 last-repeatable-command.
24371 (init_kboard): Initialize Vlast_repeatable_command.
24372 (command_loop_1): Set it to real_this_command unless that was
24373 bound to an input event.
24374 (mark_kboards): Mark it.
24375
243762007-10-08 Richard Stallman <rms@gnu.org>
24377
24378 * eval.c (condition-case): Doc fix.
24379
243802007-10-08 Masatake YAMATO <jet@gyve.org>
24381
24382 * xfaces.c (tty_supports_face_attributes_p): Fix code
24383 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24384 was copied and not edited.
24385
243862007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24387
24388 Add new `input-decode-map' keymap and use it for terminal
24389 escape sequences.
24390 * keyboard.h (struct kboard): Add Vinput_decode_map.
24391 Remove Vlocal_key_translation_map.
24392 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24393 (init_kboard): Init input-decode-map.
24394 Replace local-key-translation-map back with key-translation-map.
24395 (syms_of_keyboard): Declare input-decode-map.
24396 Remove local-key-translation-map. Update docstrings.
24397 (mark_kboards): Mark Vinput_decode_map.
24398 Don't mark Vlocal_key_translation_map.
24399 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24400 Replace local-key-translation-map back with key-translation-map.
24401 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24402 Bind in input-decode-map rather than function-key-map.
24403
24404 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24405 This was made redundant by the previous introduction of XSETPVECTYPE.
24406
244072007-10-09 Richard Stallman <rms@gnu.org>
24408
24409 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24410
244112007-09-29 Richard Stallman <rms@gnu.org>
24412
24413 * eval.c (internal_condition_case_2, internal_condition_case_1)
24414 (internal_condition_case): Reenable abort if x_catching_errors ()
24415 to see if that really happens and why.
24416
244172007-10-06 Andreas Schwab <schwab@suse.de>
24418
24419 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24420
244212007-10-04 Juanma Barranquero <lekktu@gmail.com>
24422
24423 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24424
244252007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24426
24427 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24428
244292007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24430
24431 * window.h (struct window):
24432 * window.c (struct save_window_data, struct saved_window):
24433 * termhooks.h (struct terminal):
24434 * process.h (struct Lisp_Process):
24435 * frame.h (struct frame):
24436 * buffer.h (struct buffer):
24437 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24438 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24439 The size field of (pseudo)vectors is now unsigned.
24440 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24441
24442 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24443 Turn `count' into an integer.
24444
24445 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24446 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24447 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24448 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24449 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24450
24451 * alloc.c (allocate_pseudovector): New fun.
24452 (ALLOCATE_PSEUDOVECTOR): New macro.
24453 (allocate_window, allocate_terminal, allocate_frame)
24454 (allocate_process): Use it.
24455 (mark_vectorlike): New function.
24456 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24457 (mark_terminals): Use it.
24458 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24459 (Fmake_byte_code): Use XSETPVECTYPE.
24460
24461 * frame.c (Fframe_parameters): Minor simplification.
24462
24463 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24464
24465 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24466
24467 * buffer.c (Fget_buffer_create, init_buffer_once):
24468 * lread.c (defsubr):
24469 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24470
24471 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24472 defined differently in the m/*.h files.
24473 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24474 (XSETPVECTYPE): New macro.
24475 (XSETPSEUDOVECTOR): Use it.
24476
24477 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24478 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24479
24480 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24481 * lread.c (defvar_per_buffer):
24482 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24483
24484 * window.c (candidate_window_p): Only consider as visible frames that
24485 are on the same terminal.
24486
24487 * m/ibms390x.h (MARKBIT): Remove unused macro.
24488
244892007-10-01 Juanma Barranquero <lekktu@gmail.com>
24490
24491 * lread.c (Fload): Fix typo in docstring.
24492
244932007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24494
24495 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24496 of a non-zero value can't yield zero.
24497
244982007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24499
24500 * term.c (term_clear_mouse_face, term_mouse_highlight)
24501 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24502
24503 * print.c (safe_debug_print): Use XHASH.
24504
24505 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24506 Lisp elements such as tags.
24507 (XHASH): New macro.
24508 (EQ): Use it.
24509 (SREF, SSET, STRING_COPYIN): Use SDATA.
24510 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24511
24512 * alloc.c (mark_terminal): Remove left-over declaration.
24513 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24514 (allocate_vectorlike): Remove type argument. Adjust callers.
24515 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24516 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24517
24518 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24519 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24520 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24521 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24522 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24523 Use them.
24524
24525 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24526 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24527 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24528
245292007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24530
24531 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24532 loaded by default.
24533
245342007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24535
24536 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24537 on this tty.
24538 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24539
24540 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24541 Update all users.
24542 (handle_one_term_event): Use Gpm_DrawPointer.
24543 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24544 Signal errors instead of returning nil. Always return nil.
24545 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24546 Make it a noop if gpm-mouse was not activated.
24547 (syms_of_term): Update names.
24548
245492007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24550
24551 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24552 (init_sys_modes): Check that gpm_tty is the current tty.
24553
24554 * alloc.c (allocate_terminal): Set the vector size to only count the
24555 lisp fields. Initialize those to nil.
24556 (mark_object): Don't treat terminals specially.
24557 (mark_terminal): Remove.
24558 (mark_terminals): Use mark_object instead.
24559
24560 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24561 the GC to the beginning.
24562
24563 * indent.h:
24564 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24565
24566 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24567
245682007-09-25 Jason Rumney <jasonr@gnu.org>
24569
24570 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24571
24572 * w32console.c (create_w32cons_output): Remove.
24573
24574 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24575
24576 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24577 (reset_sys_modes): Use reset_terminal_modes_hook.
24578
245792007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24580
24581 * eval.c (do_autoload): Don't output any message.
24582
245832007-09-24 Juri Linkov <juri@jurta.org>
24584
24585 * emacs.c (standard_args): Change priority of "--no-splash"
24586 from 40 to 3. Add "--no-desktop" with the same priority.
24587
245882007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24589
24590 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24591 and optimize the case where they are all 1.
24592
245932007-09-23 Johannes Weiner <hannes@saeurebad.de>
24594
24595 * lisp.h (abs): Define if not defined.
24596 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24597 Don't define `abs', since it's defined in lisp.h.
24598
245992007-09-22 Eli Zaretskii <eliz@gnu.org>
24600
24601 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24602 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24603 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24604 (init_tty): Use DEV_TTY instead of "/dev/tty".
24605 [WINDOWSNT]: No need to protect from NAME arg being null.
24606
246072007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24608
24609 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24610 up the tty state.
24611
246122007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24613
24614 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24615 (gpm_tty): Change its type.
24616 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24617 (gpm_tty): Change its type and initialize it.
24618 (Fterm_open_connection): Check the frame is indeed a tty.
24619 Use the new gpm_tty.
24620 (Fterm_close_connection): Use the new gpm_tty.
24621 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24622 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24623
246242007-09-21 Juanma Barranquero <lekktu@gmail.com>
24625
24626 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24627 underline_color, to draw strike-through.
24628
246292007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24630
24631 * lisp.h (allocate_terminal): Declare.
24632
24633 * window.c (candidate_window_p): Consider frames that are being placed
24634 by the user as somewhere between visible and iconified.
24635 (window_loop): Prefer windows on the current frame.
24636 (Fselect_window): Move the use of select-frame to the beginning so we
24637 can just delegate all the work (it'll call us back anyway).
24638
24639 * frame.c (Qdisplay_environment_variable):
24640 * frame.h (Qdisplay_environment_variable): Delete.
24641
24642 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24643 of the first arg, since that value may be a union.
24644
24645 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24646 parameter rather than Qdisplay_environment_variable. If all else
24647 fails, look for DISPLAY in initial-environment.
24648
246492007-09-21 Glenn Morris <rgm@gnu.org>
24650
24651 * Makefile.in (emacstool): Remove target.
24652 (lisp, shortlisp): Remove termdev.elc.
24653
246542007-09-21 Markus Triska <markus.triska@gmx.at>
24655
24656 * xterm.c (x_delete_display): Compile session management conditionally.
24657
246582007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24659
24660 * callproc.c (getenv_internal_1): New function.
24661 (getenv_internal): Use it.
24662 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24663
24664 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24665 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24666 (Fset_terminal_parameter): Work with dead terminals as well.
24667 (Fmodify_terminal_parameters): Remove.
24668
24669 * terminal.c (get_terminal): Handle terminals.
24670 Make sure the terminal returned is live.
24671 (create_terminal): Use allocate_terminal.
24672 (mark_terminals): Move to alloc.c.
24673 (delete_terminal): Use terminal->name as liveness status.
24674 NULL out fields after freeing their contents.
24675 Don't deallocate the object.
24676 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24677 rather than an int.
24678 (Fterminal_live_p): Accept non-integer arguments.
24679 (Fterminal_list): Return terminal objects rather than an ints.
24680
24681 * alloc.c (enum mem_type): New member for `terminal' objects.
24682 (allocate_terminal): New function.
24683 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24684 Handle terminals.
24685 (mark_terminal): New fun.
24686 (mark_terminals): Move from terminal.c.
24687
24688 * term.c (get_tty_terminal): Don't treat output_initial specially.
24689 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24690 (delete_tty): Use terminal->name as liveness status.
24691
24692 * termhooks.h (struct terminal): Make it into a pseudovector.
24693 Remove `deleted' replaced by checking `name's nullness.
24694
24695 * print.c (print_object): Handle terminals.
24696
24697 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24698 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24699
24700 * frame.c (make_terminal_frame):
24701 * keyboard.c (tty_read_avail_input):
24702 * w32term.c (x_delete_terminal):
24703 * xfns.c (Fx_create_frame, x_create_tip_frame):
24704 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24705
247062007-09-20 Glenn Morris <rgm@gnu.org>
24707
24708 * process.c (Fmake_network_process): Doc fix.
24709
247102007-09-19 Jason Rumney <jasonr@gnu.org>
24711
24712 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24713
247142007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24715
24716 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24717 Fix a C warning regarding variable constness.
24718
24719 * xterm.c (handle_one_xevent): Fix a C warning.
24720
247212007-09-18 Jason Rumney <jasonr@gnu.org>
24722
24723 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24724
247252007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24726
24727 * gtkutil.c (gdpy_def): New variable.
24728 (xg_initialize): Initialize gdpy_def.
24729 (xg_display_close): If no other display exists, set gdpy_def to a
24730 new connection.
24731
247322007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24733
24734 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24735 when we have no file name for the icon.
24736 (xg_tool_bar_expose_callback): Remove.
24737 (xg_create_tool_bar): Don't connect expose signal to
24738 xg_tool_bar_expose_callback.
24739 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24740
247412007-09-16 Andreas Schwab <schwab@suse.de>
24742
24743 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24744 values instead of zapping them.
24745
247462007-09-14 Glenn Morris <rgm@gnu.org>
24747
24748 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24749 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24750 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24751 scope and rename to omfib_buffer for clarity.
24752 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24753
247542007-09-14 Kenichi Handa <handa@m17n.org>
24755
24756 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24757
247582007-09-13 Jason Rumney <jasonr@gnu.org>
24759
24760 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24761
24762 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24763
24764 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24765 (mac_term_init): Call here instead, passing rif.
24766
247672007-09-13 Glenn Morris <rgm@gnu.org>
24768
24769 * s/hpux.h: No longer define `static' as nothing.
24770
247712007-09-13 Johan Bockgård <bojohan@gnu.org>
24772
24773 * callint.c (Fcall_interactively): Remove unused var `fun'.
24774
247752007-09-12 Romain Francoise <romain@orebokech.com>
24776
24777 * window.c (prefer_window_split_horizontally, display_buffer):
24778 Revert 2007-09-08 change.
24779
247802007-09-12 Glenn Morris <rgm@gnu.org>
24781
24782 * alloca.c: Remove file.
24783 * Makefile.in (alloca): Do not undef.
24784 (allocaobj, alloca.o): Remove.
24785 (otherobj): Remove allocaobj.
24786 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24787 * regex.c (C_ALLOCA): Remove all references and code that was only
24788 used when this was defined.
24789 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24790 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24791 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24792
24793 * Makefile.in (SOURCES, unlock, relock): Delete.
24794
24795 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24796 (menu_grab_callback): All uses changed.
24797
24798 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24799 (x_reply_selection_request): All uses changed.
24800
248012007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24802
24803 * lread.c (load_warn_old_style_backquotes): Change message to look
24804 better when it appears in the middle of byte-compiler messages.
24805
248062007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24807
24808 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24809
24810 * xterm.c (x_create_terminal): Add comment.
24811
24812 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24813
248142007-09-10 Richard Stallman <rms@gnu.org>
24815
24816 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24817
248182007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24819
24820 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24821 (DEFUN): Document `intspec', use it instead of `prompt'.
24822
24823 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24824
24825 * data.c (Finteractive_form): If the interactive specification starts
24826 with a `(', use it as a Lisp form.
24827
24828 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24829 name and file modes.
24830
24831 * callint.c (Fcall_interactively): Comment fixes.
24832
248332007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24834
24835 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24836 and compiled functions.
24837
248382007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24839
24840 * window.c (prefer_window_split_horizontally): New variable.
24841 (display_buffer): Consider splitting window horizontally depending
24842 on prefer_window_split_horizontally.
24843
248442007-09-08 Eli Zaretskii <eliz@gnu.org>
24845
24846 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24847
248482007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24849
24850 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24851
24852 * frame.c (x_set_frame_parameters): Check number is positive before
24853 using XFASTINT.
24854
24855 * window.c (freeze_window_start): Don't presume selected_window holds
24856 a window object.
24857 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24858
248592007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24860
24861 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24862
248632007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24864
24865 * window.c (Vsplit_window_preferred_function): New var.
24866 (Fdisplay_buffer): Use it.
24867 (syms_of_window): Export, and initialize it.
24868
248692007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24870
24871 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24872
248732007-09-06 Glenn Morris <rgm@gnu.org>
24874
24875 * gtkutil.c (menu_grab_callback) <cnt>:
24876 * xselect.c (x_reply_selection_request) <cnt>: Move static
24877 variable to file scope.
24878
248792007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24880
24881 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24882 consistent values of selected_frame and selected_window.
24883
248842007-09-04 Jason Rumney <jasonr@gnu.org>
24885
24886 * w32console.c (initialize_w32_display): Zero unused hooks.
24887
248882007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24889
24890 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24891 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24892
248932007-09-04 Jason Rumney <jasonr@gnu.org>
24894
24895 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24896 in w32console.c. Set up input. Remove XXX comments that have been
24897 confirmed as correct.
24898
24899 * s/ms-w32.h (MULTI_KBOARD): Define.
24900
24901 * w32console.c (one_and_only_w32cons): Remove.
24902 (initialize_w32_display): Take terminal argument.
24903
24904 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24905 initialize_w32_display.
24906 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24907
24908 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24909
24910 * keyboard.c (discard_mouse_events): Discard it.
24911 (make_lispy_event): Translate it to a lisp event.
24912 (lispy_wheel_names): Add wheel-left and right events.
24913 (syms_of_keyboard): Enlarge wheel_syms.
24914
24915 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24916 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24917
24918 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24919
24920 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24921 from WM_MOUSEHWHEEL.
24922 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24923
24924 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24925 terminal.
24926
24927 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24928 keyboard for the terminal.
24929
249302007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24931
24932 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24933 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24934 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24935 and resume-tty-function to resume-tty-hook.
24936 (Fsuspend_tty, Fresume_tty): Use new names.
24937
249382007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24939
24940 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24941 if it starts with "n:".
24942
249432007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24944
24945 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24946
249472007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24948
24949 * frame.h:
24950 * frame.c (Qterm_environment_variable): Remove.
24951 (syms_of_frame): Don't init and staticpro it.
24952
24953 * callproc.c (getenv_internal): Remove special case for $TERM.
24954
24955 * callproc.c (Vinitial_environment): New variable.
24956 (set_initial_environment): Initialize it.
24957 (syms_of_callproc): Declare it.
24958 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24959 TERM under which a process runs is never related to the TERM in which
24960 Emacs is running.
24961
249622007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24963
24964 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24965 * s/darwin.h: ... do it here.
24966
249672007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24968
24969 * lisp.h (set_initial_environment): Rename from set_global_environment.
24970
24971 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24972 removed by mistake on the multi-tty branch.
24973
24974 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24975 (Fmodify_frame_parameters): Return a value.
24976
24977 * image.c (png_load): Comment-out var only used in commented-out code.
24978
24979 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24980 before passing it to mark_object.
24981
24982 * xfaces.c (internal_resolve_face_name): Return a value.
24983 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24984
24985 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24986 (x_icon): Comment-out var only used in commented-out code.
24987
249882007-08-29 Romain Francoise <romain@orebokech.com>
24989
24990 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24991 QUIT hasn't been provided.
24992
249932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24994
24995 * callproc.c (child_setup, getenv_internal): Use the
24996 display-environment-variable and term-environment-variable frame params.
24997 (set_initial_environment): Initialise Vprocess_environment.
24998
24999 * config.in: Disable multi-keyboard support on a mac.
25000
25001 * frame.c (Qterm_environment_variable)
25002 (Qdisplay_environment_variable): New variables.
25003 (syms_of_frame): Intern and staticpro them.
25004 (Fmake_terminal_frame): Disable output method test.
25005
25006 * frame.h: Declare them here.
25007
25008 * macfns.c (x_set_mouse_color): Get rif from the frame.
25009 (x_set_tool_bar_lines): Don't use updating_frame.
25010 (mac_window): Add 2 new parameters for consistency with other systems.
25011 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25012 frame parameters following what is done in X11 and w32. Don't use
25013 FRAME_MAC_DISPLAY_INFO.
25014 (Fx_open_connection, start_hourglass): Remove window-system check.
25015 (x_create_tip_frame): Get the keyboard from the terminal.
25016
25017 * macmenu.c: Reorder includes.
25018 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25019
25020 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25021 terminal parameter.
25022 (x_clear_frame): Add a frame parameter.
25023 (note_mouse_movement): Get rif from the frame.
25024 (mac_term_init): Initialize the terminal.
25025 (mac_initialize): Make static and move terminal initialization ...
25026 (mac_create_terminal): ... to this new function.
25027
25028 * macterm.h (struct mac_display_info): Add terminal.
25029 (mac_initialize): Delete declaration.
25030
25031 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25032
25033 * sysdep.c: Comment out text after #endif.
25034
25035 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25036 is defined. Better initialize ttys in windows. Use terminal
25037 specific mouse_position_hook.
25038
25039 * termhooks.h (union display_info): Add mac_display_info.
25040
25041 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25042 Set the default minibuffer frame, window_system and the rest of the
25043 frame parameters following what is done in X11.
25044
25045 * w32term.c (w32_initialize): Make static.
25046
25047 * xselect.c (x_handle_selection_clear): Only access
25048 terminal->kboard when MULTI_KBOARD is defined.
25049
25050 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25051 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25052
250532007-08-29 Jason Rumney <jasonr@gnu.org>
25054
25055 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25056 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25057
25058 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25059 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25060
25061 * keyboard.c (restore_kboard_configuration): Only define when
25062 MULTI_KBOARD defined.
25063
25064 * makefile.w32-in: Update dependancies from Makefile.in.
25065 (OBJ1): Add terminal.$(O)
25066
25067 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25068 Don't define function body.
25069 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25070
25071 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25072
25073 * w32.c (request_sigio, unrequest_sigio): Remove.
25074
25075 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25076 (w32con_clear_frame, w32con_clear_end_of_line)
25077 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25078 (w32con_delete_glyphs, w32con_set_terminal_window)
25079 (scroll_line, w32_sys_ring_bell): Add frame arg.
25080 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25081 Add terminal arg.
25082 (PICK_FRAME): Remove.
25083 (w32con_write_glyphs): Use frame specific terminal coding.
25084 (one_and_only_w32cons): New global variable.
25085 (initialize_w32_display): Use it for storing hooks.
25086 (create_w32cons_output): New function.
25087
25088 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25089 arg a frame.
25090
25091 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25092 Set window_system.
25093 (x_set_tool_bar_lines): Don't use updating_frame.
25094 (Fx_create_frame): Set terminal and ref count.
25095 (Fx_open_connection): Remove window-system check.
25096
25097 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25098
25099 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25100 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25101 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25102 Add frame arg.
25103 (x_delete_terminal, w32_create_terminal): New functions.
25104 (w32_term_init): Create a terminal.
25105 (w32_initialize): Move terminal specific initialization to
25106 w32_create_terminal.
25107
25108 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25109 (w32_clear_rect, w32_clear_area): Use background from frame.
25110 (w32_display_info): Add terminal.
25111 (w32_sys_ring_bell, x_delete_display): Declare here.
25112
25113 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25114
25115 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25116
251172007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25118
25119 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25120 Fix get_named_tty calls for the controlling tty.
25121
251222007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25123
194d44e7 25124 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25125
251262007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25127
25128 * term.c (tty_insert_glyphs): Add missing first parameter.
25129
251302007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25131
25132 * buffer.c (Fbuffer_list, Fbury_buffer):
25133 Take frame->buried_buffer_list into account.
25134
25135 * cm.c (current_tty): New variable, for cmputc().
25136 (cmputc): Use it.
25137 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25138 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25139 (cmgoto): Add tty parameter. Pass it on to calccost().
25140 Use emacs_tputs() instead of tputs().
25141
25142 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25143 tputs().
25144 (current_tty): New variable, for cmputc().
25145 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25146
25147 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25148 (internal_condition_case, internal_condition_case_1)
25149 (internal_condition_case_2): Don't abort when x_catching_errors.
25150
25151 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25152 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25153 prevent crashes caused by bogus longjmps in read_char.
25154
25155 * keymap.h (Fset_keymap_parent): Add EXFUN.
25156
25157 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25158 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25159 Remove redundant definition.
25160
25161 * macfns.c (x_set_mouse_color, x_make_gc):
25162 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25163
25164 * w32term.c (x_free_frame_resources):
25165 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25166 (w32_initialize): Use the accessor macros for terminal characteristics.
25167
25168 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25169 Use the accessor macros for terminal characteristics.
25170 * msdos.c (internal_terminal_init): Use the accessor macros for
25171 terminal characteristics.
25172 (ScreenVisualBell, internal_terminal_init):
25173 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25174
25175 * termopts.h (no_redraw_on_reenter): Declare.
25176
25177 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25178 (mark_terminals, mark_ttys): Declare.
25179 (Fgarbage_collect): Call them.
25180 (mark_object): Mark buried_buffer_list.
25181
25182 * prefix-args.c: Include stdlib.h for exit.
25183
25184 * syssignal.h: Add comment.
25185
25186 * indent.c: Include stdio.h.
25187
25188 * window.h (Vinitial_window_system): Declare.
25189 (Vwindow_system): Delete declaration.
25190
25191 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25192
25193 * image.c (lookup_image): Don't initialize `c' until the xasserts
25194 have been run.
25195
25196 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25197 FRAME_FOREGROUND_PIXEL.
25198
25199 * print.c (print_preprocess): Don't lose print_depth levels while
25200 iterating.
25201
25202 * widget.c (update_from_various_frame_slots):
25203 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25204
25205 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25206 frames.
25207 (window_internal_height): Remove bogus make_number call.
25208 (init_window_once): Call make_terminal_frame with two zero parameters.
25209
25210 * fileio.c (Fread_file_name): Update comment.
25211
25212 * callint.c (Fcall_interactively):
25213 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25214 Make sure it is correctly unwound.
25215
25216 * xsmfns.c (x_session_close): New function.
25217
25218 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25219 Delete declarations.
25220
25221 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25222 (x_output): Remove background_pixel and foreground_pixel fields.
25223 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25224 (x_delete_device, x_session_close): Declare.
25225
25226 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25227 (read_filtered_event): Call `read_char' with a local
25228 `wrong_kboard_jmpbuf'.
25229
25230 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25231 Don't call single_kboard_state. Use FRAME_RIF.
25232
25233 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25234 systems.
25235
25236 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25237 (Fframe_with_environment, Fset_input_meta_mode)
25238 (Fset_quit_char): EXFUN.
25239 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25240 (init_sys_modes, reset_sys_modes): Update prototypes.
25241 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25242
25243 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25244 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25245 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25246 Delete declarations.
25247 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25248 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25249 New declarations.
25250
25251 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25252 already does that during init_display(). Call syms_of_keymap
25253 before syms_of_keyboard. Call `syms_of_terminal'.
25254 Call set_initial_environment, not set_process_environment.
25255 (shut_down_emacs): Call reset_all_sys_modes() instead of
25256 reset_sys_modes().
25257
25258 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25259 (internal_resolve_face_name, resolve_face_name_error): New functions.
25260 (resolve_face_name): Protect against loops and errors thrown by Fget.
25261 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25262 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25263
25264 * scroll.c: Replace CURTTY() with local variables throughout the
25265 file (where applicable).
25266 (calculate_scrolling, calculate_direct_scrolling)
25267 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25268 characteristics.
25269
25270 * keymap.c (Vfunction_key_map): Remove.
25271 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25272 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25273 (Vkey_translation_map): Remove.
25274 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25275 (Fdescribe_buffer_bindings)
25276 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25277 Update for terminal-local key-translation-map.
25278
25279 * Makefile.in (callproc.o): Update dependencies.
25280 (lisp, shortlisp): Add termdev.elc.
25281 (obj): Add terminal.o.
25282 (terminal.o): Add dependencies.
25283 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25284 (data.o, fns.o): Add termhooks.h dependency.
25285 (SOME_MACHINE_LISP): Add dnd.elc.
25286 (minibuf.o): Fix typo.
25287 Update dependencies.
25288
25289 * data.c (do_symval_forwarding, store_symval_forwarding)
25290 (find_symbol_value): Use the selected frame's keyboard, not
25291 current_kboard.
25292
25293 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25294 Vwindow_system.
25295
25296 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25297 Fmenu_bar_open.
25298 (syms_of_xmenu): Update defsubr.
25299 (mouse_position_for_popup, Fx_popup_menu)
25300 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25301 (set_frame_menubar, free_frame_menubar)
b97439ce 25302 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25303 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25304 an X frame.
25305
25306 * xselect.c (x_own_selection): Abort if not an X frame.
25307 (some_frame_on_display): Check if it is an X frame.
25308 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25309
25310 * coding.c: Include frame.h and termhooks.h.
25311 (terminal_coding, keyboard_coding): Delete.
25312 (Fset_terminal_coding_system_internal)
25313 (Fset_keyboard_coding_system_internal)
25314 (Fkeyboard_coding_system)
25315 (Fterminal_coding_system): Add a terminal parameter.
25316 Get terminal_coding from the terminal.
25317 (init_coding_once): Don't call setup_coding_system here.
25318
25319 * dispextern.h (set_scroll_region, turn_off_insert)
25320 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25321 (tty_clear_end_of_line, tty_setup_colors)
25322 (delete_tty, updating_frame)
25323 (produce_special_glyphs, produce_glyphs, write_glyphs)
25324 (insert_glyphs): Remove.
25325 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25326 (tty_turn_off_highlight, get_tty_size): Add declaration.
25327 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25328
25329 * frame.h (enum output_method): Add output_initial.
25330 (struct x_output): Delete.
25331 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25332 Access foreground_pixel and background_pixel directly from the frame.
25333 (tty_display): Delete.
25334 (struct frame): Add buried_buffer_list, foreground_pixel,
25335 background_pixel and terminal. Delete kboard.
25336 (union output_data): Add tty.
25337 (FRAME_KBOARD): Get the kboard from the terminal.
25338 (FRAME_INITIAL_P): New macro.
25339 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25340 (Qterm_environment_variable, Qdisplay_environment_variable)
25341 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25342 New declarations.
25343
25344 * termchar.h (tty_output, tty_display_info): New structures.
25345 (tty_list): Declare.
25346 (FRAME_TTY, CURTTY): New macros.
25347 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25348 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25349 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25350 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25351
25352 * callproc.c: Include frame.h and termhooks.h, for terminal
25353 parameters.
25354 (add_env): New function.
25355 (child_setup): Use it.
25356 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25357 (getenv_internal): Fix get_terminal_param call.
25358 (Fgetenv_internal, egetenv): Update doc.
25359 (syms_of_callproc): Initialize Vprocess_environment to nil.
25360 Register and initialize them. Remove obsolete defvars. Update doc
25361 strings.
25362 (child_setup): Handle Vlocal_environment_variables.
25363 (getenv_internal): Add terminal parameter.
25364 Handle Vlocal_environment_variables.
25365 (Fgetenv_internal): Add terminal parameter.
25366 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25367 environment in a frame (not terminal) parameter. Update doc strings.
25368 (set_initial_environment): Rename from set_global_environment.
25369 Store Emacs environment in initial frame parameter.
25370
25371 * xdisp.c (redisplay_internal): Update references to
25372 `previous_terminal_frame'.
25373 (display_mode_line, Fformat_mode_line): Replace calls to
25374 `push_frame_kboard' with `push_kboard'.
25375 (get_glyph_string_clip_rects): Add extra parentheses and
25376 braces to prevent compiler warnings.
25377 (calc_pixel_width_or_height): Add xassert to check that the
25378 frame is alive. Don't call `lookup_image' on a termcap frame.
25379 (message2_nolog, message3_nolog, redisplay_internal)
25380 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25381 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25382 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25383 (Fx_display_pixel_width, Fx_display_pixel_height)
25384 (Fx_display_planes, Fx_display_color_cells)
25385 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25386 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25387 (Fx_display_backing_store, Fx_display_visual_class)
25388 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25389 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25390
25391 * xfns.c (x_set_foreground_color x_set_background_color)
25392 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25393 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25394 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25395 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25396 terminal that is being deleted.
25397 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25398 frame parameter, and make sure it overrides any user-supplied setting.
25399 (Fx_close_connection, Fx_synchronize): Unify argument names with
25400 the rest of the DEFUNs.
25401
25402 * dispnew.c (Fsend_string_to_terminal): Update call to
25403 `get_tty_terminal'.
25404 (Fredraw_frame, Fsend_string_to_terminal)
25405 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25406 FRAME_TERMCAP_P and FRAME_TTY.
25407 (window_change_signal): Don't believe width/height values that are
25408 impossibly small.
25409 (Vinitial_window_system): Rename from Vwindow_system.
25410 (termscript, Wcm, rif): Delete.
25411
25412 * termhooks.h (struct terminal): New struct containing the
25413 previously global text display hooks and new members NAME,
25414 DELETED and PARAM_ALIST.
25415 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25416 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25417 (FRAME_RIF): New macros.
25418 (get_terminal_param, get_device): New declarations.
25419 (termscript): Delete declaration.
25420
25421 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25422 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25423 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25424 FRAME_FOREGROUND_PIXEL.
25425 (x_fully_uncatch_errors): Disable definition.
25426 (x_scroll_bar_expose): Fix reference to foreground pixel.
25427 (XTread_socket): Disable loop on all X displays.
25428 (x_delete_terminal): Don't set terminal->deleted and let
25429 delete_terminal delete the frames on the terminal.
25430 (x_delete_display): Doc update to reflect changes in
25431 delete_terminal.
25432 (x_display_info) <terminal>: Move member earlier in the struct.
25433 (deleting_tty): Remove old variable.
25434 (Fsuspend_tty): Call clear_tty_hooks.
25435 (Fresume_tty, init_tty): Call set_tty_hooks.
25436 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25437 errors on X frames.
25438 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25439 (handle_one_xevent): Initialize `f' to NULL.
25440 (x_delete_terminal, x_create_terminal): New functions.
25441 (XTset_terminal_modes, XTreset_terminal_modes)
25442 (XTread_socket, x_connection_closed, x_term_init)
25443 (x_term_init, x_delete_display): Add terminal parameter.
25444 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25445 X connections.
25446
25447 * frame.c: Include termchar.h.
25448 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25449 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25450 (Qdisplay_environment_variable): New vars.
25451 (Fframep): Deal with output_initial.
25452 (Fframe-live-p): Doc fix.
25453 (Fwindow-system): New function.
25454 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25455 (make_terminal_frame): Don't create frames on a terminal that is
25456 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25457 (store_frame_param): Check for found_for_frame before calling XFRAME.
25458 (Fmake_terminal_frame): Handle NULL tty names correctly.
25459 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25460 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25461 frames to refer to a deleted frame in their 'environment parameter.
25462 (Fframe_with_environment): New function.
25463 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25464 (get_future_frame_param): New function.
25465 (Fmake_terminal_frame): Use it.
25466 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25467
25468 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25469 * sysdep.c (reset_sys_modes): Update for renames.
25470
25471 * keyboard.c (tty_read_avail_input): New function.
25472 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25473 (syms_of_keyboard): Defsubr them.
25474 (Fset_input_meta_mode, Fset_quit_char): New functions.
25475 (Fset_input_mode): Split to above functions.
25476 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25477 parameter. Use it in call to `read_char'.
25478 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25479 Set wrong_kboard_jmpbuf correctly in recursive calls.
25480 Use current_kboard to access Vkeyboard_translate_table.
25481 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25482 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25483 Update longjmp invocations. Remember the original current_kboard,
25484 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25485 changes it. Comment out unnecessary calls to
25486 `record_single_kboard_state' and `any_kboard_state'.
25487 Update recursive calls.
25488 (wrong_kboard_jmpbuf): Remove global variable.
25489 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25490 Handle deleted interrupted_kboards correctly; that is a legal
25491 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25492 and read_char calls. Abort if interrupted_kboard died in read_char.
25493 (any_kboard_state, single_kboard_state)
25494 (push_frame_kboard): Remove function.
25495 (pop_kboard): Switch out of single_kboard mode if the kboard has
25496 been deleted. Remove unused variable. Help debugging by not
25497 changing current_kboard unnecessarily. Set current_kboard to the
25498 kboard of the selected frame when the stored kboard object has
25499 been deleted before pop_kboard.
25500 (temporarily_switch_to_single_kboard): Change first parameter to a
25501 frame pointer. Throw an error when caller wants to change kboards
25502 while in single_kboard mode. Don't push_kboard if we weren't in
25503 single kboard state. Don't pop_kboard if we popped into any
25504 kboard state.
25505 (restore_kboard_configuration): Abort if pop_kboard changed the
25506 kboard in single_kboard mode. Call pop_kboard only after setting
25507 up single_kboard mode.
25508 (Frecursive_edit): Switch to single_kboard mode only in nested
25509 command loops.
25510 (cmd_error, command_loop, command_loop_1, timer_check):
25511 Comment out unnecessary call to `any_kboard_state' and
25512 `record_single_kboard_state'.
25513 (delete_kboard): Exit single_kboard mode if we have just deleted
25514 that kboard. Use FRAME_KBOARD.
25515 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25516 `fatal_error_signal'.
25517 (record_single_kboard_state): Don't push_kboard if we weren't in
25518 single kboard state. Don't pop_kboard if we popped into any
25519 kboard state.
25520 (push_frame_kboard): Rename to push_kboard.
25521 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25522 (read_avail_input): Read input from all terminals.
25523 (mark_kboards): Also mark Vkeyboard_translate_table.
25524 (kbd_buffer_store_event_hold): Simplify condition.
25525 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25526 (Vkeyboard_translate_table): Move to struct kboard.
25527 (init_kboard): Initialize Vkeyboard_translate_table.
25528 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25529 Vkeyboard_translate_table. Update doc strings. Update docs of
25530 local-function-key-map and function-key-map.
25531
25532 * terminal.c: New file.
25533
25534 * term.c: Include errno.h.
25535 (Vring_bell_function, device_list, initial_device)
25536 (next_device_id, ring_bell, update_begin, update_end)
25537 (set_terminal_window, cursor_to, raw_cursor_to)
25538 (clear_to_end, clear_frame, clear_end_of_line)
25539 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25540 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25541 (syms_of_term): Move their initialization to terminal.c.
25542 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25543 (Ftty_display_color_cells)
25544 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25545 (clear_tty_hooks, set_tty_hooks)
25546 (init_tty, maybe_fatal): New functions.
25547 (Ftty_type): Return nil if terminal is not on a tty instead of
25548 throwing an error. Doc update.
25549 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25550 Doc update. Initialize new subrs and variables.
25551 (delete_tty): Use terminal->deleted.
25552 (tty_set_terminal_modes): Rename from set_terminal_modes.
25553 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25554 (set_scroll_region): Rename to `tty_set_scroll_region'.
25555 (turn_on_insert): Rename to `tty_turn_on_insert'.
25556 (turn_off_insert): Rename to `tty_turn_off_insert'.
25557 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25558 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25559 (toggle_highligh): Rename to `tty_toggle_highlight'.
25560 (background_highlight): Rename to `tty_background_highlight'.
25561 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25562 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25563 (tty_set_scroll_region, tty_background_highlight)
25564 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25565 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25566 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25567 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25568 Add static modifier.
25569 (tty_reset_terminal_modes, tty_set_terminal_window)
25570 (tty_set_scroll_region, tty_background_highlight)
25571 (tty_highlight_if_desired, tty_cursor_to)
25572 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25573 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25574 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25575 renames.
25576
255772007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25578
25579 * keyboard.c: Qrtl is new.
25580 (parse_tool_bar_item): Handle :rtl keyword.
25581 (syms_of_keyboard): Intern :rtl keyword.
25582
25583 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25584
25585 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25586 so no Lisp code is executed.
25587 (file_for_image, find_rtl_image): New functions.
25588 (xg_get_image_for_pixmap): Use file_for_image.
25589 (update_frame_tool_bar): If direction is RTL, use RTL image if
25590 defined. Use Gtk stock images if defined.
25591
255922007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25593
25594 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25595 for nonexistent or zero-width glyph in composition glyph.
25596
255972007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25598
25599 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25600
25601 * xdisp.c (Finvisible_p): New function.
25602 (syms_of_xdisp): defsubr it.
25603
256042007-08-24 Juanma Barranquero <lekktu@gmail.com>
25605
25606 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25607 Doc fixes.
25608
256092007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25610
25611 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25612
256132007-08-24 Martin Rudalics <rudalics@gmx.at>
25614
25615 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25616 whether decoding has modified buffer contents.
25617
256182007-08-24 Jason Rumney <jasonr@gnu.org>
25619
25620 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25621 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25622 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25623 (init_svg_functions) [HAVE_NTGUI]: New function.
25624 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25625 (svg_load_image): Use them.
25626 (svg_load_image) [HAVE_NTGUI]: Implement background.
25627
256282007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25629
25630 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25631 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25632 (LIBX): Remove @RSVG_LIBS@.
25633 (LIBES): Add $(RSVG_LIBS).
25634
25635 * image.c (svg_load_image): Blend with specified background if exists.
25636 Use IMAGE_BACKGROUND. Add Mac OS Support.
25637
25638 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25639 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25640 Remove macros.
25641 [MAC_OSX] (socket_callback): Do nothing.
25642 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25643 ReceiveNextEvent.
25644 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25645 socket_callback.
25646 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25647
256482007-08-22 Glenn Morris <rgm@gnu.org>
25649
25650 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25651
256522007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25653
25654 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25655
25656 * image.c: Add support for SVG images. Some additional comments
25657 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25658 (svg_image_p): New function to test for SVG image.
25659 (svg_load): New function to load SVG image.
25660 (svg_load_image): New function, helper for svg_load.
25661 (Qsvg): New Lisp_object.
25662 (svg_keyword_index): New enum.
25663 (svg_format): New static `image_keyword' struct.
25664 (svg_type): New static `image_type' struct.
25665 (librsvg/rsvg.h): Include it.
25666
256672007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25668
25669 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25670
256712007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25672
25673 * lread.c (Qold_style_backquotes): New var.
25674 (syms_of_lread): Init and staticpro it.
25675 (load_warn_old_style_backquotes): New fun.
25676 (Fload): Use them to warn about old style backquotes.
25677 (end_of_file_error, Fload): Remove unused vars.
25678
25679 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25680
25681 * lread.c (Vold_style_backquotes): New var.
25682 (syms_of_lread): Init and export it to Elisp.
25683 (read1): Set it when we find an old-style (back)quote.
25684
256852007-08-22 Jason Rumney <jasonr@gnu.org>
25686
25687 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25688
256892007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25690
25691 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25692
256932007-08-19 Richard Stallman <rms@gnu.org>
25694
25695 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25696
256972007-08-19 Andreas Schwab <schwab@suse.de>
25698
25699 * alloc.c (pure): Round PURESIZE up.
25700
257012007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25702
25703 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25704 active frame.
25705
257062007-08-16 Richard Stallman <rms@gnu.org>
25707
25708 * eval.c (Fcommandp): Add parens to clarify.
25709
25710 * minibuf.c (Fall_completions): Use enum for type of table.
25711
25712 * emacs.c (USAGE2): Improve text.
25713
257142007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25715
25716 * term.c (tty_default_color_capabilities): Declare static
25717 variables in file scope, to avoid HPUX compiler problem.
25718
257192007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25720
25721 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25722 to gtk_toolbar_insert.
25723
257242007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25725
25726 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25727
25728 * insdel.c (reset_var_on_error): New fun.
25729 (signal_before_change, signal_after_change):
25730 Use it to reset (after|before)-change-functions to nil in case of error.
25731 Bind inhibit-modification-hooks to t.
25732 Don't bind (after|before)-change-functions to nil while they run.
25733
257342007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25735
25736 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25737 filling pixmap with stippled background.
25738
257392007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25740
25741 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25742 Don't use invisible frame as parent window for repositioning.
25743
257442007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25745
25746 * print.c (new_backquote_output): Rename from old_backquote_output.
25747 (print): Inverse its logic (according to its name) so as to match the
25748 behavior of new_backquote_flag in lread.c.
25749
257502007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25751
25752 * gmalloc.c (posix_memalign): New function.
25753
25754 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25755 ActivateControl/DeactivateControl here.
25756 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25757 frame-notice-user-settings is non-nil.
25758 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25759 for kEventParamFMFontStyle.
25760 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25761 mac_pass_command_to_system and mac_pass_control_to_system here.
25762 (XTread_socket): Call ActivateControl/DeactivateControl here.
25763 (XTread_socket) [TARGET_API_MAC_CARBON]:
25764 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25765 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25766 for window repositioning.
25767
257682007-08-08 Glenn Morris <rgm@gnu.org>
25769
25770 * Replace `iff' in doc-strings and comments.
25771
257722007-08-07 Chong Yidong <cyd@stupidchicken.com>
25773
25774 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25775
257762007-08-07 Martin Rudalics <rudalics@gmx.at>
25777
25778 * fileio.c (Finsert_file_contents): Run format-decode and
25779 after_insert_file_functions on entire buffer when REPLACE is
25780 non-nil and inhibit modification_hooks and point_motion_hooks.
25781 For consistency, run after_insert_file_functions iff something
25782 got inserted. Move signal_after_change and update_compositions
25783 after code running after_insert_file_functions. Make sure that
25784 undo_list doesn't record intermediate steps of the decoding process.
25785
257862007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25787
25788 * emacs.c (main)
25789 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25790 Call malloc_enable_thread on interactive startup.
25791
25792 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25793 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25794 [USE_PTHREAD]: Conditionalize with it.
25795 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25796 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25797 New functions.
25798
257992007-08-06 Chong Yidong <cyd@stupidchicken.com>
25800
25801 * xdisp.c (redisplay_window): When restoring original buffer
25802 position, make sure it is still valid.
25803
25804 * image.c (png_load): Ignore png-supplied background color.
25805
258062007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25807
25808 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25809 Use kCFAbsoluteTimeIntervalSince1970.
25810
25811 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25812 New variable.
25813 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25814 event loop should be quit.
25815 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25816 Quit dialog event loop if quit_dialog_event_loop is set.
25817
25818 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25819 (Selection): New typedef. Use instead of ScrapRef.
25820 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25821 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25822 (mac_clear_selection): Rename from clear_scrap.
25823 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25824 scrap_has_target_type. All uses changed.
25825 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25826 (mac_selection_has_target_p): New functions.
25827 (mac_put_selection_value): Rename from put_scrap_string.
25828 (mac_get_selection_value): Rename from get_scrap_string.
25829 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25830 (put_scrap_private_timestamp, scrap_has_target_type)
25831 (get_scrap_private_timestamp): Remove functions.
25832 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25833 (x_own_selection, x_get_local_selection):
25834 Use mac_valid_selection_value_p.
25835 (x_own_selection): Don't use put_scrap_private_timestamp.
25836 Record OWNERSHIP-INFO into Vselection_alist instead.
25837 (x_get_local_selection): Don't check type if request is local.
25838 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25839 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25840
258412007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25842
25843 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25844 add comment explaining why.
25845
258462007-08-03 Richard Stallman <rms@gnu.org>
25847
25848 * fileio.c (Fvisited_file_modtime): Use make_time.
25849
258502007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25851
25852 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25853 build.
25854
258552007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25856
25857 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25858
258592007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25860
25861 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25862
258632007-07-30 Richard Stallman <rms@gnu.org>
25864
25865 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25866
258672007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25868
25869 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25870
258712007-07-28 Nick Roberts <nickrob@snap.net.nz>
25872
25873 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25874 remote default-directory.
25875
25876 * buffer.c (mode-line-format): Update doc string.
25877
258782007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25879
25880 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25881 scroll bar gap.
25882 (x_scroll_bar_create): Set bar->fringe_extended_p.
25883 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25884 on frame edge. Check fringe background extension. Don't clear
25885 extended fringe background area.
25886
25887 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25888 (w32_fill_area): Enclose multiple statements with do ... while (0).
25889
25890 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25891 Extend fringe background to scroll bar gap.
25892 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25893 Set bar->fringe_extended_p.
25894 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25895 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25896 background extension. Don't clear extended fringe background area.
25897
25898 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25899 New member fringe_extended_p.
25900
259012007-07-25 Glenn Morris <rgm@gnu.org>
25902
25903 * Relicense all FSF files to GPLv3 or later.
25904
25905 * COPYING: Switch to GPLv3.
25906
259072007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25908
25909 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25910
25911 * data.c (Finteractive_form): Check for the presence of an
25912 `interactive-form' symbol property more thoroughly.
25913
25914 * data.c (Finteractive_form): Use an `interactive-form' property if
25915 present, analogous to the function-documentation property.
25916
259172007-07-24 Jason Rumney <jasonr@gnu.org>
25918
25919 * w32fns.c (x_real_positions): Get real position from OS instead of
25920 calculating it.
25921
259222007-07-23 Jason Rumney <jasonr@gnu.org>
25923
25924 * filelock.c (current_lock_owner): Allow for @ sign in username.
25925
259262007-07-22 Nick Roberts <nickrob@snap.net.nz>
25927
25928 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25929 remote default-directory.
25930
25931 * buffer.c (mode-line-format): Describe above case in doc string.
25932
259332007-07-20 Eli Zaretskii <eliz@gnu.org>
25934
25935 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25936 Define if not defined.
25937
259382007-07-18 Jason Rumney <jasonr@gnu.org>
25939
25940 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25941
259422007-07-18 Richard Stallman <rms@gnu.org>
25943
25944 * data.c (Fsetq_default): Doc fix.
25945
25946 * eval.c (Fsetq): Doc fix.
25947
259482007-07-18 Juanma Barranquero <lekktu@gmail.com>
25949
25950 * coding.c (Ffind_operation_coding_system):
25951 * eval.c (For, Fand): Doc fixes.
25952 Reported by Johan Bockgård.
25953
259542007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25955
25956 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25957
25958 * xterm.h: Declare x_ewmh_activate_frame.
25959
25960 * xterm.c (x_ewmh_activate_frame): New function.
25961 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25962
259632007-07-17 Martin Rudalics <rudalics@gmx.at>
25964
25965 * window.c (Fdisplay_buffer): If largest or LRU window is the
25966 only window, split it even if it is not eligible for splitting.
25967 This restores the original behavior broken by the 2007-07-15
25968 change.
25969
259702007-07-17 Glenn Morris <rgm@gnu.org>
25971
25972 * abbrev.c (abbrev_check_chars): New function.
25973 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25974 Call abbrev_check_chars to check abbrev characters are word
25975 constituents. Doc fix.
25976
259772007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25978
25979 * process.c (Fstart_process, Fmake_network_process)
25980 (read_process_output): Fix up last changes.
25981
259822007-07-16 Eli Zaretskii <eliz@gnu.org>
25983
25984 * makefile.w32-in (clean): Don't delete *~.
25985
259862007-07-16 Andreas Schwab <schwab@suse.de>
25987
25988 * window.c (Fdisplay_buffer): Use NILP.
25989 (Fset_window_scroll_bars): Likewise.
25990
259912007-07-15 Martin Rudalics <rudalics@gmx.at>
25992
25993 * window.c (window_min_size_2): New function.
25994 (window_min_size_1, size_window, Fdisplay_buffer)
25995 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25996 windows without mode- or header-lines when window-min-height is
25997 too small.
25998 (size_window): Reset nodelete_p after testing it, following an
25999 earlier note by Kim F. Storm.
26000 (display_buffer): Do not set split_height_threshold to twice the
26001 value of window_min_height to avoid changing the value of a
26002 customizable variable. Rather explicitly check whether the
26003 height of the window that shall be splitted is at least as large
26004 as split_height_threshold.
26005 (Fwindow_full_width_p): New defun.
26006 (syms_of_window): Defsubr it.
26007
26008 * window.h: Add EXFUN for Fwindow_full_width_p.
26009
260102007-07-14 Jason Rumney <jasonr@gnu.org>
26011
26012 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26013
260142007-07-14 Richard Stallman <rms@gnu.org>
26015
26016 * eval.c (maybe_call_debugger): New function.
26017 (find_handler_clause): Use maybe_call_debugger.
26018 Call it when the handler says `debug'.
26019 Eliminate DEBUGGER_VALUE_PTR.
26020 (Fsignal): Eliminate debugger_value.
26021 (Qdebug): New variable.
26022 (syms_of_eval): Initialize it.
26023
260242007-07-14 Juanma Barranquero <lekktu@gmail.com>
26025
26026 * eval.c (Fprogn):
26027 * keyboard.c (Ftrack_mouse):
26028 * print.c (Fwith_output_to_temp_buffer):
26029 * window.c (Fsave_window_excursion): Doc fix.
26030
260312007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26032
26033 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26034
260352007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26036
26037 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26038 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26039 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26040 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26041 Remove unused encoding_carryover.
26042 * process.c: Adjust all functions accordingly.
26043
260442007-07-12 Richard Stallman <rms@gnu.org>
26045
26046 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26047
260482007-07-11 Jason Rumney <jasonr@gnu.org>
26049
26050 * makefile.w32-in (LIBS): Include OLE32.
26051
26052 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26053 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26054
260552007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26056
26057 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26058 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26059 from a Lisp_Object into a bare pointer.
26060 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26061 Adjust the code correspondingly.
26062
26063 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26064
26065 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26066 (term_show_mouse_face): Remove unused var `j'.
26067 (handle_one_term_event): Remove unused vars `i' and `j'.
26068 Don't cast return value of ttyname since it's not necessary.
26069
260702007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26071
26072 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26073 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26074
26075 * fns.c (map_char_table): Use an array of int for `indices' rather than
26076 an array of Lisp_Objects (which are only ever integers anyway).
26077 (Fmap_char_table): Update caller.
26078 * lisp.h: Update prototype.
26079 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26080 * fontset.c (Ffontset_info):
26081 * casetab.c (set_case_table): Update callers.
26082
26083 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26084
26085 * keymap.c (struct accessible_keymaps_data)
26086 (struct where_is_internal_data): New structures.
26087 (accessible_keymaps_1, where_is_internal_1): Use them to change
26088 interface to adhere to the one used by map_keymap.
26089 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26090 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26091
26092 * keymap.h (map_keymap_function_t): More informative prototype.
26093
260942007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26095
26096 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26097 (looking_at_1): Don't change search_regs and last_thing_searched
26098 if `inhibit-changing-match-data' is non-nil.
26099 (string_match_1, search_buffer, set_search_regs): Likewise.
26100 (syms_of_search): Add Lisp level definition for
26101 `inhibit-changing-match-data' and set it to nil.
26102 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26103 start and end of the match, instead of using values in search_regs.
26104
261052007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26106
26107 * minibuf.c (Fcompleting_read): New value `confirm-only'
26108 for `require-match'.
26109
261102007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26111
26112 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26113 part of the 2007-06-27 change to syms_of_fileio.
26114
261152007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26116
26117 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26118 Check WINDOWP before using XWINDOW. Consolidate return statements.
26119
261202007-06-27 Richard Stallman <rms@gnu.org>
26121
26122 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26123
261242007-06-27 Juanma Barranquero <lekktu@gmail.com>
26125
26126 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26127
261282007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26129
26130 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26131 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26132 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26133 (_free_internal, memalign): Use them.
26134 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26135 Initialize to PTHREAD_MUTEX_INITIALIZER.
26136 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26137 (morecore_nolock): Rename from morecore. All uses changed.
26138 Use only nolock versions of internal allocation functions.
26139 (_malloc_internal_nolock, _realloc_internal_nolock)
26140 (_free_internal_nolock): New functions created from
26141 _malloc_internal, _realloc_internal, and _free_internal.
26142 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26143 Copy hook value to automatic variable before its use.
26144 (memalign): Copy hook value to automatic variable before its use.
26145
261462007-06-26 Kenichi Handa <handa@m17n.org>
26147
26148 * coding.c (Ffind_operation_coding_system): Docstring improved.
26149 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26150
261512007-06-25 David Kastrup <dak@gnu.org>
26152
26153 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26154 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26155 cater for additional parameter.
26156
26157 * keymap.h: Adjust number of parameters to `current-active-maps'.
26158
26159 * doc.c (Fsubstitute_command_keys): Adjust call of
26160 `current-active-maps'.
26161
261622007-06-25 David Kastrup <dak@gnu.org>
26163
26164 * callint.c (Fcall_interactively): Make the parsing of interactive
26165 specs somewhat more readable.
26166
261672007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26168
26169 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26170 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26171 if extended background has already been filled.
26172
261732007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26174
26175 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26176 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26177
26178 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26179 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26180 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26181 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26182 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26183 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26184 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26185 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26186 Run timers during dialog popup.
26187 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26188
261892007-06-21 Jason Rumney <jasonr@gnu.org>
26190
26191 * image.c (convert_mono_to_color_image): Swap fore and background.
26192
261932007-06-20 Jason Rumney <jasonr@gnu.org>
26194
26195 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26196 (w32_free_bdf_font): Unmap memory not handle.
26197
261982007-06-20 Sam Steingold <sds@gnu.org>
26199
26200 * gmalloc.c (__morecore): Fix the declaration to comply with the
26201 definition.
26202
262032007-06-20 Juanma Barranquero <lekktu@gmail.com>
26204
26205 * w32term.c (w32_delete_display): Remove leftover declaration.
26206 (w32_define_cursor, w32_initialize): Make static.
26207
26208 * w32.c (_wsa_errlist): Fix typo in error message.
26209 (init_environment): Ignore any environment variable from the
26210 registry having a null value.
26211
262122007-06-20 Glenn Morris <rgm@gnu.org>
26213
26214 * Makefile.in (LIBGIF): Default to -lgif.
26215
262162007-06-17 Jason Rumney <jasonr@gnu.org>
26217
26218 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26219 unicode strings.
26220
262212007-06-16 Juanma Barranquero <lekktu@gmail.com>
26222
26223 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26224 Fix typo in docstring.
26225
262262007-06-16 Eli Zaretskii <eliz@gnu.org>
26227
26228 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26229 and their keybindings.
26230
262312007-06-15 Chong Yidong <cyd@stupidchicken.com>
26232
26233 * composite.c (update_compositions): Fix last fix.
26234
262352007-06-14 Jason Rumney <jasonr@gnu.org>
26236
26237 * w32.c (get_process_times_fn): New function pointer.
26238 (globals_of_w32): Intialize it if present in kernel32.dll.
26239 (w32_get_internal_run_time): New function.
26240
26241 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26242
262432007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26244
26245 * composite.c (update_compositions): Check the validness of
26246 compositions.
26247
262482007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26249
26250 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26251 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26252
26253 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26254 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26255
26256 * macgui.h (USE_MAC_TOOLBAR): New define.
26257
26258 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26259 Return immediately unless popup is activated.
26260
26261 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26262 background to scroll bar gap.
26263 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26264 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26265 scroll bars on frame edge. Check fringe background extension.
26266 Don't clear extended fringe background area.
26267 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26268 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26269 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26270 [USE_MAC_TOOLBAR]: New macros.
26271 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26272 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26273 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26274 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26275 [USE_MAC_TOOLBAR]: New functions.
26276 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26277 manually if previous repositioning has failed.
26278 (mac_handle_keyboard_event): Use precomputed event kind.
26279 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26280 as tool bar item click. Handle mouse movement over tool bar items.
26281
26282 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26283 toolbar_win_gravity.
26284 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26285 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26286 Add externs.
26287
26288 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26289 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26290
262912007-06-14 Chong Yidong <cyd@stupidchicken.com>
26292
26293 * image.c (search_image_cache): Remove unused variable.
26294
262952007-06-13 Chong Yidong <cyd@stupidchicken.com>
26296
26297 * xfns.c, xmenu.c: Link to xaw3d if available.
26298
262992007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26300
26301 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26302 frame_foreground and frame_background.
26303
26304 * image.c (lookup_image): Save frame foreground and background colors.
26305 (search_image_cache): Check if saved and current frame colors match.
26306
263072007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26308
26309 * regex.c (regex_compile): Remove the `regnum' counter.
26310 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26311
263122007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26313
26314 * term.c: Include intervals.h to declare Fget_text_property.
26315
263162007-06-10 Jason Rumney <jasonr@gnu.org>
26317
26318 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26319
263202007-06-08 Juanma Barranquero <lekktu@gmail.com>
26321
26322 * callint.c (Fcall_interactively):
26323 * editfns.c (Fdelete_and_extract_region):
26324 * fileio.c (Fread_file_name):
26325 * fns.c (Fmapconcat):
26326 * keyboard.c (cmd_error_internal):
26327 * keymap.c (Fkey_description):
26328 * lread.c (openp):
26329 * minibuf.c (read_minibuf):
26330 * search.c (wordify):
26331 * sunfns.c (sel_read):
26332 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26333 * xfns.c (x_default_scroll_bar_color_parameter):
26334 * xmenu.c (menu_help_callback):
26335 * xselect.c (Fx_get_atom_name):
26336 * xterm.c (x_term_init): Use empty_unibyte_string.
26337
263382007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26339
26340 * alloc.c (init_strings): Initialize canonical empty strings.
26341 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26342 canonical empty string when the requested size is 0.
26343
26344 * emacs.c (empty_unibyte_string): Rename from empty_string.
26345 (empty_multibyte_string): New canonical empty string.
26346 (syms_of_emacs): Don't initialize empty_string.
26347
26348 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26349 string, if appropriate.
26350 (empty_unibyte_string, empty_multibyte_string): New externs.
26351 (empty_string): Remove extern.
26352
26353 * lread.c (syms_of_lread): Use empty_unibyte_string.
26354
263552007-06-07 Jason Rumney <jasonr@gnu.org>
26356
26357 * s/ms-w32.h: Don't define HAVE_TZNAME.
26358
26359 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26360
263612007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26362
26363 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26364
26365 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26366 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26367
26368 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26369 Don't call next handler.
26370 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26371 Remove argument. Install handler to application.
26372 (set_frame_menubar): Don't change deep_p.
26373 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26374 FRAME_OUTER_TO_INNER_DIFF_Y.
26375 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26376 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26377 [HAVE_DIALOGS]: New macros.
26378 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26379 Use them.
26380 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26381
26382 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26383 init_service_handler. All callers changed. Return OSStatus value.
26384
26385 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26386 All callers changed so as not to call SetPortWindowPort.
26387 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26388 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26389 mac_draw_string_common.
26390 (mac_draw_image_string_qd): Likewise.
26391 (mac_draw_string_common): Use them. Add INLINE.
26392 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26393 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26394 GetGlobalMouse.
26395 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26396 and FRAME_OUTER_TO_INNER_DIFF_Y.
26397 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26398 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26399 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26400 repositioning window to mac_handle_window_event.
26401 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26402 saving window location to mac_handle_window_event
26403 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26404 (install_menu_target_item_handler): Remove argument in extern.
26405 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26406 Also accept command events.
26407 (do_keystroke): New function created from XTread_socket.
26408 (init_command_handler): Remove functions.
26409 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26410 and save window location by kEventWindowShowing and kEventWindowHiding
26411 handlers here. Don't call next handler for window state change and
26412 focus events.
26413 (mac_handle_application_event, mac_handle_keyboard_event)
26414 [TARGET_API_MAC_CARBON]: New functions.
26415 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26416 kEventWindowShowing and kEventWindowHiding events. Move installation
26417 of mouse, font, text input and menu target item handlers to
26418 install_application_handler.
26419 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26420 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26421 New function.
26422 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26423 Register it.
26424 (XTread_socket) [TARGET_API_MAC_CARBON]:
26425 Consolidate SendEventToEventTarget calls.
26426 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26427 Move application activation handler to mac_handle_application_event.
26428 Move keyboard handler to mac_handle_keyboard_event.
26429 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26430 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26431 init_command_handler. Call install_application_handler.
26432
26433 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26434 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26435
264362007-06-07 Glenn Morris <rgm@gnu.org>
26437
26438 * emacs.c (main): Use `emacs-copyright' in --version output.
26439
264402007-06-06 Chong Yidong <cyd@stupidchicken.com>
26441
26442 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26443
264442007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26445
26446 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26447
26448 * macgui.h: Replace WindowPtr with WindowRef.
26449
26450 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26451 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26452 Replace ControlHandle with ControlRef.
26453 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26454
26455 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26456 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26457 Replace ControlHandle with ControlRef.
26458 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26459 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26460
26461 * macterm.h (struct scroll_bar): Rename member control_handle_low
26462 and control_handle_high to control_ref_low and control_ref_high.
26463 All uses changed.
26464 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26465 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26466 respectively. All uses changed.
26467 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26468 (install_window_handler, remove_window_handler): Replace WindowPtr
26469 with WindowRef in externs.
26470
264712007-06-05 Juanma Barranquero <lekktu@gmail.com>
26472
26473 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26474
264752007-06-03 Nick Roberts <nickrob@snap.net.nz>
26476
26477 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26478
26479 * frame.c (Fmouse_position, Fmouse_pixel_position):
26480 Condition on HAVE_GPM too.
26481
26482 * term.c (term_mouse_highlight): Remove unused variables.
26483 (Fterm_open_connection): Set gpm_zerobased to 1.
26484 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26485 Use zero based co-ordinates.
26486 (handle_one_term_event): Report a drag as mouse movement too.
26487
26488 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26489
264902007-06-03 Chong Yidong <cyd@stupidchicken.com>
26491
26492 * image.c (search_image_cache): New function. Require background
26493 color match if background color is unspecified in the image spec.
26494 (uncache_image, lookup_image): Use it.
26495
264962007-06-01 Juanma Barranquero <lekktu@gmail.com>
26497
26498 * window.c (Fshrink_window): Reflow docstring.
26499
265002007-06-02 Chong Yidong <cyd@stupidchicken.com>
26501
26502 * Version 22.1 released.
26503
265042007-06-01 Richard Stallman <rms@gnu.org>
26505
26506 * xfns.c (x_encode_text): Add GCPRO.
26507
265082007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26509
26510 * xfns.c (x_set_name_internal): Save encoded name before
26511 x_encode_text in case string data is relocated.
26512
265132007-05-31 Richard Stallman <rms@gnu.org>
26514
26515 * buffer.c (syms_of_buffer): Doc fix.
26516
265172007-05-30 Nick Roberts <nickrob@snap.net.nz>
26518
26519 * sysdep.c (init_sys_modes): Add rather than replace with
26520 O_NONBLOCK.
26521
26522 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26523 term_mouse_moveto.
26524
26525 * termhooks.h (term_mouse_moveto): New extern.
26526
26527 * term.c (mouse_face_window): Rename...
26528 (Qmouse_face_window): ...to this.
26529 (term_show_mouse_face, term_clear_mouse_face)
26530 (term_mouse_highlight): Use Qmouse_face_window.
26531 (term_mouse_moveto): New function.
26532 (term_mouse_position): Make it work.
26533 (syms_of_term): Uncomment assignment to mouse_position_hook.
26534 Staticpro Qmouse_face_window.
26535
265362007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26537
26538 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26539 around current_column call.
26540
265412007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26542
26543 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26544 * xdisp.c (next_element_from_buffer):
26545 * window.c (delete_window):
26546 * term.c (term_mouse_highlight):
26547 * msdos.c (getdefdir):
26548 * macterm.c (mac_create_bitmap_from_bitmap_data)
26549 (init_font_name_table):
26550 * fns.c (Fsxhash):
26551 * data.c (Fmake_local_variable):
26552 * ccl.c (ccl_driver): Likewise.
26553
265542007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26555
26556 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26557 Call mac_wakeup_from_rne on window size change.
26558
265592007-05-25 Chong Yidong <cyd@stupidchicken.com>
26560
26561 * image.c (uncache_image): Fix typo.
26562
265632007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26564
26565 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26566
265672007-05-22 Richard Stallman <rms@gnu.org>
26568
26569 * xterm.c (x_connection_closed): Remove NO_RETURN.
26570
265712007-05-22 Martin Rudalics <rudalics@gmx.at>
26572
26573 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26574
265752007-05-21 Chong Yidong <cyd@stupidchicken.com>
26576
26577 * image.c (uncache_image): New function.
26578 (Fimage_refresh): New function.
26579
265802007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26581
26582 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26583
265842007-05-20 Nick Roberts <nickrob@snap.net.nz>
26585
26586 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26587 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26588
265892007-05-20 Nick Roberts <nickrob@snap.net.nz>
26590
26591 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26592 conditional on [HAVE_GPM_H].
26593
265942007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26595
26596 * syntax.c (skip_chars): Update syntax-table only after we checked that
26597 the new location is valid.
26598
265992007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26600
26601 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26602 mac_get_window_bounds.
26603
266042007-05-20 Nick Roberts <nickrob@snap.net.nz>
26605
26606 * Makefile.in (LIBGPM): Allow it to be set from configure.
26607 If set then link Emacs with it.
26608
26609 * config.in: Regenerate.
26610
26611 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26612 New externs.
26613
26614 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26615 Include gpm.h.
26616 (handle_one_term_event, term_gpm): New externs.
26617
26618 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26619 and allow it to be interrupted by SIGIO.
26620
26621 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26622 (wait_reading_process_output): Wait on gpm_fd too.
26623 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26624 (add_gpm_wait_descriptor_called_flag): New variable.
26625 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26626
26627 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26628 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26629 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26630 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26631 (make_lispy_event): Add case GPM_CLICK_EVENT.
26632 (read_avail_input): Handle mouse input.
26633
26634 * term.c (write_glyphs_with_face): New function.
26635 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26636 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26637 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26638 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26639 (last_mouse_x, last_mouse_y): New variables.
26640 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26641 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26642 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26643 (Fterm_close_connection): New functions.
26644 (term_init): Initialise mouse_face_window.
26645
266462007-05-19 Chong Yidong <cyd@stupidchicken.com>
26647
26648 * xdisp.c (redisplay_window): If first window line is a
26649 continuation line, recompute the new window start instead of
26650 recentering.
26651
266522007-05-18 Glenn Morris <rgm@gnu.org>
26653
26654 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26655 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26656
266572007-05-17 Glenn Morris <rgm@gnu.org>
26658
26659 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26660
266612007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26662
26663 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26664 dead key repeat and up events.
26665
266662007-05-14 Chong Yidong <cyd@stupidchicken.com>
26667
26668 * image.c (pbm_load): Check image size for monochrome pbm.
26669
266702007-05-13 Chong Yidong <cyd@stupidchicken.com>
26671
26672 * xterm.c (XTread_socket): Revert last change.
26673
266742007-05-12 Chong Yidong <cyd@stupidchicken.com>
26675
26676 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26677
26678 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26679
266802007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26681
26682 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26683 mixup (YAILOM).
26684
266852007-05-07 Andreas Schwab <schwab@suse.de>
26686
26687 * keymap.c (Flookup_key): Fix typo in last change.
26688
266892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26690
26691 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26692 mapping for unibyte strings.
26693
266942007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26695
26696 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26697 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26698
266992007-04-29 Richard Stallman <rms@gnu.org>
26700
26701 * insdel.c (replace_range): For undo, record insertion first.
26702
267032007-04-29 Andreas Schwab <schwab@suse.de>
26704
26705 * lisp.h (VECSIZE): Use OFFSETOF.
26706
267072007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26708
26709 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26710 disabled lines.
26711
267122007-04-28 Richard Stallman <rms@gnu.org>
26713
26714 * lread.c (read_escape): In a string, \s is always space.
26715
267162007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26717
26718 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26719
26720 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26721 submenu for menu bar items.
26722
26723See ChangeLog.10 for earlier changes.
26724
26725;; Local Variables:
26726;; coding: utf-8
26727;; add-log-time-zone-rule: t
aac0c6e3
MR
26728;; End:
26729
e3eb1dae 26730 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26731
26732 This file is part of GNU Emacs.
26733
26734 GNU Emacs is free software: you can redistribute it and/or modify
26735 it under the terms of the GNU General Public License as published by
26736 the Free Software Foundation, either version 3 of the License, or
26737 (at your option) any later version.
26738
26739 GNU Emacs is distributed in the hope that it will be useful,
26740 but WITHOUT ANY WARRANTY; without even the implied warranty of
26741 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26742 GNU General Public License for more details.
26743
26744 You should have received a copy of the GNU General Public License
26745 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26746
26747;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40