* lisp/emacs-lisp/lisp.el (up-list): Obey forward-sexp-function if set.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
0cc56427
EZ
12010-08-17 Eli Zaretskii <eliz@gnu.org>
2
3 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4 x_set_tool_bar_position handler, needed to support changes from
5 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
6
e45a249b
JD
72010-08-16 Jan Djärv <jan.h.d@swipnet.se>
8
921242c6
J
9 * nsselect.m: include keyboard.h for QPRIMARY, remove its
10 declaration (Bug#6863).
573d150b 11 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 12
e45a249b
JD
13 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
14
15 * keyboard.h (QPRIMARY): Declare (Bug#6864).
16
7c23dd44
CY
172010-08-16 Chong Yidong <cyd@stupidchicken.com>
18
19 * keyboard.c (command_loop_1): Avoid setting selection twice,
20 since it's done in deactivate-mark as well.
21 (Vselect_active_regions): Change default to t. Replace `lazy'
22 with non-default value `only', meaning only set PRIMARY for
23 temporarily active regions.
24
25 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
26 select-active-regions.
27
0005830c
J
282010-08-15 Jan Djärv <jan.h.d@swipnet.se>
29
30 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
31 isn't a string.
32
603dfc72
AS
332010-08-15 Andreas Schwab <schwab@linux-m68k.org>
34
35 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
36
c25ce9d0
J
372010-08-15 Jan Djärv <jan.h.d@swipnet.se>
38
39 * keyboard.c (parse_tool_bar_item): malloc buf. Set TOOL_BAR_ITEM_LABEL
40 to empty string if not set to new_lbl (Bug#6855).
41
5872c762
EZ
422010-08-14 Eli Zaretskii <eliz@gnu.org>
43
b236615c
EZ
44 * xterm.c (x_draw_stretch_glyph_string):
45 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
46 the cursor on the right edge of the stretch glyph.
47
48 * xdisp.c (window_box_right_offset, window_box_right): Fix
49 commentary.
50
5872c762
EZ
51 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
52 direction when point is inside a run of whitespace characters.
53
54 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
55
e66f9a1b
JR
562010-08-14 Jason Rumney <jasonr@gnu.org>
57
58 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
59
79d6f59e
CY
602010-08-14 Chong Yidong <cyd@stupidchicken.com>
61
62 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
63
1c9b4129
JR
642010-08-13 Jason Rumney <jasonr@gnu.org>
65
66 * w32menu.c (simple_dialog_show): Use unicode message box if available.
67 (MessageBoxW_Proc): New function typedef.
68 (unicode-message-box): New function pointer.
69 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
70
2b4e6277
J
712010-08-13 Jan Djärv <jan.h.d@swipnet.se>
72
73 * frame.h (Qtool_bar_position): Declare.
74
75 * xfns.c (Fx_create_frame): Call x_default_parameter for
76 Qtool_bar_position.
77
94c97d85
EZ
782010-08-13 Eli Zaretskii <eliz@gnu.org>
79
8ee81892
EZ
80 * unexcoff.c: Remove the parts used when "emacs" is not defined.
81 (report_error, report_error_1): Ditto.
82 (write_segment): Remove "#if 0" unused code.
83 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
84 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
85 (start_of_text): Remove unused function (was used only if NO_REMAP
86 was NOT defined).
87
891ef8f7
EZ
88 * msdos.c (IT_set_face): Fix format string to match argument
89 types.
90 (IT_write_glyphs, IT_note_mode_line_highlight)
91 (IT_set_frame_parameters): Remove unused variables.
92 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
93 (IT_set_terminal_modes): Disambiguate expression in if clause.
94 (Fmsdos_remember_default_colors): Return Qnil.
95 (IT_set_frame_parameters): Add parens to disambiguate boolean
96 expression for logging the cursor type to termscript.
97 (keyboard_layout_list, keypad_translate_map)
98 (grey_key_translate_map): Add braces in inner initializers.
99 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
100 (dos_rawgetc): Remove unused label.
101 (XMenuActivate): Add braces to remove ambiguous `else'.
102 (dos_ttraw): Always return a value.
103 (spawnve): Declare.
104 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
105
106 * dosfns.h (x_set_title): Declare.
107
108 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
109 Remove unused variables.
110
111 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
112 variables.
113 (init_dosfns): Declare get_lim_data.
114 (system_process_attributes): Declare Fget_internal_run_time.
115
38e41e0e
EZ
116 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
117 list to be consistent with menu.h.
118
94c97d85
EZ
119 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
120 warnings due to mixing of "char *" and "const char *".
121
c5683ceb
SM
1222010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
123
124 Introduce a new comment style "c" flag.
125 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
126 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
127 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
128 (syntax_prefix_flag_p): New function.
129 (Fstring_to_syntax): Understand new "c" flag.
130 (Finternal_describe_syntax_value): Recognize new flag; use the
131 SYNTAX_FLAGS_* macros.
132 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
133 comment style to accomodate the new styles.
134 (back_comment, forw_comment, Fforward_comment, scan_lists)
135 (scan_sexps_forward): Update code to obey the new comment style flag.
136
137 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
138
139 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
140
7aee76f4
J
1412010-08-11 Jan Djärv <jan.h.d@swipnet.se>
142
3a46642b
J
143 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
144 first.
94dff98f 145 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
146
147 * gtkutil.h (xg_check_special_colors): Declare.
148
149 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
150 (xg_create_frame_widgets): Connect theme name changes to
151 style_changed_cb.
152
42ca4633
J
153 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
154 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
155 (x_term_init): Use char[] display_opt and name_opt instead of
156 string literal. file is const char*.
157
158 * xsmfns.c (NOSPLASH_OPT): Change to char[].
159 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
160 props. Free them at the end.
161
162 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
163
c5683ceb
SM
164 * xrdb.c (get_system_app): Make path const and use char *p for
165 non-const char.
42ca4633
J
166
167 * xmenu.c (Fx_popup_dialog): error_name is const char*.
168 (xmenu_show): error parameter is const char **. pane_string is const
169 char *.
170 (button_names): Is const char *.
171 (xdialog_show): error_name and pane_string is const.
172
173 * process.h (synch_process_death): Is const char*.
174
175 * w32menu.c (w32_menu_show):
176 * nsmenu.m (ns_menu_show): error parameter is const char **.
177
178 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
179 is const char **.
180
181 * menu.c (Fx_popup_menu): error_name is const.
182
183 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
184 with unsigned char and XtPointer with void *.
185
186 * gtkutil.h: Replace widget_value with struct _widget_value.
187 (enum button_type, struct _widget_value): Remove and use the one from
188 keyboard.h.
189
190 * gtkutil.c (get_utf8_string): Always return an allocated string.
191 Parameter is const.
192 (create_dialog, xg_create_one_menuitem, create_menus)
193 (xg_item_label_same_p, xg_update_menu_item): Free result from
194 get_utf8_string.
195 (xg_separator_p, xg_item_label_same_p): label is const.
196
197 * font.h (font_open_by_name): Make name const.
198
199 * font.c (font_open_by_name): Make name const.
200
201 * floatfns.c (matherr): Use a const char* variable for x->name.
202
203 * emacs.c (main): Pass char[] to putenv instead of literal.
204
205 * callproc.c (synch_process_death): Make const.
206 (Fcall_process): Make signame const.
207
9c5bd55a
J
208 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
209 (addDisplayItemWithImage): Use const char*.
210
211 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
212 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
213
214 * nsfont.m (ns_descriptor_to_entity): Use const char*.
215
216 * keyboard.h (_widget_value): name, value and key are const char*.
217
7aee76f4
J
218 * unexmacosx.c (unexec_error): Use const char *.
219
09d93395
DN
2202010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
221
222 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 223 (font_parse_name, font_open_by_name):
09d93395 224 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 225 (font_parse_name, font_open_by_name): Remove const.
09d93395 226
671d409f
AS
2272010-08-09 Andreas Schwab <schwab@linux-m68k.org>
228
229 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
230 definition.
231
232 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
233 * m/amdx86-64.h: Likewise.
234 * m/arm.h: Likewise.
235 * m/hp800.h: Likewise.
236 * m/ia64.h: Likewise.
237 * m/ibmrs6000.h: Likewise.
238 * m/ibms390.h: Likewise.
239 * m/intel386.h: Likewise.
240 * m/iris4d.h: Likewise.
241 * m/m68k.h: Likewise.
242 * m/macppc.h: Likewise.
243 * m/mips.h: Likewise.
244 * m/sh3.h: Likewise.
245 * m/sparc.h: Likewise.
246 * m/template.h: Likewise.
247 * m/vax.h: Likewise.
248 * m/xtensa.h: Likewise.
249 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
250 WORDS_BIG_ENDIAN.
251 * lisp.h: Likewise.
252 * md5.c: Likewise.
253 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
254
8ea90aa3
DN
2552010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
256
257 Use const char* instead of char*.
258 Reduce the number of warnings with -Wwrite-strings.
259 * xrdb.c (get_environ_db, get_system_name):
260 * unexelf.c (find_section):
261 * term.c (string_cost, string_cost_one_line, per_line_cost)
262 (get_named_tty, init_tty):
263 * sysdep.c (sys_subshell):
264 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
265 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
266 * search.c (Freplace_match):
267 * process.c (Fmake_network_process, send_process, init_process):
268 * lread.c (Fload, init_lread):
269 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
270 * keyboard.c (parse_tool_bar_item, struct event_head):
271 * gtkutil.h (xg_get_font_name):
272 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
273 (make_widget_for_menu_item, make_menu_item, create_menus)
274 (xg_make_tool_item):
275 * font.c (parse_matrix, font_parse_name):
276 * floatfns.c (rounding_driver, float_error_fn_name):
277 * filelock.c (get_boot_time_1, lock_file_1):
278 * fileio.c (barf_or_query_if_file_exists, check_writable):
279 * editfns.c (get_system_name, get_operating_system_release)
280 (Fencode_time, Fset_time_zone_rule):
281 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
282 * buffer.c (defvar_per_buffer): Use const.
283
7815fe19 2842010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5
KH
285
286 * charset.c: Include <stdlib.h>
287 (struct charset_sort_data): New struct.
288 (charset_compare): New function.
289 (Fsort_charsets): New funciton.
290 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
291
292 * coding.c (decode_coding_iso_2022): Fix checking of dimension
293 number in CTEXT extended segment.
294
7815fe19 2952010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
296
297 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
298 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
299
7815fe19 3002010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
301
302 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
303 (Fhash_table_size): Fix typos in docstrings.
304 (Fmake_hash_table): Doc fix.
305
7815fe19 3062010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
307
308 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
309 Doc fix (bug#5625).
310
7815fe19 3112010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
312
313 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
314 the MSDOS definition.
315
1b6d8cf0
DN
3162010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
317
675e2c69
DN
318 Use const char* instead of char*.
319 * xterm.c (x_create_toolkit_scroll_bar):
320 * xfont.c (xfont_list_pattern):
321 * xfns.c (x_default_scroll_bar_color_parameter)
322 (xic_create_fontsetname, x_default_font_parameter)
323 (x_screen_planes):
324 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
325 (store_mode_line_string, decode_mode_spec, display_string):
326 * menu.c (digest_single_submenu):
327 * keymap.h (initial_define_key, initial_define_lispy_key):
328 * keymap.c (initial_define_key, initial_define_lispy_key):
329 * image.c (image_error, image_keyword):
330 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
331 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
332 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
333 (ftfont_list, ftfont_match):
334 * frame.c (frame_parm_table):
335 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
336 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
337 (font_add_log, font_deferred_log):
338 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
339 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
340 (font_add_log, font_deferred_log):
341 * emacs.c (argmatch):
342 * dispextern.h (struct it):
343 * coding.c (ENCODE_DESIGNATION):
344 * charset.c (define_charset_internal): Use const.
345
25717ca1
DN
346 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
347
c5683ceb
SM
348 * xrdb.c: Remove include guard.
349 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
350 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
351 realloc->xrealloc instead of using #defines.
352
efb41e21
EZ
3532010-08-08 Eli Zaretskii <eliz@gnu.org>
354
cd21226d 355 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
356 * editfns.c (Fline_beginning_position, Fline_end_position):
357 State in the doc strings that start and end of line are in the
358 logical order.
cd21226d 359
efb41e21
EZ
360 * xdisp.c (display_line): Move the handling of overlay arrow after
361 the call to find_row_edges. (Bug#6699)
362
746812d9
CY
3632010-08-07 Chong Yidong <cyd@stupidchicken.com>
364
365 * keyboard.c (command_loop_1):
366 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
367
9852377f
CY
3682010-08-07 Chong Yidong <cyd@stupidchicken.com>
369
370 * insdel.c (prepare_to_modify_buffer): Save active region text to
371 Vsaved_region_selection.
372
373 * xselect.c (QPRIMARY): Move to keyboard.c.
374
375 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
376 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
377 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 378
0e9c8657
JB
3792010-08-07 Juanma Barranquero <lekktu@gmail.com>
380
381 * alloc.c (lisp_malloc):
382 * buffer.c (set_buffer_internal, set_buffer_internal_1):
383 * charset.h (emacs_mule_charset):
384 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
385 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
386 (bitch_at_user):
387 * lisp.h (Fcheck_coding_system, Fget_text_property)
388 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
389 Remove duplicate declarations.
390
648801d1
DN
3912010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
392
32bc6709
DN
393 * process.c: Simplify include logic.
394
3ef1d108
DN
395 * keyboard.h (quit_char): Add declaration.
396 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
397 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
398 Add declarations.
3ef1d108
DN
399 * sysdep.c:
400 * w32.c: Remove the above declarations.
401
97ec208f
DN
402 Remove extern declarations in .c files, .h files have them.
403 * xterm.c:
404 * xdisp.c:
97ec208f
DN
405 * msdos.c:
406 * image.c:
407 * gtkutil.c:
408 * fileio.c:
409 * eval.c: Remove declarations.
410
94eed851
DN
411 * frame.c (frame_params): Make const.
412
36e053eb
DN
413 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
414
0e843971
DN
415 * emacs.c (emacs_copyright, emacs_version): Make static.
416 (Vinitial_window_system, Vauto_save_list_file_name)
417 (Vinhibit_redisplay): Remove declarations.
418 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
419 for AIX.
420
648801d1
DN
421 Use const for some arrays and functions.
422 * xterm.h (xg_set_icon_from_xpm_data):
423 * xfns.c (xg_set_icon_from_xpm_data):
424 * term.c (fkeys):
425 * keyboard.c (lispy_accent_keys, lispy_function_keys)
426 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
427 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
428 (frame.c frame_parms):
429 * emacs-icon.h (gnu_xpm_bits):
430 * callint.c (callint_argfuns): Use const.
431
8646d999
J
4322010-08-06 Jan Djärv <jan.h.d@swipnet.se>
433
434 * sysdep.c: Move include term.h last of includes (Bug#6812).
435
cb4545ad
EZ
4362010-08-06 Eli Zaretskii <eliz@gnu.org>
437
438 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
439
440 * msdos.c (IT_display_cursor): Log cursor position on termscript.
441
442 * .gdbinit (pgx): Display the avoid_cursor_p flag.
443
da7e2be6
JB
4442010-08-06 Juanma Barranquero <lekktu@gmail.com>
445
446 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
447
3d608a86
J
4482010-08-06 Jan Djärv <jan.h.d@swipnet.se>
449
7908fb60
J
450 * xterm.h (x_get_focus_frame): Declare.
451
452 * keyboard.h (poll_for_input_1): Unconditionally declare.
453
4094bf36
J
454 * nsterm.h (x_set_menu_bar_lines): Declare.
455
456 * window.c: Don't include menu.h, it depends on lots of other .h-files.
457
3d608a86
J
458 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
459
460 * window.c: Include menu.h.
461
462 * unexmacosx.c (print_region_list, print_regions)
463 (build_region_list, find_emacs_zone_regions)
464 (unexec_regions_merge, read_load_commands, dump_it)
465 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
466
467 * term.c: Check HAVE_SYS_IOCTL_H.
468
686b968e 469 * sysdep.c: Check HAVE_TERM_H.
3d608a86 470
686b968e 471 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
472
473 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
474 (ns_ring_bell, ns_defined_color, hide_hourglass)
475 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
476 Convert to ANSI C prototypes.
477 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
478 before code.
479
480 * nsterm.h : Include sysselect.h.
481 (x_sync, x_get_focus_frame, x_set_mouse_position)
482 (x_set_mouse_pixel_position, x_make_frame_visible)
483 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
484 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
485 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
486 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 487 Declare.
3d608a86
J
488
489 * nsmenu.m (popup_activated, name_is_separator)
490 (syms_of_nsmenu): Convert to ANSI C prototypes.
491 (runMenuAt): Prototypes and move declarations before code.
492
493 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
494
495 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
496 prototypes.
497
498 * nsfns.m (have_menus_p, ns_display_info_for_name)
499 (x_set_cursor_type, ns_appkit_version_str)
500 (ns_appkit_version_int, ns_do_applescript)
501 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
502 (syms_of_nsfns): Convert to ANSI C prototypes.
503
504 * menu.h (x_set_menu_bar_line): Declare.
505 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
506
507 * lisp.h (fmod_float): Declare.
508
509 * image.c (xpm_scan, xpm_make_color_table_v)
510 (xpm_put_color_table_v, xpm_get_color_table_v)
511 (xpm_make_color_table_h, xpm_put_color_table_h)
512 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
513 (xpm_load): Convert to ANSI C prototypes.
514
515 * emacs.c: Include nsterm.h if HAVE_NS.
516
517 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
518
fce70521
DN
5192010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
520
521 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
522 subprocesses, only MSDOS does not define HAVE_SOCKETS.
523 (socket_options): Use const char* for name.
524
a11889ab
JB
5252010-08-06 Juanma Barranquero <lekktu@gmail.com>
526
527 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
528
529 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
530 Don't declare xmalloc_widget_value and digest_single_submenu.
531
532 * w32font.c (Qlatin): Remove declaration.
533
534 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
535
c95b508f 536 * dired.c (compile_pattern): Restore declaration.
a11889ab 537
6254cdda
DN
5382010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
539
04bab72c
DN
540 Remove extern declarations in .c files, .h files have them.
541 * data.c:
542 * dired.c:
543 * editfns.c:
544 * filelock.c:
545 * fns.c:
546 * font.c:
547 * fontset.c:
548 * frame.c:
549 * fringe.c:
550 * ftfont.c:
551 * gtkutil.c:
552 * indent.c:
553 * keyboard.c:
554 * keymap.c:
555 * lread.c:
556 * menu.c:
557 * print.c:
558 * search.c:
559 * sound.c:
560 * window.c:
561 * xdisp.c:
562 * xfaces.c:
563 * xfns.c:
564 * xfont.c:
565 * xftfont.c:
566 * xmenu.c:
567 * xterm.c: Remove declarations.
568
dff94ed5
DN
569 Cleanup syssignal.h.
570 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
571 (main_thread): Move down to remove #ifdef.
572 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
573 Remove conditional definition following unconditional ones.
574
99f3388e
DN
575 * lisp.h: Remove HAVE_SHM code, unused.
576 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
577 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
578 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
579 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
580 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
581 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
582 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
583 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
584 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
585 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
586 (Qwindow_scroll_functions, Vafter_load_alist)
587 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
588 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
589 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
590 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
591 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
592 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
593 (initial_argv, last_nonmenu_event, load_in_progress)
594 (noninteractive_need_newline, scroll_margin): Add declarations.
595
596 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
597 declarations, menu.h has them.
598 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
599 (Vinput_method_function, Qinput_method_function)
600 (Qevent_symbol_element_mask, last_event_timestamp):
601 * dispextern.h (Voverflow_newline_into_fringe):
602 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
603 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
604 (syms_of_w32font, syms_of_nsfont):
605 * fontset.h (find_font_encoding, Qlatin):
606 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
607 (Vtool_bar_mode, set_frame_menubar):
608 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
609 * xterm.h (Qx_gtk_map_stock):
610 * keymap.h (meta_prefix_char): Add declarations.
611
9f5dd6f2
DN
612 * term.c: Remove dead code.
613
6254cdda
DN
614 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
615 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
616 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
617 which is what was there before BSD_PGRPS was removed.
618
29cf3e20
EZ
6192010-08-05 Eli Zaretskii <eliz@gnu.org>
620
621 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
622
623 * unexcoff.c: Renamed from unexec.c.
624
aaa0a19a
SM
6252010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
626
627 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
628
8d1d9587
JB
6292010-08-03 Johan Bockgård <bojohan@gnu.org>
630
631 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 632 (Bug#6744)
8d1d9587 633
9a747ba6
JD
6342010-08-02 Jan Djärv <jan.h.d@swipnet.se>
635
4d464ae4
JD
636 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
637 to TRUE if depth of screen is < 16.
638
ac01763e
JD
639 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
640 USE_GTK_TOOLTIP.
e0d62a9b
JB
641 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
642 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 643 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
644 USE_GTK_TOOLTIP.
645 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
646
647 * xterm.h (USE_GTK_TOOLTIP): New define.
648 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
649
9a747ba6
JD
650 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
651 to Control-D (Bug#6771).
652
7b0815ba
JB
6532010-08-02 Juanma Barranquero <lekktu@gmail.com>
654
655 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
656 Wording by Drew Adams <drew.adams@oracle.com>.
657
aa1859f5
J
6582010-08-01 Jan Djärv <jan.h.d@swipnet.se>
659
660 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
661 ttip_lbl.
662
663 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
664 calling gtk_widget_queue_draw.
665 (x_free_frame_resources): Call xg_free_frame_widgets.
666
667 * xfns.c (x_gtk_use_system_tooltips): New variable.
668 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
669 new gtkutil tooltip functions to show the tooltip.
670 (Fx_hide_tip): Call xg_hide_tooltip.
671 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
672
673 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
674 (xg_show_tooltip, xg_hide_tooltip): Declare.
675
676 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
677 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
678 New functions.
aa1859f5
J
679 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
680 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
681 Remove code that is commented out.
682
76417ef4
SM
6832010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
684
685 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
686
16041401
CY
6872010-07-31 Chong Yidong <cyd@stupidchicken.com>
688
689 * xselect.c (x_own_selection): Use list4.
690
2c09a58f
DN
6912010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
692
693 * buffer.c (Qwindow): Do not define, already defined in data.c.
694 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
695
59df9fdd 6962010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 697
59df9fdd
JB
698 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
699 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
700 * config.in: Undef HAVE_DIRENT_H.
1c97e857 701 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 702 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 703
1b231651
DN
7042010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
705
706 Rename s/usg5-4.h -> s/usg5-4-common.h.
707 * s/usg5-4.h: Rename file to ...
708 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
709 * s/unixware.h:
710 * s/sol2-6.h:
711 * s/irix6-5.h: Update includes accordingly.
712
bfeabdc3
JD
7132010-07-29 Jan Djärv <jan.h.d@swipnet.se>
714
2ebf1083
J
715 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
716
bfeabdc3 717 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
718 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
719 Remove toolbar_height.
720 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
721 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
722 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
723 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
724
725 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
726
727 * xfns.c (x_set_tool_bar_position): New function.
728 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
729 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 730 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
731
732 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
733 and FRAME_TOOLBAR_LEFT_WIDTH.
734
735 * gtkutil.h (xg_change_toolbar_position): Declare.
736
737 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
738 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
739 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
740 (xg_create_frame_widgets): Create a hobox for placing widgets
741 vertically. Use gtk_box_pack_start.
742 (xg_height_or_width_changed): Renamed from xg_height_changed.
743 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
744 (xg_update_frame_menubar, free_frame_menubar): Change to
745 xg_height_or_width_changed.
746 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
747 size correctly. Remove hardcoded 4, instead use handlebox size -
748 toolbar size.
749 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 750 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
751 (xg_pack_tool_bar): POS is a new parameter.
752 Set orientation of tool bar based on pos.
753 Only make handlebox_widget if NULL.
754 Check if tool bar goes to vbox or hbox depending on pos.
755 (xg_update_tool_bar_sizes): New function.
686b968e 756 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
757 height, call xg_update_tool_bar_sizes instead.
758 (free_frame_tool_bar): Remove from hbox or vbox depending on
759 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
760 (xg_change_toolbar_position): New function.
761
762 * frame.h (struct frame): Add tool_bar_position.
763 (Qbottom): Declare.
764
765 * frame.c (Qtool_bar_position): New variable.
766 (make_frame): Set tool_bar_position to Qtop.
767 (frame_parms): Add tool-bar-position.
768 (x_report_frame_params): Store tool_bar_position.
769 (x_set_fringe_width): Reset wm size hint after fringe changes.
770
26469a38
DN
7712010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
772
773 Make lisp_time_argument declaration work on all systems.
774 * lisp.h (lisp_time_argument): Move declaration ...
775 * systime.h (lisp_time_argument): ... here
776 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
777
8848b728
JD
7782010-07-29 Jan Djärv <jan.h.d@swipnet.se>
779
780 * vm-limit.c (POINTER): Add typedef for it.
781 (start_of_data): Change return type from POINTER to char *.
782
783 * frame.h (Qtty_color_mode): Move declaration out of ifdef
784 HAVE_WINDOW_SYSTEM.
785
76fd1ee9
DN
7862010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
787
0441987e
DN
788 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
789 Remove reference to __osf__, unused.
790
56a000c7
DN
791 * mem-limits.h: Remove duplicated includes.
792 (NULL): Remove definition, unused.
793 (POINTER): Remove definition.
794 (start_of_data): Use char* in prototype, as the function
795 definition does.
796
e6cba650
DN
797 Remove extern declarations from .c files, and them to .h files.
798 * keyboard.h (Qhelp_echo, waiting_for_input)
799 (input_available_clear_time, ignore_mouse_drag_p)
800 (Vdouble_click_time, real_this_command, Vthis_original_command):
801 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
802 (Voverriding_local_map_menu_flag):
803 * lisp.h (Qinteractive_form, use_file_dialog)
804 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
805 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
806 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
807 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
808 (Qfunction, debug_on_next_call, Qfield)
809 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
810 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
811 (Qfile_directory_p, Qinsert_file_contents)
812 (Qcompletion_ignore_case, Qcompletion_ignore_case)
813 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
814 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
815 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
816 (Qminibuffer_prompt)
817 (Vtemporary_file_directory,char_ins_del_vector, Qface):
818 * xterm.h (gray_bitmap_width, gray_bitmap_height)
819 (gray_bitmap_bits, xic_create_fontsetname):
820 * coding.h (Vtranslation_table_for_input): Add extern declarations.
821
822 * xsmfns.c (Vuser_login_name):
823 * xrdb.c (Vdouble_click_time):
824 * xfaces.c (xic_create_fontsetname):
825 * w32select.c (waiting_for_input):
826 * print.c (minibuffer_auto_raise):
827 * msdos.c (Qhelp_echo):
828 * macros.c (real_this_command):
829 * keymap.c (Voverriding_local_map):
830 * xterm.c (poll_for_input_1, gray_bitmap_width)
831 (gray_bitmap_height, gray_bitmap_bits;
832 * xmenu.c ( Voverriding_local_map)
833 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
834 (use_file_dialog, Xt_app_con):
835 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
836 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
837 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
838 (Qtool_bar_lines, ignore_mouse_drag_p):
839 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
840 (Qrear_nonsticky, nconc2):
841 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
842 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
843 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
844 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
845 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
846 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
847 (gc_in_progress):
848 * doc.c (Voverriding_local_map, Qremap):
849 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
850 (Vcompletion_regexp_list):
851 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
852 (Qcompletion_ignore_case):
853 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
854 (Vhistory_length, Vthis_original_command, real_this_command)
855 (Qface, Qminibuffer_prompt, history_delete_duplicates):
856 * image.c (Qrisky_local_variable):
857 * fontset.c (QCname):
858 * fns.c (minibuffer_auto_raise, QCname):
859 * dispnew.c (char_ins_del_cost):
860 * composite.c (font_fill_lglyph_metrics):
861 * cmds.c (Qface, Vtranslation_table_for_input):
862 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
863 * ccl.c (charset_unicode):
864 * callproc.c (Vtemporary_file_directory):
865 * buffer.c (emacs_strerror): Remove extern declarations.
866
867 * data.c (Qwindow): Make non-static, used from other files too.
868 * frame.c (validate_x_resource_name): Remove shadow definition for i.
869
76fd1ee9
DN
870 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
871 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
872 * s/usg5-4.h (COFF):
873 * s/template.h:
874 * s/msdos.h (COFF, NO_REMAP):
875 * s/ms-w32.h (NO_REMAP):
876 * s/hpux10-20.h (NO_REMAP):
877 * m/sparc.h (SEGMENT_MASK):
878 * m/m68k.h (NO_REMAP):
879 * m/intel386.h (SEGMENT_MASK):
880 * m/arm.h (NO_REMAP):
881 * m/alpha.h (COFF):
882 * m/template.h: Remove references to unused defines.
883
8a52f00a
JD
8842010-07-28 Jan Djärv <jan.h.d@swipnet.se>
885
886 * xsettings.c (Ftool_bar_get_system_style): Also check for
887 Qtext_image_horiz.
888
889 * xdisp.c (Qtext_image_horiz): Define.
890 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 891 to documentation of tool-bar-style.
8a52f00a
JD
892
893 * lisp.h (Qtext_image_horiz): Declare.
894
895 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
896 style text_image_horiz.
897
89dc303e
DN
8982010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
899
60799703
DN
900 * emacs.c (Fkill_emacs): Remove return statement.
901
37254dc1
DN
902 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
903 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
904 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
905 local extern declarations.
906
71c7345a
DN
907 * xmenu.c: Do not included lwlib.h, not needed.
908
6ba577cb
DN
909 * m/iris4d.h (XUINT, XSET): Remove, not needed.
910
fdb183d6
DN
911 * process.c: Move definitions earlier to minimize #ifdefs.
912
913 * xterm.h (x_get_customization_string, x_load_resources)
914 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
915 (x_check_errors, x_property_data_to_lisp, defined_color)
916 (xic_set_xfontset, x_defined_color): Use const.
917
918 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
919 (x_text_icon, x_check_errors, x_connection_closed): Use const.
920
921 * xselect.c (selection_data_to_lisp_data)
922 (x_property_data_to_lisp):
923 * xrdb.c (x_get_string_resource, file_p)
924 (x_get_customization_string, magic_file_p, search_magic_path)
925 (get_system_app, get_user_app, x_load_resources, x_get_resource)
926 (x_get_string_resource): Use const.
927
928 * xfns.c: Include xlwmenu.h when USE_LUCID.
929 (x_defined_color, xic_set_xfontset): Use const.
930 (Fx_hide_tip): Remove local extern declaration.
931
932 * xfaces.c (Qmouse_face): Remove declaration.
933 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 934 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
935
936 * xdisp.c (do_mouse_tracking): Remove declaration.
937 (add_to_log): Use const.
938
939 * minibuf.c (Qmouse_face): Remove declaration.
940
941 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
942
943 * keyboard.h (do_mouse_tracking): Add declaration.
944
945 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
946 (QCdata, QCtype, Qcenter): Remove declarations.
947
948 * frame.c (x_get_resource_string, x_get_string_resource)
949 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
950 (x_default_parameter): Use const.
951
952 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
953 (QCheight, QCsize, QCname): Remove declarations.
954
955 * emacs.c (main): Remove local extern declaration.
956
957 * editfns.c (region_limit, syms_of_editfns): Remove local extern
958 declarations.
959
960 * dispnew.c: Remove duplicate #include <unistd.h>.
961 (update_window, update_frame_1, init_display): Remove local extern
962 declarations.
963
964 * dispextern.h (add_to_log): Remove declaration.
965 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
966 (x_frame_get_and_record_arg, x_default_parameter): Add const.
967
968 * dired.c (scmp): Add const.
969 (directory_files_internal): Remove local extern declaration.
970
971 * data.c (Finteractive_form): Use const.
972
973 * composite.c (syms_of_composite): Remove local extern declarations.
974
975 * charset.c (add_to_log): Remove declaration.
976
977 * character.c (strwidth, parse_str_to_multibyte): Add const.
978
979 * character.h (strwidth, parse_str_to_multibyte): Likewise.
980
981 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
982
89dc303e 983 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
984 (Lisp_Subr): Make doc and intspec constant.
985 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
986 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
987 (QCheight, QCsize, QCname, QCwidth, QCforeground)
988 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
989 (display_arg): Add declarations.
89dc303e 990
0ed082fe 9912010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
992
993 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
994
0ed082fe
JB
995 * window.c (Fwindow_height): Doc fix (bug#6518).
996
9972010-07-27 Juanma Barranquero <lekktu@gmail.com>
998
999 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1000
ccaf0336
DN
10012010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1002
977105dc
DN
1003 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1004 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1005 functions.
1006
f5ada890
DN
1007 * frame.h (Qtty_color_mode): Add declaration.
1008
ccaf0336
DN
1009 * lisp.h (Ftop_level, Fexit_recursive_edit)
1010 (Fabort_recursive_edit): Mark as NO_RETURN.
1011
dfe3c90f
KH
10122010-07-26 Kenichi Handa <handa@m17n.org>
1013
1014 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1015 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1016
7d383292
JB
10172010-07-26 Juanma Barranquero <lekktu@gmail.com>
1018
1019 * lread.c (unreadpure, mapatoms_1): Make static.
1020
da31e629
JB
10212010-07-25 Juanma Barranquero <lekktu@gmail.com>
1022
1023 * terminfo.c (tparam): Fix prototype of tparm.
1024
7bfa6d77
AS
10252010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1026
dcc19aac
AS
1027 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1028 find start of text segment.
1029 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1030 is defined.
1031
7bfa6d77
AS
1032 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1033
63f9a672
KB
10342010-07-25 Ken Brown <kbrown@cornell.edu>
1035
1036 * vm-limit.c (check_memory_limits): Fix previous change;
1037 accidentally reverted an earlier change.
1038
24933075
KB
10392010-07-25 Ken Brown <kbrown@cornell.edu>
1040
1041 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1042 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1043
361358ea
JB
10442010-07-25 Juanma Barranquero <lekktu@gmail.com>
1045
1046 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1047 * dired.c (opendir, readdir): Fix prototypes.
1048 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1049 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1050 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1051 (telldir): Remove declaration.
1052 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1053 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1054 * syssignal.h (strsignal): Fix prototype.
1055 * term.c (tparam): Fix prototype.
1056 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1057 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1058 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1059 and __morecore.
1060 * w32gui.h (XParseGeometry): Fix prototype.
1061 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1062 * w32term.c (my_set_focus): Declare inside #if 0.
1063 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1064 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1065 (drain_message_queue, get_next_msg, post_msg, parse_button)
1066 (ClipboardSequence_Proc): Fix prototypes.
1067 (wait_for_sync): Remove declaration.
1068
630b9592
JB
10692010-07-24 Juanma Barranquero <lekktu@gmail.com>
1070
1071 * w32fns.c (w32_to_x_color): Remove, unused.
1072
6a0d6611
AS
10732010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1074
1075 * lisp.h: Remove leftover P_.
1076
4e8608ff
DN
10772010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1078
1079 * ecrt0.c, unexalpha.c: Remove files, unused.
1080
c8197983
AS
10812010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1082
1083 * cmds.c (internal_self_insert): Make static.
1084 * lisp.h (internal_self_insert): Remove declaration.
1085
97b372d7
JB
10862010-07-23 Juanma Barranquero <lekktu@gmail.com>
1087
33ac0414
JB
1088 * alloc.c (free_float):
1089 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1090 * frame.c (delete_frame_handler):
1091 * ralloc.c (reorder_bloc):
1092 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1093 Remove unused static functions.
1094
94da8397
JB
1095 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1096 it is called only from NS code.
1097
2e6c8532
JB
1098 * w32term.c (my_set_focus): #ifdef away; it is called only from
1099 "#ifdef 0" code.
1100
97b372d7
JB
1101 * w32fns.c (x_edge_detection):
1102 * xfaces.c (may_use_scalable_font_p):
1103 Remove obsolete static declarations.
1104
7c3320d8
JB
11052010-07-20 Juanma Barranquero <lekktu@gmail.com>
1106
1107 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1108 (emacs_blocked_realloc, uninterrupt_malloc):
1109 * fringe.c (w32_reset_fringes):
1110 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1111 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1112 * sound.c (be2hs, do_play_sound):
1113 * vm-limit.c (get_lim_data, ret_lim_data):
1114 * w32term.c (x_free_frame_resources):
1115 * xfaces.c (x_create_gc, x_free_gc):
1116 Convert definitions to standard C.
1117
d5273788
SM
11182010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1119
1120 * eval.c (Feval, Ffuncall): Use the new names.
1121
1122 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1123 (DEFUN): Add braces around the union initialisation and use ## to
1124 specify the right union alternative and avoid a cast.
1125
8d16a259
JB
11262010-07-18 Juanma Barranquero <lekktu@gmail.com>
1127
1128 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1129
3b8eff32
CY
11302010-07-17 Chong Yidong <cyd@stupidchicken.com>
1131
1132 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1133
499322ce
J
11342010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1135
1136 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1137 is related to the menu bar (Bug#6499).
a628ad9d 1138 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1139
f6003da5 11402010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1141
1142 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1143
1144 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1145
1146 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1147 i.e. don't put back ButtonRelease (Bug#6608).
1148
1149 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1150 instead of Window. Call xg_event_is_for_menubar when
1151 USE_GTK (Bug#6499).
1152
1153 * gtkutil.h (xg_event_is_for_menubar): Declare.
1154
1155 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1156
f6003da5 11572010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1158
1159 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1160 when it's the same as the old foreground. (Bug#6609)
1161
23243f29
J
11622010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1163
1164 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1165 widget is non-null (Bug#6645).
1166
2b23d2a6
AS
11672010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1168
01b564ff
AS
1169 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1170 Convert old-style definition.
1171
2b23d2a6
AS
1172 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1173 timestamp argument.
1174
c4affd2c
EZ
11752010-07-15 Eli Zaretskii <eliz@gnu.org>
1176
1177 * fringe.c (update_window_fringes): Restore mistakenly reverted
1178 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1179
cf28cebc
J
11802010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1181
1182 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1183 (SET_SAVED_KEY_EVENT): Remove (not used).
1184 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1185 remove size parameter.
1186 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1187 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1188 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1189 ButtonRelease.
6b2c4bd9
J
1190 (x_set_window_size_1): scroll_bar_actual_width is always
1191 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1192
1193 * xdisp.c (pending_menu_activation): Remove extern declaration.
1194 (prepare_menu_bars): Remove setting of pending_menu_activation.
1195
1196 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1197 (x_activate_menubar): Set popup_activated_flag for Xt also.
1198 Remove setting of pending_menu_activation.
cf28cebc
J
1199 (set_frame_menubar): Remove check of pending_menu_activation.
1200 Declare menubar_size before code. Correct spelling in comment.
1201
f6c1c771
KH
12022010-07-14 Kenichi Handa <handa@m17n.org>
1203
1204 * font.c (font_open_entity): Cancel previous change.
1205 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1206
20477505
EZ
12072010-07-13 Eli Zaretskii <eliz@gnu.org>
1208
77defa9a
EZ
1209 Remove subprocesses #ifdefs.
1210 * process.c <inhibit_sentinels>: Move to the common part.
1211 (Fwaiting_for_user_input_p): Move to the common part; return nil
1212 if async subprocesses aren't supported.
1213 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1214 MS-DOS. Remove "#ifdef subprocesses".
1215 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1216 (gettimeofday): Remove "#ifdef subprocesses".
1217 (wait_without_blocking): Remove function.
1218 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1219 Remove "#ifdef subprocesses".
1220 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1221 compiled on MS-DOS.
1222 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1223 wait_for_termination on MS-DOS.
1224 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1225 initialization of inhibit_sentinels.
1226 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1227 subprocesses" conditional.
1228 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1229 wait_for_termination, since `buffer' cannot be an integer when
1230 async subprocesses are not supported
1231 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1232 for ifdefing away the call to Fprocess_status.
1233
20477505
EZ
1234 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1235 away the entire body of the function.
1236
b3ffc17c
DN
12372010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1238
01faa934
DN
1239 Remove subprocesses #ifdefs from term.c.
1240 * process.c (add_keyboard_wait_descriptor)
1241 (delete_keyboard_wait_descriptor): Move to common section, do
1242 nothing when subprocesses is not defined.
a628ad9d
JB
1243 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1244 Remove subprocesses #ifdefs.
01faa934 1245
b3ffc17c
DN
1246 Convert maybe_fatal to standard C.
1247 * lisp.h (verror): Declare.
1248 * eval.c (verror): New function containing the code from ...
1249 (error): ... this. Call verror.
1250 * term.c (vfatal): New function containing the code from ...
1251 (fatal): ... this. Call vfatal.
1252 (maybe_fatal): Convert to standard C, use variable number of
1253 arguments. Declare as non-return.
1254 (init_tty): Fix maybe_fatal call.
1255
0521f580
DN
12562010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1257
1258 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1259 (_scroll_bar_note_movement): Convert definitions to standard C.
1260 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1261 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1262
ebd15611
DN
12632010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1264
1265 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1266 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1267 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1268 (xaw_jump_callback, xaw_scroll_callback)
1269 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1270 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1271 definitions to standard C.
1272 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1273 (popup_activate_callback, popup_deactivate_callback)
1274 (menu_highlight_callback, menubar_selection_callback)
1275 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1276 (free_frame_menubar, popup_selection_callback, as)
1277 (create_and_show_popup_menu, dialog_selection_callback)
1278 (create_and_show_dialog):
1279 * xfns.c (hack_wm_protocols, x_window):
1280 * xfaces.c (x_update_menu_appearance):
1281 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1282 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1283 (set_frame_size, update_wm_hints, setup_frame_gcs)
1284 (update_various_frame_slots, update_from_various_frame_slots)
1285 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1286 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1287 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1288
de06a2dd
AS
12892010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1290
a628ad9d 1291 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1292
fc549af9
EZ
12932010-07-12 Eli Zaretskii <eliz@gnu.org>
1294
1295 * process.c (setup_process_coding_systems): Move to the part
1296 shared by non-subprocesses systems, and make its body empty when
1297 subprocesses is not defined.
1298 (close_process_descs): Move to the part shared by non-subprocesses
1299 systems.
1408902e
EZ
1300 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1301 ANSI C.
fc549af9 1302
d5a3eaaf
AS
13032010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1304
1305 * editfns.c (transpose_markers): Convert old-style definition.
1306 * emacs.c (abort, shut_down_emacs, fixup_locale)
1307 (synchronize_system_time_locale)
1308 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1309 * floatfns.c (extract_float, matherr, init_floatfns)
1310 (syms_of_floatfns): Likewise.
1311 * fns.c (make_hash_table): Likewise.
1312 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1313 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1314 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1315 (ftfont_variation_glyphs): Likewise.
1316 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1317 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1318 * lread.c (read_filtered_event): Likewise.
1319 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1320 * process.c (wait_reading_process_output): Likewise.
1321 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1322 * search.c (search_buffer, boyer_moore): Likewise.
1323 * syntax.c (scan_sexps_forward): Likewise.
1324 * xdisp.c (try_scrolling): Likewise.
1325 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1326 (face_at_string_position): Likewise.
1327 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1328 * xselect.c (x_get_window_property, receive_incremental_selection)
1329 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1330 Likewise.
1331 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1332
6f704c76
DN
13332010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1334
ded80a25
DN
1335 * callproc.c (child_setup): Remove subprocesses conditional.
1336 Remove code dealing with SET_EMACS_PRIORITY, unused.
1337
49d937f4 1338 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1339 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1340
1341 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1342 (__do_global_dtors, __main): Use void in definition.
1343 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1344 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1345 the only users from ...
1346 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1347 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1348 (HAVE_VOLATILE): Remove, unused.
1349
6f704c76
DN
1350 Convert more function definitions to standard C.
1351 * xdisp.c (window_box_edges, handle_single_display_spec)
1352 (display_string): Convert definition to standard C.
1353 * scroll.c (do_direct_scrolling, scrolling_1):
1354 * dispnew.c (allocate_matrices_for_frame_redisplay)
1355 (mirrored_line_dance):
1356 * coding.c (code_convert_string):
1357 * charset.c (map_charset_chars):
1358 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1359 (Fregister_ccl_program, Fregister_code_conversion_map):
1360 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1361 (head_table): Make static and const.
1362
e6cfa7c3
AS
13632010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1364
1365 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1366 (PROFILING_LDFLAGS): Set from substitution.
1367 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1368 CFLAGS last.
1369
892dd565
KH
13702010-07-12 Kenichi Handa <handa@m17n.org>
1371
6f2cdcd1
KH
1372 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1373 (shortlisp): Likewise.
1374
892dd565
KH
1375 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1376
1377 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1378 of FONT_ENTITY_INDEX.
1379 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1380 property, get the property value dynamically.
1381 (Ffont_put): Accept font-entity and font-object too.
1382 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1383 return value changed.
1384 (syms_of_font): Adjusted for the above change.
1385
ae96d47a
AS
13862010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1387
c8fc18ee
AS
1388 * blockinput.h: Remove obsolete comment.
1389
89887d67
AS
1390 * lisp.h: Include <stddef.h>.
1391 (OFFSETOF): Don't define.
1392 (VECSIZE): Use offsetof instead of OFFSETOF.
1393 (PSEUDOVECSIZE): Likewise.
1394 * process.c (conv_sockaddr_to_lisp): Likewise.
1395 * alloc.c: Don't include <stddef.h>.
1396 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1397
ae96d47a
AS
1398 * process.c: Remove obsolete comment.
1399
635c0aa1
CY
14002010-07-11 Chong Yidong <cyd@stupidchicken.com>
1401
1402 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1403
a64df650
AS
14042010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1405
8966b757
AS
1406 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1407 index, rindex.
1408 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1409 * editfns.c (Fuser_full_name, Fformat): Likewise.
1410 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1411 * fileio.c (Ffile_symlink_p): Likewise.
1412 * filelock.c (current_lock_owner): Likewise.
1413 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1414 * fontset.c (fontset_pattern_regexp): Likewise.
1415 * lread.c (read1): Likewise.
1416 * sysdep.c (init_system_name): Likewise.
1417 * xfns.c (select_visual): Likewise.
1418 * s/hpux10-20.h (index, rindex): Don't define.
1419 * s/ms-w32.h (index): Likewise.
1420 * s/usg5-4.h: Likewise.
1421
cf237e27
AS
1422 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1423
a8fe7202
AS
1424 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1425 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1426 (egetenv): Likewise.
1427 * doprnt.c (doprnt): Likewise.
1428 * editfns.c (set_time_zone_rule, format2): Likewise.
1429 * emacs.c (decode_env_path): Likewise.
1430 * eval.c (signal_error, error): Likewise.
1431 * insdel.c (replace_range_2): Likewise.
1432 * keyboard.c (cmd_error_internal): Likewise.
1433 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1434 * print.c (write_string, write_string_1, print_error_message):
1435 Likewise.
1436 * vm-limit.c (warn_function, memory_warnings): Likewise.
1437 * xdisp.c (message1, message1_nolog, message_with_string)
1438 (vmessage, message, message_nolog): Likewise.
1439 * emacs.c: Remove duplicate declaration.
1440 * keyboard.h: Likewise.
1441 * lisp.h: Update prototypes.
1442
bb8e180f
AS
1443 * eval.c: Fix indentation problem.
1444
83380e65
AS
1445 * keyboard.c: Include "process.h"
1446
a64df650
AS
1447 * eval.c: Remove obsolete noinline declaration.
1448 * fns.c: Likewise.
1449
6a8033e1
KR
14502010-07-11 Ken Raeburn <raeburn@raeburn.org>
1451
1452 * doprnt.c (doprnt): Take a va_list argument instead of count and
1453 pointer.
1454 * eval.c (error): Change to a standard-C variadic function.
1455 * xdisp.c (vmessage): Renamed from message, made static, and
1456 changed to take a va_list argument.
1457 (message): New variadic wrapper.
1458 (message_nolog): Now a variadic function, calling vmessage.
1459 * lisp.h: Include stdarg.h for va_list.
1460 (doprnt, error, message, message_nolog): Decls updated.
1461
462aa963
EZ
14622010-07-11 Eli Zaretskii <eliz@gnu.org>
1463
1464 * process.c (syms_of_process) <delete-exited-processes>: Define
1465 even if !subprocesses.
1466 (delete_exited_processes): Ditto.
1467
1468 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1469 (delete_exited_processes): Don't define.
1470
48104462
CY
14712010-07-10 Chong Yidong <cyd@stupidchicken.com>
1472
1473 * frame.c (make_frame): Initialize menu_bar_lines and
1474 tool_bar_lines members.
1475 (make_initial_frame, make_terminal_frame): Initialize
1476 menu_bar_lines using value of menu-bar-mode.
1477
1478 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1479
f388c88a
EZ
14802010-07-10 Eli Zaretskii <eliz@gnu.org>
1481
1482 * process.c: Reshuffle #include's. Condition some of the global
1483 and static variables on `subprocesses'.
1484 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1485 Leave only one implementation.
1486 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1487 (kill_buffer_processes, Flist_system_processes)
1488 (Fprocess_attributes, init_process, syms_of_process): Unify the
1489 implementations for with subprocesses and without them.
1490
723f5a07
J
14912010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1492
1493 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1494 correct size for Motif.
1495 (free_frame_menubar): Call x_set_window_size to update frame size.
1496
1497 * xfns.c (x_window): Set borderWidth to 0 for pane and
1498 EmacsFrame. Frame size calculation is wrong otherwise.
1499
2536a4b7
MA
15002010-07-09 Michael Albinus <michael.albinus@gmx.de>
1501
1502 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1503 allows to suppress errors when polling in Emacs' main loop.
1504 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1505 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1506 (Fdbus_method_error_internal, Fdbus_send_signal)
1507 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1508 (Fdbus_register_method): Use it. (Bug#6579)
1509
5842a27b
DN
15102010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1511
1512 * alloc.c: Convert DEFUNs to standard C.
1513 * buffer.c:
1514 * bytecode.c:
1515 * callint.c:
1516 * callproc.c:
1517 * casefiddle.c:
1518 * casetab.c:
1519 * category.c:
1520 * character.c:
1521 * charset.c:
1522 * chartab.c:
1523 * cmds.c:
1524 * coding.c:
1525 * composite.c:
1526 * data.c:
1527 * dbusbind.c:
1528 * dired.c:
1529 * dispnew.c:
1530 * doc.c:
1531 * dosfns.c:
1532 * editfns.c:
1533 * emacs.c:
1534 * eval.c:
1535 * fileio.c:
1536 * filelock.c:
1537 * floatfns.c:
1538 * fns.c:
1539 * font.c:
1540 * fontset.c:
1541 * frame.c:
1542 * fringe.c:
1543 * image.c:
1544 * indent.c:
1545 * insdel.c:
1546 * keyboard.c:
1547 * keymap.c:
1548 * lread.c:
1549 * macros.c:
1550 * marker.c:
1551 * menu.c:
1552 * minibuf.c:
1553 * msdos.c:
1554 * nsfns.m:
1555 * nsmenu.m:
1556 * nsselect.m:
1557 * print.c:
1558 * process.c:
1559 * search.c:
1560 * sound.c:
1561 * syntax.c:
1562 * term.c:
1563 * terminal.c:
1564 * textprop.c:
1565 * undo.c:
1566 * w16select.c:
1567 * w32console.c:
1568 * w32fns.c:
1569 * w32font.c:
1570 * w32menu.c:
1571 * w32proc.c:
1572 * w32select.c:
1573 * window.c:
1574 * xdisp.c:
1575 * xfaces.c:
1576 * xfns.c:
1577 * xmenu.c:
1578 * xselect.c:
1579 * xsettings.c:
1580 * xsmfns.c: Likewise.
1581
d568829b
EZ
15822010-07-08 Eli Zaretskii <eliz@gnu.org>
1583
1584 * process.c (kbd_is_on_hold, hold_keyboard_input)
1585 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1586
52214050
J
15872010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1588
1589 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1590 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1591 unless USE_LUCID.
1592
313d9eb2
DN
15932010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1594
a628ad9d
JB
1595 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1596 declaration.
d8825aa3 1597
295d0d8f
DN
1598 Clean up include guards.
1599 * tparam.c: Remove include guards for config.h, string.h and code
1600 that assumes #ifndef emacs.
1601 * termcap.c:
1602 * unexalpha.c:
1603 * sysdep.c:
1604 * filemode.c:
1605 * filelock.c:
1606 * bidi.c: Likewise.
1607
49d9e6b0
DN
1608 Remove prefix-args.c
1609 * prefix-args.c: Remove file.
1610 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1611 * Makefile.in (temacs${EXEEXT}): Remove references to
1612 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1613 (mostlyclean): Remove reference to prefix-args.
1614 (prefix-args): Remove.
1615
313d9eb2
DN
1616 Simplify cstart_of_data, start_of_code and related code.
1617 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1618 (start_of_data): Merge into start_of_data function.
1619 * sysdep.c (start_of_text): Remove. Move simplified versions of
1620 it in the only users: unexaix.c and unexec.c.
1621 (read_input_waiting): Remove local declaration of quit_char.
1622 (start, etext): Remove declarations.
1623 (start_of_data): Merge with the version in mem-limits.h and move
1624 to vm-limits.c.
1625 * vm-limit.c (start_of_data): Merged and simplified version of the
1626 code formerly in mem-limits.h and sysdep.c.
1627 * unexec.c (start): New declaration, moved from sysdep.c.
1628 (start_of_text): Simplified version of the code formerly in sysdep.c.
1629 * unexaix.c (start_of_text): Simplified version of the code
1630 formerly in sysdep.c.
1631 * m/alpha.h (HAVE_TEXT_START): Remove.
1632 (TEXT_START): Move ...
1633 * unexalpha.c (TEXT_START): ... here.
1634 * s/hpux10-20.h (TEXT_START): Remove.
1635 * s/darwin.h (TEXT_START):
1636 * m/mips.h (TEXT_START):
1637 * m/macppc.h (HAVE_TEXT_START):
1638 * m/m68k.h (TEXT_START):
1639 * m/iris4d.h (TEXT_START):
1640 * m/intel386.h (TEXT_START):
1641 * m/ibmrs6000.h (TEXT_START):
1642 * m/ia64.h (HAVE_TEXT_START):
1643 * s/msdos.h (TEXT_START): Likewise.
1644
72af86bd
AS
16452010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1646
1647 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1648 (overrun_check_free, xstrdup, allocate_string)
1649 (allocate_string_data, compact_small_strings, Fmake_string)
1650 (make_unibyte_string, make_multibyte_string)
1651 (make_string_from_bytes, make_specified_string, make_float)
1652 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1653 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1654 memcpy, memmove, memset, memcmp.
1655 * atimer.c (start_atimer, set_alarm): Likewise.
1656 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1657 (mmap_realloc, init_buffer_once): Likewise.
1658 * callint.c (Fcall_interactively): Likewise.
1659 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1660 (getenv_internal_1): Likewise.
1661 * casefiddle.c (casify_object): Likewise.
1662 * ccl.c (ccl_driver): Likewise.
1663 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1664 * charset.c (load_charset_map_from_file)
1665 (load_charset_map_from_file, load_charset_map_from_vector)
1666 (Fdefine_charset_internal): Likewise.
1667 * cm.c (Wcm_clear): Likewise.
1668 * coding.c (decode_eol, decode_coding_object)
1669 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1670 * data.c (Faset): Likewise.
1671 * dired.c (directory_files_internal, file_name_completion_stat):
1672 Likewise.
1673 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1674 (clear_glyph_row, copy_row_except_pointers)
1675 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1676 (save_current_matrix, restore_current_matrix)
1677 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1678 (mirror_line_dance, scrolling_window): Likewise.
1679 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1680 Likewise.
1681 * doprnt.c (doprnt): Likewise.
1682 * editfns.c (Fuser_full_name, make_buffer_string_both)
1683 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1684 * emacs.c (sort_args): Likewise.
1685 * eval.c (Fapply, Ffuncall): Likewise.
1686 * fileio.c (Ffile_name_directory, make_temp_name)
1687 (Fexpand_file_name, search_embedded_absfilename)
1688 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1689 (auto_save_error): Likewise.
1690 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1691 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1692 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1693 (Fmake_hash_table): Likewise.
1694 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1695 * ftfont.c (ftfont_text_extents): Likewise.
1696 * getloadavg.c (getloadavg): Likewise.
1697 * image.c (define_image_type, make_image, make_image_cache)
1698 (x_create_x_image_and_pixmap, xbm_image_p)
1699 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1700 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1701 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1702 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1703 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1704 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1705 Likewise.
1706 * indent.c (scan_for_column, compute_motion): Likewise.
1707 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1708 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1709 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1710 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1711 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1712 (store_user_signal_events, menu_bar_items, tool_bar_items)
1713 (process_tool_bar_item, append_tool_bar_item)
1714 (read_char_minibuf_menu_prompt, read_key_sequence)
1715 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1716 Likewise.
1717 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1718 Likewise.
1719 * lisp.h (STRING_COPYIN): Likewise.
1720 * lread.c (Fload, read1, oblookup): Likewise.
1721 * msdos.c (Frecent_doskeys): Likewise.
1722 * nsfns.m (Fx_create_frame): Likewise.
1723 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1724 Likewise.
1725 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1726 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1727 Likewise.
1728 * nsmenu.m (ns_update_menubar): Likewise.
1729 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1730 * print.c (print_unwind, printchar, strout, print_string)
1731 (print_error_message): Likewise.
1732 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1733 (Fmake_network_process, Fnetwork_interface_list)
1734 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1735 (init_process): Likewise.
1736 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1737 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1738 Likewise.
1739 * scroll.c (do_scrolling, do_direct_scrolling)
1740 (scrolling_max_lines_saved): Likewise.
1741 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1742 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1743 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1744 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1745 (emacs_set_tty): Likewise.
1746 * term.c (encode_terminal_code, calculate_costs)
1747 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1748 Likewise.
1749 * termcap.c (tgetst1, gobble_line): Likewise.
1750 * termhooks.h (EVENT_INIT): Likewise.
1751 * tparam.c (tparam1): Likewise.
1752 * unexalpha.c (unexec): Likewise.
1753 * unexec.c (write_segment): Likewise.
1754 * unexmacosx.c (unexec_write_zero): Likewise.
1755 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1756 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1757 * w32font.c (w32font_list_family, w32font_text_extents)
1758 (w32font_list_internal, w32font_match_internal)
1759 (w32font_open_internal, compute_metrics, Fx_select_font):
1760 Likewise.
1761 * w32menu.c (set_frame_menubar, add_menu_item)
1762 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1763 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1764 * w32uniscribe.c (uniscribe_list_family): Likewise.
1765 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1766 * window.c (make_window, replace_window, set_window_buffer)
1767 (Fsplit_window): Likewise.
1768 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1769 (add_to_log, message3, x_consider_frame_title)
1770 (append_space_for_newline, extend_face_to_end_of_line)
1771 (decode_mode_spec_coding, init_glyph_string): Likewise.
1772 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1773 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1774 (face_attr_equal_p, make_realized_face, make_face_cache)
1775 (free_realized_faces, lookup_named_face, smaller_face)
1776 (face_with_height, lookup_derived_face)
1777 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1778 (Finternal_set_font_selection_order, realize_default_face)
1779 (compute_char_face, face_at_buffer_position)
1780 (face_for_overlay_string, face_at_string_position, merge_faces):
1781 Likewise.
1782 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1783 (Fx_window_property, x_create_tip_frame)
1784 (Fx_backspace_delete_keys_p): Likewise.
1785 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1786 (xfont_text_extents): Likewise.
1787 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1788 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1789 * xselect.c (x_queue_event, x_get_window_property)
1790 (receive_incremental_selection): Likewise.
1791 * xsmfns.c (x_session_check_input): Likewise.
1792 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1793 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1794 Likewise.
1795 * character.h (BCOPY_SHORT): Removed.
1796 * config.in: Regenerate.
1797 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1798 * emacs.c (main) [PROFILING]: Don't declare
1799 dump_opcode_frequencies.
1800 * lisp.h (safe_bcopy): Remove declaration.
1801 (memset) [!HAVE_MEMSET]: Declare.
1802 (memcpy) [!HAVE_MEMCPY]: Likewise.
1803 (memmove) [!HAVE_MEMMOVE]: Likewise.
1804 (memcmp) [!HAVE_MEMCMP]: Likewise.
1805 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1806 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1807 Don't define.
1808 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1809 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1810 (BCOPY_DOWNWARD_SAFE): Don't define.
1811 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1812 (memcpy) [!HAVE_MEMCPY]: Define.
1813 (memmove) [!HAVE_MEMMOVE]: Define.
1814 (memcmp) [!HAVE_MEMCMP]: Define.
1815
cb768704
J
18162010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1817
1818 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1819 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1820 New functions.
cb768704
J
1821 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1822 select on empty input mask.
1823 (init_process): Initialize kbd_is_on_hold to 0.
1824
1825 * process.h (hold_keyboard_input, unhold_keyboard_input)
1826 (kbd_on_hold_p): Declare.
1827
1828 * keyboard.c (input_available_signal): Declare.
1829 (kbd_buffer_nr_stored): New function.
1830 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1831 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1832 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1833 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1834 (tty_read_avail_input): If input is on hold, return.
1835 Don't read more that free slots in kbd_buffer (Bug#6571).
1836
3a8ce822
EZ
18372010-07-07 Eli Zaretskii <eliz@gnu.org>
1838
1839 * msdos.h:
1840 * msdos.c:
1841 * dosfns.c:
1842 * w16select.c: Convert function definitions to ANSI C.
1843
a628ad9d
JB
1844 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1845 Remove unused prototypes.
3a8ce822 1846
cf84bb53
JB
18472010-07-07 Juanma Barranquero <lekktu@gmail.com>
1848
1849 * coding.c, sysdep.c: Convert some more functions to standard C.
1850
1a4990fb
JB
18512010-07-07 Juanma Barranquero <lekktu@gmail.com>
1852
1853 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1854 (encode_coding_object): Use SPECPDL_INDEX.
1855 (syms_of_coding): Use DOS_NT.
1856
c0f2f16b
DN
18572010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1858
48fb6855
DN
1859 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1860
c0f2f16b
DN
1861 Make the function member of Lisp_Subr use standard C prototypes.
1862 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1863 (DECL_ALIGN): Add a cast for the function.
1864 * eval.c (Feval, Ffuncall): Use the proper type for each type
1865 function call.
1866
67aecef9
CY
18672010-07-06 Chong Yidong <cyd@stupidchicken.com>
1868
1869 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1870 fringe face id, so face-remapping-alist works (Bug#6091).
1871
b56ceb92
JB
18722010-07-06 Juanma Barranquero <lekktu@gmail.com>
1873
1874 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1875 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1876 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1877
7af07b96
AS
18782010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1879
1880 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1881 * lisp.h: Declare x_get_keysym_name.
1882 * keyboard.c (modify_event_symbol): Don't declare
1883 x_get_keysym_name here.
1884
69e24e34
DN
18852010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1886
1887 * ecrt0.c: Revert conversion to standard C.
1888
d3da34e0 18892010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1890
1891 * vm-limit.c (memory_warnings):
1892 * keyboard.c (modify_event_symbol):
1893 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1894 (round2, emacs_rint):
1895 * process.c (send_process, old_sigpipe): Convert function
1896 definitions and declarations to standard C.
1897
18982010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1899
1900 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1901 * xdisp.c: Convert function definitions to standard C.
1902
1903 * cm.c (cmputc): Arg C is now int, not char.
1904 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1905
00be444c
J
19062010-07-05 James Cloos <cloos@jhcloos.com>
1907
1908 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1909
1910 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1911 _NET_WM_ICON_NAME atoms.
1912
1913 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1914 and _NET_WM_ICON_NAME properties, too, matching what is
1915 done in the Gtk+ case.
1916
e4c8d29a
J
19172010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1918
ff919460
J
1919 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1920
e4c8d29a
J
1921 * xsmfns.c (SSDATA): New macro.
1922 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1923 passed to strlen/strcpy/strcat.
1924 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1925 7:th arg to XChangeProperty to (unsigned char *)
1926
1927 * xsettings.c (something_changedCB, parse_settings)
1928 (apply_xft_settings): Reformat prototype.
1929 (something_changedCB, init_gconf): Remove unused variable i.
1930 (read_settings): Remove unused variable long_len.
1931
1932 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1933 (xg_get_image_for_pixmap, create_dialog)
1934 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1935 (menuitem_highlight_callback, make_menu_item)
1936 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1937 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1938 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1939 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1940 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1941 (xg_tool_bar_item_expose_callback): Reformat prototype.
1942 (xg_update_menubar): GList *group => GSList *group.
1943 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1944 before use.
1945 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1946 to GTK_IMAGE (wimage).
1947
dd4c5104
DN
19482010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1949
898b4c5c
DN
1950 * atimer.c: Use "" instead of <> for local includes for
1951 consistency with the rest of the code.
1952
dd4c5104
DN
1953 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1954 * xrdb.c (get_system_name):
1955 * window.c (shrink_windows):
1956 * syntax.c (forw_comment):
1957 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1958 (ins_del_costs):
1959 * mem-limits.h (start_of_data):
1960 * lread.c (readevalloop):
1961 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1962 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1963 * frame.c (x_get_focus_frame):
1964 * floatfns.c (fmod_float):
1965 * fileio.c (choose_write_coding_system):
1966 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1967 (malloc_initialize_hook, sort_args, synchronize_locale):
1968 * doprnt.c (doprnt):
1969 * dired.c (compile_pattern):
1970 * data.c (fmod_float):
1971 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1972 (map_char_table_for_charset):
1973 * charset.c (define_charset_internal):
1974 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1975 to standard C.
1976
9a39b306 19772010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1978 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1979
1980 * lread.c (read1): Fix up last change to not mess up `c'.
1981
e6cb2cbb
JB
19822010-07-04 Juanma Barranquero <lekktu@gmail.com>
1983
1984 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1985
438105ed
JB
19862010-07-04 Juanma Barranquero <lekktu@gmail.com>
1987
1988 Fix prototypes.
1989
e5447b22 1990 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1991 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1992 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1993 arg, as required by internal_condition_case_1.
dcc7404b 1994 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1995 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1996 (analyse_first): Fix "const const".
e5447b22 1997 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1998 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1999 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2000
971de7fb
DN
20012010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2002
2003 * alloc.c: Convert function definitions to standard C.
2004 * atimer.c:
2005 * bidi.c:
2006 * bytecode.c:
2007 * callint.c:
2008 * callproc.c:
2009 * casefiddle.c:
2010 * casetab.c:
2011 * category.c:
2012 * ccl.c:
2013 * character.c:
2014 * charset.c:
2015 * chartab.c:
2016 * cmds.c:
2017 * coding.c:
2018 * composite.c:
2019 * data.c:
2020 * dbusbind.c:
2021 * dired.c:
2022 * dispnew.c:
2023 * doc.c:
2024 * doprnt.c:
2025 * ecrt0.c:
2026 * editfns.c:
2027 * fileio.c:
2028 * filelock.c:
2029 * filemode.c:
2030 * fns.c:
2031 * font.c:
2032 * fontset.c:
2033 * frame.c:
2034 * fringe.c:
2035 * ftfont.c:
2036 * ftxfont.c:
2037 * gtkutil.c:
2038 * indent.c:
2039 * insdel.c:
2040 * intervals.c:
2041 * keymap.c:
2042 * lread.c:
2043 * macros.c:
2044 * marker.c:
2045 * md5.c:
2046 * menu.c:
2047 * minibuf.c:
2048 * prefix-args.c:
2049 * print.c:
2050 * ralloc.c:
2051 * regex.c:
2052 * region-cache.c:
2053 * scroll.c:
2054 * search.c:
2055 * sound.c:
2056 * strftime.c:
2057 * syntax.c:
2058 * sysdep.c:
2059 * termcap.c:
2060 * terminal.c:
2061 * terminfo.c:
2062 * textprop.c:
2063 * tparam.c:
2064 * undo.c:
2065 * unexelf.c:
2066 * window.c:
2067 * xfaces.c:
2068 * xfns.c:
2069 * xfont.c:
2070 * xftfont.c:
2071 * xgselect.c:
2072 * xmenu.c:
2073 * xrdb.c:
2074 * xselect.c:
2075 * xsettings.c:
2076 * xsmfns.c:
2077 * xterm.c: Likewise.
2078
ae492bec
EZ
20792010-07-03 Eli Zaretskii <eliz@gnu.org>
2080
76ea4cc9
EZ
2081 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2082 frames other than the initial one. Fix reversal of colors when
2083 `reverse' is specified in the frame parameters. Call
2084 update_face_from_frame_parameter instead of
2085 internal-set-lisp-face-attribute. Initialize screen colors from
2086 initial_screen_colors[] when f->default_face_done_p is zero,
2087 instead of depending on being called with default-frame-alist as
2088 the alist argument.
2089
2090 * xfaces.c (update_face_from_frame_parameter): Move out of
2091 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2092 with HAVE_WINDOW_SYSTEM.
2093
1e6255ae
EZ
2094 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2095 to menu-bar-mode, if not set in the frame parameters or in
2096 default-frame-alist.
2097
ae492bec
EZ
2098 * w32console.c (sys_tputs): Adjust argument list to prototype in
2099 term.c.
2100
3a35a84c
JB
21012010-07-03 Juanma Barranquero <lekktu@gmail.com>
2102
2103 * lisp.h (memory_warnings): Fix prototype.
2104
2105 * cm.h (evalcost): Fix prototype.
2106
2107 * cm.c (evalcost): Fix arg type.
2108
c532d349
DN
21092010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2110
2111 * term.c (term_clear_mouse_face, Fidentity):
2112 * syssignal.h (signal_handler_t):
2113 * lisp.h (memory_warnings):
2114 * coding.h (preferred_coding_system):
2115 * cm.h (evalcost):
2116 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2117
c0b36d46
EZ
21182010-07-02 Eli Zaretskii <eliz@gnu.org>
2119
2120 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2121 from prototypes.
2122
2123 * msdos.h (load_pixmap): Don't define away.
2124
383e0970
J
21252010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2126
f57e2426
J
2127 * lisp.h:
2128 * atimer.h: Remove define for P_.
2129
2130 * alloc.c: Remove __P and P_ from .c and .m files.
2131 * atimer.c:
2132 * buffer.c:
2133 * callint.c:
2134 * category.c:
2135 * charset.c:
2136 * chartab.c:
2137 * cm.c:
2138 * coding.c:
2139 * composite.c:
2140 * data.c:
2141 * dired.c:
2142 * dispnew.c:
2143 * doc.c:
2144 * editfns.c:
2145 * emacs.c:
2146 * eval.c:
2147 * fileio.c:
2148 * filelock.c:
2149 * fns.c:
2150 * font.c:
2151 * fontset.c:
2152 * frame.c:
2153 * ftfont.c:
2154 * ftxfont.c:
2155 * gmalloc.c:
2156 * gtkutil.c:
2157 * image.c:
2158 * indent.c:
2159 * intervals.c:
2160 * keyboard.c:
2161 * keymap.c:
2162 * lread.c:
2163 * marker.c:
2164 * menu.c:
2165 * minibuf.c:
2166 * print.c:
2167 * process.c:
2168 * scroll.c:
2169 * search.c:
2170 * sound.c:
2171 * strftime.c:
2172 * syntax.c:
2173 * sysdep.c:
2174 * term.c:
2175 * terminal.c:
2176 * textprop.c:
2177 * unexalpha.c:
2178 * w32console.c:
2179 * w32fns.c:
2180 * w32font.c:
2181 * w32menu.c:
2182 * w32term.c:
2183 * w32uniscribe.c:
2184 * window.c:
2185 * xdisp.c:
2186 * xfaces.c:
2187 * xfns.c:
2188 * xfont.c:
2189 * xftfont.c:
2190 * xmenu.c:
2191 * xselect.c:
2192 * xterm.c: Likewise.
2193
383e0970 2194 Remove P_ and __P macros.
f57e2426
J
2195 * atimer.h: Remove P_ and __P macros.
2196 * buffer.h:
383e0970
J
2197 * category.h:
2198 * ccl.h:
2199 * character.h:
2200 * charset.h:
2201 * cm.h:
2202 * coding.h:
2203 * composite.h:
2204 * dispextern.h:
2205 * disptab.h:
9e892c8d 2206 * dosfns.h:
383e0970
J
2207 * font.h:
2208 * fontset.h:
2209 * frame.h:
2210 * gtkutil.h:
2211 * indent.h:
2212 * intervals.h:
2213 * keyboard.h:
2214 * keymap.h:
2215 * lisp.h:
2216 * macros.h:
2217 * md5.h:
2218 * menu.h:
2219 * msdos.h:
2220 * nsterm.h:
2221 * puresize.h:
2222 * region-cache.h:
2223 * syntax.h:
2224 * syssignal.h:
2225 * systime.h:
2226 * termhooks.h:
9e892c8d 2227 * w32font.h:
383e0970
J
2228 * w32term.h:
2229 * widget.h:
2230 * window.h:
2231 * xgselect.h:
2232 * xsettings.h:
2233 * xterm.h: Likewise.
2234
98601119
DN
22352010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2236
d9170db5
DN
2237 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2238
98601119
DN
2239 Cleanup old code.
2240 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2241 * syssignal.h: Remove code for Lynx, not supported anymore.
2242 * vm-limit.c: Remove unused code the depends on emacs not being
2243 defined and NO_LIM_DATA being defined.
2244 * mem-limits.h: Remove dead code.
2245
1f984e12
J
22462010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2247
c49d071a
J
2248 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2249
9d5405ec
J
2250 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2251 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2252
7a18115b
J
2253 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2254 parameters, they are already absolute.
2255
a628ad9d
JB
2256 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2257 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2258
a628ad9d 2259 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2260
a628ad9d
JB
2261 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2262 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2263
a628ad9d
JB
2264 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2265 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2266
c1ef4455
CY
22672010-06-30 Chong Yidong <cyd@stupidchicken.com>
2268
2269 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2270 check default-frame-alist.
2271
ce8f5a9a
AS
22722010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2273
2274 * process.c (create_process): Avoid using invalid file descriptors.
2275
2276 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2277
bf935339
J
22782010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2279
2280 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2281 Improve documentation. Return font regardless of use_system_font.
2282 (syms_of_xsettings): Improve documentation for font-use-system-font.
2283
7c33a057
CY
22842010-07-10 Chong Yidong <cyd@stupidchicken.com>
2285
2ec1b5ee
CY
2286 * xfaces.c (realize_face): Garbage the frame if a face is removed
2287 (Bug#6593).
2288
22892010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2290
2291 * keyboard.c: Remove duplicate <setjmp.h>.
2292 (read_key_sequence): Remove volatile qualifiers.
2293
22942010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2295
2296 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2297 (struct glyph_row): New members left_fringe_offset and
2298 right_fringe_offset.
2299
2300 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2301 specially.
2302 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2303 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2304
2305 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2306 Take account of bitmap offset.
2ec1b5ee
CY
2307 (draw_window_fringes): Take account of window vscroll.
2308 (update_window_fringes): Likewise. Extend top-aligned top indicator
2309 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2310 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2311 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2312
23132010-07-04 Juanma Barranquero <lekktu@gmail.com>
2314
2315 * w32fns.c (Qtooltip): Declare.
2316 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2317
23182010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2319
2320 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2321 grab on just Press (Bug#6499).
2322
23232010-07-02 Chong Yidong <cyd@stupidchicken.com>
2324
2325 * frame.c (Qtooltip): New var.
2326 (delete_frame): Use it. Fix faulty if statement. Don't update
2327 mode line for tooltip frames. Suggested by Martin Rudalics.
2328
2329 * xfns.c (x_create_tip_frame):
2330 * w32fns.c (x_create_tip_frame): Use it.
2331
23322010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2333
2334 * xftfont.c (xftfont_open): Check font width one by one also when
2335 spacing is dual.
2336
2337 * ftfont.c (ftfont_open): Ditto.
2338
6259c2ec
GM
23392010-06-30 Glenn Morris <rgm@gnu.org>
2340
a46007e9
GM
2341 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2342
6259c2ec
GM
2343 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2344
2345 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2346 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2347 * s/darwin.h (SYSTEM_MALLOC):
2348 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2349
5d1d3d04
J
23502010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2351
2352 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2353 (ns_get_screen): Don't assign integer to f.
2354 (Fx_display_color_cells): Declarations before statements.
2355
e547b051
J
23562010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2357
5fc8e5bc
J
2358 * xfns.c (x_default_font_parameter): Remove got_from_system
2359 (Bug#6526).
2360
e547b051
J
2361 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2362 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2363 defines based on what configure finds.
2364
2365 * xterm.c (XTflash): Use gtk_widget_get_window.
2366 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2367 gtk_adjustment_get_page_size.
2368 (handle_one_xevent): Use gtk_widget_get_mapped.
2369 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2370 messages.
2371
2372 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2373
2374 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2375 HAVE_GTK_FILE_SELECTION_NEW.
2376
2377 * gtkutil.c (xg_display_open, xg_display_close): Remove
2378 HAVE_GTK_MULTIDISPLAY, it is always defined.
2379 (xg_display_open): Return type is void.
2380 (gtk_widget_set_has_window)
2381 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2382 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2383 (gtk_adjustment_set_page_increment)
2384 (gtk_adjustment_get_step_increment): #define these if not found
2385 by configure.
2386 (remove_submenu): New define based on Gtk+ version.
2387 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2388 gtk_widget_get_window.
2389 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2390 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2391 (create_dialog): Use gtk_dialog_get_action_area and
2392 gtk_dialog_get_content_area.
2393 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2394 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2395 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2396 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2397 g_object_ref and g_object_unref.
2398 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2399 gtk_widget_get_sensitive.
2400 (xg_update_submenu): Use remove_submenu.
2401 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2402 properties instead to get old x and y position.
2403 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2404 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2405 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2406 (xg_get_tool_bar_widgets): New function.
2407 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2408 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2409 (toolbar_set_orientation): New #define based on if configure
2410 finds gtk_orientable_set_orientation.
2411 (xg_create_tool_bar): Call toolbar_set_orientation.
2412 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2413 instead of gtk_box_pack_start_defaults.
2414
b9229673
CY
24152010-06-28 Chong Yidong <cyd@stupidchicken.com>
2416
2417 * cmds.c (Fdelete_backward_char): Move into Lisp.
2418
bbc803b0
DN
24192010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2420
2421 * s/freebsd.h (BSD4_2): Remove redundant definition.
2422 bsd-common.h defines it already.
2423
6431f2e6
CY
24242010-06-27 Chong Yidong <cyd@stupidchicken.com>
2425
2426 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2427 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2428 tool-bar-mode, which are now set using these X resources at
2429 startup, to determine the defaults (Bug#2249).
2430
2431 * w32fns.c (Fx_create_frame):
2432 * nsfns.m (Fx_create_frame): Likewise.
2433
2434 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2435
8c079ebb
JB
24362010-06-24 Juanma Barranquero <lekktu@gmail.com>
2437
2438 * gtkutil.c (xg_update_scrollbar_pos):
2439 Avoid C99 mid-block variable declaration.
2440
e9b7ab96
JD
24412010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2442
bc869eca
JD
2443 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2444
2b7e356a 2445 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2446
2447 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2448 if height is less than scroll bar min size.
2449 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2450
e9b7ab96
JD
2451 * xfns.c (x_default_font_parameter): Try to open font from system
2452 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2453
a628ad9d 24542010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2455
2456 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2457
70c4cfbb
EZ
24582010-06-20 Eli Zaretskii <eliz@gnu.org>
2459
2460 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2461 most-positive-fixnum, be extra accurate when scrolling window
2462 start, to avoid missing the cursor line.
2463
ad5a12b5
EZ
24642010-06-19 Eli Zaretskii <eliz@gnu.org>
2465
2466 * xdisp.c (try_scrolling): Compute the limit for searching point
2467 in forward scroll from scroll_max, instead of an arbitrary limit
2468 of 10 screen lines. See
2469 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2470 and
2471 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2472 for details.
2473
2a64315a 24742010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2475
2476 * editfns.c (Fbyte_to_string): Pacify compiler.
2477
288cf4e9
SM
24782010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2479
2480 * lread.c (read1): Phase out old-style backquotes a bit more.
2481
6e6e5760
EZ
24822010-06-12 Eli Zaretskii <eliz@gnu.org>
2483
cbc4fd20
EZ
2484 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2485 bidimirror.h.
2486
2487 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2488
317fbf33
EZ
2489 * bidi.c (bidi_initialize): Remove explicit initialization of
2490 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2491 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2492 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2493
2494 * biditype.h: New file.
2495
cbc4fd20
EZ
2496 * bidimirror.h: New file.
2497
6e6e5760
EZ
2498 * window.c (syms_of_window): Doc fix (bug#6409).
2499
4176cba2
RF
25002010-06-12 Romain Francoise <romain@orebokech.com>
2501
2502 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2503 ediff-hook.
2504
cb4bfcb5
GM
25052010-06-10 Glenn Morris <rgm@gnu.org>
2506
64c60c2f
GM
2507 * editfns.c (Fbyte_to_string): Pacify compiler.
2508
cb4bfcb5
GM
2509 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2510
2ec1b5ee
CY
25112010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2512
2513 * alloc.c (Fmake_byte_code): Don't access undefined argument
2514 (Bug#6517).
2515
25162010-06-25 Chong Yidong <cyd@stupidchicken.com>
2517
2518 * xdisp.c (next_element_from_image): Ensure that after-strings are
2519 read the next time we hit handle_stop (Bug#1336).
2520
25212010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2522
2523 * lread.c (read1): Signal error if #s is not followed by paren.
2524
25252010-06-19 Chong Yidong <cyd@stupidchicken.com>
2526
2527 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2528
2529 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2530
25312010-06-15 Glenn Morris <rgm@gnu.org>
2532
2533 * editfns.c (Fbyte_to_string): Pacify compiler.
2534
e454a4a3
SM
25352010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2536
2537 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2538 Check `object's type before accessing its guts.
2539
c1b1acc2
DN
25402010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2541
2542 * s/usg5-4.h: Fix previous change.
2543 Suggested by Lawrence Mitchell <wence@gmx.li>
2544
657d4c0b
AS
25452010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2546
2547 * minibuf.c (Fall_completions): Add more checks.
2548
9b27fd9f
JB
25492010-06-08 Juanma Barranquero <lekktu@gmail.com>
2550
2551 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2552
a99ebb40
DN
25532010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2554
d7c5d87d
DN
2555 * lread.c (X_OK): Remove, unused.
2556
0263a941
DN
2557 * dispnew.c: Remove obsolete comment.
2558
a99ebb40
DN
2559 Remove INCLUDED_FCNTL.
2560 * xterm.c (INCLUDED_FCNTL):
2561 * callproc.c (INCLUDED_FCNTL):
2562 * alloc.c (INCLUDED_FCNTL):
2563 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2564 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2565
13b5221f
MR
25662010-06-07 Martin Rudalics <rudalics@gmx.at>
2567
2568 * window.c (Fselect_window): Move `record_buffer' up to the
2569 beginning of this function, so the buffer gets recorded
2570 even if the selected window does not change.
2571 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2572
5220357f
JB
25732010-06-07 Juanma Barranquero <lekktu@gmail.com>
2574
2575 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2576 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2577
3085237c
DN
25782010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2579
2580 Remove BSTRING related code, all platforms define it.
2581 * s/usg5-4.h (BSTRING): Remove definition.
2582 * s/template.h (BSTRING):
2583 * s/msdos.h (BSTRING):
2584 * s/ms-w32.h (BSTRING):
2585 * s/hpux10-20.h (BSTRING):
2586 * s/gnu-linux.h (BSTRING):
2587 * s/darwin.h (BSTRING):
2588 * s/cygwin.h (BSTRING):
2589 * s/bsd-common.h (BSTRING):
2590 * s/aix4-2.h (BSTRING): Likewise.
2591 * sysdep.c: Remove code depending on BSTRING not being defined.
2592
409f2919
JB
25932010-06-05 Juanma Barranquero <lekktu@gmail.com>
2594
2595 Remove obsolete macro BASE_LEADING_CODE_P.
2596 * character.h (BASE_LEADING_CODE_P): Remove.
2597 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2598 * buffer.c (Fset_buffer_multibyte):
2599 * indent.c (scan_for_column, compute_motion):
2600 * insdel.c (count_combining_before, count_combining_after):
2601 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2602
087fc47a
JB
26032010-06-04 Juanma Barranquero <lekktu@gmail.com>
2604
2605 Turn `directory-sep-char' into a noop.
2606
2607 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2608 (DIRECTORY_SEP): Define unconditionally.
2609
2610 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2611
2612 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2613 call dostounix_filename directly.
2614
2615 * fileio.c (CORRECT_DIR_SEPS): Remove.
2616 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2617 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2618 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2619 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2620
2621 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2622 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2623
0eb7675e
AS
26242010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2625
a628ad9d
JB
2626 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2627 (Bug#6346)
0eb7675e 2628
78edd3b7
JB
26292010-06-03 Juanma Barranquero <lekktu@gmail.com>
2630
2631 * ccl.c (Fccl_program_p): Fix typo in docstring.
2632
eb697db5
DN
26332010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2634
2635 Move UNEXEC definition to autoconf.
2636 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2637 * s/sol2-10.h (UNEXEC):
2638 * s/irix6-5.h (UNEXEC):
2639 * s/hpux10-20.h (UNEXEC):
2640 * s/gnu-linux.h (UNEXEC):
2641 * s/darwin.h (UNEXEC):
2642 * s/cygwin.h (UNEXEC):
2643 * s/bsd-common.h (UNEXEC):
2644 * s/aix4-2.h (UNEXEC):
2645 * m/alpha.h (UNEXEC): Likewise.
2646 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2647
aa3830c4
JB
26482010-06-03 Juanma Barranquero <lekktu@gmail.com>
2649
2650 Remove obsolete pre-unicode2 macros.
2651 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2652 * composite.c (composition_reseat_it):
2653 * data.c (Faset):
2654 * fns.c (Ffillarray):
2655 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2656 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2657
d234d13e
JL
26582010-06-03 Juri Linkov <juri@jurta.org>
2659
2660 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2661 (Fswitch_to_buffer): Remove unused variable `err'.
2662
0d4bcf4d
GM
26632010-06-03 Glenn Morris <rgm@gnu.org>
2664
e23dc1e2
GM
2665 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2666
05b09564
GM
2667 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2668 now that AH_BOTTOM does it.
2669
824e2978
GM
2670 * m/hp800.h (HAVE_ALLOCA):
2671 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2672
0d4bcf4d
GM
2673 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2674 Remove NOT_C_CODE tests, it is always true now.
2675
c55d2abf
DN
26762010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2677
08a494a3
DN
2678 Fix config.h includes.
2679 * xsettings.c:
2680 * xgselect.c:
2681 * nsterm.m:
2682 * nsselect.m:
2683 * nsimage.m:
2684 * nsfont.m:
2685 * nsfns.m:
2686 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2687 other files do.
2688
75934b1d
DN
2689 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2690
9f32a766
DN
2691 * s/sol2-6.h: Remove obsolete comments.
2692
c55d2abf
DN
2693 Remove unnecessary alloca.h includes.
2694 * keymap.c: Do not include alloca.h, config.h does that.
2695 * sysdep.c: Likewise. Do not define fwrite, not used.
2696
06ac62b4
SM
26972010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2698
2699 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2700 the HAVE_TERMIO where it belongs (bug#6149).
2701
1ab8293c
SM
27022010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2703
2704 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2705 of bug#6305).
2706
6dcfd253
EZ
27072010-05-30 Eli Zaretskii <eliz@gnu.org>
2708
2709 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2710 state is always cached (bug#6306).
2711
6d26bbb2
EZ
27122010-05-29 Eli Zaretskii <eliz@gnu.org>
2713
06fa4a23
EZ
2714 Fix cursor motion in bidi-reordered continued lines.
2715 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2716 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2717 over continuation lines in bidi-reordered buffers. Return
2718 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2719 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2720
f5783df3
MA
27212010-05-28 Michael Albinus <michael.albinus@gmx.de>
2722
2723 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2724
7d56b2dd
KH
27252010-05-28 Kenichi Handa <handa@m17n.org>
2726
2727 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2728 Don't sheck SPEC if it is nil.
2729 (font_list_entities): Call font_delete_unmatched if
b925d231 2730 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2731
e58d4ff7
GM
27322010-05-28 Glenn Morris <rgm@gnu.org>
2733
2734 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2735
f1a5d776
CY
27362010-05-27 Chong Yidong <cyd@stupidchicken.com>
2737
2738 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2739 whether to trash.
2740 (internal_delete_file, Frename_file): Callers changed.
2741 (delete_by_moving_to_trash): Doc fix.
2742 (Fdelete_directory_internal): Don't move to trash.
2743
2744 * callproc.c (delete_temp_file):
2745 * buffer.c (Fkill_buffer): Callers changed.
2746
2747 * lisp.h: Update prototype.
2748
f44a59e6
CY
27492010-05-27 Chong Yidong <cyd@stupidchicken.com>
2750
2751 * xdisp.c (redisplay_window): After redisplay, check if point is
2752 still valid before setting it (Bug#6177).
2753
81ac4f35
GM
27542010-05-27 Glenn Morris <rgm@gnu.org>
2755
2756 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2757 Convert comments to Makefile format.
2758
2759 * Makefile.in (bootstrap-clean): No more Makefile.c.
2760
ccd89fb3
GM
27612010-05-26 Glenn Morris <rgm@gnu.org>
2762
90278cb6
GM
2763 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2764 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2765
ccd89fb3
GM
2766 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2767 Remove.
2768 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2769
b7050583
KH
27702010-05-26 Kenichi Handa <handa@m17n.org>
2771
2772 * composite.c (composition_compute_stop_pos): Fix condition for
2773 backward scanning.
2774
e5458003
GM
27752010-05-25 Glenn Morris <rgm@gnu.org>
2776
c345fe90
GM
2777 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2778 Move before TEMACS_LDFLAGS.
2779 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2780 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2781
2e0689ab
GM
2782 * Makefile.in (NOT_C_CODE): No longer define.
2783 (config.h): No longer include.
2784
8009a5e8
GM
2785 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2786 variables it may reference.
2787
e5458003
GM
2788 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2789 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2790
10f72a37
KH
27912010-05-25 Kenichi Handa <handa@m17n.org>
2792
2793 * dispextern.h (struct composition_it): New members rule_idx and
2794 charpos.
2795
2796 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2797 that the character positions of IT point the last character of the
2798 current grapheme cluster.
2799 (next_element_from_composition): Don't change character positions
2800 of IT.
2801 (append_composite_glyph): Set glyph->charpos to
2802 it->cmp_it.charpos.
2803
2804 * composite.c (autocmp_chars): Change the first argument to RULE,
2805 and try composition with RULE only.
2806 (composition_compute_stop_pos): Record the index number of the
2807 composition rule in CMP_IT->rule_idx.
2808 (composition_reseat_it): Call autocmp_chars repeatedly until the
2809 correct rule of the composition is found.
2810 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2811 is at the last character of the current grapheme cluster when
2812 CMP_IT->reversed_p is nonzero.
2813
171eda53 28142010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2815
171eda53
SM
2816 * editfns.c (Fbyte_to_string): New function.
2817
66a9f7f4
SM
28182010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2819
2820 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2821 Suggested by Masatake YAMATO <yamato@redhat.com>.
2822
d8c315d1
EZ
28232010-05-23 Eli Zaretskii <eliz@gnu.org>
2824
171eda53 2825 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2826
f5b416d2 28272010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2828
2829 * s/netbsd.h: If terminfo is found, use it in preference to
2830 termcap. (Bug#6190) [Backport from trunk]
2831
0416466c
EZ
28322010-05-19 Eli Zaretskii <eliz@gnu.org>
2833
11117830 2834 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2835
2836 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2837 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2838 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2839 and maxpos members instead of start.pos and end.pos, respectively.
2840
2841 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2842 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2843 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2844 (try_window_reusing_current_matrix, try_window_id):
2845 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2846 (init_from_display_pos, init_iterator): Use EMACS_INT for
2847 character and byte positions.
66a9f7f4 2848 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2849 arguments for minimum and maximum buffer positions seen by
2850 display_line for this row. Don't use iterator to find the
2851 position following the maximum one; instead, increment the
11117830
EZ
2852 position found by display_line directly. Fix logic; eol_pos
2853 should be tested before the rest. Handle the case of characters
2854 delivered from display vector (bug#6036). Fix tests related to
2855 it->method. Handle the truncated_on_right_p rows.
2856 (RECORD_MAX_MIN_POS): New macro.
2857 (display_line): Use it to record the minimum and maximum buffer
2858 positions for glyphs in the row being assembled. Record the
2859 position of the newline that terminates the line. If word wrap is
2860 in effect, restore minimum and maximum positions seen up to the
2861 wrap point, when iterator returns to it.
2862 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2863 row and cursor not already at point. Restore original pre-bidi
2864 code for unidirectional buffers.
d36fe237
EZ
2865
2866 * dispnew.c (increment_row_positions, check_matrix_invariants):
2867 Increment and check row->start.pos and row->end.pos, in addition
2868 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2869
11117830
EZ
2870 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2871 Display truncated_on_left_p and truncated_on_right_p flags.
2872 Formatting fixes.
2873 (pmtxrows): Display the ordinal number of each row. Don't display
2874 rows beyond the last one.
2875
2876 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2877 it is not copied by bidi_copy_it.
2878
6e83d800
EZ
28792010-05-22 Eli Zaretskii <eliz@gnu.org>
2880
2881 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2882 (Bug#6237)
2883
110683ad
CY
28842010-05-22 Chong Yidong <cyd@stupidchicken.com>
2885
2886 * image.c (Fimage_flush): Rename from image-refresh.
2887
98fe5161
CY
28882010-05-21 Chong Yidong <cyd@stupidchicken.com>
2889
2890 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2891 just one window.
2892
2893 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2894 (clear_image_cache): If the number of cached images is unusually
2895 large, decrease the cache eviction delay (Bug#6230).
2896
e8752c66
GM
28972010-05-21 Glenn Morris <rgm@gnu.org>
2898
66dbf213
GM
2899 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2900 Move these rules to ns.mk.
2901 * ns.mk: New file.
2902
04384b2d
GM
2903 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2904
e8752c66
GM
2905 * Makefile.in (CANNOT_DUMP): New, set by configure.
2906 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2907
2e2bbddb
JL
29082010-05-20 Juri Linkov <juri@jurta.org>
2909
2910 * fileio.c (Fdelete_file): Change interative spec to use
2911 `read-file-name' like in `find-file-read-args' where the default
2912 value is `default-directory' instead of `buffer-file-name'.
2913 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2914
31c4aaf6
KR
29152010-05-20 Kevin Ryde <user42@zip.com.au>
2916
2917 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2918 (Voverriding_terminal_local_map, Vsystem_key_alist)
2919 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2920
9d5cf9b6
GM
29212010-05-20 Glenn Morris <rgm@gnu.org>
2922
2923 * Makefile.in (DEPDIR): New constant.
2924 (DEPFLAGS): Set with configure, not cpp.
2925 (MKDEPDIR): New, set by configure.
2926 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2927 (clean): Use $DEPDIR.
2928 (deps_frag): Include from configure.
2929 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2930 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2931
ead6f8f5
EZ
2932 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2933 reallocation of the cache. (Bug#6210)
2934
7f34aec3
GM
29352010-05-19 Glenn Morris <rgm@gnu.org>
2936
d494e8f2
GM
2937 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2938
c1d0dcfd
GM
2939 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2940 (GNULIB_VAR): Remove.
2941 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2942
2943 * m/ibms390x.h (LINKER):
2944 * m/macppc.h (LINKER) [GNU_LINUX]:
2945 * s/aix4-2.h (ORDINARY_LINK):
2946 * s/cygwin.h (LINKER):
2947 * s/darwin.h (ORDINARY_LINK):
2948 * s/gnu.h (ORDINARY_LINK):
2949 * s/netbsd.h (LINKER):
2950 * s/usg5-4.h (ORDINARY_LINK):
2951 Move to configure.
2952
7f34aec3
GM
2953 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2954
754790b6
CY
29552010-05-18 Chong Yidong <cyd@stupidchicken.com>
2956
2957 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2958 prevent stack overflow if number of arguments is too large
2959 (Bug#6214).
2960
161e44d1
JB
29612010-05-18 Juanma Barranquero <lekktu@gmail.com>
2962
2963 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2964
be4ff9da
GM
29652010-05-18 Glenn Morris <rgm@gnu.org>
2966
9539dc5d
GM
2967 * s/gnu-linux.h: Combine two conditionals.
2968
2969 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2970 $(POST_ALLOC_OBJ).
2971
40dc6bf4
GM
2972 * Makefile.in (RALLOC_OBJ): New, set by configure.
2973 (rallocobj): Replace with the previous variable.
2974 (otherobj): Use $RALLOC_OBJ.
2975
2976 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2977 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2978
be4ff9da
GM
2979 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2980 (gmallocobj, vmlimitobj): Replace with previous two variables.
2981 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2982
16455a85
GM
29832010-05-17 Glenn Morris <rgm@gnu.org>
2984
2985 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2986 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2987
5fdb7468
GM
29882010-05-16 Glenn Morris <rgm@gnu.org>
2989
7ca1f3f9
GM
2990 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2991
7541dad5
GM
2992 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2993
da53fab9
GM
2994 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2995 trailing "/".
2996
b02a6645
GM
2997 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2998 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2999
8877ca0f
GM
3000 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3001 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3002 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3003 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3004 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3005
5fdb7468
GM
3006 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3007 Remove ${STARTFLAGS}, nothing ever sets it.
3008
95adb4b1
DN
30092010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3010
3011 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3012
676b6304
GM
30132010-05-16 Glenn Morris <rgm@gnu.org>
3014
9beab9ce
GM
3015 * Makefile.in (LIBX_BASE): Always define.
3016
8a95f0e7
GM
3017 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3018
676b6304
GM
3019 * Makefile.in (LIBXT): Always define.
3020
6e546d18
GM
30212010-05-15 Glenn Morris <rgm@gnu.org>
3022
4235ca47 3023 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3024
6e546d18
GM
3025 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3026 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3027
8c5ff6dd
KR
30282010-05-15 Ken Raeburn <raeburn@raeburn.org>
3029
560bb7ae 3030 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3031 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3032
8b4eb796
KR
3033 * emacs.c (main): Initialize initial-environment and
3034 process-environment before generating from env, not after.
3035
8c5ff6dd
KR
3036 Handle --version reasonably in CANNOT_DUMP configuration.
3037 * emacs.c (emacs_version, emacs_copyright): New string variables.
3038 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3039 (syms_of_emacs): Defvar them, and initialize them from the C
3040 string variables.
3041 (main): If initialization hasn't been done, print initial version
3042 info from the C strings, instead of starting an interactive session.
3043
dbd3f723
EZ
30442010-05-15 Eli Zaretskii <eliz@gnu.org>
3045
d20e1419
EZ
3046 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3047 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3048 (bidi_paragraph_init): Remove redundant assertion that we are at
3049 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3050
3051 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3052 (syms_of_xdisp): Defsubr it.
3053
d36fe237
EZ
3054 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3055
dbd3f723
EZ
3056 * Makefile.in: Fix MSDOS-related comments.
3057
02be533b
GM
30582010-05-15 Glenn Morris <rgm@gnu.org>
3059
1a82cca9
GM
3060 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3061 (really-lwlib, really-oldXMenu): Always define.
3062 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3063
3df7b338
GM
3064 * Makefile.in: Simplify cpp conditional.
3065
2b5f541b
GM
3066 * Makefile.in (${ns_appdir}): Simplify using umask.
3067
02be533b
GM
3068 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3069
4e2db1fe
SM
30702010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3071
3072 * eval.c (specbind): Remove left-over duplicate test.
3073 Disallow let-binding frame-local vars. Add comment.
3074
4b292a22
EZ
30752010-05-14 Eli Zaretskii <eliz@gnu.org>
3076
2fe72643 3077 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3078 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3079 (bidi_init_it): Call it.
3080 (bidi_cache_iterator_state): Enlarge the cache if needed.
3081
4e2db1fe 3082 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3083 bidi_get_next_char_visually. All callers changed.
3084
82ebc97b
KH
30852010-05-14 Kenichi Handa <handa@m17n.org>
3086
3087 * dispextern.h (struct composition_it): New member reversed_p.
3088
3089 * composite.c (composition_compute_stop_pos): Search backward if
3090 ENDPOS < CHARPOS.
3091 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3092 Set CMP_IT->reversed_p.
b4b6e17e 3093 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3094
4e2db1fe
SM
3095 * xdisp.c (set_iterator_to_next):
3096 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3097 scanning backward. Call composition_compute_stop_pos if scan
3098 direction is changed.
3099 (next_element_from_buffer): Call composition_compute_stop_pos with
3100 negative ENDPOS if we are scanning backward.
3101 (next_element_from_composition): Pay attention to
3102 IT->cmp_it.reversed_p.
3103
0e5d7800
KH
31042010-05-14 Kenichi Handa <handa@m17n.org>
3105
560bb7ae 3106 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3107
cb027b32
GM
31082010-05-14 Glenn Morris <rgm@gnu.org>
3109
177b0288
GM
3110 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3111
fbc00890
GM
3112 * Makefile.in (mktime, X11, register): Move undefs to configure.
3113
f14d1dfd
GM
3114 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3115 (MSDOS_X_OBJ): New variable.
3116 (MSDOS_SUPPORT_REAL): New constant.
3117 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3118 (obj): Use MSDOS_X_OBJ.
3119 (lisp): Use MSDOS_SUPPORT as a variable.
3120
11842bd8
GM
3121 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3122 (GPM_MOUSE_SUPPORT): Now it's a constant.
3123 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3124 not cpp.
3125
489d31a4 3126 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3127 (ns_appresdir): Remove, unused.
e20f1f07 3128
489d31a4
GM
3129 * Makefile.in (SHELL): Move outside cpp section.
3130
cb027b32
GM
3131 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3132
5a903aa9
GM
31332010-05-13 Glenn Morris <rgm@gnu.org>
3134
3369c79f
GM
3135 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3136 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3137
d5e982a6
GM
3138 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3139 HAVE_WINDOW_SYSTEM must be too.
3140
6192e163
GM
3141 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3142 (lisp): Remove WINNT_SUPPORT.
3143
472c5d6b
GM
3144 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3145 Let configure set these variables (to empty) in this case as well.
3146
0116466b
GM
3147 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3148 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3149
5a903aa9
GM
3150 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3151 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3152 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3153 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3154 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3155 the values output by configure.
5a903aa9
GM
3156 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3157
1a0d7c06
GM
31582010-05-12 Glenn Morris <rgm@gnu.org>
3159
b5457f14
GM
3160 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3161 (LINKER_WAS_SPECIFIED): Remove.
3162
1a0d7c06
GM
3163 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3164 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3165 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3166 * s/cygwin.h (LIB_GCC):
3167 * s/freebsd.h (LIB_GCC):
3168 * s/gnu-linux.h (LIB_GCC):
3169 * s/msdos.h (LIB_GCC):
3170 * s/netbsd.h (LIB_GCC):
3171 Move to configure.
3172
3ffd4615 31732010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3174
3175 * ftfont.c: Fix incorrect parentheses of #if condition for
3176 definining M17N_FLT_USE_NEW_FEATURE.
3177
acddf8ae
GM
31782010-05-11 Glenn Morris <rgm@gnu.org>
3179
3180 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3181 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3182
ae5e04fa
EZ
31832010-05-10 Eli Zaretskii <eliz@gnu.org>
3184
3185 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3186 unibyte buffers. See
3187 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3188
7490175b
GM
31892010-05-10 Glenn Morris <rgm@gnu.org>
3190
97efb629
GM
3191 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3192 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3193 (LIBES): Use LIBS_SYSTEM as a variable.
3194 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3195 * s/aix4-2.h (LIBS_SYSTEM):
3196 * s/freebsd.h (LIBS_SYSTEM):
3197 * s/hpux10-20.h (LIBS_SYSTEM):
3198 * s/sol2-6.h (LIBS_SYSTEM):
3199 * s/unixware.h (LIBS_SYSTEM):
3200 Move to configure.
3201
7490175b
GM
3202 * s/aix4-2.h (MAIL_USE_LOCKF):
3203 * s/bsd-common.h (MAIL_USE_FLOCK):
3204 * s/darwin.h (MAIL_USE_FLOCK):
3205 * s/gnu-linux.h (MAIL_USE_FLOCK):
3206 * s/irix6-5.h (MAIL_USE_FLOCK):
3207 * s/template.h (MAIL_USE_FLOCK):
3208 Move to configure.
3209
0235128c 32102010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3211
3212 * Version 23.2 released.
3213
0235128c 32142010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3215
3216 * composite.c (autocmp_chars): Save point as marker before calling
3217 auto-composition-function (Bug#5984).
3218
3219 * lisp.h (restore_point_unwind): Add prototype.
3220
3221 * fileio.c (restore_point_unwind): Remove static attribute.
3222
0235128c 32232010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3224
3225 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3226 new feature of libotf and m17n-flt.
0235128c
SM
3227 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3228 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3229 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3230 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3231 that OUT is NULL. Use OTF_drive_gsub_with_log and
3232 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3233 OTF_drive_gpos.
3234 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3235 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3236 Setup mflt_enable_new_feature and mflt_try_otf.
3237
4721152c
J
32382010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3239
3240 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3241
3242 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3243 box and toolbar (Bug #6139).
3244 (xg_create_tool_bar): Remove comment (Bug #6139).
3245 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3246 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3247
ee0a16cf
JB
32482010-05-08 Juanma Barranquero <lekktu@gmail.com>
3249
3250 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3251 Update dependencies.
3252
96d79611
EZ
32532010-05-08 Eli Zaretskii <eliz@gnu.org>
3254
3255 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3256 R2L lines.
3257
40c17879
GM
32582010-05-08 Glenn Morris <rgm@gnu.org>
3259
7b42b29f
GM
3260 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3261
40c17879
GM
3262 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3263 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3264 (termcapobj): Replace with TERMCAP_OBJ.
3265 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3266 (LIBES): Use LIBS_TERMCAP as a variable.
3267
3268 * s/freebsd.h (osreldate.h): No longer include, since this file
3269 does not use __FreeBSD_version any more.
3270
3271 * s/aix4-2.h (TERMINFO):
3272 * s/cygwin.h (TERMINFO):
3273 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3274 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3275 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3276 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3277 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3278 * s/irix6-5.h (TERMINFO):
3279 * s/netbsd.h (LIBS_TERMCAP):
3280 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3281 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3282 * s/usg5-4.h (TERMINFO):
3283 Move to configure.
3284
94b612ad
SM
32852010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3286
3287 * eval.c (unbind_to): Don't unbind a local binding into the global
3288 binding when the local binding disappeared. Inversely, don't unbind
3289 a global binding into a newly created local binding.
3290 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3291 can specify the frame to use, when applicable. Adjust callers.
3292
15e12598 32932010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3294 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3295
3296 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3297
f724825e
EZ
32982010-05-07 Eli Zaretskii <eliz@gnu.org>
3299
5cba3209
EZ
3300 * w32fns.c: Include w32.h.
3301 (Fw32_shell_execute): Decode the error message before passing it
3302 to `error'. (Bug#6126)
3303
d16bdfc3
EZ
3304 * msdos.c (dos_set_window_size):
3305 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3306 instead of `XSYMBOL (foo)->value'.
3307
59d93e87
EZ
33082010-05-07 Eli Zaretskii <eliz@gnu.org>
3309
9fdec8bc
EZ
3310 Fix the MS-DOS build, broken by autoconfiscation.
3311
3312 * Makefile.in: Don't use Make-style comments past the "start of
3313 cpp stuff" line.
3314 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3315
3316 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3317 edited directly by msdos/sed1v2.inp).
f724825e 3318
2f86b22b
GM
33192010-05-07 Glenn Morris <rgm@gnu.org>
3320
3321 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3322 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3323 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3324 move out of cpp section.
3325 * s/freebsd.h (LD_SWITCH_SYSTEM):
3326 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3327 * s/netbsd.h (LD_SWITCH_SYSTEM):
3328 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3329
49ebbd65
DN
33302010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3331
3332 Define LIB_STANDARD and START_FILES using autoconf.
3333 * s/usg5-4.h (LIB_STANDARD):
3334 * s/netbsd.h (START_FILES):
3335 * s/irix6-5.h (LIB_STANDARD):
3336 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3337 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3338 * s/freebsd.h (START_FILES):
3339 * s/darwin.h (START_FILES):
3340 * s/cygwin.h (START_FILES):
3341 * s/aix4-2.h (LIB_STANDARD):
3342 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3343 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3344 autoconf, not cpp.
3345
d43c06d6
DN
33462010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3347
28823648
DN
3348 Remove NEED_BSDTTY and NEED_UNISTD_H.
3349 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3350 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3351 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3352 <sys/ptyio.h> and <unistd.h>.
3353
aca00430
DN
3354 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3355
d43c06d6
DN
3356 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3357 * s/gnu.h (START_FILES): Remove empty definition.
3358
3e56b11d
JD
33592010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3360
3361 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3362
e3cf0cde
GM
33632010-05-06 Glenn Morris <rgm@gnu.org>
3364
3365 * Makefile.in (CPP, LN_S): Remove unused variables.
3366
774b9a60
SM
33672010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3368
3369 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3370
4ab92842
LM
33712010-05-05 Lawrence Mitchell <wence@gmx.li>
3372
3373 * m/sparc.h: Fix typo in earlier change.
3374
178f2507
SM
33752010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3376
3377 Misc tweaks.
3378 * eval.c (Fdefvaralias): Remove unintended nested if.
3379 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3380
80f00217 33812010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3382
3383 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3384
ef03a4e6
DN
33852010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3386
58eb6cf0
DN
3387 Remove BSD_PGRPS.
3388 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3389 * s/gnu-linux.h (BSD_PGRPS): Remove.
3390 * term.c (dissociate_if_controlling_tty):
3391 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3392 (init_sys_modes, reset_sys_modes):
3393 * emacs.c (main):
3394 * callproc.c (Fcall_process, child_setup): Remove code depending
3395 on BSD_PGRPS.
3396
ef03a4e6
DN
3397 Remove POSIX_SIGNALS.
3398 * s/usg5-4.h (POSIX_SIGNALS):
3399 * s/netbsd.h (POSIX_SIGNALS):
3400 * s/msdos.h (POSIX_SIGNALS):
3401 * s/ms-w32.h (POSIX_SIGNALS):
3402 * s/hpux11.h (POSIX_SIGNALS):
3403 * s/gnu.h (POSIX_SIGNALS):
3404 * s/gnu-linux.h (POSIX_SIGNALS):
3405 * s/freebsd.h (POSIX_SIGNALS):
3406 * s/darwin.h (POSIX_SIGNALS):
3407 * s/cygwin.h (POSIX_SIGNALS):
3408 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3409 * s/unixware.h:
3410 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3411 * process.c (create_process):
3412 * syssignal.h:
3413 * sysdep.c (wait_for_termination, init_signals):
3414 * process.c (create_process):
3415 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3416 remove all code that assumes the contrary.
3417
49628785
GM
34182010-05-04 Glenn Morris <rgm@gnu.org>
3419
27a2cdfc
GM
3420 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3421 variable.
3422 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3423 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3424 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3425 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3426 LD_SWITCH_SYSTEM_tmp.
3427 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3428 New variables, set by configure.
3429
eb21eab5
GM
3430 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3431 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3432 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3433 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3434 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3435
49628785
GM
3436 * s/aix4-2.h (C_SWITCH_SYSTEM):
3437 * m/alpha.h (C_SWITCH_MACHINE):
3438 Move to configure.in.
3439 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3440 New variables, set by configure.
3441 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3442 $c_switch_machine and $c_switch_system.
3443
7dff330b
DN
34442010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3445
3446 * s/hpux10-20.h (LIB_STANDARD): New definition.
3447 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3448 on it, not used anymore.
3449
53967e09
CY
34502010-05-03 Chong Yidong <cyd@stupidchicken.com>
3451
3452 * eval.c (internal_condition_case_n): Rename from
3453 internal_condition_case_2.
3454 (internal_condition_case_2): New function.
3455
3456 * xdisp.c (safe_call): Use internal_condition_case_n.
3457
3458 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3459 (internal_delete_file, Frename_file): Callers changed.
3460
3461 * buffer.c (Fkill_buffer):
3462 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3463
3464 * lisp.h: Update prototypes.
3465
3dee6fdb
GM
34662010-05-03 Glenn Morris <rgm@gnu.org>
3467
3468 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3469 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3470 (LIBXT): Set with configure, not cpp.
3471 (LIBX): Remove.
3472 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3473
a101e0fb
DN
34742010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3475
3476 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3477 The FreeBSD is not needed, the default works, Solaris version is
3478 not needed, and the remaining case is not supported by configure.
3479
f63d0028
JD
34802010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3481
3482 * xsmfns.c (CHDIR_OPT): New define.
3483 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3484 restarting emacs.
3485
3486 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3487 shut_down_emacs.
3488
3489 * emacs.c (USAGE1): Mention --chdir.
3490 (main): Handle --chdir.
3491 (standard_args): Add --chdir.
3492 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3493 #5552).
3494
e4814a9f
DN
34952010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3496
cd03c74a
DN
3497 Remove LD_SWITCH_MACHINE.
3498 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3499 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3500
c3a398a1
DN
3501 Clean up IRIX code.
3502 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3503 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3504
87e7285c
DN
3505 Clean up AIX code.
3506 * m/ibmrs6000.inp: Remove file, unused.
3507 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3508 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3509 definition ...
3510 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3511
80f00217
JB
3512 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3513 unused.
e4814a9f 3514
59ca28de
EZ
35152010-05-01 Eli Zaretskii <eliz@gnu.org>
3516
197daef4
EZ
3517 Emulate POSIX_SIGNALS on MS-Windows.
3518
3519 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3520 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3521
3522 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3523 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3524 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3525
80f00217
JB
3526 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3527 New stubs.
197daef4 3528
af7c7572
EZ
3529 Miscellaneous fixes of bidi display.
3530
59ca28de
EZ
3531 * xdisp.c (find_row_end): New function, refactored from display_line.
3532 (display_line): Use it.
017ea819
EZ
3533 (extend_face_to_end_of_line): In almost-filled rows, extend only
3534 if the row is R2L and not continued.
166e930d 3535 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3536 Preserve overlay and string info in row->end.
166e930d
EZ
3537 (insert_left_trunc_glyphs): Support addition of left truncation
3538 glyphs to R2L rows.
b47e0dcf 3539 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3540 glyph between adjacent windows. Fix a crash when a display string
3541 is continued to the next line. Don't return zero if cursor was
3542 found by `cursor' property of a display string.
b47e0dcf
EZ
3543 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3544 test for that explicitly.
59ca28de 3545
7acac9f4
GM
35462010-05-01 Glenn Morris <rgm@gnu.org>
3547
3548 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3549 for clarity.
3550 (OTHER_OBJ): Remove.
3551 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3552 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3553
45841e65
KK
35542010-05-01 Karel Klíč <kklic@redhat.com>
3555
3556 * fileio.c (Ffile_selinux_context): Context functions may return null.
3557
afc61943
DN
35582010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3559
80f00217 3560 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3561
5a1bb006
GM
35622010-04-30 Glenn Morris <rgm@gnu.org>
3563
3564 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3565 (OTHER_OBJ): Define as a separate variable, for clarity.
3566
210af043
J
35672010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3568
3569 * xsettings.c: include limits.h and update file comment.
3570
0a7df391
GM
35712010-04-30 Glenn Morris <rgm@gnu.org>
3572
d5096f16
GM
3573 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3574 Set with configure, not cpp.
3575 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3576
7eb1ac33
GM
3577 * Makefile.in (mallocobj): Remove.
3578 (otherobj): Simplify using @OTHER_OBJ@.
3579
517d086b
GM
3580 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3581 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3582 Don't bother making nsgui.h dependency platform-specific.
3583
0a7df391
GM
3584 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3585
d6d23852
SM
35862010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3587
d2630aef
SM
3588 * process.c (read_process_output, exec_sentinel): Don't burp if the
3589 sentinel/filter kills the current buffer (bug#6060).
3590
f9dddf52 3591 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3592 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3593 Remove unused var `args'.
3594 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3595 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3596 * doc.c (store_function_docstring): Use XSETCAR.
3597
f1e3642a
GM
35982010-04-28 Glenn Morris <rgm@gnu.org>
3599
faf535f8
GM
3600 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3601 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3602
c40f9449
GM
3603 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3604
658f86ca
GM
3605 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3606 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3607
bc0b5f61
GM
3608 * Makefile.in (FONT_OBJ): New, set by configure.
3609 (FONT_DRIVERS): Use $FONT_OBJ.
3610
294c50a0
GM
3611 * Makefile.in (LIBXMU): Set with configure, not cpp.
3612 * s/aix4-2.h (LIBXMU):
3613 * s/hpux10-20.h (LIBXMU):
3614 Remove definition, now set in configure.
3615
e6ec4e99
GM
3616 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3617
f1e3642a
GM
3618 * m/amdx86-64.h [i386]: Move this test to configure.in.
3619
c6ea2936
GM
36202010-04-27 Glenn Morris <rgm@gnu.org>
3621
8fdac2c3
GM
3622 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3623 * s/unixware.h (NEED_LIBW): Remove definition.
3624
986fb647
GM
3625 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3626 (TOOLKIT_LIBW): New, set by configure.
3627 (@X_TOOLKIT_TYPE@): No longer define it.
3628
c6ea2936
GM
3629 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3630 (MOTIF_LIBW): Set with configure, not cpp.
3631 * s/aix4-2.h (LIB_MOTIF):
3632 * s/gnu-linux.h (LIB_MOTIF):
3633 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3634
aaa36002
DN
36352010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3636
3637 Reduce CPP usage.
3638 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3639 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3640 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3641 definitions and undefs. Inline definitions in the only user.
3642 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3643
b678dd8b
GM
36442010-04-27 Glenn Morris <rgm@gnu.org>
3645
76cda504
GM
3646 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3647 since the defaults (set by the system file) are fine in most cases.
3648 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3649 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3650 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3651 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3652 Remove definitions, since they are set correctly in s/gnu-linux.h.
3653 * s/freebsd.h (START_FILES, LIB_STANDARD):
3654 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3655 * s/hpux10-20.h (START_FILES):
3656 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3657 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3658
b678dd8b
GM
3659 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3660 (MOTIF_LIBW): Use $LIBXP.
3661 (otherobj): Use $WIDGET_OBJ.
3662
9452ded1
DN
36632010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3664
7e10844c
DN
3665 * Makefile.in (LIBS_MACHINE): Remove, unused.
3666
9452ded1
DN
3667 Use autoconf instead of cpp for LIB_MATH.
3668 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3669 * s/cygwin.h (LIB_MATH): Likewise.
3670 * Makefile.in (LIB_MATH): Do not define with cpp.
3671 (LIBES): Use autoconf for LIB_MATH.
3672
fcebfc6a
KH
36732010-04-26 Kenichi Handa <handa@m17n.org>
3674
3675 * composite.c (Ffind_composition_internal): Fix the return value
3676 for an automatic composition.
3677
39e2ad1b
DN
36782010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3679
3680 Remove all NO_ARG_ARRAY uses.
3681 * fns.c (concat2, concat3, nconc2):
3682 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3683 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3684 * m/xtensa.h (NO_ARG_ARRAY):
3685 * m/template.h (NO_ARG_ARRAY):
3686 * m/sparc.h (NO_ARG_ARRAY):
3687 * m/sh3.h (NO_ARG_ARRAY):
3688 * m/mips.h (NO_ARG_ARRAY):
3689 * m/macppc.h (NO_ARG_ARRAY):
3690 * m/iris4d.h (NO_ARG_ARRAY):
3691 * m/intel386.h (NO_ARG_ARRAY):
3692 * m/ibms390x.h (NO_ARG_ARRAY):
3693 * m/ibms390.h (NO_ARG_ARRAY):
3694 * m/ibmrs6000.h (NO_ARG_ARRAY):
3695 * m/ia64.h (NO_ARG_ARRAY):
3696 * m/hp800.h (NO_ARG_ARRAY):
3697 * m/arm.h (NO_ARG_ARRAY):
3698 * m/amdx86-64.h (NO_ARG_ARRAY):
3699 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3700
adf4f59c
EZ
37012010-04-25 Eli Zaretskii <eliz@gnu.org>
3702
6bdf5d65
EZ
3703 * xdisp.c (display_line): Don't assume 2nd call to
3704 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3705 (iterate_out_of_display_property): New function, body from pop_it.
3706 (pop_it): Use it.
adf4f59c 3707
dfbbda83
GM
37082010-04-24 Glenn Morris <rgm@gnu.org>
3709
3710 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3711 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3712 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3713 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3714
2d4018aa
EZ
37152010-04-24 Eli Zaretskii <eliz@gnu.org>
3716
a49884a6
EZ
3717 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3718 use `get_next_display_element' and `set_iterator_to_next' to
3719 advance to the next character, when looking for the character that
3720 begins the next row.
3721
76db6fcc 3722 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3723 definition of "struct Lisp_Symbol".
3724
70eab5c1
GM
37252010-04-24 Glenn Morris <rgm@gnu.org>
3726
3727 * Makefile.in (CRT_DIR): New variable, set by configure.
3728 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3729 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3730
1ad4cc3d
DN
37312010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3732
e769f484
DN
3733 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3734
4196ff33
DN
3735 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3736
879b0ee4
DN
3737 Remove redundant flags.
3738 * s/freebsd.h (C_SWITCH_SYSTEM):
3739 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3740 * s/netbsd.h (C_SWITCH_SYSTEM):
3741 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3742 of these.
3743
03cbbcb8
DN
3744 Simplify m/intel386.h.
3745 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3746 user: ecrt0.c.
3747 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3748 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3749 the only user: s/unixware.h.
3750 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3751 from m/intel386.h.
3752 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3753 moved here from m/intel386.h.
3754
1ad4cc3d
DN
3755 * m/mips.h: Remove #if 0 code.
3756
8785b888
EZ
37572010-04-23 Eli Zaretskii <eliz@gnu.org>
3758
728588cc
EZ
3759 Fix display of composed characters from L2R scripts in bidi buffers.
3760 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3761 After advancing IT past the composition, resync the bidi iterator
3762 with IT's position. (Bug#5977)
3763
a63f80b4
DN
37642010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3765
3766 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3767 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3768
ff5dec5c
SM
37692010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3770
3771 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3772
8785b888
EZ
37732010-04-23 Eli Zaretskii <eliz@gnu.org>
3774
58ccf243 3775 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3776 * xdisp.c (pop_it): When the stack is popped after displaying
3777 from a string, bidi-iterate to exit from the text portion covered
3778 by the `display' property or overlay. (Bug#5988, bug#5920)
3779
feeb1604
DN
37802010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3781
8e324eb6
DN
3782 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3783 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3784
809fcaba
DN
3785 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3786 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3787
ed710380
DN
3788 Simplify STARTFILES definition.
3789 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3790 relying on Makefile.in to define it.
3791 * s/cygwin.h (START_FILES): Likewise.
3792 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3793
feeb1604
DN
3794 Clean up Solaris code.
3795 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3796 (LIB_MOTIF): Remove, configure takes care of this.
3797 (NOT_USING_MOTIF): Remove, unused.
3798 * xrdb.c: Remove #if 0-ed #include.
3799 (SYSV): Remove conditional for old SysV.
3800 * sysdep.c (closedir): Remove conditional code for Solaris,
3801 Solaris has closedir.
3802
a0d0b563
JD
38032010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3804
3805 * xsettings.c (read_and_apply_settings): Check if current_font is
3806 NULL before strcmp (Bug#6001).
3807
56bae7c7
DN
38082010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3809
3810 Clean up HP-UX files.
3811 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3812 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3813 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3814 * s/hpux10-20.h: ... to the only user, here.
3815
372b7a95
EZ
38162010-04-21 Eli Zaretskii <eliz@gnu.org>
3817
3818 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3819 use buffer-local values of paragraph-start and paragraph-separate.
3820 <paragraph_start_re, paragraph_separate_re>: Rename from
3821 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3822 (Bug#5992)
3823
f904c0f9
JD
38242010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3825
3826 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3827 current_tool_bar_style are new.
3828 (store_config_changed_event): Rename from store_font_changed_event.
3829 (XSETTINGS_TOOL_BAR_STYLE): New define.
3830 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3831 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3832 HAVE_XFT.
3833 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3834 store_config_changed_event.
f904c0f9
JD
3835 (parse_settings): Rename from parse_xft_settings. Read
3836 non-xft xsettings outside #ifdef HAVE_XFT.
3837 (read_settings): Renamed from read_xft_settings.
3838 (apply_xft_settings): Take current settings as parameter. Do not
3839 call read_(xft)_settings.
3840 (read_and_apply_settings): New function.
3841 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3842 read_and_apply_settings if there are settings to be read.
3843 (init_xsettings): Renamed from init_xfd_settings.
3844 Call read_and_apply_settings unconditionally.
3845 (xsettings_initialize): Call init_xsettings.
3846 (Ftool_bar_get_system_style): New function.
3847 (syms_of_xsettings): Define Qmonospace_font_name and
3848 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3849 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3850 dynamic-setting.
31a01b90 3851 Move misplaced HAVE_GCONF
f904c0f9
JD
3852
3853 * xsettings.h (Ftool_bar_get_system_style): Declare.
3854
3855 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3856 Qtext, Qboth, Qboth_horiz are new.
3857 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3858 Vtool_bar_style, tool_bar_max_label_size.
3859
3860 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3861
3862 * keyboard.c: QClabel is new.
3863 (parse_tool_bar_item): Take out QClabel from tool bar items.
3864 Try to construct a label if ther is no QClabel.
3865 (syms_of_keyboard): Intern :label as QClabel.
3866
3867 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3868 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3869 New.
3870
3871 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3872 dynamic-setting.el.
3873
3874 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3875 (xg_make_tool_item, xg_show_toolbar_item): New function.
3876 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3877 Call xg_make_tool_item to make a tool bar item.
3878 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3879
3880 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3881 into account for toolbars.
3882
c632dfda
JD
38832010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3884
3885 * data.c (make_blv): Declarations before code (Bug#5993).
3886
10efe302
GM
38872010-04-21 Glenn Morris <rgm@gnu.org>
3888
3889 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3890 Define using autoconf, not cpp.
3891 (LIBXSM): New variable, set by autoconf.
3892 (LIBXT): Use $LIBXSM.
3893
4285ac5a
DN
38942010-04-21 Dan Nicolaescu <local_user@dannlt>
3895
3ec759e7
DN
3896 Remove NOMULTIPLEJOBS, unused.
3897 * s/template.h (NOMULTIPLEJOBS):
3898 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3899
4285ac5a
DN
3900 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3901 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3902 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3903 detects -znocombreloc and passes it to the linker
3904 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3905
2807228d
GM
39062010-04-21 Glenn Morris <rgm@gnu.org>
3907
3908 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3909
574c05e2
KK
39102010-04-21 Karel Klíč <kklic@redhat.com>
3911
3912 * Makefile.in (LIBSELINUX_LIBS): New.
3913 (LIBES): Add $LIBSELINUX_LIBS.
3914 * eval.c, lisp.h (call7): New function.
3915 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3916 (Ffile_selinux_context, Fset_file_selinux_context):
3917 New functions.
3918 (Fcopy_file): New parameter preserve-selinux-context.
3919 (Frename_file): Preserve selinux context when renaming by copy-file.
3920
91eac4bb 39212010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3922 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3923
50426a04
JB
3924 Don't depend on cm.c or termcap.c on Windows, use stubs.
3925 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3926 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3927 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3928 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3929 (sys_tputs, sys_tgetstr): New stubs.
3930 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3931 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3932
938efb77
JB
39332010-04-20 Juanma Barranquero <lekktu@gmail.com>
3934
3935 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3936
b4bf28b7
SM
39372010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3938
8b1e1112
SM
3939 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3940 Just signal a warning rather than an error when inside a let.
3941 (Fmake_variable_frame_local): Add the same test.
3942
933ac235
SM
3943 * font.c (syms_of_font): Make the style table vars read-only.
3944
b4bf28b7
SM
3945 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3946 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3947
3948 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3949
93d68d0c
EZ
39502010-04-20 Eli Zaretskii <eliz@gnu.org>
3951
3952 Fix R2L paragraph display on TTY.
3953
3954 * xdisp.c (unproduce_glyphs): New function.
3955 (display_line): Use it when produced glyphs are discarded from R2L
3956 glyph rows.
3957 (append_composite_glyph): In R2L rows, prepend the glyph rather
3958 than appending it.
3959
3960 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3961 rather than append it. Set up the resolved_level and bidi_type
3962 attributes of the appended glyph.
283ccc18
EZ
3963 (produce_special_glyphs): Mirror the backslash continuation
3964 character in R2L lines.
93d68d0c 3965
283ccc18 3966 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3967
283ccc18
EZ
3968 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3969 append_stretch_glyph.
3970 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3971 off-by-one error in computing x at end of text in the row.
3972 (append_stretch_glyph): In reversed row, prepend the glyph rather
3973 than append it. Set resolved_level and bidi_type of the glyph.
3974 (extend_face_to_end_of_line): If the row is reversed, prepend a
3975 stretch glyph whose width is such that the rightmost glyph will be
3976 drawn at the right margin of the window. Fix off-by-one error on
3977 TTY frames in testing whether a line needs face extension. Fix
3978 face extension at ZV. If this is the last glyph row, use
3979 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3980 region face.
3981 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3982 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3983 row->continuation_lines_width.
283ccc18
EZ
3984 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3985 are at ZV. Fixes a crash when reseated to ZV by
3986 try_window_reusing_current_matrix.
45903529
EZ
3987 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3988 which happens with R2L glyph rows. Fixes a crash when inserting a
3989 character at end of an R2L line.
283ccc18
EZ
3990 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3991 treat them as having zero-width characters. Improve comments.
3992 Don't reverse pos_before and pos_after for reversed glyph rows.
3993 Set cursor.x to negative value when the cursor might be on the
3994 left fringe.
3995 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3996 left fringe, not the right one.
f951a506
EZ
3997 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3998 (erase_phys_cursor): For reversed cursor_row, support cursor on
3999 the left fringe.
4000
283ccc18
EZ
4001 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4002 of continuation indicators on the fringes.
4003 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4004 left fringe.
4005
f951a506
EZ
4006 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4007 draw cursor on the left fringe.
4008
4009 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4010 cursor on the left fringe.
4011
f951a506
EZ
4012 * dispnew.c (update_text_area): Handle reversed desired rows when
4013 the cursor is on the left fringe.
4014 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4015 below, not by 0, for when the cursor is on the left fringe.
4016
3bb49aaf
JD
40172010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4018
4019 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4020 widget is a scrollbar.
4021
c0be27fd
KH
40222010-04-20 Kenichi Handa <handa@m17n.org>
4023
4024 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4025 only when the arg CHARSET_LIST is nil.
4026
ce5b453a
SM
40272010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4028
4029 Make variable forwarding explicit rather the using special values.
4030 Basically, this makes the structure of buffer-local values and object
4031 forwarding explicit in the type of Lisp_Symbols rather than use
4032 special Lisp_Objects for that. This tends to lead to slightly more
4033 verbose code, but is more C-like, simpler, and makes it easier to make
4034 sure we handled all cases, among other things by letting the compiler
4035 help us check it.
4036 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4037 Removing forwarding objects.
4038 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4039 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4040 explicit rather than hiding them inside Lisp_Object "values".
4041 (XFWDTYPE): New macro.
4042 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4043 (XBUFFER_LOCAL_VALUE): Remove.
4044 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4045 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4046 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4047 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4048 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4049 Remove the Lisp_Misc_* header.
4050 (struct Lisp_Buffer_Local_Value): Redefine.
4051 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4052 (struct Lisp_Misc_Any): Add filler to get the right size.
4053 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4054 Lisp_Intfwd.
4055 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4056 (DEFVAR_KBOARD): Allocate a forwarding object.
4057 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4058 (let_shadows_global_binding_p): New function.
4059 (union Lisp_Val_Fwd): New type.
4060 (make_blv): New function.
4061 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4062 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4063 (swap_in_symval_forwarding, find_symbol_value, Fset)
4064 (let_shadows_buffer_binding_p, set_internal, default_value)
4065 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4066 (Fkill_local_variable, Fmake_variable_frame_local)
4067 (Flocal_variable_p, Flocal_variable_if_set_p)
4068 (Fvariable_binding_locus):
4069 * xdisp.c (select_frame_for_redisplay):
4070 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4071 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4072 * frame.c (store_frame_param):
4073 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4074 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4075 value structure.
4076 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4077 (clone_per_buffer_values): Only adjust markers into the current buffer.
4078 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4079 (Fbuffer_local_value, set_buffer_internal_1)
4080 (swap_out_buffer_local_variables):
4081 Adapt to the new symbol value structure.
4082 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4083 (defvar_per_buffer): Take a new arg for the fwd object.
4084 (buffer_lisp_local_variables): Return a proper alist (different fix
4085 for bug#4138).
4086 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4087 (Fgarbage_collect): Don't handle buffer_defaults specially.
4088 (mark_object): Handle new symbol value structure rather than the old
4089 special Lisp_Misc_* objects.
4090 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4091 * term.c (set_tty_color_mode):
4092 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4093 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4094 a buffer_local_flags.
4095 * print.c (print_object): Get rid of impossible forwarding objects.
4096
fd3998ff
EZ
40972010-04-19 Eli Zaretskii <eliz@gnu.org>
4098
4099 * bidi.c (bidi_get_type, bidi_get_category)
4100 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4101 (bidi_type_of_next_char, bidi_level_of_next_char):
4102 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4103
e42cd1a7
JB
41042010-04-19 Juanma Barranquero <lekktu@gmail.com>
4105
4106 * dired.c (Ffile_attributes): Fix typo in docstring.
4107
6e104790 41082010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4109
4110 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4111 NSInteger (Bug#5811).
4112
6e104790 41132010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4114
4115 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4116 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4117
6e104790 41182010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4119
4120 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4121
6e104790
SM
41222010-04-19 Chong Yidong <cyd@stupidchicken.com>
4123
4124 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4125 terminal frames (Bug#5837).
4126
37dcfea0
EZ
41272010-04-19 Eli Zaretskii <eliz@gnu.org>
4128
d1da276f
EZ
4129 * .gdbinit (xsubchartable): New command.
4130
37dcfea0
EZ
41312010-04-19 Eli Zaretskii <eliz@gnu.org>
4132
4133 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4134 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4135 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4136 and
4137 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4138
e9515805
SM
41392010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4140
4141 * alloc.c (Fpurecopy): Hash-cons if requested.
4142 (syms_of_alloc): Update purify-flag docstring.
4143
22aa44a8
JD
41442010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4145
4146 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4147 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4148
ebb5722e
EZ
41492010-04-17 Eli Zaretskii <eliz@gnu.org>
4150
4151 Fix a crash when an NSM character is inserted at BEGV.
4152
4153 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4154 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4155 NEUTRAL_B or UNKNOWN_BT.
4156
0f4442ef
EZ
41572010-04-16 Eli Zaretskii <eliz@gnu.org>
4158
4159 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4160 other rows with cursor unless they are different from this row and
4161 this row is part of a continued line. (Bug#5943)
4162
7d4e45f8
DN
41632010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4164
4165 * s/freebsd.h: Restore osreldate.h include.
4166 Suggested by Naohiro Aota.
4167
5ba5ec85
J
41682010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4169
4170 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4171
20af301d
CY
41722010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4173
4174 * s/cygwin.h: Avoid linking against static libgcc.
4175
a4b000fb
JL
41762010-04-15 Juri Linkov <juri@jurta.org>
4177
4178 * window.c: Add Qscroll_command.
4179 Remove Vscroll_preserve_screen_position_commands.
4180 (window_scroll_pixel_based, window_scroll_line_based): Check the
4181 `scroll-command' property on the last command instead of searching
4182 the last command in Vscroll_preserve_screen_position_commands.
4183 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4184 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4185 (scroll-preserve-screen-position): Doc fix.
4186 (Vscroll_preserve_screen_position_commands): Remove variable.
4187
bc319ba4
DN
41882010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4189
6bb24457
DN
4190 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4191
19d4c244
DN
41922010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4193
4194 Reduce cpp use in Makefile.in.
4195 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4196 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4197 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4198 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4199 (CRT0_COMPILE): Remove, inline it in the only user.
4200
32129746
JL
42012010-04-14 Juri Linkov <juri@jurta.org>
4202
4203 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4204 `scroll-up-command' and `M-v' from `scroll-down' to
4205 `scroll-down-command'.
4206
9013a7f8
JL
42072010-04-14 Juri Linkov <juri@jurta.org>
4208
4209 * window.c (Vscroll_preserve_screen_position_commands): New variable
4210 with the default value as the list of Qscroll_down and Qscroll_up.
4211 (window_scroll_pixel_based, window_scroll_line_based): Search the
4212 last command in the list Vscroll_preserve_screen_position_commands
4213 instead of comparing with Qscroll_up and Qscroll_down.
4214
4bef8d26
JD
42152010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4216
92848133
JD
4217 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4218 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4219 does that.
4220
4bef8d26
JD
4221 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4222 to zero.
4223
58b963f7
SM
42242010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4225
84164a0d
SM
4226 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4227
2b0a91e7
SM
4228 Try to solve the problem of spurious EOF chars in long lines of text
4229 sent to interactive subprocesses.
4230 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4231 (system_process_attributes): Remove unused var `ttotal'.
4232 * process.c (send_process): Don't bother breaking long line with EOF
4233 chars when talking to ttys any more.
4234 (wait_reading_process_output): Output a warning when called in such
4235 a way that it could block without being interruptible.
4236
58b963f7
SM
4237 Try to detect file modification within the same second.
4238 * buffer.h (struct buffer): New field modtime_size.
4239 * buffer.c (reset_buffer): Initialize it.
4240 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4241 (Fverify_visited_file_modtime): Check it.
4242 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4243 (Fset_visited_file_modtime): Set (or clear) it.
4244
01f5787b
SM
42452010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4246
4247 * process.c (status_notify): Remove unused var `ro'.
4248
83725342
JD
42492010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4250
4251 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4252 more than one visual (Bug#5938).
4253
b9465836
DN
42542010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4255
50426a04
JB
4256 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4257 Undefine.
b9465836 4258
8d9c8ece
DN
42592010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4260
b1f52161
DN
4261 Remove C_SWITCH_SYSTEM_TEMACS.
4262 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4263 (malloc, realloc, free): Use emacs, not temacs for conditional
4264 definition.
4265
4266 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4267 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4268
8d9c8ece
DN
4269 Use autoconf, not cpp for some variables.
4270 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4271 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4272 (ALL_CFLAGS): Use them as make variables.
4273 (really-lwlib, really-oldXMenu): Do not pass them.
4274
1ecb2d3f
JD
42752010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4276
4277 * xmenu.c (apply_systemfont_to_dialog): New.
4278 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4279
3a4fa2f2
SM
42802010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4281
97e53006
SM
4282 * process.c (exec_sentinel): Preserve current-buffer.
4283
3a4fa2f2
SM
4284 * process.c (read_process_output): Move the save-current-buffer to
4285 apply to both the filter and the non-filter branches.
4286
88df7221
DN
42872010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4288
4289 * s/msdos.h (UNEXEC): New definition.
4290
5634ff85
YM
42912010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4292
6eff5c3d
YM
4293 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4294 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4295
4296 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4297 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4298 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4299 TRY_WINDOW_CHECK_MARGINS.
4300
4301 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4302 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4303 width only when it is for padding.
5634ff85 4304
b13aef54
J
43052010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4306
4307 * xfns.c (Fx_show_tip): Call try_window in a loop until
4308 fonts_changed_p is zero (Bug#2423).
4309
21d28484
EZ
43102010-04-08 Eli Zaretskii <eliz@gnu.org>
4311
4312 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4313 the end of TEXT_AREA. (Bug#5856)
4314
0269ef77
JD
43152010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4316
4317 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4318 HAVE_GCONF.
4319
5930fe97
EZ
43202010-04-08 Eli Zaretskii <eliz@gnu.org>
4321
4322 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4323 prev.orig_type, for resolving type of NSM. (Bug#5858)
4324
99852628
JD
43252010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4326
4327 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4328 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4329 in current_font.
4330 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4331 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4332 New functions.
4333 (syms_of_xsettings): Initialize current_font.
4334 defsubr Sfont_get_system_normal_font.
99852628 4335
686b968e
JB
4336 * xsettings.h (Ffont_get_system_normal_font)
4337 (xsettings_get_system_normal_font): Declare.
99852628
JD
4338
4339 * xfns.c (extern xlwmenu_default_font): Remove.
4340 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4341 to xlwmenu.c.
4342
4343 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4344 menu items in UTF-8.
4345
4346 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4347 (apply_systemfont_to_menu): New function.
4348 (set_frame_menubar, create_and_show_popup_menu): Call
4349 apply_systemfont_to_menu.
4350
7fc874c4
J
43512010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4352
4353 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4354 FRAME_LINE_TO_PIXEL_Y.
4355
4356 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4357 pixelwidth/height.
4358
863bf481
DN
43592010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4360
5e5a3b92
DN
4361 Simplify code for HP machines.
4362 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4363 for GNU_LINUX, not needed.
4364 (UNEXEC, NEED_BSDTTY): Move definitions...
4365 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4366
863bf481
DN
4367 * m/iris4d.h (UNEXEC): Move definition ...
4368 * s/irix6-5.h (UNEXEC): ... here.
4369
3e6bec3b
JD
43702010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4371
4372 * xfns.c (set_machine_and_pid_properties): New function.
4373 (Fx_create_frame): Call set_machine_and_pid_properties.
4374
2912322b
SM
43752010-04-03 Eli Zaretskii <eliz@gnu.org>
4376
1502b819
EZ
4377 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4378 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4379 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4380
2912322b
SM
4381 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4382 in this function. (Bug#5703)
4383
43842010-04-03 Chong Yidong <cyd@stupidchicken.com>
4385
4386 * nsterm.h: Fix last change.
4387
c435b432
DN
43882010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4389
a568f507
DN
4390 * m/intel386.h (NO_REMAP): Move definition ...
4391 * s/msdos.h (NO_REMAP): ... here.
4392
4cd9f6c2
DN
4393 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4394
c435b432
DN
4395 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4396 used on those platforms.
4397
42a2c622
DN
43982010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4399
4400 Remove extern errno declarations.
4401 * xterm.c:
4402 * xrdb.c:
4403 * w32term.c:
4404 * unexec.c:
4405 * unexaix.c:
4406 * sysdep.c:
4407 * process.c:
4408 * lread.c:
4409 * keyboard.c:
4410 * floatfns.c:
4411 * filelock.c:
4412 * fileio.c:
4413 * emacs.c (main):
4414 * ecrt0.c:
4415 * dispnew.c:
4416 * callproc.c:
4417 * buffer.c: Remove errno extern declarations.
4418 * s/netbsd.h (NEED_ERRNO): Remove.
4419
8224f93d
DN
44202010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4421
4422 Remove all uses of LIBX11_SYSTEM.
4423 * Makefile.in (LIBX11_SYSTEM): Remove.
4424 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4425 instead.
4426
814062c7
EZ
44272010-04-01 Eli Zaretskii <eliz@gnu.org>
4428
ed68db4d
EZ
4429 Remove support for DJGPP v1.x (bug#5813).
4430
4431 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4432 * s/msdos.h:
4433 * unexec.c (make_hdr, copy_text_and_data):
4434 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4435 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4436 (IT_set_terminal_modes, __write, _rename, gethostname)
4437 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4438 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4439 the value of __DJGPP__.
ed68db4d
EZ
4440 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4441 compatibility code.
8224f93d
DN
4442 * lread.c:
4443 * gmalloc.c (memalign):
4444 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4445 * emacs.c (main):
4446 * dosfns.c (init_dosfns):
ed68db4d
EZ
4447 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4448
52f4d8d5
EZ
44492010-04-01 Eli Zaretskii <eliz@gnu.org>
4450
814062c7
EZ
4451 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4452 string with `cursor' property comes from an `after-string'
4453 overlay. (Bug#5816)
4454
0dc2e11d
GM
44552010-04-01 Glenn Morris <rgm@gnu.org>
4456
4457 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4458 Define as Makefile variables.
4459 (LIBX): Use above variables rather than directly using autoconf.
4460
1d29df59
DN
44612010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4462
4463 Clean up BSD_SYSTEM use.
4464 * xterm.c:
4465 * process.c:
4466 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4467 for including <sys/ioctl.h>.
4468 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4469 code is only used for MSDOS.
4470
1546c559
JL
44712010-03-31 Juri Linkov <juri@jurta.org>
4472
4473 * image.c: Add `Qextension_data'.
4474 (syms_of_image): Initialize and staticpro `Qextension_data'.
4475 (Fimage_metadata): Rename from `Fimage_extension_data'.
4476 (gif_load): Put GIF extension data to the property
4477 `Qextension_data'.
4478
6521c534
CY
44792010-03-31 Chong Yidong <cyd@stupidchicken.com>
4480
4481 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4482 * nsterm.h: Fix prototype.
4483
52c30783
EZ
44842010-03-31 Eli Zaretskii <eliz@gnu.org>
4485
4486 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4487 trailing whitespace in right-to-left rows.
4488
855a0da7
SM
44892010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4490
4491 Get rid of the direct_output optimizations.
4492 * keyboard.c (nonundocount): Remove extern declaration.
4493 (command_loop_1): Remove brittle optimisation for cheap and
4494 common operations.
4495 * xdisp.c (redisplay_internal): Don't bother checking
4496 redisplay_performed_directly_p any more.
4497 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4498 any more.
4499 * dispnew.c (redisplay_performed_directly_p)
4500 (direct_output_for_insert, direct_output_forward_char):
4501 * dispextern.h (redisplay_performed_directly_p)
4502 (direct_output_for_insert, direct_output_forward_char): Remove.
4503 * cmds.c (nonundocount): Make it static.
4504
85738751 45052010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4506
4507 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4508
85738751 45092010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4510
4511 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4512 invisible (Bug#5766).
4513
85738751 45142010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4515
855a0da7
SM
4516 * xdisp.c (x_consider_frame_title, update_window_cursor):
4517 Remove HAVE_NS conditionals.
194d44e7 4518 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4519
4520 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4521 filename for the title.
4522 (ns_set_doc_edited): Do nothing if the selected window is a
4523 minibuffer window.
4524
4525 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4526 ns_set_doc_edited.
4527
4528 * nsterm.m: Remove unneeded prototype.
4529
85738751 45302010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4531
4532 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4533 in the DOC file. (Bug#5336)
4534
85738751 45352010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4536
4537 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4538
75d1428c
SM
45392010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4540
4541 * window.c (keys_of_window): Remove redundant/overridden bindings.
4542
82043cfb
EZ
45432010-03-30 Eli Zaretskii <eliz@gnu.org>
4544
4545 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4546 Restore original behavior when the iterator is not bidi_p.
4547
b5dd0ae7
DN
45482010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4549
4550 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4551
bd924a5d
EZ
45522010-03-30 Eli Zaretskii <eliz@gnu.org>
4553
4554 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4555 are outside the range of cached character positions.
4556
3580374b
JB
45572010-03-30 Juanma Barranquero <lekktu@gmail.com>
4558
4559 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4560
a7b02820
EZ
45612010-03-30 Eli Zaretskii <eliz@gnu.org>
4562
4563 Initial support for bidirectional editing.
4564
4565 * Makefile.in (obj): Include bidi.o.
4566 (bidi.o): New target.
4567
4568 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4569 ($(BLD)/bidi.$(O)): New target.
4570
4571 * bidi.c: New file.
4572
4573 * buffer.h (struct buffer): New members bidi_display_reordering
4574 and bidi_paragraph_direction.
4575
4576 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4577 and bidi_paragraph_direction.
4578 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4579 and bidi-paragraph-direction.
4580 (Fbuffer_swap_text): Swap the values of
4581 bidi_display_reordering and bidi_paragraph_direction.
4582
4583 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4584 (bidi_type_t, bidi_dir_t): New types.
4585 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4586 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4587 prev_stop, base_level_stop, and eol_pos.
4588 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4589 (IT_STACK_SIZE): Enlarge to 5.
4590 (struct glyph_row): New member reversed_p.
4591 <string_buffer_position>: Update prototype.
4592 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4593 glyph_row if bidi_it.paragraph_dir == R2L.
4594 (struct glyph): New members resolved_level and bidi_type.
4595
4596 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4597 processing or buffer's direction is right-to-left.
4598 (prepare_desired_row): Preserve the reversed_p flag.
4599 (row_equal_p): Compare the reversed_p attributes as well.
4600
4601 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4602 bidi_init_it and set it->paragraph_embedding from the current
4603 buffer's value of bidi_paragraph_direction.
4604 (reseat_1): Initialize bidi_it.first_elt.
4605 (set_iterator_to_next, next_element_from_buffer): Use the value of
4606 paragraph_embedding to determine the paragraph direction.
4607 (set_iterator_to_next): Under bidi reordering, call
4608 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4609 new_paragraph flag is set in the bidi iterator.
4610 (next_element_from_buffer): If bidi_it.first_elt is set,
4611 initialize paragraph direction and find the first character to
4612 display in the visual order. If reseated to a middle of a line,
4613 prime the bidi iterator starting at the line's beginning. Handle
4614 the situation where we overstepped stop_charpos due to
4615 non-linearity of the bidi iteration. Likewise for when we back up
4616 beyond the previous stop_charpos. When moving across stop_charpos,
4617 record it in prev_stop.
4618 (display_line): Set row->end and it->start for the next row to the
4619 next character in logical order. Always extend reversed_p rows to
4620 the end of line, even if they end at ZV. Copy the reversed_p flag
4621 to the next glyph row. Keep calling set_cursor_from_row for
4622 bidi-reordered rows even if we already have a possible candidate
4623 for cursor position. Set row_end after all the row's glyphs have
4624 been produced, by looping over the glyphs. Record the position
4625 after EOL in it->eol_pos, and use it to set end_pos of the last
4626 row produced for a continued line.
4627 <Qright_to_left, Qleft_to_right>: New variables.
4628 (syms_of_xdisp): Initialize and staticpro them.
4629 (string_buffer_position_lim): New function.
4630 (string_buffer_position): Most of code moved to
4631 string_buffer_position_lim. Last argument and return value are
4632 now EMACS_INT; all callers changed.
4633 (set_cursor_from_row): Rewritten to support bidirectional text and
4634 reversed glyph rows.
4635 (text_outside_line_unchanged_p, try_window_id): Disable
4636 optimizations if we are reordering bidirectional text and the
4637 paragraph direction can be affected by the change.
4638 (append_glyph, append_composite_glyph)
4639 (produce_image_glyph, append_stretch_glyph): Set the
4640 resolved_level and bidi_type members of each glyph.
4641 (append_glyph): If the glyph row is reversed, prepend the glyph
4642 rather than appending it.
4643 (handle_stop_backwards): New function.
4644 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4645 (reseat): call handle_stop_backwards to recompute prev_stop and
4646 base_level_stop for the new position.
4647 (handle_invisible_prop): Under bidi iteration, skip invisible text
4648 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4649 paragraph direction. Update IT->prev_stop after skipping
4650 invisible text.
4651 (move_it_in_display_line_to): New variables prev_method
4652 and prev_pos. Compare for strict equality in
4653 BUFFER_POS_REACHED_P.
4654 (try_cursor_movement): Examine all the candidate rows that occlude
4655 point, to return the best match. If rows are bidi-reordered
4656 and point moved backwards, back up to the row that is not a
4657 continuation line, and start looking for a suitable row from
4658 there.
4659
4660 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4661 rather than appending, if the glyph_row's reversed_p flag is set.
4662 Set the resolved_level and bidi_type members of each glyph.
4663
4664 * .gdbinit (pbiditype): New command.
4665 (pgx): Use it to display bidi level and type of the glyph.
4666 (pitx): Display some bidi information about the iterator.
4667 (prowlims, pmtxrows): New commands.
4668
32a8894e
DN
46692010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4670
4671 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4672 * s/usg5-4.h (LIBS_DEBUG):
4673 * s/irix6-5.h (C_DEBUG_SWITCH):
4674 * s/gnu-linux.h (LIBS_DEBUG):
4675 * s/darwin.h (LIBS_DEBUG):
4676 * s/bsd-common.h (LIBS_DEBUG):
4677 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4678 * m/iris4d.h (LIBS_DEBUG):
4679 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4680
4681 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4682 (LIBS_DEBUG): Remove definition.
4683
649dbf36
CY
46842010-03-27 Chong Yidong <cyd@stupidchicken.com>
4685
4686 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4687 Windows.
4688
cad4261f
YM
46892010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4690
4691 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4692 `connect' (Bug#5723).
4693
cd591dbc
HE
46942010-03-25 Helmut Eller <eller.helmut@gmail.com>
4695
4696 * process.c (Fmake_network_process): Call `select' for interrupted
4697 `connect' rather than creating new socket (Bug#5173).
4698
e867cb5d 46992010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4700
4701 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4702
4703 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4704
4705 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4706
e867cb5d 47072010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4708
4709 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4710 XLoadQueryFont.
4711
e867cb5d 47122010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4713
4714 * coding.c (decode_coding_ccl): Fix previous change for the
4715 multibyte case.
fb608df3
KH
4716 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4717 case that the output buffer is fullfilled.
4718 (encode_coding): Setup ccl program here.
fbdc1721 4719
5845f0ed
DN
47202010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4721
814fb708
DN
4722 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4723
5845f0ed
DN
4724 Simplify LIBS_MACHINE definitions.
4725 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4726 * m/iris4d.h (LIBS_MACHINE): Likewise.
4727 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4728 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4729 * s/netbsd.h: Remove commented out code.
5845f0ed 4730
b7064064
DN
47312010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4732
df7734b2
DN
4733 Remove dead code dealing with POSIX_SIGNALS.
4734 * atimer.c (set_alarm): Remove dead code, all USG systems define
4735 POSIX_SIGNALS.
4736 * data.c (arith_error): Likewise.
4737 * keyboard.c (input_available_signal, handle_user_signal)
4738 (interrupt_signal): Likewise.
4739 * process.c (sigchld_handler): Likewise.
4740 (create_process): Remove if 0 code. Remove HPUX conditional when
4741 !defined (POSIX_SIGNALS), it cannot be true.
4742 * syssignal.h: Remove USG5_4 and USG conditionals when
4743 !POSIX_SIGNALS, they cannot be true.
4744
b7064064
DN
4745 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4746 NO_SOCK_SIGIO, not used anymore.
4747
55da5ee3
DN
47482010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4749
0be96e3a
DN
4750 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4751 support vax on BSDs.
4752
55da5ee3
DN
4753 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4754 * s/aix4-2.h (ORDINARY_LINK): ... here.
4755
c0282183
AS
47562010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4757
82c3d67a
AS
4758 * Makefile.in (abs_builddir): Define.
4759 (bootstrap_exe): Use it.
4760 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4761
3613edce
SM
47622010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4763
4764 * Makefile.in (bootstrap_exe): Use an absolute name.
4765
7f110ddc
DN
47662010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4767
22e87574
DN
4768 Remove support for old GNU/Linux using libc version 5.
4769 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4770 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4771
05a670e6
DN
4772 Consolidate redundant definitions in s/bsd-common.h.
4773 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4774 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4775 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4776 doing it in all files that include this one.
4777 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4778 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4779 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4780 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4781 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4782 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4783 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4784 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4785 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4786
2968f561
DN
4787 Consolidate redundant definitions.
4788 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4789 it's undefined in all files that include this one.
4790 (POSIX_SIGNALS): Define here instead of doing it in all files that
4791 include this one.
4792 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4793 (POSIX_SIGNALS): Do not define.
4794 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4795 (POSIX_SIGNALS): Do not define.
4796 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4797 (POSIX_SIGNALS): Do not define.
4798
15d25dc0
DN
4799 Remove support for old UNIX System V systems.
4800 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4801 * s/usg-5-4-2.h: Remove.
4802
07e339e4
DN
4803 Remove support for Solaris on PPC and for old versions.
4804 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4805 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4806 that cancel each other.
4807 * s/sol2-3.h:
4808 * s/sol2-4.h:
4809 * s/sol2-5.h: Remove.
4810 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4811 (NO_REMAP): Remove, unused.
4812 (UNEXEC): Move definition ...
4813 * s/aix4-2.h (UNEXEC): ... here.
4814
7f110ddc
DN
4815 * s/openbsd.h: Remove support for non-ELF and for systems that do
4816 not support shared libraries.
4817 * s/netbsd.h:
4818 * s/freebsd.h: Likewise.
4819
605f35cd
DN
48202010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4821
4822 Remove non-working support for lynxos 3.0.
4823 * s/lynxos.h: Remove file.
4824
4825 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4826 COFF_BSD_SYMBOLS, nothing defines it anymore.
4827
aed71cf4
DN
48282010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4829
4830 Remove obsolete uses of HAVE_SHM.
4831 * emacs.c (standard_args):
4832 (Fdump_emacs):
4833 (syms_of_emacs): Remove code depending on HAVE_SHM.
4834
4835 * alloc.c: Remove HAVE_SHM dependent definition.
4836
4837 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4838
aded53ff
GM
48392010-03-18 Glenn Morris <rgm@gnu.org>
4840
17284745
GM
4841 * emacs.c (USAGE4): Hard-code bug address.
4842 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4843 (bug_reporting_address): Remove.
4844 (main): Don't call bug_reporting_address.
4845
aded53ff
GM
4846 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4847 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4848
303500aa
CY
48492010-03-15 Chong Yidong <cyd@stupidchicken.com>
4850
4851 * xfns.c (Fx_create_frame):
4852 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4853 on left.
4854
cef3058f
CY
48552010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4856
4857 * editfns.c (Fformat): Account for string precision when computing
4858 field width (Bug#5710).
4859
a647d59d
CY
48602010-03-12 Chong Yidong <cyd@stupidchicken.com>
4861
4fa42018
CY
4862 * xfns.c (Fx_create_frame): Set default to Qright.
4863
a647d59d
CY
4864 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4865 all window systems.
4866
6da23aaa
EZ
48672010-03-12 Eli Zaretskii <eliz@gnu.org>
4868
a96f6398 4869 These changes remove termcap.c from the build on Posix platforms.
83d02def 4870 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4871 (MSDOS_OBJ): ...to here.
4872 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4873 now identical to when LIBS_TERMCAP is defined.
4874
4875 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4876
4877 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4878
a96f6398 4879 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4880
288f9fc0
CY
48812010-03-10 Chong Yidong <cyd@stupidchicken.com>
4882
4883 * Branch for 23.2.
4884
d48cd3f4
SM
48852010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4886
4887 Cleanup setup of gl_state in various parts of the code.
4888 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4889 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4890 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4891 (skip_chars):
4892 * regex.c (regex_compile): Use it.
4893 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4894 it's now set in regex_compile when/if we need it.
4895
618db430
SM
48962010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4897
c0335e02
SM
4898 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4899 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4900 (QUIT): Use it to consolidate code and remove redundancy.
4901 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4902
254c06a8
SM
4903 * regex.c (regex_compile): Setup gl_state as well.
4904
618db430
SM
4905 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4906 (in_classes): Use CONSP before XCAR/XCDR.
4907
233f0c9f
CY
49082010-03-03 Chong Yidong <cyd@stupidchicken.com>
4909
4910 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4911 definitions, so that keyboard macros are correctly handled
4912 (Bug#5481).
4913
75f80e63
EZ
49142010-03-02 Eli Zaretskii <eliz@gnu.org>
4915
4916 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4917 text that could be relocated inside the call to emacs_mule_char.
4918 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4919 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4920
dcfb9bc4
KH
49212010-03-02 Kenichi Handa <handa@m17n.org>
4922
fc9a17bc
KH
4923 * character.c (parse_str_as_multibyte): Fix handling of the
4924 multibyte form of raw-bytes.
4925 (str_as_multibyte): Likewise.
4926
dcfb9bc4
KH
4927 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4928 form of raw-bytes.
4929
412c01b6
CY
49302010-02-28 Chong Yidong <cyd@stupidchicken.com>
4931
4932 * charset.c (load_charset_map_from_file)
4933 (load_charset_map_from_vector): Zero out allocated
4934 charset_map_entries before using them.
4935
df7e1ea0
AS
49362010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4937
4938 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4939
fe69a722
CY
49402010-02-27 Chong Yidong <cyd@stupidchicken.com>
4941
4ed28cf4
CY
4942 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4943 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4944
7379cfce
KH
49452010-02-26 Kenichi Handa <handa@m17n.org>
4946
f88cc4d6
KH
4947 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4948
7379cfce
KH
4949 * xdisp.c (reseat_to_string): Fix previous change.
4950
cf2fdcfb
CY
49512010-02-26 David Reitter <david.reitter@gmail.com>
4952
4953 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4954 Lisp_Object (Bug#4736).
4955
cc6c7c75
KH
49562010-02-25 Kenichi Handa <handa@m17n.org>
4957
4958 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4959
32e737d7
JD
49602010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4961
4962 * xterm.c (XTflash): Move declarations before statements.
4963
4964 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4965 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4966 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4967 (xg_create_tool_bar): Remove unused variables.
4968 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4969 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4970
676cae9f
CY
49712010-02-21 Chong Yidong <cyd@stupidchicken.com>
4972
4973 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4974
886cc2b8
SM
49752010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4976
4977 * term.c (fatal): Add a final \n if needed (bug#5596).
4978
ddb2d8e2
CY
49792010-02-18 Chong Yidong <cyd@stupidchicken.com>
4980
4981 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4982
2a4f8d3d
GM
49832010-02-18 Glenn Morris <rgm@gnu.org>
4984
4985 * callint.c (Finteractive): Doc fix.
4986
ebaf11b6
KH
49872010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4988
886cc2b8
SM
4989 * coding.c (record_conversion_result):
4990 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4991 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4992 memory allocation error.
4993
d0396581
KH
49942010-02-17 Kenichi Handa <handa@m17n.org>
4995
886cc2b8
SM
4996 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4997 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4998 (decode_coding): Setup ccl program here. Keep looping when the
4999 decoder stopped because the output buffer is
5000 fullfilled (bug#5534).
5001
5002 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5003
98599f74
JD
50042010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5005
471e4f04 5006 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5007 bug #5571.
886cc2b8 5008 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5009 overdrawn.
98599f74 5010
182659ae
JD
50112010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5012
5013 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5014 doing_interact here.
5015 (ice_connection_closed): New function.
5016 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5017 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5018 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5019 returns I/O error.
5020 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5021 bug #5512.
5022
9be32c4e 50232010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5024
5025 * nsfont.m (nsfont_open): The system's value for the font descent
5026 is negative, so round it down to avoid clipping.
5027
a2f3eb19
CY
50282010-02-06 Chong Yidong <cyd@stupidchicken.com>
5029
5030 * charset.c (load_charset_map_from_file)
5031 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5032 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5033
3088147c
CY
50342010-02-05 Chong Yidong <cyd@stupidchicken.com>
5035
5036 * charset.c (load_charset_map_from_file): Allocate large
5037 charset_map_entries structure on the heap rather than the stack.
5038 (Bug#5526).
5039
b57d9029
KH
50402010-01-31 Kenichi Handa <handa@m17n.org>
5041
5042 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5043 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5044
c67d885b
CY
50452010-01-31 Chong Yidong <cyd@stupidchicken.com>
5046
5047 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5048 <deactivated@gmail.com> (Bug#3605).
5049
8fab2362
CY
50502010-01-31 David De La Harpe Golden <david@harpegolden.net>
5051
5052 * fileio.c (Frename_file): Correctly rename symlinks to
5053 directories (Bug#5496).
5054
cb2a62f2
CY
50552010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5056
5057 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5058
944c7a26
AS
50592010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5060
5061 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5062
c024ac08
CY
50632010-01-29 Chong Yidong <cyd@stupidchicken.com>
5064
5065 * frame.c (DEFAULT_ROWS): Change default to 35.
5066
5067 * xfns.c (x_default_font_parameter): Change default XFT font to
5068 monospace-10 (Bug#3643).
5069
af93af83
EZ
50702010-01-29 Eli Zaretskii <eliz@gnu.org>
5071
5072 * w32inevt.c (key_event): Remove unnecessary comparison of
5073 event->uChar.AsciiChar with 128.
5074
ca0eb708
CY
50752010-01-28 Chong Yidong <cyd@stupidchicken.com>
5076
b242dbfc
CY
5077 * fileio.c (Frename_file): Fix last change (Bug#5487).
5078
ca0eb708
CY
5079 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5080
5081 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5082
45d45af5
JD
50832010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5084
5085 * xfns.c (Fx_create_frame): Remove window size matching code from
5086 2010-01-15.
a73f9c9d 5087 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5088
7e233730
JR
50892010-01-27 Jason Rumney <jasonr@gnu.org>
5090
5091 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5092 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5093
86e893e3
KH
50942010-01-27 Kenichi Handa <handa@m17n.org>
5095
5096 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5097 pattern string (Bug#4209).
86e893e3 5098
8719abec
CY
50992010-01-27 David De La Harpe Golden <david@harpegolden.net>
5100
5101 * fileio.c (Frename_file): Call copy-directory and
5102 delete-directory for directories, in order to handle cross-device
5103 renaming (Bug#3353).
5104
844794c8
JD
51052010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5106
aa3e13b5 5107 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5108 sizes 24 and 10. Bug #3643.
844794c8 5109
bd4b5750
SM
51102010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5111
8dc1adf6 5112 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5113 * keymap.c (shadow_lookup): Add `remap' arg.
5114 (describe_map, describe_vector): Update calls to shadow_lookup.
5115 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5116 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5117 perform remapping during shadow_lookup check of remapped_sequences.
5118
285d07e2
CY
51192010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5120
5121 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5122 png_check_sig, which has been removed in libpng 1.4.
5123
c6d09b8d
CY
51242010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5125
5126 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5127 lacks this header file).
5128
3d782998
YM
51292010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5130
5131 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5132 as in Emacs 22.
5133
2aff7c53
YM
51342010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5135
5136 * lisp.h (make_pure_string): String pointer arg now points to const.
5137
5138 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5139 args now point to const.
5140
74327f7a
EZ
51412010-01-22 Eli Zaretskii <eliz@gnu.org>
5142
5143 * lread.c (Fload): Don't treat files without .elc extension as
5144 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5145 them. (bug#5303)
5146
4d1e6632
KH
51472010-01-20 Kenichi Handa <handa@m17n.org>
5148
5149 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5150 treat the source as actual byte sequence.
5151
1fdede8f
AM
51522010-01-19 Alan Mackenzie <acm@muc.de>
5153
5154 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5155 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5156 `signal_after_change_p' to `coherent_change_p', and make the
5157 invocation of `modify_region' conditional on it.
5158
67477f30
JD
51592010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5160
5161 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5162 for debug purpose.
5163 (syms_of_xsettings): Declare xft-settings.
5164
244b023e
CY
51652010-01-18 Chong Yidong <cyd@stupidchicken.com>
5166
5167 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5168
617364fe
CY
51692010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5170
5171 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5172
4fe22cdf
CY
51732010-01-16 Chong Yidong <cyd@stupidchicken.com>
5174
5175 * emacs.c (standard_args): Adjust arg priorities to reflect how
5176 they are processed in startup.el.
5177
e118d2be
AS
51782010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5179
5180 * Makefile.in (lisp, shortlisp): Update.
5181
523ae620
SM
51822010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5185 code, link the new kboard into all_kboard before running Lisp code,
5186 and protect the new terminal with GCPRO (Bug#5365).
5187 (x_term_init): Remove unused var `atom'.
5188 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5189
f0d13888
JD
51902010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5191
5192 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5193 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5194 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5195 this. Bug #3643.
f0d13888 5196
cc320f07
KH
51972010-01-15 Kenichi Handa <handa@m17n.org>
5198
5199 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5200
7ffdf101
CY
52012010-01-15 Chong Yidong <cyd@stupidchicken.com>
5202
5203 * nsterm.m (Qnone): Define.
5204
5205 * nsfns.m (Qnone): Move definition to nsterm.m.
5206
d12bd917
KH
52072010-01-14 Kenichi Handa <handa@m17n.org>
5208
5209 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5210 systems.
5211
d9a7c140
KH
52122010-01-14 Kenichi Handa <handa@m17n.org>
5213
5214 Make auto-composition work on all buffers even if they are
5215 fundamental mode.
5216
5217 * composite.c (Vauto_composition_mode): New variable.
5218 (composition_compute_stop_pos): Check Vauto_composition_mode
5219 instead of Vauto_composition_function.
5220 (composition_adjust_point, Ffind_composition_internal): Likewise.
5221 (syms_of_composite): Declare Lisp variable
5222 "auto-composition-mode" here.
5223
63286bb2
CY
52242010-01-13 Chong Yidong <cyd@stupidchicken.com>
5225
5226 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5227 during call to vendor-specific-keysyms (Bug#5365).
5228
c2623ee7
YM
52292010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5230
5231 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5232 Call SIGNAL_THREAD_CHECK (Bug#5333).
5233
5234 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5235 Call SIGNAL_THREAD_CHECK.
5236
0b5397c2
SM
52372010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5238
5239 Try to fix bug#5314. This is probably not the final word, tho.
5240 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5241 recent-auto-save-p as a side-effect.
5242 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5243 * buffer.c (Fkill_buffer, reset_buffer):
5244 * editfns.c (Fsubst_char_in_region):
5245 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5246 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5247
dc954cb2
KH
52482010-01-13 Kenichi Handa <handa@m17n.org>
5249
5250 Display buffer name, etc. in mode line by composing correctly.
5251
5252 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5253 STRING is not nil.
0b5397c2 5254 (display_mode_element): Adjust for the change of
dc954cb2
KH
5255 decode_mode_spec and display_line.
5256 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5257 (display_string): Handle the case that STRING is non-null and
5258 LISP_STRING is not nil.
5259
0b5397c2
SM
5260 * xterm.c (x_draw_composite_glyph_string_foreground):
5261 Pay attention to s->face->overstrike.
dc954cb2
KH
5262
5263 * composite.c (composition_reseat_it): Don't check PT if STRING is
5264 non nil.
5265
4a00eaca
YM
52662010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5267
5268 * keyboard.c (read_char): Don't apply previous change when current
5269 buffer is unchanged by command execution.
5270
60abb287
JD
52712010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5272
5273 * keyboard.c (read_char): Return after executing from special map.
5274
893db5bc
GM
52752010-01-12 Glenn Morris <rgm@gnu.org>
5276
5277 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5278 bug-gnu-emacs rather than emacs-pretest-bug.
5279
4d03ece0
CY
52802010-01-11 Chong Yidong <cyd@stupidchicken.com>
5281
5282 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5283 initializing the Lisp variables that depend on them.
5284
1df47e38
YM
52852010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5286
5287 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5288 Clear areas that will not be updated after change of menu bar lines.
5289 Clear the menu bar window's current matrix when the window gets empty.
5290
2f1c6384
CY
52912010-01-09 Chong Yidong <cyd@stupidchicken.com>
5292
e398c61c
CY
5293 * intervals.h, textprop.c (extend_property_ranges): Return value
5294 and args changed. Discard properties that begin at or after the
5295 new end (Bug#5306).
5296
5297 * editfns.c (Fformat): Caller changed.
5298
e5a29a10
CY
5299 * nsterm.m (ns_set_default_prefs): Delete function.
5300 (syms_of_nsterm): Initialize ns_command_modifier,
5301 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5302 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5303
2f1c6384
CY
5304 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5305 position (Bug#4040).
5306
d427a9fa
EZ
53072010-01-09 Eli Zaretskii <eliz@gnu.org>
5308
5309 * editfns.c (Ffloat_time): Doc fix.
5310
21b9df2f
JD
53112010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5312
5313 * xfns.c (Fx_create_frame): Don't create frame larger than display
5314 by default bug#3643.
5315
4b00d3b1
YM
53162010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5317
5318 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5319 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5320 windows above internal border.
5321
5322 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5323 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5324 windows above internal border.
5325
5326 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5327 tool bar windows specially.
5328
5329 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5330
5331 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5332 specially.
5333 (XTflash): Take account of menu bar height.
5334
5335 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5336 specially.
5337
5075d853
JD
53382010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5339
ac146f82 5340 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5341 also be true before we can return early (bug #5339).
5342
474217c8
CY
53432010-01-06 David Reitter <david.reitter@gmail.com>
5344
5345 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5346 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5347 (Bug#3233).
5348
c0e6d47d
JD
53492010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5350
d0cf45b7
JD
5351 * font.c (font_open_entity): Enable chache and call cached_font_ok
5352 for the driver if defined.
5353 (QCuser_spec): New symbol.
5354 (font_spec_from_name): Save name as user-spec.
5355 (font_load_for_lface): Keep user-spec instead of name.
5356 (font_open_by_name): Save name as user-spec.
5357 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5358 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5359
5360 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5361 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5362 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5363
5364 * font.h (struct font_driver): Add cached_font_ok.
5365
c0e6d47d
JD
5366 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5367
7c583cd8
JD
53682010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5369
5370 * xterm.c (x_new_font): Move code for setting rows/cols before
5371 resizing ...
ac146f82 5372 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5373
5374 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5375 (xg_frame_resized, xg_frame_set_char_size):
5376 Call xg_clear_under_internal_border.
7c583cd8 5377 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5378
03f77f0a
CY
53792010-01-05 Chong Yidong <cyd@stupidchicken.com>
5380
5381 * keyboard.c (read_key_sequence): Catch keyboard switch after
5382 making a new tty frame (Bug#5095).
5383
2a1ef5be
KH
53842010-01-05 Kenichi Handa <handa@m17n.org>
5385
5386 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5387
e3eb1dae
SM
53882010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5389
5390 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5391 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5392 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5393
777013f2
MA
53942010-01-03 Michael Albinus <michael.albinus@gmx.de>
5395
5396 * dbusbind.c (xd_add_watch): Improve debug message.
5397 (xd_remove_watch): Improve debug message. If DATA is the session
5398 bus, unset D-Bus session environment.
5399 (Fdbus_init_bus): Pass the bus as argument to
5400 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5401
8932b1c2
CY
54022010-01-01 Chong Yidong <cyd@stupidchicken.com>
5403
87231e2c
CY
5404 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5405
4801c5fa
CY
5406 * lread.c (syms_of_lread): Make it clearer that these are the
5407 names of loaded files (Bug#5068).
5408
8932b1c2
CY
5409 * eval.c (run_hook_with_args): Handle the case where the global
5410 value has the obsolete single-function form (Bug#5026).
5411
11e3c684
CY
54122009-12-27 Chong Yidong <cyd@stupidchicken.com>
5413
5414 * minibuf.c (Fall_completions): Minor optimization.
5415
5b28ce35
EZ
54162009-12-26 Eli Zaretskii <eliz@gnu.org>
5417
5ce6e4f4
JB
5418 * .gdbinit (pgx): Fix display of composite glyphs.
5419 Display cmp.from and cmp.to as well.
5420 (pitx): Fix last change.
5b28ce35 5421
bcffff46
KH
54222009-12-25 Kenichi Handa <handa@m17n.org>
5423
5424 * composite.h (composition_adjust_point): Update prototype.
5425
5426 * composite.c (composition_reseat_it): Don't make a composition
5427 spanning over point.
5428 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5429 composable characters.
5430 (composition_adjust_point): New arg NEW_PT. Callers changed.
5431
5432 * keyboard.c (command_loop_1): Force redisplay if the last point
5433 was within a composition.
5434 (adjust_point_for_property): Don't adjust point for automatic
5435 composition when called after buffer modification.
5436
3f670e9a
EZ
54372009-12-19 Eli Zaretskii <eliz@gnu.org>
5438
5ce6e4f4
JB
5439 * .gdbinit (pitx): Don't use enum names, use their values.
5440 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5441 (pgx): Don't use enum names, use their values.
5442 (pitmethod): New helper command.
5443 (pitx): Use it to display iteration method.
5444 (pgrowit): New command.
5445
ad903955
EZ
5446 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5447
3f670e9a
EZ
5448 Update dependencies in Makefile.in.
5449
5450 * Makefile.in (alloc.o): Depend on termhooks.h.
5451 (atimer.o): Depend on blockinput.h.
5452 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5453 and frame.h.
5454 (callint.o): Depend on systime.h, coding.h, and composite.h.
5455 (callproc.o): Depend on buffer.h.
5456 (casefiddle.o): Don't depend on charset.h.
5457 (casetab.o): Depend on character.h.
5458 (ccl.o): Depend on composite.h.
5459 (chartab.o): Depend on ccl.h.
5460 (cm.o): Depend on dispextern.h.
5461 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5462 (coding.o): Don't depend on $(INTERVALS_H).
5463 (composite.o): Don't depend on dispextern.h explicitly (it's in
5464 $(INTERVALS_H)). Depend on ccl.h.
5465 (data.o): Depend on systime.h, coding.h, composite.h,
5466 dispextern.h, font.h, and ccl.h.
5467 (dired.o): Depend on composite.h.
5468 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5469 composite.h (it's in $(INTERVALS_H)).
5470 (doc.o): Depend on systime.h, coding.h, and composite.h.
5471 (editfns.o): Don't depend explicitly on dispextern.h.
5472 (emacs.o): Depend on frame.h and coding.h.
5473 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5474 (fileio.o): Depend on frame.h and commands.h. Don't depend
5475 explicitly on dispextern.h.
5476 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5477 composite.h.
5478 (fns.o): Don't depend on termhooks.h.
5479 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5480 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5481 coding.h, $(INTERVALS_H), window.h, xterm.h.
5482 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5483 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5484 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5485 fontset.h, ccl.h, and ftfont.h.
5486 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5487 (gtkutil.o): Depend on dispextern.h and composite.h.
5488 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5489 termhooks.h, and ccl.h.
5490 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5491 (intervals.o): Depend on systime.h and coding.h.
5492 (keyboard.o): Depend on composite.h and coding.h.
5493 (keymap.o): Depend on coding.h and frame.h.
5494 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5495 (macros.o): Depend on systime.h, coding.h, and composite.h.
5496 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5497 and atimer.h.
5498 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5499 dispextern.h explicitly.
0b5397c2
SM
5500 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5501 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5502 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5503 (regex.o): Don't depend on charset.h.
5504 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5505 (search.o): Don't depend explicitly on composite.h.
5506 (sound.o): Depend on atimer.h and systime.h.
5507 (syntax.o): Don't depend explicitly on composite.h.
5508 (sysdep.o): Depend on coding.h and composite.h.
5509 (term.o): Depend on xterm.h and buffer.h.
5510 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5511 (textprop.o): Don't depend on dispextern.h explicitly.
5512 (undo.o): Depend on dispextern.h.
5513 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5514 dispextern.h and composite.h explicitly.
5515 (xdisp.o): Depend on ccl.h.
5516 (xfaces.o): Depend on coding.h and ccl.h.
5517 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5518 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5519 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5520 ftfont.h.
5521 (xgselect.o): New dependency.
5522 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5523 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5524 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5525 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5526 (xsmfns.o): Depend on frame.h and dispextern.h.
5527 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5528 sysselect.h.
5529
7a6f7fea
AS
55302009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5531
5532 * font.c (Fclear_font_cache): Pass correct cache argument to
5533 font_clear_cache.
5534
f4c21026
AS
55352009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5536
5537 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5538 twice.
5539
f7ab0997
CY
55402009-12-15 Chong Yidong <cyd@stupidchicken.com>
5541
5542 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5543 calling file-remote-p. Reported by Jim Meyering.
5544
fa8e045a
MA
55452009-12-15 Michael Albinus <michael.albinus@gmx.de>
5546
5547 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5548 avoid compiler warnings. (Bug #5217)
fa8e045a 5549
a63dba42
KH
55502009-12-14 Kenichi Handa <handa@m17n.org>
5551
5552 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5553 in 8-bit encoding.
5554
5ce6e4f4 55552009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5556
5557 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5558 tooltip windows.
5559
223e5fc6
JD
55602009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5561
36acb2a7
JD
5562 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5563 Xatom_net_window_type.
5564
5565 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5566 Xatom_net_window_type.
5567
b8f00677
JD
5568 * xterm.c (my_log_handler): New function.
5569 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5570 so we can filter out buggy messages. (Bug #5120).
b8f00677 5571
e5f0bc9a
JD
5572 * xterm.c (xg_scroll_callback): Parameter list changed,
5573 use parameter GtkScrollType to determine scroll/line/page.
5574 Only allow dragging if a button < 4 is grabbed (bug #5177).
5575 (xg_end_scroll_callback): New function.
5576 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5577 xg_create_scroll_bar.
5578
5579 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5580 (scroll_end_callback): Remove.
5581 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5582 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5583 bug #5177.
e5f0bc9a
JD
5584 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5585 bug #5177.
5586
5587 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5588 (xg_create_scroll_bar): Add GCallback end_callback.
5589
223e5fc6
JD
5590 * xftfont.c (QClcdfilter): New variable.
5591 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5592 (syms_of_xftfont): Initialize QClcdfilter.
5593
3c055b77
JD
55942009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5595
5596 * xsettings.c (struct xsettings): Add member seen.
5597 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5598 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5599 (apply_xft_settings): Only update Xft settings with what member seen
5600 indicates as new.
5601
05fe33ff
EZ
56022009-12-12 Eli Zaretskii <eliz@gnu.org>
5603
c4cc8b9a 5604 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5605 (struct glyph): Use EMACS_INT for charpos.
5606 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5607 region_beg_charpos, region_end_charpos,
5608 redisplay_end_trigger_charpos, and also for
5609 iterator_stack_entry.end_charpos and
5610 iterator_stack_entry.stop_charpos.
5611
e8d7886a
JD
56122009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5613
5ce6e4f4 5614 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5615 (xg_create_scroll_bar): Call scroll_end_callback on button release
5616 event (bug #5177).
5617 (xg_event_is_for_scrollbar): != replaced with ==.
5618
d0db2ec8
KH
56192009-12-12 Kenichi Handa <handa@m17n.org>
5620
5621 * ftfont.c (struct ftfont_info): New member matrix.
5622 (ftfont_open): Setup xftfont_info->matrix.
5623 (MFLTFontFT): New member matrix.
5624 (FLOOR, CEIL, ROUND): New macros.
5625 (ftfont_get_metrics): Handle matrix transformation.
5626 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5627
5628 * xftfont.c (struct xftfont_info): New member matrix.
5629 (xftfont_open): Setup xftfont_info->matrix.
5630
56312009-12-10 Kenichi Handa <handa@m17n.org>
5632
5633 * xdisp.c (append_space_for_newline): Consider face-remapping.
5634
2cc7b62f
AS
56352009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5636
b87dd913
AS
5637 * xsettings.c: Include "keyboard.h".
5638
eba5eb94
AS
5639 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5640
2cc7b62f
AS
5641 Fix implicit function declarations.
5642 * cmds.c: Include "frame.h".
5643 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5644 * frame.h: Move declaration of delete_frame outside of
5645 HAVE_WINDOW_SYSTEM.
5646
a4ef73c8
CY
56472009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5648
5649 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5650
5651 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5652 GTK builds.
5653
944a300c
AS
56542009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5655
5656 * unexelf.c (unexec): Don't search for .data twice.
5657
022eef62
CY
56582009-12-05 Chong Yidong <cyd@stupidchicken.com>
5659
426ac949
CY
5660 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5661 if push failed.
5662 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5663 of push_display_prop (Bug#5000).
5664
022eef62
CY
5665 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5666 value of font_list_entities (Bug#5085).
5667
be95bee9
JB
56682009-12-04 Juanma Barranquero <lekktu@gmail.com>
5669
5670 Fix `string-to-number' to deal consistently with integers and floats.
5671 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5672 trailing characters, not just whitespace.
5673 (read1): Pass new arg 0 to keep old behavior.
5674 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5675 trailing chars, as it is already done for integers. Doc fixes.
5676 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5677
24c2d7ce
EZ
56782009-12-04 Eli Zaretskii <eliz@gnu.org>
5679
0b5397c2
SM
5680 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5681 Delete unused enumeration value.
24c2d7ce 5682
7e694795
EZ
56832009-12-03 Eli Zaretskii <eliz@gnu.org>
5684
5685 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5686
84b31826
SM
56872009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5688
5689 * process.c (Fmake_network_process): Fix up the tests for
5690 "connectionless socket", so they DTRT for seqpacket sockets as well.
5691
f00c449b
SM
56922009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5693
5694 * process.c (Qseqpacket): New symbol.
5695 (HAVE_SEQPACKET): New macro.
5696 (Fmake_network_process): Accept new :type `seqpacket'.
5697 (init_process): Add `seqpacket' feature when applicable.
5698 (syms_of_process): Initialize Qseqpacket.
5699
8096a0ff
YM
57002009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5701
5702 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5703 if entity is Qnil.
5704
3e0de07f
SM
57052009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5706
5707 * print.c (print_preprocess): Preprocess the key_and_value table of
5708 hashtables, even tho they're "hidden" (bug#5082).
5709
abeafb2a
JD
57102009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5711
5712 * frame.c (frame_make_pointer_invisible)
5713 (frame_make_pointer_visible): Declare f before statements.
5714
4bf47195
EZ
57152009-11-28 Eli Zaretskii <eliz@gnu.org>
5716
5717 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5718 omitted dependencies on lisp.h.
5719
c525b3f2
JD
57202009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5721
ece2d4ed
JD
5722 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5723 is NULL.
5724
5725 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5726
5727 * frame.c (frame_make_pointer_invisible)
3e0de07f 5728 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5729 frame.
5730
c525b3f2
JD
5731 * search.c (simple_search): Remove warning by making *p const.
5732
2f00e299
DN
57332009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5734
5735 * xdisp.c (power_letter): Remove duplicate const.
5736
084b049b
JD
57372009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5738
a1fadc6f
JD
5739 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5740
5ce6e4f4 5741 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5742 defaults (bug #5025).
5743
28259cac
SM
57442009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5745
5746 * insdel.c (adjust_markers_for_delete): Move it in the
5747 right direction! (bug#4803)
5748
e8e14166
YM
57492009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5750
5751 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5752
5753 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5754
86677b58
GM
57552009-11-24 Glenn Morris <rgm@gnu.org>
5756
5757 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5758
581e51e8
JD
57592009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5760
cfc86c7a
JD
5761 * Makefile.in: Must create deps for ecrt0.o in its rule.
5762
581e51e8
JD
5763 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5764 because that is what Gtk+ font dialog understands.
5765
5766 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5767 of Fcopy_sequence.
5768 (font_open_by_name): Put name given into QCname for font-object returned.
5769
5770 * frame.c (x_set_font): Save original font name as frame parameter
5771 font-parameter.
5772
5773 * xsettings.c (set_default_xft_settings): New function.
5774 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5775 is found.
5776
8b264ecb
AS
57772009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5778
5779 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5780 searching backwards through multibyte buffer.
5781
872870b2
JD
57822009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5783
5784 * xterm.c: #include xgselect.h.
5785 (x_initialize): Call xgselect_initialize.
5786
5787 * xsettings.c (something_changedCB): C++ comments => C comments.
5788 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5789 does that now.
5790
5791 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5792 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5793 (scroll_bar_button_cb): Remove.
5ce6e4f4 5794 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5795 event.
5796 (xg_create_scroll_bar): Don't bind button-press-event and
5797 button-release-event.
5798
5799 * process.c: Include xgselect.h if defined (USE_GTK) ||
5800 defined (HAVE_GCONF).
5801 (wait_reading_process_output): Call xg_select for the same condition.
5802
5803 * xgselect.c (xg_select): New function to better integrate with
5804 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5805
5806 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5807
5808 * Makefile.in (XOBJ): Add xgselect.o.
5809
62a6e103
AS
58102009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5811
0b5397c2
SM
5812 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5813 Remove ignored second argument. All callers changed.
62a6e103
AS
5814 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5815 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5816 * xdisp.c (string_char_and_length): Likewise.
5817
b0ca0f33
DN
58182009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5819
5820 * xterm.c (x_new_font):
5821 * print.c (print_object):
5822 * cmds.c (Fself_insert_command): Move declarations before statements.
5823
dd5a6279
CY
58242009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5825
5826 * s/cygwin.h: Remove unneeded linker flags.
5827
4a8e097d
JD
58282009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5829
0d1d0d26
JD
5830 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5831
5832 * xsettings.h: Declare xsettings_get_system_font.
5833
5834 * xsettings.c (xsettings_get_system_font): New function.
5835 (init_gconf): No use initiating gconf unless we have Xft also.
5836 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5837 HAVE_GCONF.
5838
4a8e097d
JD
5839 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5840 add a blank entry so it doesn't collapse into nothing.
5841
8ab1650e
SM
58422009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5843
5844 * lread.c (Funintern): Comment out last change.
5845
82c602f0
RS
58462009-11-19 Richard Stallman <rms@gnu.org>
5847
5848 * lread.c (Funintern): Error if symbol is t or nil.
5849
87e32266
SM
58502009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5851
5852 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5853 representation of Lisp integers.
5854 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5855
1b9ac145
AS
58562009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5857
5858 * lisp.h: Remove declaration of Ffont_get_system_font.
5859 * xfns.c: Move include of "xsettings.h".
5860 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5861
dfb3c4c6
JD
58622009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5863
87e32266
SM
5864 * xsettings.c (something_changedCB, Ffont_get_system_font):
5865 Check use_system_font.
dfb3c4c6
JD
5866 (syms_of_xsettings): DEFVAR font-use-system-font.
5867
9370c1d8
AS
58682009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5869
25fe851a
AS
5870 * xfns.c (x_default_font_parameter): Remove dead assignment.
5871
9370c1d8
AS
5872 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5873
637fa988
JD
58742009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5875
87e32266 5876 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5877 not have FC_LCD_*. #define them if not there.
a6eb20d8 5878
87e32266 5879 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5880
637fa988
JD
5881 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5882
5883 * xterm.c (handle_one_xevent): Call xft_settings_event for
5884 ClientMessage, PropertyNotify and DestroyNotify.
5885 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5886 Call xsettings_initialize.
5887
5888 * xftfont.c (xftfont_fix_match): New function.
5889 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5890 Call xftfont_fix_match after XftFontMatch.
5891
5892 * xfont.c (xfont_driver): Initialize all members.
5893
87e32266
SM
5894 * xfns.c (x_default_font_parameter):
5895 Try font from Ffont_get_system_font.
637fa988
JD
5896 Do not get font from x_default_parameter if we got one from
5897 Ffont_get_system_font.
87e32266 5898 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5899
5900 * w32font.c (w32font_driver): Initialize all members.
5901
5902 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5903
5904 * lisp.h: Declare syms_of_xsettings.
5905
87e32266
SM
5906 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5907 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5908
5909 * ftfont.c (ftfont_filter_properties): New function.
5910
5911 * frame.c (x_set_font): Remove unused variable lval.
5912
87e32266 5913 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5914
5915 * font.c (font_put_extra): Don't return if val is nil, it means
5916 boolean option is off.
5917 (font_parse_fcname): Collect all extra properties in extra_props
5918 and call filter_properties for all drivers with extra_props and
5919 font as parameter.
87e32266
SM
5920 (font_open_entity): Do not use cache, it does not pick up new
5921 fontconfig settings like hinting.
637fa988
JD
5922 (font_load_for_lface): If spec had a name in it, store it in entity.
5923
a73f9c9d 5924 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5925
5926 * config.in: HAVE_GCONF is new.
5927
5928 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5929 xsettings.o is new.
5930
5a942932
KH
59312009-11-17 Kenichi Handa <handa@m17n.org>
5932
5933 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5934 back to the default font in case that no suitable font is found.
5935
b7c7a4d1
SM
59362009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5937
5938 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5939 Suggested by Chad Brown <yandros@mit.edu>.
5940 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5941
072f1e39
JD
59422009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5943
5944 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5945
5d1e70a2
AS
59462009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5947
87e32266 5948 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5949
a53cfbe5
JD
59502009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5951
473a99b7
JD
5952 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5953 has a parent.
5954
a53cfbe5 5955 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5956 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5957
5958 * config.in: Generated (AUTO_DEPEND).
5959
f04bb9b2
MA
59602009-11-13 Michael Albinus <michael.albinus@gmx.de>
5961
b7c7a4d1 5962 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5963 Vdbus_registered_functions_table, because it contains also
5964 properties. Fix docstring.
b7c7a4d1 5965 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5966
8f11f7ec
SM
59672009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5968
5969 * alloc.c (mark_object): Don't reprocess marked strings.
5970 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5971 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5972
8a605fe8
KH
59732009-11-13 Kenichi Handa <handa@m17n.org>
5974
8f11f7ec 5975 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5976 semantics of Vword_combining_categories.
5977 (Vword_combining_categories): Describe the slight change of the
5978 semantics.
5979
241c4680
EZ
59802009-11-13 Eli Zaretskii <eliz@gnu.org>
5981
5982 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5983
5984 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5985
5d58e44c
SM
59862009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5987
5988 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5989
5e13f9d3
JB
59902009-11-12 Juanma Barranquero <lekktu@gmail.com>
5991
5992 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5993
cf54c754
DR
59942009-11-11 David Reitter <david.reitter@gmail.com>
5995
5996 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5997 variables to fix 2009-11-09 change.
5998
a4ada374
DN
59992009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6000
91433552
DN
6001 * process.c (ifflag_def): Make flag_sym constant.
6002 (Fnetwork_interface_info): Use a constant pointer.
6003 (ifflag_table):
6004 * xfns.c (cursor_bits):
6005 * xdisp.c (power_letter):
6006 * termcap.c (speeds, esctab):
6007 * sysdep.c (baud_convert):
6008 * keyboard.c (lispy_accent_codes, modifier_names):
6009 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6010 (jpeg_format, tiff_format, gif_format, svg_format)
6011 (interlace_start, interlace_increment, gs_format):
6012 * gtkutil.c (separator_names):
6013 * fringe.c (swap_nibble):
6014 * fns.c (base64_value_to_char, base64_char_to_value):
6015 * fileio.c (make_temp_name_tbl):
6016 * coding.c (suffixes): Make constant.
6017
f4265f6c
DN
6018 * frame.c (make_initial_frame):
6019 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6020 build_string.
6021 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6022
04420943
DN
6023 * s/freebsd.h:
6024 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6025
0a5d24ae
DN
6026 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6027 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6028
a4ada374
DN
6029 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6030 * xterm.c (syms_of_xterm):
6031 * xfaces.c (syms_of_xfaces):
6032 * xdisp.c (syms_of_xdisp):
6033 * lread.c (syms_of_lread):
6034 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6035 build_string.
91433552 6036
a4ada374
DN
6037 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6038
af98fc7f
SM
60392009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6040
8ab1650e 6041 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6042
e90292a9
JD
60432009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6044
6045 * keyboard.h: Declare timer_check.
6046
6047 * keyboard.c (timer_check_2): New function that does what the old
6048 timer_check did.
6049 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6050 returned, i.e. don't return -1 with timers pending.
6051
6052 * process.c: Remove extern declaration of timer_check.
6053
6054 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6055 even if timer_check returned -1.
6056
af98fc7f
SM
6057 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6058 xg_dialog_data.
e90292a9
JD
6059 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6060 the event loop.
6061 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6062 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6063 Destroy the dialog after xg_dialog_run.
6064
045b83c0
SM
60652009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6066
6067 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6068
1fb99a3a
JD
60692009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6070
6071 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6072
04e452cb
JB
60732009-11-09 Juanma Barranquero <lekktu@gmail.com>
6074
6075 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6076
ef7417fd
SM
60772009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6078
6079 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6080 w32menu.c, and nsmenu.m.
6081 Simplify the obsolete case where position is nil.
6082 (cleanup_popup_menu): New function, moved from nsmenu.m.
6083 (struct skp): Remove slot `notreal'.
6084 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6085 adjust callers.
6086 (single_menu_item): Adjust call to parse_menu_item.
6087 (syms_of_menu): Defsubr x-popup-menu.
6088 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6089 (keymap_panes): Don't export any more.
6090 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6091 (xmenu_show): Declare.
6092 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6093 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6094 * keyboard.h (parse_menu_item): Update declaration.
6095 * xmenu.c (Fx_popup_menu): Remove.
6096 (syms_of_xmenu): Don't defsubr x-popup-menu.
6097 * w32menu.c (Fx_popup_menu): Remove.
6098 (syms_of_w32menu): Don't defsubr x-popup-menu.
6099 * nsmenu.m (cleanup_popup_menu): Remove.
6100 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6101 moved to menu.c's Fx_popup_menu.
6102 (Fx_popup_menu): Remove.
6103 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6104 menu_items (it's done in menu.c already).
6105
424d6179
SM
61062009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6107
6108 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6109 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6110
c0df13a6 61112009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6112
6113 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6114 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6115 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6116 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6117
2de9f71c
SM
61182009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6119
6120 Let integers use up 2 tags to give them one extra bit and thus double
6121 their range.
6122 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6123 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6124 New macros.
6125 (enum Lisp_Type): Use them. Give explicit values.
6126 (Lisp_Type_Limit): Remove.
6127 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6128 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6129 Pay attention to USE_2_TAGS_FOR_INTS.
6130 (INTEGERP): Use LISP_INT_TAG_P.
6131 * fns.c (internal_equal): Simplify the default case.
6132 (sxhash): Use case_Lisp_Int.
6133 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6134 any more.
6135 (Ftype_of): Use case_Lisp_Int.
6136 (store_symval_forwarding): Take into account the fact that Ints can
6137 now have more than one tag.
6138 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6139 (buffer_slot_type_mismatch):
2de9f71c
SM
6140 * xfaces.c (face_attr_equal_p):
6141 * print.c (print_object):
6142 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6143 Use case_Lisp_Int.
6144
323637a2
EZ
61452009-11-06 Eli Zaretskii <eliz@gnu.org>
6146
7ac65b38
EZ
6147 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6148
323637a2
EZ
6149 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6150 warning.
6151
e511451f
JD
61522009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6153
6154 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6155
6156 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6157
6158 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6159 ButtonPressRelease and MotionNotify (bug#4870).
6160
5e2327cf
DN
61612009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6162
5adc433e
DN
6163 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6164
d67b4f80
DN
6165 * xterm.c (syms_of_xterm):
6166 * xselect.c (syms_of_xselect):
6167 * xmenu.c (syms_of_xmenu):
6168 * xfns.c (syms_of_xfns):
6169 * xfaces.c (syms_of_xfaces):
6170 * xdisp.c (syms_of_xdisp):
6171 * window.c (syms_of_window):
6172 * w32fns.c (syms_of_w32fns):
6173 * undo.c (syms_of_undo):
6174 * textprop.c (syms_of_textprop):
6175 * terminal.c (syms_of_terminal):
6176 * syntax.c (syms_of_syntax):
6177 * sound.c (syms_of_sound):
6178 * search.c (syms_of_search):
6179 * print.c (syms_of_print):
6180 * minibuf.c (syms_of_minibuf):
6181 * macros.c (syms_of_macros):
6182 * keymap.c (syms_of_keymap, initial_define_key)
6183 (initial_define_lispy_key):
6184 * keyboard.c (syms_of_keyboard):
6185 * insdel.c (syms_of_insdel):
6186 * image.c (syms_of_image):
6187 * fringe.c (syms_of_fringe):
6188 * frame.c (syms_of_frame):
6189 * fontset.c (syms_of_fontset):
6190 * fns.c (syms_of_fns):
6191 * fns.c (syms_of_fns):
6192 * fileio.c (syms_of_fileio):
6193 * fileio.c (syms_of_fileio):
6194 * eval.c (syms_of_eval):
6195 * doc.c (syms_of_doc):
6196 * dispnew.c (syms_of_display):
6197 * dired.c (syms_of_dired):
6198 * dbusbind.c (syms_of_dbusbind):
6199 * data.c (syms_of_data):
6200 * composite.c (syms_of_composite):
6201 * coding.c (syms_of_coding):
6202 * cmds.c (syms_of_cmds):
6203 * charset.c (define_charset_internal, syms_of_character):
6204 * ccl.c (syms_of_ccl):
6205 * category.c (syms_of_category, init_category_once):
6206 * casetab.c (syms_of_casetab):
6207 * casefiddle.c (syms_of_casefiddle):
6208 * callint.c (syms_of_callint):
6209 * bytecode.c (syms_of_bytecode):
6210 * buffer.c (keys_of_buffer, syms_of_buffer):
6211 * alloc.c (syms_of_alloc):
6212 * process.c (syms_of_process, init_process):
6213 * lread.c (syms_of_lread, init_obarray):
6214 * font.c (build_style_table):
6215 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6216 intern_c_string, calls to make_pure_string with
6217 make_pure_c_string. Use pure_cons instead of Fcons.
6218
5e2327cf
DN
6219 * process.c (socket_options): Make it const.
6220 (set_socket_option, init_process): Use a const pointer.
6221
6222 * lread.c (intern_c_string): New function.
6223 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6224 (defvar_int): Uset it. Make the name const char*.
6225
6226 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6227 (defvar_int): Update prototypes.
6228 (DEFUN, EXFUN): Support for prototypes is now required.
6229 (intern_c_string): New prototype.
6230 (struct Lisp_Subr): Make symbol_name constant.
6231
6232 * font.c (struct table_entry): Remove unused member. Make NAMES
6233 constant.
6234 (weight_table, slant_table, width_table): Make constant.
6235
6236 * emacs.c (struct standard_args): Make name and longname constant.
6237
6238 * character.h (DEFSYM): Use intern_c_string.
6239
a56eaaef
DN
62402009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6241
6242 * alloc.c (make_pure_c_string): New function.
6243
6244 * eval.c (Fautoload): Purecopy all arguments.
6245
f6a07420
KH
62462009-11-05 Kenichi Handa <handa@m17n.org>
6247
6248 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6249 the buffer in case of replace.
6250
5d28d4b1
DN
62512009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6252
6253 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6254
b349d111
SM
62552009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6256
d528b1ce
SM
6257 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6258 when applicable (bug#4851).
6259
b349d111
SM
6260 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6261 (P_): Support for prototypes is now required.
6262
c38eb027
CY
62632009-10-31 Chong Yidong <cyd@stupidchicken.com>
6264
6265 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6266 (Bug#4827).
6267
0405f8d9
EZ
62682009-10-30 Eli Zaretskii <eliz@gnu.org>
6269
d528b1ce 6270 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6271
ca0a881a
DN
62722009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6273
6274 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6275
d528b1ce
SM
6276 * lread.c (Fload): Purecopy the file name when building
6277 Vpreloaded_file_list.
ca0a881a 6278
47e0e0e4
JR
62792009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6280
6281 * w32fns.c (syms_of_w32fns): Change default value of
6282 w32-scroll-lock-modifier to nil. (Bug#2827)
6283
057bce6f
JB
62842009-10-26 Juanma Barranquero <lekktu@gmail.com>
6285
782a943e 6286 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6287
242bc74c
AS
62882009-10-26 Andreas Schwab <schwab@redhat.com>
6289
6290 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6291
522d013a
JB
62922009-10-26 Juanma Barranquero <lekktu@gmail.com>
6293
6294 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6295 For delta < 0, skip check that only makes sense when the mini-window
6296 is going to be enlarged. (Bug#4534)
6297
18060980
CY
62982009-10-25 Chong Yidong <cyd@stupidchicken.com>
6299
6300 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6301 string in menu maps (Bug#4471).
6302
fec8f0fe
CY
63032009-10-24 Chong Yidong <cyd@stupidchicken.com>
6304
6305 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6306 FRAME_NS_VIEW on terminal frames (Bug#4765).
6307
10d66ec0
AS
63082009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6309
1cae01f7
AS
6310 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6311 DBUS_TYPE_UINTnn separately to get proper sign extension.
6312
58a12889
AS
6313 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6314 can properly handle unsigned types.
d528b1ce 6315 (make_uid, make_gid): Remove.
58a12889 6316
987c9327
AS
6317 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6318 types again.
6319
522d013a 6320 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6321 (system_process_attributes): Likewise.
6322
905a9ed3
DN
63232009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6324
6325 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6326
6327 * eval.c (Fautoload): Purecopy the filename. Simplify.
6328
6329 * category.c (Fdefine_category): Purecopy docstring.
6330
a599b3e8
AS
63312009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6332
7b792fc9
AS
6333 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6334
a599b3e8
AS
6335 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6336
b35ac83e
CY
63372009-10-23 Chong Yidong <cyd@stupidchicken.com>
6338
6339 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6340 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6341 (Bug#4775).
6342
e8903e00
SM
63432009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6344
6345 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6346 (init_fileio_once):
6347 * lisp.h (init_fileio_once): Remove.
6348 * emacs.c (main): Don't call init_fileio_once.
6349
8f43cbf3
DN
63502009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6351
6352 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6353
26898943
AS
63542009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6355
6356 * doprnt.c (doprnt): Fix overflow check.
6357
5c646d5a
JD
63582009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6359
3132a7ea
JD
6360 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6361
5c646d5a
JD
6362 * xterm.h (x_wait_for_event): Declare it.
6363
6364 * xterm.c (pending_event_wait): New variable.
6365 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6366 see pending_event_wait.eventtype.
6367 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6368 (x_new_font): Call change_frame_size with new rows/columns before we
6369 try to resize the frame.
5c646d5a 6370 (x_wait_for_event): New function.
d528b1ce
SM
6371 (x_set_window_size_1): Don't change gravity unless change_gravity
6372 is set.
5c646d5a
JD
6373 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6374 don't change frame size, instead wait for the ConfigureNotify.
6375 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6376 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6377 (x_initialize): Initialize pending_event_wait.
6378
6379 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6380 size.
6381
6382 * widget.c (EmacsFrameSetValues): Add comment.
6383 (EmacsFrameSetCharSize): Just call x_set_window_size.
6384
6385 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6386 x_wait_for_event.
d528b1ce 6387 (flush_and_sync): Remove again.
5c646d5a
JD
6388 (xg_get_font_name): Suggest monospace if no previous font is known.
6389
e9c1637d
SM
63902009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6391
6392 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6393 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6394
5a72cccb
YM
63952009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6396
6397 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6398 processing pending events when event is filtered for input method.
ab04798f 6399 (Bug#3681)
5a72cccb 6400
2629aa37
JB
64012009-10-20 Juanma Barranquero <lekktu@gmail.com>
6402
6403 * fns.c: Add #endif accidentally removed in previous change.
6404
c3417a74
DN
64052009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6406
6407 * fns.c: Remove code for unsupported system: MAC_OS.
6408 * image.c: Likewise. Include setjmp.h.
6409
9685cef2
JD
64102009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6411
6412 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6413 pixel -1 (bug #4742).
6414
d7306fe6
DN
64152009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6416
019d2c4c
DN
6417 * process.c (create_pty): Remove conditionals for no longer
6418 supported systems: UNIPLUS and RTU.
6419
ee6bacd4
DN
6420 * xterm.c:
6421 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6422
d7306fe6
DN
6423 * alloc.c: Do not define struct catchtag.
6424 * eval.c: Move struct catchtag definition ...
6425 * lisp.h: ... here.
6426
6427 * image.c: Move png.h #include earlier to avoid warnings.
6428
6429 * xterm.c:
6430 * xsmfns.c:
6431 * xselect.c:
6432 * xrdb.c:
6433 * xmenu.c:
6434 * xftfont.c:
6435 * xfont.c:
6436 * xfns.c:
6437 * xfaces.c:
6438 * xdisp.c:
6439 * window.c:
6440 * widget.c:
6441 * w32xfns.c:
6442 * w32uniscribe.c:
6443 * w32term.c:
6444 * w32select.c:
6445 * w32reg.c:
6446 * w32proc.c:
6447 * w32menu.c:
6448 * w32inevt.c:
6449 * w32heap.c:
6450 * w32font.c:
6451 * w32fns.c:
6452 * w32console.c:
6453 * w32.c:
6454 * w16select.c:
6455 * vm-limit.c:
6456 * unexsol.c:
6457 * unexec.c:
6458 * unexcw.c:
6459 * unexaix.c:
6460 * undo.c:
6461 * tparam.c:
6462 * textprop.c:
6463 * terminfo.c:
6464 * terminal.c:
6465 * termcap.c:
6466 * term.c:
6467 * syntax.c:
6468 * sound.c:
6469 * sheap.c:
6470 * search.c:
6471 * scroll.c:
6472 * region-cache.c:
6473 * regex.c:
6474 * ralloc.c:
6475 * process.c:
6476 * print.c:
b024548b
DN
6477 * nsterm.m:
6478 * nsselect.m:
6479 * nsmenu.m:
6480 * nsimage.m:
6481 * nsfont.m:
6482 * nsfns.m:
d7306fe6
DN
6483 * msdos.c:
6484 * minibuf.c:
6485 * menu.c:
6486 * marker.c:
6487 * macros.c:
6488 * keymap.c:
6489 * keyboard.c:
6490 * intervals.c:
6491 * insdel.c:
6492 * indent.c:
6493 * gtkutil.c:
6494 * ftxfont.c:
6495 * ftfont.c:
6496 * fringe.c:
6497 * frame.c:
6498 * fontset.c:
6499 * font.c:
6500 * fns.c:
6501 * floatfns.c:
6502 * filelock.c:
6503 * fileio.c:
6504 * emacs.c:
6505 * editfns.c:
6506 * dosfns.c:
6507 * doprnt.c:
6508 * doc.c:
6509 * dispnew.c:
6510 * dired.c:
6511 * dbusbind.c:
6512 * data.c:
6513 * composite.c:
6514 * coding.c:
6515 * cmds.c:
6516 * cm.c:
6517 * chartab.c:
6518 * charset.c:
6519 * character.c:
6520 * ccl.c:
6521 * category.c:
6522 * casetab.c:
6523 * casefiddle.c:
6524 * callproc.c:
6525 * callint.c:
6526 * bytecode.c:
6527 * buffer.c:
6528 * atimer.c: Include setjmp.h. (Bug#4643)
6529
fd5f21e6
SM
65302009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6531
4c0354d7
SM
6532 Remove leftover table unibyte_to_multibyte_table.
6533 * character.c (unibyte_to_multibyte_table): Remove.
6534 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6535 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6536 * character.h (UNIBYTE_TO_CHAR): New macro.
6537 (MAKE_CHAR_MULTIBYTE): Use it.
6538 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6539 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6540 (message_dolog, set_message_1):
6541 * search.c (Freplace_match):
6542 * editfns.c (Fcompare_buffer_substrings):
6543 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6544 (concat):
6545 * insdel.c (copy_text, count_size_as_multibyte):
6546 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6547 * term.c (produce_glyphs):
6548 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6549 * regex.c (RE_CHAR_TO_MULTIBYTE):
6550 * cmds.c (internal_self_insert):
6551 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6552
fd5f21e6
SM
6553 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6554
4418646e
DN
65552009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6556
6557 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6558
35f5c1d2
JB
65592009-10-16 Juanma Barranquero <lekktu@gmail.com>
6560
6561 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6562
a0cd8f6b
AR
65632009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6564
6565 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6566 still needed under Tiger.
6567
6568 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6569
6570 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6571 __Apple__.
6572
6573 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6574
01a8d3fa
KH
65752009-10-15 Kenichi Handa <handa@m17n.org>
6576
6577 * print.c (print_object): Escape a symbol like "2E10" too.
6578
bf6c75c9 65792009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6580
6581 Cleanups and changes for 64-bit compile under Snow Leopard.
6582 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6583
6584 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6585
c5959062 6586 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6587 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6588 cast argument.
6589 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6590 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6591
6592 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6593
6594 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6595 where appropriate.
6596
6597 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6598 where appropriate.
6e4780c5
JB
6599 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6600 Use stringWithUTF8String.
bf6c75c9
AR
6601 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6602
6e4780c5
JB
6603 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6604 Add formal protocol mention to inheritance.
bf6c75c9
AR
6605 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6606
6e4780c5
JB
6607 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6608 Fix printf format.
bf6c75c9
AR
6609 (ns_query_color): Use CGFloat where appropriate.
6610 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6611 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6612 argument.
6613
3d87f118
AR
6614 * config.in (NS_HAVE_NSINTEGER): Drop.
6615
a95c8102
AR
6616 * dbusbind.c (dbus-method-return-internal)
6617 (dbus-method-error-internal): Use long format in printf, and cast
6618 argument.
6619
6620 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6621 in printf, and cast argument.
6622
6873acca 6623 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6624 cast argument.
6625
9ec6f100
GM
66262009-10-11 Glenn Morris <rgm@gnu.org>
6627
6628 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6629
5be883cd
JD
66302009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6631
6632 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6633 menu bar with a small width so it doesn't enlarge the frame.
6634
d7a39b51
JB
66352009-10-08 Juanma Barranquero <lekktu@gmail.com>
6636
6637 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6638
0c2b6f8e
GM
66392009-10-06 Glenn Morris <rgm@gnu.org>
6640
6641 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6642 SOME_MACHINE_LISP (this enters indirectly via DOC).
6643
e02131a2
EZ
66442009-10-05 Eli Zaretskii <eliz@gnu.org>
6645
6646 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6647
b4744254
EZ
66482009-10-04 Eli Zaretskii <eliz@gnu.org>
6649
6650 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6651 Doc fix.
6652
dbf64827
JB
66532009-10-03 Martin Rudalics <rudalics@gmx.at>
6654
6655 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6656
e9a0aef8
MA
66572009-10-02 Michael Albinus <michael.albinus@gmx.de>
6658
d528b1ce 6659 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6660 used anymore outside fileio.c.
6661
6662 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6663
64eb2b56
JB
66642009-10-01 Juanma Barranquero <lekktu@gmail.com>
6665
6666 * lisp.h (Qdelete_directory_internal):
6667 Declare, instead of Qdelete_directory.
6668
6669 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6670
9d28c33e
SM
66712009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6672
6673 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6674
9d8f3bd9
MA
66752009-10-01 Michael Albinus <michael.albinus@gmx.de>
6676
9d28c33e 6677 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6678 Fdelete_directory. It is not a command anymore. It has no file
6679 name handler.
6680
9694740b
SM
66812009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6682
6683 * xdisp.c (get_next_display_element): Use an enum in last change.
6684
748e162f
KH
66852009-09-28 Kenichi Handa <handa@m17n.org>
6686
9694740b 6687 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6688 unibyte_display_via_language_environment in handling
6689 Vnobreak_char_display.
6690
17efd58d
AR
66912009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6692
6693 * nsterm.h (ns_app_name): New extern variable.
6694
6695 * nsterm.m (ns_app_name): New variable.
6696 (ns_term_init): Set and use it.
6697 (ns_term_shutdown): Use it.
6698
6699 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6700 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6701
6702 * nsfns.m (ns_set_name_iconic, ns_set_name)
6703 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6704 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6705
9694740b
SM
6706 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6707 Remove double-casting in client_data comparison.
31c2d412 6708
3208cb35
YM
67092009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6710
6711 * keyboard.c (make_lispy_event): Remember last wheel direction.
6712 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6713
b7d552d6
GM
67142009-09-26 Glenn Morris <rgm@gnu.org>
6715
6716 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6717 internal.elc. Add term/pc-win.elc.
6718 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6719 term/x-win.elc.
6720 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6721 term/w32-win.elc.
6722 (NS_SUPPORT): New.
6723 (lisp): Add NS_SUPPORT.
6724 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6725
4ff670a8
DR
67262009-09-25 David Reitter <david.reitter@gmail.com>
6727
6728 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6729 on Mac OS X 10.6+ (bug#4513).
6730
feabfb6c
JB
67312009-09-24 Juanma Barranquero <lekktu@gmail.com>
6732
6733 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6734 some parts of Emacs code (like font selection) don't grok them.
6735 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6736
de59072a
AS
67372009-09-24 Andreas Schwab <schwab@redhat.com>
6738
6739 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6740
a489517b
JB
67412009-09-24 Juanma Barranquero <lekktu@gmail.com>
6742
6743 * dired.c (Fdirectory_files): Fix typo in docstring.
6744
0592970c
AR
67452009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6746
6747 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6748 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6749 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6750 under GNUstep.
6751 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6752
6753 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6754 glyph advancement.
6755
48e8a88b
AR
67562009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6757
6758 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6759 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6760
6761 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6762 deleted (bug #4492).
6763
e14f0a78
AR
6764 * nsfont.m (Vns_reg_to_script): New lisp variable.
6765 (syms_of_nsfont): Declare it.
6766 (ns_registry_to_script): New function.
6767 (ns_get_req_script): Call it.
6768 (ns_findfonts): Don't give up on non-unicode registry.
6769
6770 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6771
5b650faa
SM
67722009-09-20 Tom Tromey <tromey@redhat.com>
6773
6774 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6775 batch mode (bug#4228).
6776
a489517b 67772009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6778
6779 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6780 carefully. (Bug #4339)
0bae4e09 6781
fcfe06f3
CY
67822009-09-18 Chong Yidong <cyd@stupidchicken.com>
6783
d798ba87 6784 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6785
31642728
AR
67862009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6787
6788 * emacs.c (inhibit_x_resources): Update doc string for NS.
6789 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6790 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6791
6792 * nsterm.h (ns_no_defaults): Remove.
6793
6794 * nsterm.m (ns_no_defaults): Remove.
6795 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6796 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6797 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6798 don't update the NSWindow itself.
6799 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6800 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6801
6802 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6803 ns_use_qd_smoothing.
6804
6805 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6806 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6807 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6808 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6809
8686ac71
JB
68102009-09-17 Juanma Barranquero <lekktu@gmail.com>
6811
6812 * emacs.c (inhibit_x_resources): New variable.
6813 (main) [HAVE_NS]: Don't process --quick command line option.
6814 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6815
6816 * lisp.h (inhibit_x_resources): Declare it extern.
6817
6818 * w32reg.c (x_get_string_resource):
6819 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6820
e227ba05
EZ
68212009-09-17 Eli Zaretskii <eliz@gnu.org>
6822
362654a6
JB
6823 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6824 Add lisp/term/internal.elc.
e227ba05 6825
742d40e8
SM
68262009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6827
6828 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6829 (bug#4461).
6830
005bd5a2
DN
68312009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6832
6833 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6834
6835 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6836 (OBJECTS_MACHINE): Remove, unused.
6837
f9af9719
SM
68382009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6839
6840 * frame.c (x_get_resource_string): Remove unused.
6841
0307c7d2
JD
68422009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6843
6844 * xterm.c (x_new_font): Call change_frame_size before calling
6845 x_set_window_size, in case frame size won't change.
6846
6847 * frame.c (x_set_font): Remove dead code.
6848
428b13d6
SM
68492009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6850
6851 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6852
5766c380
SM
68532009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6854
6855 * lread.c (Fload): Don't output a message after loading an obsolete
6856 package any more (done in Lisp now).
6857
2fd0161b
CY
68582009-09-12 Chong Yidong <cyd@stupidchicken.com>
6859
6860 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6861
bc5e75b6
SM
68622009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6863
6864 * keymap.c (Fwhere_is_internal): Use nconc2.
6865
c31c985e
AM
68662009-09-11 Alan Mackenzie <acm@muc.de>
6867
6868 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6869 batch mode.
6870
78012bd2
AS
68712009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6872
6873 * xdisp.c (display_mode_element): Detect cycles.
6874
9d889332
SM
68752009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6876
6877 * keymap.c (where_is_internal): Don't erroneously return nil right after
6878 filling the cache.
6879 (where_is_internal_1): Fix up typo.
6880
7ab5d780
GM
68812009-09-11 Glenn Morris <rgm@gnu.org>
6882
6883 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6884 share a common doc-string.
6885
5238a749
SM
68862009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6887
66d77eda
SM
6888 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6889 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6890
5238a749
SM
6891 * keymap.c (QCadvertised_binding): New constant.
6892 (syms_of_keymap): Initialize it.
6893 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6894 if applicable.
6895
19f48442
SM
68962009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6897
50d4ba39
SM
6898 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6899 (parse_menu_item): Streamline since bindings are recomputed all the
6900 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6901 more and don't support lmenu's menu-alias any more either.
6902
a88a5372
SM
6903 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6904 (where_is_internal): Strip it down to only traverse the keymaps.
6905 Move the cache handling from Fwhere_is_internal to here.
6906 (Fwhere_is_internal): Move the handling of remapping and the choice of
6907 the best binding from where_is_internal to here.
6908 Unify the cached/noncached paths, so remapping is also handled
6909 correctly when the cache is used, and so the cache can be used to
6910 speed up remap-handling when applicable.
6911 Give preference to non-remapped bindings.
6912 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6913 non-remapped bindings.
6914 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6915 command remapping.
6916
19f48442
SM
6917 * xdisp.c (display_mode_element): Move list length limit from 50 to
6918 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6919
599498c3 69202009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6921
6922 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6923
f9b7b5ac
SM
69242009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6925
a53af587
JB
6926 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6927 (Bug#4334)
6928
f9b7b5ac
SM
6929 * keymap.c (where_is_internal): Filter out shadowed remappings.
6930 Assume that where_is_internal returns unshadowed bindings to simplify
6931 the code and get rid of the gotos. Use ASIZE.
6932
04f4b72d
JD
69332009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6934
4da146f2
JD
6935 * xterm.c (x_focus_changed): If we get a focusout and pointer
6936 is invisible, make it visible.
6937
04f4b72d
JD
6938 * xterm.h: Remove condition for declaration of
6939 x_*_window_to_frame.
6940
7cef7ce3
SM
69412009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6942
6943 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6944 initial terminal as well.
6945
a54fa5b7
JD
69462009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6947
6948 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6949 x_menubar_window_to_frame.
a54fa5b7 6950
50426a04 6951 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6952 (XTmouse_position): Do not return valid positions
6953 for clicks in the menubar and the toolbar for Gtk+.
6954
6955 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6956 if the widget for the event has the same top level as a frame,
6957 return the frame.
6958 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6959 internal windows, bug #4122.
6960 (x_non_menubar_window_to_frame): Remove.
6961
5a021dd0
GM
69622009-09-02 Glenn Morris <rgm@gnu.org>
6963
6964 * buffer.c (default-major-mode): Move most of the doc from here...
6965 (major-mode): ... to here.
6966
548fe2f3
NR
69672009-08-30 Nick Roberts <nickrob@snap.net.nz>
6968
6969 * process.c (wait_reading_process_output): Keep the descriptor
6970 when pty is used by a non-child process, e.g., in I/O buffer of
6971 GDB this allows inferior to be restarted.
6972
e0840eef
EZ
69732009-08-29 Eli Zaretskii <eliz@gnu.org>
6974
6975 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6976 both branches into one.
6977
82e98df4
SM
69782009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6979
6980 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6981 (main): Use enable-multibyte-characters rather than
6982 default-enable-multibyte-characters. Output a warning message when
6983 running a unibyte session.
6984
890617cb
YM
69852009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6986
6987 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6988 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6989 (copy_data_segment): Also copy __program_vars section.
6990 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6991 (dump_it) [LC_DYLD_INFO]: Use it.
6992
6993 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6994
e7adeadc
EZ
69952009-08-28 Eli Zaretskii <eliz@gnu.org>
6996
6997 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6998 $(SRC)/buildobj.h.
6999 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7000 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7001 $(SRC)/buildobj.h.
7002 (clean): Add buildobj.h.
7003
3ed8bbdc
TZ
70042009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7005
7006 * print.c (print_object): Set escapeflag to 1 when printing
7007 hashtable keys and values.
7008
155a6764
SM
70092009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7010
7011 * lread.c (read_integer): Use doubles (and potentially return a float
7012 number) as we do in string-to-number.
7013 (read1): Use strtol to read integers, signal errors on strtol's
7014 overflow and use floats if strtol's output is too large for
7015 Elisp integers.
7016
877610de
EZ
70172009-08-27 Eli Zaretskii <eliz@gnu.org>
7018
7019 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7020 (make-buildobj-SH): Fix last change.
7021 (SRC): Move to before where it's first used.
7022
ef73e7be
KH
70232009-08-27 Kenichi Handa <handa@m17n.org>
7024
550c8289
KH
7025 * process.c (send_process): Use encode_coding_object instead of
7026 encode_coding_string to perform eol-conversion even if the string
7027 is unibyte.
7028
60afa08d
KH
7029 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7030 character.
7031
ef73e7be 7032 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7033 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7034
7b3a82d7
DN
70352009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7036
5654bf63
DN
7037 * callproc.c (Fcall_process): Remove always true #if.
7038
7b3a82d7
DN
7039 * lisp.h: Replace #if 0 code for checking with text pointing to
7040 the --enable-checking configure flag.
7041
7042 * emacs.c (main): Mention the --enable-profiling configure flag
7043 instead of using CFLAGS.
7044
878bde49
KR
70452009-08-26 Ken Raeburn <raeburn@raeburn.org>
7046
7047 * Makefile.in (buildobj.h): New target.
7048 (doc.o): Depend on it.
7049 (temacs${EXEEXT}): Don't generate buildobj.lst.
7050 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7051 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7052 ($(BLD)/doc.$(O)): Depend on it.
7053 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7054 provided by Eli Zaretskii.)
7055 ($(TEMACS)): Don't generate buildobj.lst.
7056 * doc.c: Include buildobj.h.
7057 (buildobj): New static variable.
7058 (Fsnarf_documentation): Use it, instead of opening and reading
7059 buildobj.lst.
7060
1574224c
MA
70612009-08-25 Michael Albinus <michael.albinus@gmx.de>
7062
7063 * dbusbind.c (Fdbus_call_method)
7064 (Fdbus_call_method_asynchronously): Use English numeric format for
7065 timeout values in doc string.
7066
d9da2f45
KH
70672009-08-25 Kenichi Handa <handa@m17n.org>
7068
ef73e7be
KH
7069 * alloc.c (mark_char_table): New function.
7070 (mark_object): Use mark_char_table for a char-table.
7071
d9da2f45
KH
7072 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7073 (CHAR_TABLE_REF): Use it.
7074
c8edcc01
KR
70752009-08-23 Ken Raeburn <raeburn@raeburn.org>
7076
7077 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7078 before invoking the newly build emacs to check for load-path
7079 shadowing.
7080
7763401b
GM
70812009-08-22 Glenn Morris <rgm@gnu.org>
7082
7083 * Makefile.in (bootstrap_exe): New variable.
7084 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7085 Use ${bootstrap_exe}.
7086
729eadda
EZ
70872009-08-22 Eli Zaretskii <eliz@gnu.org>
7088
7089 * coding.h (encode_coding_string): Don't encode unibyte strings.
7090 (Bug#4047)
7091
eb4c6ace
MA
70922009-08-22 Michael Albinus <michael.albinus@gmx.de>
7093
7094 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7095
7096 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7097 intended as hotfix only.
7098 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7099
36e34d1b
AR
71002009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7101
7102 * nsterm.m (ns_get_color): Update documentation properly for last
7103 change, and clean up loose ends in the code left by it. Fix
7104 longstanding bug with 16-bit hex parsing, and add support for
7105 yet another X11 format (rgb:r/g/b) for compatibility.
7106 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7107 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7108
f983eb8a
SM
71092009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7110
7111 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7112
3f56d3c6
MA
71132009-08-20 Michael Albinus <michael.albinus@gmx.de>
7114
7115 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7116 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7117 (xd_initialize, xd_pending_messages): Check, whether
7118 $DBUS_SESSION_BUS_ADDRESS is set.
7119
fb641d68
YM
71202009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7121
7122 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7123
7124 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7125
cf59a374
GM
71262009-08-20 Glenn Morris <rgm@gnu.org>
7127
7128 * emacs.c (system-type): Doc fix.
7129
1373f3be
SM
71302009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7131
7132 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7133 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7134
058ed861
MA
71352009-08-18 Michael Albinus <michael.albinus@gmx.de>
7136
1373f3be
SM
7137 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7138 New functions.
058ed861
MA
7139 (xd_initialize): Revert change from 2009-08-16.
7140
563a866e 71412009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7142
7143 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7144 font-group vector, return nil.
5fc05db0 7145
e42bdf01
CY
71462009-08-17 Chong Yidong <cyd@stupidchicken.com>
7147
7148 * process.c (status_notify): Don't perform redisplay.
7149 (Fdelete_process, list_processes_1, process_send_signal):
7150 Expliticly perform redisplay.
7151 (wait_reading_process_output): Always check process status, but
7152 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7153
4230ab74
KR
71542009-08-17 Ken Raeburn <raeburn@raeburn.org>
7155
1373f3be 7156 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7157 (XFLOAT_INIT): New macro for storing a float value.
7158 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7159 * fns.c (sxhash): Copy out the value of a float in order to
7160 examine its bytes.
7161 * dbusbind.c (xd_append_arg): Likewise.
7162
4230ab74
KR
7163 * emacs.c (main): Don't call syms_of_data twice.
7164
a0645cdd
MA
71652009-08-16 Michael Albinus <michael.albinus@gmx.de>
7166
7167 * dbusbind.c (xd_initialize): Add connection file descriptor to
7168 input_wait_mask, in order to let select() detect, whether a new
7169 message has been arrived.
ca4f31ea 7170 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7171
485db0ba
MA
71722009-08-15 Michael Albinus <michael.albinus@gmx.de>
7173
1373f3be
SM
7174 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7175 New functions.
485db0ba
MA
7176
7177 * lisp.h (xd_pending_messages): Declare.
7178
7179 * keyboard.c (readable_events): Call xd_pending_messages.
7180
b5b98ff4
CY
71812009-08-15 Chong Yidong <cyd@stupidchicken.com>
7182
1373f3be 7183 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7184
f8354c6e
CY
7185 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7186
b5b98ff4
CY
7187 * buffer.c (set_buffer_internal_1)
7188 (swap_out_buffer_local_variables): Check for unbound local
7189 variables (Bug#4138).
7190
8b9fc636
EZ
71912009-08-14 Eli Zaretskii <eliz@gnu.org>
7192
7193 * process.c (create_pty): Fix last change.
7194
ce959360
CY
71952009-08-13 Chong Yidong <cyd@stupidchicken.com>
7196
7197 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7198 (xbm_load_image): Caller changed.
64b807c9 7199 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7200
c7baf7e9
NR
72012009-08-13 Nick Roberts <nickrob@snap.net.nz>
7202
7203 * process.c (create_pty): New function.
7204 (Fstart_process): Use it to allow Emacs to just associate a pty
7205 with the buffer. See associated change in gdb-mi.el.
7206 (list_processes_1): Deal with no program name.
7207 (start_process_unwind): Use pid == -2 to mean no process.
7208
1ac9108a
SM
72092009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7210
7211 * cmds.c (nonundocount): New global variable.
7212 (keys_of_cmds): Initialize it.
7213 (Fself_insert_command): Use it to combine upto 20 sequential chars
7214 into a single undo entry, just like the Qself_insert_command code in
7215 keyboard.c does.
7216 Call frame_make_pointer_invisible, also like the Qself_insert_command
7217 code in keyboard.c does.
7218 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7219 than its own local replacement for it.
7220
e267324c
KR
72212009-08-10 Ken Raeburn <raeburn@raeburn.org>
7222
1ac9108a 7223 * fns.c (concat): Don't re-set string length to its current value.
77437343 7224
1ac9108a
SM
7225 * coding.h (decode_coding_string, encode_coding_string):
7226 Use SBYTES macro.
f0bed503 7227
1ac9108a 7228 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7229 (doprnt): Merge with doprnt1, discarding lispstrings code.
7230 * lisp.h (doprnt_lisp): Don't declare.
7231
416e006d
JL
72322009-08-07 Juri Linkov <juri@jurta.org>
7233
7234 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7235
6f7d5780
DN
72362009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7237
7238 * print.c (syms_of_print): Undo previous change.
7239
f19a0f5b
TZ
72402009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7241
7242 * lread.c (read1, syms_of_lread): Read hashtables back from the
7243 readable format.
7244
7245 * print.c (print_preprocess, print_object): Print hashtables fully
7246 and readably.
7247 (syms_of_print): Provide 'hashtable-print-readable.
7248
b9173dc2
AR
72492009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7250
7251 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7252 no family set.
7253 (nsfont_open): Handle case when entity has no family.
7254
1586503c
AR
72552009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7256
7257 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7258 element, not a list, for match case.
7259
087048cd
KH
72602009-07-28 Kenichi Handa <handa@m17n.org>
7261
7262 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7263 rigidly.
7264
7265 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7266 font_parse_xlfd. Check font properties more rigidly.
7267
780c2506
DN
72682009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7269
31fd7c5c
JB
7270 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7271 bsd-common.h.
780c2506 7272
a8c0cc18
KH
72732009-07-27 Kenichi Handa <handa@m17n.org>
7274
7275 * xfaces.c (face_with_height): Call font_clear_prop.
7276
4fbe2306
CY
72772009-07-26 Chong Yidong <cyd@stupidchicken.com>
7278
111d9af3
CY
7279 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7280
7281 * xterm.c (x_term_init): Use Qx.
7282
4fbe2306
CY
7283 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7284
1ac9108a 7285 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7286 (ns_get_color): Revert 2009-07-16 change.
7287
beb0b7f9
EZ
72882009-07-25 Eli Zaretskii <eliz@gnu.org>
7289
7290 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7291 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7292
2baf5e76
KR
72932009-07-25 Ken Raeburn <raeburn@raeburn.org>
7294
1ac9108a
SM
7295 * coding.h (decode_coding_string, encode_coding_string):
7296 Use SCHARS macro.
8890e5f5 7297
2baf5e76 7298 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7299 (load_depth): Delete.
2baf5e76
KR
7300 (Qload_in_progress): New variable.
7301 (load_unwind): Don't reference load_depth or load_in_progress.
7302 (Fload): Likewise; specbind Qload_in_progress instead.
7303 (init_lread): Don't initialize load_depth.
7304 (syms_of_lread): Initialize and protect Qload_in_progress.
7305
1395c6f5
AR
73062009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7307
7308 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7309
4e2f36cf
AR
73102009-07-23 Yavor Doganov <yavor@gnu.org>
7311
7312 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7313
5dd9a6f7
AR
73142009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7315
7316 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7317 Bugs 3792, 3720, 2402.
7318 (ns_lookup_indexed_color): Check for bad index.
7319 (ns_index_color): Init unused slot to 0.
7320 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7321 Bug 3714, possibly 3082.
5dd9a6f7 7322
c902b920
JR
73232009-07-22 Jason Rumney <jasonr@gnu.org>
7324
1ac9108a
SM
7325 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7326 Position IME window at cursor (Bug#2570).
c902b920
JR
7327 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7328 (globals_of_w32fns): Dynamically load functions required above.
7329
7330 * w32term.c (w32_draw_window_cursor): Send message to reposition
7331 any IME window.
7332
090101cf
CY
73332009-07-21 Chong Yidong <cyd@stupidchicken.com>
7334
7335 * fileio.c: Revert 2009-07-16 changes.
7336 (Vauto_save_include_big_deletions): New variable.
7337 (Fdo_auto_save): Disable auto-save only if
7338 auto-save-include-big-deletions is nil.
7339
e6583e3d
CY
73402009-07-21 Chong Yidong <cyd@stupidchicken.com>
7341
7342 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7343 the overflowed pixels into account (Bug#3879).
7344
ece435a5
KR
73452009-07-21 Ken Raeburn <raeburn@raeburn.org>
7346
7347 * lread.c (load_depth): New variable.
7348 (Fload, load_unwind, init_lread): Set it to the load recursion
7349 depth; set load_in_progress as a simple boolean based on the
7350 current load_depth. (Bug#3892)
7351
40b2d973
AR
73522009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7353
7354 * nsfont.m (ns_has_attribute): Remove.
7355 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7356
10be7e0d
JL
73572009-07-18 Juri Linkov <juri@jurta.org>
7358
7359 * process.c (Fset_process_query_on_exit_flag): Mention killing
7360 a buffer in docstring.
7361
fa055055
KH
73622009-07-17 Kenichi Handa <handa@m17n.org>
7363
7364 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7365
042f7b69
YM
73662009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7367
7368 * nsfns.m (Fns_set_alpha): Remove function.
7369 (syms_of_nsfns): Don't defsubr it.
7370
7371 * nsterm.m (ns_get_color): Remove incompatible color formats.
7372 (ns_color_to_lisp): Generate #rrggbb color format string.
7373
4be941e3
RS
73742009-07-16 Richard Stallman <rms@gnu.org>
7375
7376 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7377 (Fset_buffer_auto_saved): Handle save_length = -2.
7378
4e6b227d
CY
73792009-07-16 Chong Yidong <cyd@stupidchicken.com>
7380
7381 * xterm.c (Qx_gtk_map_stock): New var.
7382
7383 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7384 of calling intern each time.
7385
a1856973
YM
73862009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7387
7388 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7389 does tiling.
7390
7391 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7392
497e54d8
KH
73932009-07-14 Kenichi Handa <handa@m17n.org>
7394
72d36834
KH
7395 * font.c (font_vconcat_entity_vectors): New function.
7396 (struct font_sort_data): New member font_driver_preference.
7397 (font_compare): Check font_driver_preference.
7398 (font_sort_entities): The format of the first argument changed.
7399 (font_delete_unmatched): Likewise.
7400 (font_list_entities): The return type changed.
7401 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7402 (font_find_for_lface): Adjuste for the above changes.
7403 Don't suppress the checking of C even if the repertory supports it.
7404 (Flist_fonts): Adjust for the above changes.
72d36834 7405
1ac9108a
SM
7406 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7407 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7408 Reject a font who has adstyle property that is different from a
7409 langname derived from registry property.
1ac9108a 7410 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7411
b6046155
EZ
74122009-07-13 Eli Zaretskii <eliz@gnu.org>
7413
7414 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7415 local copy of dirfilename.
7416
fb6b6049
KH
74172009-07-13 Kenichi Handa <handa@m17n.org>
7418
e2402a5e
KH
7419 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7420 against max_char.
7421
fb6b6049
KH
7422 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7423 calling XSYMBOL (sym).
7424
65156807
EZ
74252009-07-11 Eli Zaretskii <eliz@gnu.org>
7426
1ac9108a
SM
7427 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7428 New function.
7429 (directory_files_internal) [WINDOWSNT]:
7430 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7431 the filesystem of the directory is fast or slow.
7432
7433 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7434 file name.
7435 (is_slow_fs): New function.
7436 (stat): Use it to determine whether to issue more system calls to
7437 get accurate file attributes, when w32-get-true-file-attributes is
7438 `local'.
7439
e0ab5fcf
JD
74402009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7441
7442 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7443 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7444 parameter font-parameter as default to the font dialog.
7445
784ceded
KH
74462009-07-10 Kenichi Handa <handa@m17n.org>
7447
7448 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7449
fb8edc0b
EZ
74502009-07-09 Eli Zaretskii <eliz@gnu.org>
7451
1ac9108a 7452 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7453
fb8edc0b
EZ
7454 * w32.c (stat): Treat UNC file names as residing on remote
7455 drives. (Bug#3542)
7456
635c75b1
KH
74572009-07-09 Kenichi Handa <handa@m17n.org>
7458
7459 * fontset.c (fontset_find_font): Fix previous change.
7460
c1d5ce94
MA
74612009-07-08 Michael Albinus <michael.albinus@gmx.de>
7462
7463 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7464 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7465 error flag.
7466
edb61b39
KH
74672009-07-08 Kenichi Handa <handa@m17n.org>
7468
374bf7e4
KH
7469 * fontset.c (fontset_find_font): Fix the logic of handling
7470 charset_matched.
7471 (font_for_char): Delete unused var.
7472 (generate_ascii_font_name): Delete it.
7473
edb61b39
KH
7474 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7475
7476 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7477 (encode_coding_sjis): Fix the code range check.
7478
0f3f018c
CY
74792009-07-07 Chong Yidong <cyd@stupidchicken.com>
7480
7481 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7482 (Fexpand_file_name): Copy string data properly (Bug#3772).
7483
fcaf6f3a
JD
74842009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7485
7486 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7487 first MapNotify.
7488
6809ca75
KH
74892009-07-07 Kenichi Handa <handa@m17n.org>
7490
7491 * character.h (unibyte_has_multibyte_table): Delete extern.
7492 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7493
7494 * charset.c (Fset_charset_priority): Update charset_unibyte.
7495 (syms_of_charset): Initialize charset_unibyte.
7496
7497 * character.c (unibyte_has_multibyte_table): Delete it.
7498 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7499 charset_unibyte.
7500 (multibyte_char_to_unibyte_safe): Likewise.
7501 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7502
1ac9108a 7503 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7504 (x_produce_glyphs): Likewise.
7505
7506 * .gdbinit (xcharset): Fix the treating $arg0.
7507
ad9e2d54
EZ
75082009-07-04 Eli Zaretskii <eliz@gnu.org>
7509
7510 Emulation of `getloadavg' on MS-Windows.
50426a04 7511 * w32.c: Include float.h.
ad9e2d54
EZ
7512 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7513 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7514 (get_native_system_info, get_system_times): New functions.
7515 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7516 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7517 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7518 g_b_init_get_system_times, and num_of_processors.
7519
0a3472c7
JR
75202009-07-03 Jason Rumney <jasonr@gnu.org>
7521
7522 * w32term.c (w32_initialize): Use standard types.
7523
80904120
EZ
75242009-07-03 Eli Zaretskii <eliz@gnu.org>
7525
7526 * dired.c (Ffile_attributes): Decode user and group names by the
7527 locale's encoding. (Bug#3443)
7528
6978862d
DN
75292009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7530
f8d23104
DN
7531 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7532 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7533
7534 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7535
7536 * term.c (init_tty): Remove spurious #ifdef.
7537
6978862d
DN
7538 * m/mips.h: Mention this file is also used for netbsd.
7539 * m/pmax.h: Remove file.
7540
e044e4fc
JD
75412009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7542
7543 * xterm.h (struct x_display_info): Add invisible_cursor.
7544 (struct x_output): Add current_cursor.
7545
7546 * xterm.c (XTtoggle_invisible_pointer): New function.
7547 (x_define_frame_cursor): Don't define cursor if invisible or the
7548 same as before. Set current_cursor.
7549 (x_create_terminal): Set toggle_invisible_pointer_hook.
7550
7551 * xfns.c (make_invisible_cursor): New function.
7552 (x_set_mouse_color): Call make_invisible_cursor.
7553 Set current_cursor.
7554 (x_window): Set current_cursor.
7555
7556 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7557
7558 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7559 inserting a character.
7560 (read_avail_input): Call frame_make_pointer_visible.
7561
7562 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7563 (frame_make_pointer_invisible, frame_make_pointer_visible):
7564 New functions.
e044e4fc
JD
7565 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7566
7567 * frame.h: Declare frame_make_pointer_invisible and
7568 frame_make_pointer_visible.
7569 (struct frame): Add pointer_invisible.
7570
574c8efa
JD
75712009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7572
7b507248
JD
7573 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7574 frame isn't visible.
7575 (xg_frame_resized): If width/height is -1, get size of window
7576 from X server.
7577
7578 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7579 for MapNotify.
7580
835bdaa7 7581 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7582 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7583 (flush_and_sync): Reintroduce.
574c8efa 7584
3f1c6666 75852009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7586
31fd7c5c 7587 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7588
7589 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7590 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7591
7592 * frame.h: Declare Qsticky.
7593
cad9ef74
JD
7594 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7595
7596 * nsfns.m (ns_frame_parm_handlers): Ditto.
7597
7598 * frame.c: Declare Qsticky.
7599 (frame_parms): Add sticky.
7600
7601 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7602
7603 * xterm.h: Declare x_set_sticky.
7604
7605 * xterm.c (x_set_sticky): New function.
7606
69b16610
JD
7607 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7608 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7609 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7610
7611 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7612
7613 * frame.c: Qmaximized is new.
7614 (x_set_frame_parameters): Do not handle fullscreen specially.
7615 Only set width and height if explicitly set.
7616 (x_set_fullscreen): Handle Qmaximized.
7617 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7618 (syms_of_frame): Initialize Qmaximized.
7619
1ac9108a
SM
7620 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7621 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7622
7623 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7624 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7625 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7626 set gravity to NorthWestGravity when USE_GTK.
7627 (set_wm_state): New function.
31fd7c5c 7628 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7629 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7630 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7631 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7632 to x_real_positions and x_fullscreen_adjust.
7633
7634 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7635 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7636 flush_and_sync.
7637 (xg_height_changed): New function.
7638 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7639 and gtk_window_set_policy. Set frame gravity after parsing the
7640 geometry string.
3f1c6666
JD
7641 (xg_update_frame_menubar, free_frame_menubar)
7642 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7643 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7644 Remove calls to xg_frame_set_char_size.
7645
fd503d99
KH
76462009-07-01 Kenichi Handa <handa@m17n.org>
7647
7648 * keyboard.c (decode_keyboard_code): New function.
7649 (tty_read_avail_input): Decode the input bytes if necessary.
7650
1ac9108a
SM
7651 * coding.c (setup_coding_system):
7652 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7653 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7654 use Qno_conversion.
7655
24ed93fb
YM
76562009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7657
7658 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7659
99061dfc
CY
76602009-06-30 Chong Yidong <cyd@stupidchicken.com>
7661
1ac9108a 7662 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7663
ff90fbde
JR
76642009-06-30 Jason Rumney <jasonr@gnu.org>
7665
7666 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7667 is already loaded.
7668 Set user model ID if supported (bug#1849).
7669
5f445726
JM
76702009-06-29 Jim Meyering <meyering@redhat.com>
7671
7672 Remove useless if-before-xfree test.
7673 * nsfont.m (nsfont_close): Remove useless test.
7674 * term.c (delete_tty): Likewise.
7675 * w32.c (system_process_attributes): Likewise.
7676 * w32font.c (w32font_close): Likewise.
7677 * xfaces.c (x_free_gc): Likewise.
7678 * xselect.c (buffer): Likewise.
7679
b9607587
AS
76802009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7681
7682 * process.c (send_process): Keep decoded string in a local
7683 variable and protect it from GC. (Bug#3521)
7684
89ba96f4
EZ
76852009-06-28 Eli Zaretskii <eliz@gnu.org>
7686
7687 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7688 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7689
098a1589
CY
76902009-06-28 Chong Yidong <cyd@stupidchicken.com>
7691
485422be
CY
7692 * xdisp.c (start_display, handle_face_prop)
7693 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7694 (redisplay_window, try_window_id, produce_image_glyph):
7695 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7696
098a1589
CY
7697 * xterm.c (x_update_window_begin, x_new_focus_frame)
7698 (x_scroll_bar_handle_click, handle_one_xevent)
7699 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7700 (x_make_frame_visible, x_make_frame_invisible)
7701 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7702 code chunks that are now obsolete.
7703
78c38319
MA
77042009-06-28 Michael Albinus <michael.albinus@gmx.de>
7705
7706 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7707 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7708 for hours, when optimzation is enabled.
7709 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7710 (xd_read_message): Make them static.
7711
4189ed40
CY
77122009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7713
7714 * term.c (turn_on_face): Allow simultaneously bold and dim
7715 terminal faces (Bug#3530).
7716
cd9b5e16
CY
77172009-06-27 Chong Yidong <cyd@stupidchicken.com>
7718
4e23bedb
CY
7719 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7720
cd9b5e16
CY
7721 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7722 truncation glyphs (Bug#3686).
7723
07cc3c35
GM
77242009-06-27 Glenn Morris <rgm@gnu.org>
7725
7726 * m/pmax.h: Restore file, with only netbsd portions.
7727
31fd7c5c 77282009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7729
cd9b5e16 7730 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7731
42d4a64f
KH
77322009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7733
7734 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7735 the arg FORCE_SYMBOL.
7736
930fe55b 77372009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7738
7739 * fontset.c (fontset_find_font): When a usable rfont_def is found
7740 in a fallback font-group, make it the first element of the group.
7741
57ebc3fd
CY
77422009-06-24 Chong Yidong <cyd@stupidchicken.com>
7743
7744 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7745
f084f942
KH
77462009-06-24 Kenichi Handa <handa@m17n.org>
7747
7748 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7749 set for C.
7750 (fontset_font): Record the availability of a font for C both in
7751 the realized fontsets of the current one and the default one.
7752
2f686c87
DN
77532009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7754
7755 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7756 conditional, it is always defined on AIX.
7757
666e158e
MB
77582009-06-23 Miles Bader <miles@gnu.org>
7759
7760 * window.c (Vrecenter_redisplay): New variable.
7761 (syms_of_window): Initialize it.
7762 (Qtty): New extern declaration.
7763 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7764
c6da7cd2
JM
77652009-06-23 Jim Meyering <meyering@redhat.com>
7766
1ac9108a
SM
7767 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7768 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7769 pointer dereferences are guaranteed to be valid.
c6da7cd2 7770
678dca3d
KH
77712009-06-23 Kenichi Handa <handa@m17n.org>
7772
74d75424
KH
7773 * emacs.c (main): Call init_font ().
7774
7775 * font.h (Vfont_log): Extern it.
7776 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7777
7778 * font.c (font_sort_entities, font_list_entities)
7779 (font_matching_entity, font_open_entity)
7780 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7781 (Vfont_log): Delete static.
7782 (font_log_env_checked): Delete this variable.
7783 (font_add_log): Don't check font_log_env_checked.
7784 (font_deferred_log): Check Vfont_log.
7785 (init_font): New function.
7786
678dca3d
KH
7787 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7788
7789 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7790
7791 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7792
7793 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7794
7795 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7796 (face_for_char): Don't call font_deferred_log here.
7797 (font_for_char): Likewise.
7798
8a668709
CY
77992009-06-22 Chong Yidong <cyd@stupidchicken.com>
7800
9a01ee33
CY
7801 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7802 rather than its background_width for drawing the overline and
7803 underline (Bug#489).
7804
7805 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7806 rather than its background_width for drawing the overline and
7807 underline (Bug#489).
ec7c9926
CY
7808 (xg_default_icon_file): New variable.
7809 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7810 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7811
8a668709
CY
7812 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7813 (load_overlay_strings): Remove externs.
7814 (fast_find_position): Function deleted.
7815 (mouse_face_from_buffer_pos): New function, based on
7816 fast_find_position. Correctly handle before-strings,
7817 display-strings, and after-strings (Bug#1220).
7818 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7819
4d4c02d8
CY
78202009-06-21 Chong Yidong <cyd@stupidchicken.com>
7821
1ac9108a 7822 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7823 (move_it_in_display_line_to, move_it_in_display_line_to)
7824 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7825
70243478
CY
78262009-06-21 Chong Yidong <cyd@stupidchicken.com>
7827
7828 * Branch for 23.1.
7829
13087e59
JR
78302009-06-21 Jason Rumney <jasonr@gnu.org>
7831
7832 * w32term.c (keyboard_codepage): New static variable.
7833 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7834 (w32_read_socket) [WM_CHAR]: Use it to decode character
7835 input (bug#3237).
7836 (w32_initialize): Initialize it.
7837 (codepage_for_locale): New function.
7838
4735b74e
KR
78392009-06-20 Ken Raeburn <raeburn@raeburn.org>
7840
7841 * process.c (status_message): Pass Faset index argument as a lisp
7842 object, so as to work with USE_LISP_UNION_TYPE.
7843
0e727afa
YM
78442009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7845
7846 * coding.c (Ffind_coding_systems_region_internal):
7847 Cache checked characters.
7848
cf299835
KH
78492009-06-18 Kenichi Handa <handa@m17n.org>
7850
1ac9108a 7851 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7852
90f20d94
AS
78532009-06-18 Andreas Schwab <aschwab@redhat.com>
7854
7855 * xdisp.c (redisplay_internal): Check that the frame is still
7856 live after redisplay of its windows.
7857 (redisplay_windows): Check that the window is still live.
7858
7f1faf1c
KH
78592009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7860
7861 * coding.c (detect_coding_utf_16): Fix previous change.
7862
cc13543e
KH
78632009-06-16 Kenichi Handa <handa@m17n.org>
7864
7865 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7866 UTF-16 by checking the dispersion of Eth and Oth bytes.
7867
977b85f4
AS
78682009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7869
7870 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7871
66bd43d1
KH
78722009-06-15 Kenichi Handa <handa@m17n.org>
7873
7874 * process.c (status_message): Fix previous change. Be sure to
7875 decode a localized string.
7876
cb5ca9c5
YM
78772009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7878
7879 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7880 add comment explaining why.
7881
ec7709ba 78822009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7883
ec7709ba 7884 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7885
4b7f335c
AR
78862009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7887
7888 * nsfont.m (ns_attribute_value): Remove.
7889 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7890 (ns_has_attribute): Shrink the normal range.
7891 (ns_findfonts): Don't worry about requested spec in determining
7892 need for synthItal.
e41820ee 7893 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7894
73b26103
SZ
78952009-06-14 Seiji Zenitani <zenitani@mac.com>
7896
7897 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7898
5753e4da
KH
78992009-06-11 Kenichi Handa <handa@m17n.org>
7900
7901 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7902 overhang for the static composition case.
7903
3561b671
KH
79042009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7905
5753e4da
KH
7906 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7907 overhang for the automatic composition case.
7908
3561b671
KH
7909 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7910 composition case.
7911
852bbd41
CY
79122009-06-10 Chong Yidong <cyd@stupidchicken.com>
7913
7914 * xdisp.c (get_next_display_element): When handling wrap-prefix
7915 and line-prefix, treat \n as a control character (bug#3502).
7916
9903d1e6
KH
79172009-06-10 Kenichi Handa <handa@m17n.org>
7918
7919 * font.c (font_parse_family_registry): Fix for one-char foundry.
7920 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7921
0bcbaaaa
CY
79222009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7923
7924 * process.c (status_message): Fix handling of multibyte signal
7925 string (Bug#3499).
7926
40aa3f13
JM
79272009-06-09 Jim Meyering <meyering@redhat.com>
7928
1f80c7e2
CY
7929 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7930 color name is missing.
40aa3f13 7931
72d51285
KH
79322009-06-09 Kenichi Handa <handa@m17n.org>
7933
7934 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7935 FROM-CODE and TO-CODE are codepoints of CHARSET.
7936
c1d04d84
AR
79372009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7938
7939 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7940
79412009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7942
7943 Changes to support :script/:lang/:otf in NS font driver.
7944 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7945 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7946 indicate not part of font driver interface, and change callers.
7947 (ns_get_family): Remove pointless null check.
7948 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7949 ns_spec_to_descriptor, ns_descriptor_to_entity.
7950 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7951 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7952 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7953 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7954 (ns_get_req_script, ns_accumulate_script_ranges)
7955 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7956 New functions.
7957 (nsfont_list, nsfont_match): Use ns_findfonts.
7958 (nsfont_open): Use font descriptor instead of traits.
7959 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7960 (dump_glyphstring): Rename to ns_dump_glyphstring.
7961
c7eb9816
AR
7962 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7963
c1d04d84
AR
7964 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7965
7966 * fontset.c (fontset_from_font): Remove NS-specific code.
7967
ec7709ba 79682009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7969
7970 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7971 nonactive windows.
7972
31fd7c5c 79732009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7974
1ac9108a 7975 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7976
68852c13 79772009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7978
7979 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7980
6756cd1d
CY
79812009-06-07 Chong Yidong <cyd@stupidchicken.com>
7982
7983 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7984 account for the overflowing of newlines into the last glyph on the
7985 display line (Bug#3482).
7986
28bf482a
DR
79872009-06-05 David Reitter <david.reitter@gmail.com>
7988
ec7709ba
JB
7989 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7990 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7991 Fns_selection_exists_p, Fns_selection_owner_p.
7992
fdb55376
JR
79932009-06-03 Jason Rumney <jasonr@gnu.org>
7994
7995 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7996 available. (Bug#3379)
7997
05129fbe
KH
79982009-05-29 Kenichi Handa <handa@m17n.org>
7999
1ac9108a
SM
8000 * coding.c (get_translation_table):
8001 Check Venable_character_translation.
05129fbe 8002
ec7709ba 80032009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8004
ec7709ba
JB
8005 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8006 (x_make_frame_visible): Move frame to front rather than calling
15891144 8007 ns_raise_frame().
ec7709ba 8008 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8009 isn't key window.
ec7709ba 8010 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8011 drawRect may be called by NSView even if the frame is hidden.
8012
ec7709ba
JB
8013 * nsfns.m (Fx_create_frame): Follow other ports in
8014 determining visibility; default to t. Ensure async_visible is set.
15891144 8015
21f73755
EZ
80162009-05-23 Eli Zaretskii <eliz@gnu.org>
8017
8018 * dired.c (Ffile_attributes): Doc fix.
8019
34001e41
CY
80202009-05-22 Chong Yidong <cyd@stupidchicken.com>
8021
8022 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8023
46306a17
SM
80242009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8025
8026 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8027 and xfont_scratch_props.
8028 (syms_of_xfont): Do it here instead.
8029 (xfont_find_ccl_program): Delete, unused.
8030 (xfont_open): Delete unused var `i'.
8031
ef6e0694
KH
80322009-05-21 Kenichi Handa <handa@m17n.org>
8033
8034 * fontset.c (Qlatin): Don't make it static.
8035
46306a17
SM
8036 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8037 New functions.
ef6e0694
KH
8038 (xfont_scripts_cache, xfont_scratch_props): New variables.
8039 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8040 (xfont_list_pattern): Argument changed. Callers changed.
8041 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8042 (xfont_list): Don't reject a font spec with :script property.
8043 (xfont_has_char): Fix setting of encoding.
8044 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8045 xfont_scratch_props.
8046
80472009-05-19 Kenichi Handa <handa@m17n.org>
8048
46306a17 8049 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8050 Callers changed.
8051
80522009-05-18 Kenichi Handa <handa@m17n.org>
8053
8054 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8055
ac71ced7
SM
80562009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8057
8058 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8059 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8060
1c6d1051
YM
80612009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8062
8063 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8064 (x_delete_terminal): Dissociate resource database from display and
8065 then call XrmDestroyDatabase before closing display.
8066
9b9b779c
AR
80672009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8068
8069 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8070 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8071 whether selected frame is viable before raising it (based on patch
8072 by David Reitter), and improve commentary.
8073 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8074
cccd42d5
KH
80752009-05-15 Kenichi Handa <handa@m17n.org>
8076
8077 * font.c (Ffont_spec): Check arguments.
8078
337fbd17
CY
80792009-05-14 Chong Yidong <cyd@stupidchicken.com>
8080
8081 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8082 weight when testing attributes (Bug#3282).
8083
47a6002f
JD
80842009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8085
8086 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8087 what we expect to get in the next ConfigureNotify event.
8088
9cb363db
YM
8089 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8090 before Xft one (Bug#1696).
8091
b9126609
CY
80922009-05-07 David Reitter <david.reitter@gmail.com>
8093
8094 * nsfns.m (Fx_display_planes): Compute bitplanes using
8095 NSBitsPerPixelFromDepth (Bug#3207).
8096
27a69fd9
CY
80972009-05-10 Chong Yidong <cyd@stupidchicken.com>
8098
8099 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8100
00f37552
TTN
81012009-05-10 Ulrich Mueller <ulm@gentoo.org>
8102
8103 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8104
2d82a920
DR
81052009-05-07 David Reitter <david.reitter@gmail.com>
8106
ec7709ba
JB
8107 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8108 Respect mouse face background.
2d82a920 8109
46b0d52d
DR
81102009-05-07 David Reitter <david.reitter@gmail.com>
8111
ec7709ba
JB
8112 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8113 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8114 in ns_update_begin and ns_update_end.
8115
ce1b23bb
SM
81162009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8117
5996e1b7
SM
8118 * nsfns.m (ns_get_screen): Rewrite.
8119 Don't presume selected-frame is of type `ns'.
8120
ba98e3a0
SM
8121 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8122 all drivers.
8123
ce1b23bb
SM
8124 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8125
bcda200f
YM
81262009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8127
8128 * keyboard.h (add_user_signal): Fix typo in extern.
8129
8130 * lisp.h (add_user_signal): Remove extern.
8131
8132 * unexelf.c (unexec): Consider a section to precede the .bss section
8133 if its addresses overlap that of .bss.
8134 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8135 instead of dumping process.
8136
864660a2
SM
81372009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8138
8139 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8140
50da4e56
SM
81412009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8142
8143 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8144
51520a1a
DN
81452009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8146
8147 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8148 any statements.
8149
409ea3a1
AS
81502009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8151
59c4c60f
AS
8152 * process.c (read_process_output): Make sure the current buffer is
8153 always restored.
8154
409ea3a1
AS
8155 * coding.c (record_conversion_result): Don't modify
8156 Vlast_code_conversion_error for successful result.
8157 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8158
56f00ed2
KH
81592009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8160
8161 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8162 (load_charset_map): Remove unnecessary code.
56f00ed2 8163
4491c9d2
DR
81642009-04-30 David Reitter <david.reitter@gmail.com>
8165
35f5b128 8166 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8167 through f24.
8168
6970f632
CY
81692009-04-30 Chong Yidong <cyd@stupidchicken.com>
8170
8171 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8172
8173 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8174 face_at_buffer_position.
8175 (face_before_or_after_it_pos, get_next_display_element)
8176 (note_mouse_highlight): Update face_at_buffer_position call.
8177
8178 * term.c (term_mouse_highlight):
8179 * msdos.c (IT_note_mouse_highlight):
8180 * fontset.c (Finternal_char_font):
35f5b128 8181 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8182
8183 * dispextern.h (face_at_buffer_position): Update prototype.
8184
0c616f63
KH
81852009-04-30 Kenichi Handa <handa@m17n.org>
8186
35f5b128 8187 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8188
ad3aaf33
AS
81892009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8190
8191 * callproc.c (Fcall_process): Fix GC protection. Make sure
8192 current buffer is always restored.
8193
c3c963a0
YM
81942009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8195
8196 * atimer.c (init_atimer): Also clear stopped_atimers.
8197
8198 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8199
7e3386cb
YM
8200 * process.c (create_process): Clean up merger residues of
8201 2008-07-17 change.
8202
91f68422
CY
82032009-04-29 Ulrich Mueller <ulm@gentoo.org>
8204
8205 * lread.c (Vread_circle): New variable.
8206 (read1): Disable recursive read if Vread_circle is nil.
8207
24b34550
KH
82082009-04-29 Kenichi Handa <handa@m17n.org>
8209
8210 * fontset.h (set_default_ascii_font): Delete extern.
8211
8212 * fontset.c (set_default_ascii_font): Delete this unused function.
8213
8214 * frame.c (x_set_font): When ARG is a font-object, check if the
8215 font-object matches with the ASCII font-spec of the frame's
9c358bda 8216 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8217
77bf07e1
AS
82182009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8219
8220 * fns.c (Flocale_info): Protect vector from GC during decoding.
8221
8222 * process.c (Fstart_process): Protect argv strings from GC during
8223 encoding.
8224
2c55aacf
AS
82252009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8226
8227 * sysdep.c: Include <ctype.h>.
8228
b892d3c9
DR
82292009-04-27 David Reitter <david.reitter@gmail.com>
8230
35f5b128 8231 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8232 Remove commented-out code.
8233
9d0644c4
JB
82342009-04-26 Johan Bockgård <bojohan@gnu.org>
8235
8236 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8237
b7053016
JR
82382009-04-25 Jason Rumney <jasonr@gnu.org>
8239
8240 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8241
4e8231f3
YM
82422009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8243
8244 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8245 Swap bytes in short integer if fringe bitmap width > 8.
8246
493dcf2c
KH
82472009-04-23 Kenichi Handa <handa@m17n.org>
8248
8249 * xfaces.c (Fx_list_fonts): If a font size is specified in
8250 PATTERN, set it in returned scalable fonts.
8251
401e9e57
CY
82522009-04-22 Chong Yidong <cyd@stupidchicken.com>
8253
708e05dc
CY
8254 * keyboard.c (Fset_input_meta_mode): Doc fix.
8255
8256 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8257
1ac9108a 8258 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8259
8260 * coding.c (Fterminal_coding_system): Doc fix.
8261
8262 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8263 (Fx_display_pixel_height, Fx_display_planes)
8264 (Fx_display_color_cells, Fx_server_max_request_size)
8265 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8266 (Fx_display_mm_height, Fx_display_mm_width)
8267 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8268 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8269 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8270 (check_x_display_info): Handle terminal objects instead of
8271 terminal ids.
8272
401e9e57
CY
8273 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8274 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8275 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8276 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8277
df80c7f0
KH
82782009-04-21 Kenichi Handa <handa@m17n.org>
8279
5a8f12af 8280 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8281 (font_score): Check AVGWIDTH too.
908567ef 8282
df80c7f0
KH
8283 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8284 worst case.
1ac9108a
SM
8285 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8286 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8287
705af33f
JR
82882009-04-19 Jason Rumney <jasonr@gnu.org>
8289
8290 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8291 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8292
8293 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8294 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8295 get_phys_cursor_geometry.
8296
b71ac3dd 8297 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8298 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8299 using get_phys_cursor_geometry.
8300
8301 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8302 correctly calculated.
8303
dc2933eb
JD
83042009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8305
1ac9108a
SM
8306 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8307 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8308 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8309 is deprecated.
8310
973e7849
AS
83112009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8312
8313 * font.c (font_put_frame_data): Use xfree instead of free.
8314
314d66f4
JB
83152009-04-17 Juanma Barranquero <lekktu@gmail.com>
8316
8317 * w32font.c (Qja, Qko): Remove declarations.
8318 (syms_of_w32font): Don't DEFSYM them.
8319
cf702558
CY
83202009-04-17 Chong Yidong <cyd@stupidchicken.com>
8321
8322 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8323
8324 * font.h (Qja, Qko): Extern them.
8325
8326 * ftfont.c (Qja, Qko): Remove declarations.
8327
8328 * xfont.c (Qja, Qko): Remove declarations.
8329
b50504f5
KH
83302009-04-17 Kenichi Handa <handa@m17n.org>
8331
bde25748
KH
8332 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8333 string from a vector to handle Latin-1 characters correctly.
8334
b50504f5
KH
8335 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8336 entity even if the cache hits.
8337
f4646fff
AS
83382009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8339
8340 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8341 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8342
e7deaab0
AS
8343 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8344 * lisp.h: Adjust prototypes.
8345
0a0e7d49
CY
83462009-04-16 Chong Yidong <cyd@stupidchicken.com>
8347
8348 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8349 change (Bug#3003).
8350
3c908a57
KH
83512009-04-16 Kenichi Handa <handa@m17n.org>
8352
1ac9108a 8353 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8354
8355 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8356 adstyle.
8357
8358 * ftfont.c (Qja, Qko): Don't make them static.
8359 (enum ftfont_cache_for): New enum.
8360 (fc_charset_table): Undo the previous change.
8361 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8362 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8363 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8364 non-scarable font, try to get AVERAGE_WIDTH.
8365 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8366 Change ft_face_cache from a list of a hash-table. Don't check
8367 `ja' and `ko' adstyle here.
8368 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8369 FTFONT_CACHE_FOR_CHARET.
8370 (ftfont_get_charset): Undo the previous change.
1ac9108a 8371 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8372 (ftfont_close): Likewise.
8373 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8374
8375 * font.c (font_sort_entites): Change the meaning of the arg
8376 BEST-ONLY. Don't optimize for VEC of lenght 1.
8377 (font_select_entity): Just return the value of font_sort_entites.
8378
8379 * xfaces.c (merge_face_vectors): Reflect font properties in
8380 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8381 font_clear_prop if a face attribute doesn't change.
8382
3c908a57
KH
8383 * charset.h (charset_ksc5601): Extern it.
8384
8385 * charset.c (charset_ksc5601): New variable.
8386 (Fdefine_charset_internal): Set charset_ksc5601.
8387 (init_charset_once): Initialize charset_ksc5601 to -1.
8388
d65859c3
DN
83892009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8390
8391 * fileio.c (history_delete_duplicates): Remove unused declaration.
8392
8393 * callint.c (history_delete_duplicates): New declaration.
8394 (Fcall_interactively): Remove command history duplicates when
8395 history_delete_duplicates is true.
8396
3ba010e5
EZ
83972009-04-14 Eli Zaretskii <eliz@gnu.org>
8398
8399 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8400
06f19b91
KH
84012009-04-14 Kenichi Handa <handa@m17n.org>
8402
8403 * font.c (Ffont_info): Fix docstring. Fix the second element of
8404 the returned value (bug#2949).
8405
2cce8bfc
CY
84062009-04-14 Chong Yidong <cyd@stupidchicken.com>
8407
8408 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8409
d156542d
KH
84102009-04-14 Kenichi Handa <handa@m17n.org>
8411
8412 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8413 encoding charset is ascii_compatible.
8414
8415 * charset.c (Fdefine_charset_internal): Make charset
8416 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8417 code_offset is 0, and covers all ASCII characters.
8418
86fa089e
SM
84192009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8420
8421 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8422 (ns_string_to_pasteboard_internal):
8423 * nsmenu.m (process_dialog):
8424 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8425 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8426 * lisp.h (Fx_load_color_file): Declare.
8427
a8a3728b
KH
84282009-04-13 Kenichi Handa <handa@m17n.org>
8429
1ac9108a 8430 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8431 (font_select_entity): Suppress the code to optimize for the same
8432 kind of fonts.
8433 (font_load_for_lface): Get a font that supports at least ASCII
8434 characters.
8435
8436 * ftfont.c (Qja, Qko): New variables.
8437 (fc_charset_table): Delete uniquifier data for iso8859-1.
8438 (ftfont_get_latin1_charset): New function.
8439 (get_adstyle_property): New function.
8440 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8441 bitmap fonts.
8442 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8443 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8444 `ko' or `ja'.
8445 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8446 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8447 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8448 property.
8449 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8450 (syms_of_ftfont): DEFSYM Qja and Qko.
8451
483670b5
KH
84522009-04-09 Kenichi Handa <handa@m17n.org>
8453
12b55765
KH
8454 * charset.c (map_charset_chars): For a charset of `superset'
8455 method, fix calculation of code range.
8456
483670b5
KH
8457 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8458 from the list of extra properties.
8459 (font_clear_prop): Be sure to delete `:name' font property.
8460
57d3b93b
KH
84612009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8462
b4b2c2ca
YM
8463 * dispnew.c (redraw_overlapping_rows): Fix detection of
8464 overlapping for topmost and bottommost rows.
8465
1ac9108a 8466 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8467
472c3609
JR
84682009-04-06 Jason Rumney <jasonr@gnu.org>
8469
8470 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8471
ab193662
KH
84722009-04-06 Kenichi Handa <handa@m17n.org>
8473
8474 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8475
8476 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8477
0c26f026
KH
84782009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8479
8480 * ftfont.c (ftfont_open): Fix checking of the return value of
8481 FT_Load_Char. Fix setting font->underline_thickness.
8482
e173bbce
CY
84832009-04-04 Chong Yidong <cyd@stupidchicken.com>
8484
8485 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8486 (Fterminal_parameters, Fterminal_parameter)
8487 (Fset_terminal_parameter): In doc string, refer to terminal
8488 objects rather than terminal ids.
8489
693a2698
EZ
84902009-04-04 Eli Zaretskii <eliz@gnu.org>
8491
8492 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8493 ret_lim_data. (Bug#2867)
8494
d5221487
CY
84952009-04-03 Chong Yidong <cyd@stupidchicken.com>
8496
8497 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8498 so they don't get wider than the window, matching 2006-01-23
8499 change to the partner function in xdisp.c (Bug#2800).
8500
223509a3
KH
85012009-04-03 Kenichi Handa <handa@m17n.org>
8502
8503 * print.c (print_object): Make each lowest sub_char_table start a
8504 new line (Bug#2866).
8505
74fcd0b1
KH
85062009-04-02 Kenichi Handa <handa@m17n.org>
8507
8508 * fontset.c (fontset_font): Record no-font when a fontset
8509 explicitly tells not to try another font-specs.
8510
c542407d
SM
85112009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8512
8513 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8514
e3869731
KH
85152009-03-30 Kenichi Handa <handa@m17n.org>
8516
d8d2f142
KH
8517 * fontset.c (fontset_from_font): Specify only registry in a
8518 font-spec for all characters supported by that registry.
8519
e3869731
KH
8520 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8521 even if HAVE_M17N_FLT is not defined.
8522
5da5f805
CY
85232009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8524
8525 * ftfont.c: Conditionalize prototyping and use of
8526 ftfont_variation_glyphs.
8527
ab226c50
SM
85282009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8529
9628fed7
SM
8530 * frame.c (delete_frame): Work around compiler bug.
8531
8532 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8533 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8534 Some more EMACS_INT.
8535 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8536
8537 * xdisp.c (dump_glyph): Fix typo.
8538
ae19ba7c
SM
8539 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8540 (adjust_markers_gap_motion, adjust_markers_for_delete)
8541 (adjust_markers_for_insert, adjust_point)
8542 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8543 (make_gap, copy_text, count_size_as_multibyte, insert)
8544 (insert_and_inherit, insert_before_markers)
8545 (insert_before_markers_and_inherit, insert_1)
8546 (count_combining_before, count_combining_after, insert_1_both)
8547 (insert_from_string, insert_from_string_before_markers)
8548 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8549 (insert_from_buffer_1, adjust_after_replace)
8550 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8551 (replace_range_2, del_range, del_range_1, del_range_byte)
8552 (del_range_both, del_range_2, modify_region)
8553 (prepare_to_modify_buffer, signal_before_change)
8554 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8555 for buffer positions and sizes.
8556 * lisp.h: Adjust prototypes accordingly.
8557
8558 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8559 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8560 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8561
ab226c50
SM
8562 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8563
46dfb8fb
JD
85642009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8565
8566 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8567 lines and columns so we keep the same pixel height and width.
8568
8569 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8570 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8571 (x_handle_net_wm_state): New function to update frame parameter
8572 fullscreen.
8573 (x_term_init): Initialize atoms for _NET_WM_STATE.
8574
8575 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8576
d347e494
SM
85772009-03-27 Kevin Ryde <user42@zip.com.au>
8578
8579 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8580 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8581 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8582 (Fgpm_mouse_stop): Pass that new parameter.
8583 * termhooks.h (close_gpm): Adjust prototype.
8584
84db11d6
SM
85852009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8586
c95a5008
SM
8587 * lisp.h (Fx_focus_frame): Declare.
8588
84db11d6
SM
8589 * callint.c (Fcall_interactively): For '^' just delegate the work to
8590 handle-shift-selection.
8591 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8592
0a1958d6
CY
85932009-03-24 Chong Yidong <cyd@stupidchicken.com>
8594
0bfdff23
CY
8595 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8596
0a1958d6
CY
8597 * data.c (Qinteractive_form): New variable.
8598 (Finteractive_form): Use it.
8599
8600 * eval.c (Fcommandp): Use Qinteractive_form.
8601
58aec0d6
JR
86022009-03-24 Jason Rumney <jasonr@gnu.org>
8603
8604 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8605 Calculate total size precisely. Decode environment variables
8606 before substituting. (Bug#38)
8607
553dd618
KH
86082009-03-24 Kenichi Handa <handa@m17n.org>
8609
8610 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8611 encoding (Bug#2722).
553dd618 8612
c39ea606
JD
86132009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8614
8615 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8616 that gdpy is set.
8617
bc9b2b5e
AM
86182009-03-22 Alan Mackenzie <acm@muc.de>
8619
8620 * callint.c (Finteractive): Clarify the doc string - even
8621 promptless elements need \n separators.
8622
9f995a76
JR
86232009-03-22 Jason Rumney <jasonr@gnu.org>
8624
8625 * w32term.c (syms_of_w32term): Doc fix for
8626 x-use-underline-position-properties.
8627
22749e9a
EZ
86282009-03-21 Eli Zaretskii <eliz@gnu.org>
8629
8630 * w32.c (getpwuid): Change argument type to unsigned.
8631 (struct w32_id): Change type of `rid' member to unsigned.
8632 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8633 argument ID to unsigned. All callers changed.
8634 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8635
e00553bf
EZ
86362009-03-20 Eli Zaretskii <eliz@gnu.org>
8637
8638 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8639 negative, produce a float value.
8640
8641 * dired.c (make_uid, make_gid): New functions.
8642 (Ffile_attributes): Use them to avoid negative UID and GID.
8643
f761d6b6
JB
86442009-03-20 Juanma Barranquero <lekktu@gmail.com>
8645
8646 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8647 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8648 Fix typos in docstrings.
8649
d507f8d7
KH
86502009-03-19 Kenichi Handa <handa@m17n.org>
8651
8652 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8653 changed, use font_load_for_lface to get a new font object.
8654 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8655
8656 * frame.c (x_set_font): Handle the case that ARG is a cons.
8657
c68845e0
GM
86582009-03-19 Glenn Morris <rgm@gnu.org>
8659
8660 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8661
bfa49dd1
CY
86622009-03-19 Chong Yidong <cyd@stupidchicken.com>
8663
8664 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8665
8458d4c1
KH
86662009-03-19 Kenichi Handa <handa@m17n.org>
8667
8668 * charset.c (load_charset_map_from_file): When a mapfile can't be
8669 loaded, signal an error.
8670
78e7d1fe
EZ
86712009-03-18 Eli Zaretskii <eliz@gnu.org>
8672
8673 * dired.c (Ffile_attributes): Make sure UID and GID are always
8674 positive, even if the value is too large for a positive EMACS_INT.
8675 Doc fix.
8676
8677 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8678
5da9fdfa
YM
86792009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8680
8681 * xmenu.c (xdialog_show): Move Fredisplay call ...
8682 (Fx_popup_dialog): ... here.
8683
7519c40d
SM
86842009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8685
8686 * dired.c (file_name_completion): Disable the first optimization just
8687 installed, since it is not implemented correctly.
8688
2cd298e2
SM
86892009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8690
8691 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8692 only if the entry can affect bestmatch.
2cd298e2
SM
8693 Stop the search early, as Ftry_completion already does.
8694
48d37adf
CY
86952009-03-17 Chong Yidong <cyd@stupidchicken.com>
8696
e10c9c93 8697 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8698
9286b16a
CY
86992009-03-15 Chong Yidong <cyd@stupidchicken.com>
8700
8701 * keyboard.c (parse_menu_item): Don't display remappings as menu
8702 equivalent bindings (Bug#788).
8703
f7b146dc
JR
87042009-03-15 Jason Rumney <jasonr@gnu.org>
8705
8706 * w32term.h (WM_EMACS_PAINT): New message.
8707 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8708 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8709 before passing to lisp thread. (Bug#950)
8710
f761d6b6 87112009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8712
d93f9575
CY
8713 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8714 variable as it was never reset.
8715 (ns_term_init): Remove initialization of Lisp-settable defaults
8716 and ns_expand_space.
8717 (-setPanelFromDefaultValues): Remove ns_expand_space.
8718 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8719 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8720 i.e. no additional spacing, similar to Carbon port.
8721
d93f9575
CY
8722 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8723 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8724
305018ec
JD
87252009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8726
8727 * sound.c (alsa_configure): Remove call to deprecated
8728 snd_pcm_sw_params_set_xfer_align.
8729
f761d6b6 87302009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8731
8732 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8733 after clicking in a detached tool bar.
8734 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8735
46e722a9
SM
87362009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8737
348db3dd
SM
8738 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8739 int/Lisp_Object mixup).
46e722a9 8740
a3d16f39
KH
87412009-03-13 Kenichi Handa <handa@m17n.org>
8742
8743 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8744 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8745 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8746 (set_fontset_font): Change ARG to a vector. Handle range_list in
8747 ARG correctly.
8748 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8749 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8750 the above change.
8751 (fontset_from_font): Fix previous change.
fe24f56a 8752 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8753 entry. If FONTSET is the default fontset, don't set the extra
8754 slot of the returning char-table.
8755
b066e6b6
JB
87562009-03-12 Juanma Barranquero <lekktu@gmail.com>
8757
8758 * nsfns.m (Fx_close_connection): Doc fix.
8759 (Fns_do_applescript): Reflow docstring.
8760 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8761 (Fx_display_pixel_width, Fx_display_pixel_height)
8762 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8763 Fix typos in docstrings.
8764 (Fns_set_alpha): Fix typos in error messages.
8765
d472514e 87662009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8767
d472514e 8768 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8769 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8770 were used for such events.
8771
d472514e
JB
8772 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8773 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8774
d472514e 8775 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8776 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8777
fb930676
KH
87782009-03-11 Kenichi Handa <handa@m17n.org>
8779
ff85581a
KH
8780 * font.h (font_open_by_spec): Extern it.
8781
c50b7e98
KH
8782 * font.c (font_open_by_spec): New function.
8783 (font_open_by_name): Use font_open_by_spec.
8784
fb930676
KH
8785 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8786 fontset of the frame.
8787
8788 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8789 modify the default font of frames that use this fontset.
8790 (num_auto_fontsets): New variable.
8791 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8792 name. Be sure to set FONTSET_ASCII to the correct font name.
8793 (update_auto_fontset_alist): New function.
8794
df4e8455
JB
87952009-03-11 Juanma Barranquero <lekktu@gmail.com>
8796
8797 * makefile.w32-in: Update dependencies.
8798
0a375797
AR
87992009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8800
8801 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8802
61313fa3
SM
88032009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8804
8805 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8806
b55103fb
CY
88072009-03-10 Chong Yidong <cyd@stupidchicken.com>
8808
8809 * lread.c (Feval_buffer): Doc fix.
8810
dde2559c
KH
88112009-03-09 Kenichi Handa <handa@m17n.org>
8812
8813 * charset.c (Qfile_name_handler_alist): Extern it.
8814 (load_charset_map_from_file): Temporarily bind
8815 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8816
df4e8455 88172009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8818
47f588bb
GM
8819 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8820 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8821
4ddf94bd
AR
88222009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8823
4c9bdfc2
AR
8824 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8825 (x_set_window_size): Change back to calculated method of setting
8826 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8827 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8828 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8829
fe41ae9e
AR
8830 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8831
4c9bdfc2
AR
8832 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8833 accelerator in parens under GNUstep.
8834
825d0875
KH
88352009-03-06 Kenichi Handa <handa@m17n.org>
8836
8837 These changes are to detect incorrect composition sequence without
f3b3be74 8838 looking ahead the source. (Bug#2370)
825d0875
KH
8839
8840 * coding.h: Include "composite.h".
8841 (enum compisition_state): New enum.
8842 (struct compisition_status): New struct.
8843 (struct iso_2022_spec): New member cmp_status.
8844 (struct emacs_mule_spec): New struct.
8845 (struct coding_system): New members ctext_extended_segment_len and
8846 embedded_utf_8. Change the union member
8847 spec.emacs_mule_full_support to spec.emacs_mule.
8848
8849 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8850 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8851 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8852 (ADD_COMPOSITION_DATA): New arg nbytes.
8853 (emacs_mule_char): New arg cmp_status.
8854 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8855 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8856 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8857 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8858 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8859 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8860 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8861 (EMACS_MULE_COMPOSITION_END): New macro.
8862 (emacs_mule_finish_composition): New function.
8863 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8864 (decode_coding_emacs_mule): Avoid long looking ahead while
8865 handling composition.
8866 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8867 (ENCODE_COMPOSITION_RULE): New macro.
8868 (finish_composition): New function.
8869 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8870 (DECODE_COMPOSITION_START): New implementation.
8871 (DECODE_COMPOSITION_END): Likewise.
8872 (STORE_COMPOSITION_RULE): New macro.
8873 (decode_coding_iso_2022): Avoid long looking ahead while handling
8874 composition, CTEXT extended segment, and embedded UTF-8.
8875 (setup_coding_system): For a coding of type iso-2022, reset
8876 CODING_ISO_EXTSEGMENT_LEN (coding) and
8877 CODING_ISO_EMBEDDED_UTF_8 (coding).
8878 (get_translation): Delete arguments last_block, from_nchars,
8879 to_nchars. Callers changed.
8880 (produce_chars): Don't modify charbuf. Adjusted for the change of
8881 get_translation.
98a326f7 8882 (produce_composition): Adjust for the new annotation sequence.
825d0875 8883 (handle_composition_annotation): Likewise.
98a326f7 8884 (consume_chars): Adjust for the change of get_translation.
825d0875 8885
ccbc4452
AR
88862009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8887
4ddf94bd 8888 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8889
988a7ddb
KH
88902009-03-05 Kenichi Handa <handa@m17n.org>
8891
8892 * font.c (font_select_entity): New function.
8893 (font_find_for_lface): Use font_select_entity to select a font.
8894
8895 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8896 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8897 font with C restriction.
8898
98a326f7 88992009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8900
be1bce46 8901 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8902
10ea2b82
JR
89032009-03-04 Jason Rumney <jasonr@gnu.org>
8904
2c93b248 8905 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8906 characters that have already been read. (Bug#2569)
2c93b248 8907
10ea2b82
JR
8908 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8909 Log an error message if check_image_size failed.
8910 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8911 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8912
71a0c011
EZ
89132009-03-02 Eli Zaretskii <eliz@gnu.org>
8914
8915 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8916 when decoding process output.
8917
2f63bba8
RS
89182009-03-01 Richard M Stallman <rms@gnu.org>
8919
8920 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8921
8922 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8923
0a9564cb
EZ
89242009-02-28 Eli Zaretskii <eliz@gnu.org>
8925
8926 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8927 (decode_coding_emacs_mule, decode_coding_iso_2022)
8928 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8929 (decode_coding_raw_text, decode_coding_charset)
8930 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8931 Honor inhibit-eol-conversion. (Bug #2186)
8932
449148b3
JR
89332009-02-28 Jason Rumney <jasonr@gnu.org>
8934
8935 * coding.c (detect_coding_charset): If not checking latin extra,
8936 fail on characters between 0x80 and 0xA0. (Bug#2354)
8937
a4aee864
EZ
89382009-02-28 Eli Zaretskii <eliz@gnu.org>
8939
8940 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8941 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8942
d88bee5a
GM
89432009-02-27 Glenn Morris <rgm@gnu.org>
8944
8945 * callint.c (Finteractive): Doc fix.
8946
a808f22d
KH
89472009-02-27 Kenichi Handa <handa@m17n.org>
8948
8949 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8950
caf8d60c
CY
89512009-02-27 Chong Yidong <cyd@stupidchicken.com>
8952
8953 * font.c (font_style_to_value): Set value for unknown symbols to
8954 100 instead of 255.
b61137ea
CY
8955 (weight_table, slant_table, width_table): Treat "unspecified" as
8956 the default value.
caf8d60c 8957
1a0de25c
JB
89582009-02-26 Juanma Barranquero <lekktu@gmail.com>
8959
8960 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8961
8fc45744
JB
89622009-02-25 Juanma Barranquero <lekktu@gmail.com>
8963
107bd7d1
JB
8964 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8965 error as soon as a recursive load is detected.
8fc45744 8966
f097e223
AR
89672009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8968
8969 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8970 before caching.
8971
8810a12f
KH
89722009-02-24 Kenichi Handa <handa@m17n.org>
8973
8974 * fontset.c (fontset_find_font): Fix the condition for checking
8975 unavailable font.
8976
2c7d1565
GM
89772009-02-24 Glenn Morris <rgm@gnu.org>
8978
8979 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8980 whitespace that confuses documentation.
8981
a20878b6
MB
89822009-02-23 Miles Bader <miles@gnu.org>
8983
8984 * process.c (Flist_system_processes, Fprocess_attributes)
8985 (syms_of_process): Rename `system-process-attributes' to
8986 `process-attributes'.
8987
b3b58c01
AS
89882009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8989
1b3b981b
AS
8990 * coding.h (struct coding_system): Make safe_charsets a pointer to
8991 unsigned char.
8992 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8993 being 255.
8994 (SAFE_CHARSET_P): Likewise.
8995 (setup_iso_safe_charsets): Properly setup safe_charsets.
8996 (Fdefine_coding_system_internal): Likewise.
8997 (setup_coding_system): Likewise. Remove unneeded casts.
8998 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8999 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9000 unneeded casts.
9001
b3b58c01
AS
9002 * insdel.c (del_range_2): Don't modify gap contents when called
9003 from decode_coding_object. (Bug#1809)
9004
0b6f228c
CY
90052009-02-21 Chong Yidong <cyd@stupidchicken.com>
9006
9007 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9008 Qfont_object.
9009 (Ftype_of): Recognize font objects.
9010
9011 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9012
9013 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9014 moved to data.c.
9015
52f8870b
AR
90162009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9017
9018 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9019 async_iconified. Based on a patch by Christian Lynbech
9020 <christian.lynbech@tieto.com>.
9021 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9022
7087d5e9
GM
90232009-02-20 Glenn Morris <rgm@gnu.org>
9024
9025 * syntax.c (Fskip_chars_forward): Fix doc typo.
9026
41d2ceef
CY
90272009-02-20 Chong Yidong <cyd@stupidchicken.com>
9028
9029 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9030
1a3b7ca6
CY
90312009-02-19 Chong Yidong <cyd@stupidchicken.com>
9032
9033 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9034
73cce38d
KH
90352009-02-19 Kenichi Handa <handa@m17n.org>
9036
9037 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9038 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9039
a51092ee
DN
90402009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9041
9042 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9043
c423ecca
KH
90442009-02-18 Kenichi Handa <handa@m17n.org>
9045
9046 * font.c (font_check_otf_features): Fix handling of `nil' element.
9047 (Ffont_spec): Describe :lang and :otf in the docstring.
9048
4c1958f4
AS
90492009-02-16 Andreas Schwab <schwab@suse.de>
9050
9051 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9052 string.
9053
5704f39a
KH
90542009-02-16 Kenichi Handa <handa@m17n.org>
9055
9056 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9057 (Bug#1723)
5704f39a 9058
8f0085aa
CY
90592009-02-14 Chong Yidong <cyd@stupidchicken.com>
9060
a057d86a 9061 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9062
9063 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9064 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9065
aff01dd9
EZ
90662009-02-14 Eli Zaretskii <eliz@gnu.org>
9067
9068 * msdos.c (MAX_SCREEN_BUF): New macro.
9069 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9070 Encode the entire run of glyphs sharing the same face, instead of
9071 doing that one glyph at a time (fixes a bug with displaying
9072 double-size characters).
9073
ba301db3
AR
90742009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9075
9076 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9077
9078 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9079 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9080 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9081
9082 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9083 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9084
51d861de
SM
90852009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9086
ac146f82 9087 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9088 invisible areas.
9089
7fed8996
JR
90902009-02-12 Jason Rumney <jasonr@gnu.org>
9091
631ea4fb
JR
9092 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9093 (add_font_entity_to_list): Call check_face_name even when family
9094 is unspecified.
9095
cb4a3e42
JR
9096 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9097 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9098 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9099
7fed8996 9100 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9101 raster fonts. (Bug#2219)
7fed8996 9102
895416e3
KH
91032009-02-12 Kenichi Handa <handa@m17n.org>
9104
9105 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9106 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9107 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9108 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9109 (find_automatic_composition): While looking forward and backward,
9110 check static composition. Fix where to stop looking forward.
9111 (composition_adjust_point): Fix checking of static composition.
9112 (Fcomposition_get_gstring): Pay attention to
1dacf998 9113 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9114
9115 * lisp.h (fast_looking_at): Extern it.
9116
9117 * search.c (fast_looking_at): New function.
9118
51d861de 9119 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9120 <struct glyph>.u.cmp.to.
9121 (append_composite_glyph): Likewise.
9122
51d861de 9123 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9124 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9125 composition.
51d861de 9126 (append_composite_glyph): Adjust for the change of
895416e3
KH
9127 <strcut glyph>.u.cmp.to.
9128
8510724d
JB
91292009-02-11 Juanma Barranquero <lekktu@gmail.com>
9130
9131 * casetab.c (init_casetab_once):
9132 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9133 * font.c (font_update_lface):
9134 * fontset.c (Fnew_fontset):
9135 * ftfont.c (ftfont_drive_otf):
9136 * xfont.c (xfont_open):
9137 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9138
294fa707
SM
91392009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9140
9141 * fileio.c (Fwrite_region): !NILP -> CONSP.
9142
b5bfebec
AS
91432009-02-10 Andreas Schwab <schwab@suse.de>
9144
9145 * process.c (send_process): Properly relocate pointer into data
adab88bd 9146 when using encoded data. (Bug#2272)
b5bfebec 9147
cb84a2be
KH
91482009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9149
9150 * coding.c (detect_coding_charset): Fix previous change.
9151
89e09428
JR
91522009-02-08 Jason Rumney <jasonr@gnu.org>
9153
9154 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9155 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9156
4470a277
AS
91572009-02-07 Andreas Schwab <schwab@suse.de>
9158
9159 * unexelf.c (unexec): Fix error message.
9160
3175b12a
AR
91612009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9162
9163 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9164 when modal window is active. (Bug #2152)
3175b12a
AR
9165 (applicationShouldTerminate:): Remove now-unneeded while loop
9166 around NSRunAlertPanel.
9167
9168 * nsmenu.m (popupSession): New file-global variable.
9169 (pop_down_menu): End the popupSession before closing dialog.
9170 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9171 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9172 don't query NSApp for events (just sleep instead).
9173
8434d0b8
EZ
91742009-02-07 Eli Zaretskii <eliz@gnu.org>
9175
51d861de
SM
9176 * coding.c (syms_of_coding) <translation-table-for-input>:
9177 Modify doc string to discourage use for character code unification.
8434d0b8 9178
aa82edfd
CY
91792009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9180
9181 * atimer.c (run_timers): Update pending_atimers.
9182
2d283c7c
CY
91832009-02-06 Chong Yidong <cyd@stupidchicken.com>
9184
eb306cab
CY
9185 * image.c (svg_load_image): Fix last change.
9186
2d283c7c
CY
9187 * xfns.c (Fx_create_frame): Signal an error if no font is
9188 found (Bug#2147).
9189
4d8e170e
JB
91902009-02-05 Juanma Barranquero <lekktu@gmail.com>
9191
9192 * character.c (syms_of_character) <script-representative-chars>:
9193 Fix typo in docstring.
9194
c96169a0
AR
91952009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9196
9197 * nsmenu.m (pop_down_menu): New function.
9198 (ns_popup_dialog): Call it on unwind.
9199 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9200 call timer_check() (Bug#2154).
9201 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9202 handling_signal is set.
9203 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9204
31fd7c5c 9205 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9206
9207 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9208
9209 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9210
51d861de
SM
9211 * keyboard.c (poll_for_input_1, handle_async_input):
9212 Set handling_signal under HAVE_NS.
c96169a0 9213
aacd8ba1
GM
92142009-02-04 Glenn Morris <rgm@gnu.org>
9215
9216 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9217
4cb75c4b
KH
92182009-02-04 Kenichi Handa <handa@m17n.org>
9219
9220 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9221
9222 * charset.c (Fchar_charset): New optional arg restriction.
9223
9224 * coding.h (coding_system_charset_list): Extern it.
9225
9226 * coding.c (coding_system_charset_list): New function.
9227
9228 * composite.c: Include coding.h and termhooks.h.
9229 (composition_gstring_p): Fix for the terminal case.
9230 (composition_gstring_width): Likewise.
9231 (fill_gstring_body): Likewise.
9232 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9233 the frame.
9234 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9235 is within a composition.
867d4bb3 9236 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9237
9238 * term.c (encode_terminal_code): Fix handling of composition.
9239 (produce_composite_glyph): For static composition, get pixel_width
9240 from struct composition.
9241
826ba17e
AS
92422009-02-02 Andreas Schwab <schwab@suse.de>
9243
9244 * unexelf.c (unexec): Handle unaligned bss offset.
9245
8ad093db
AR
92462009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9247
9248 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9249 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9250
8ad093db
AR
9251 * keyboard.c (handle_interrupt): Don't call
9252 quit_throw_to_read_char() under NS.
d0a76a6e 9253
8ad093db
AR
9254 * blockinput.h: Remove NS-specific code.
9255
4d18a7a2
DN
92562009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9257
db878925
DN
9258 * dispnew.c (window_change_signal): Don't try to get the size of a
9259 suspended tty frame.
9260 * term.c (Fresume_tty): Resize if the size has changed while the
9261 tty was suspended.
9262
4d18a7a2
DN
9263 * alloc.c (mark_stack): Properly conditionalize previous change.
9264
8984df7c
JB
92652009-01-30 Juanma Barranquero <lekktu@gmail.com>
9266
9267 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9268 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9269 Remove; this code is not used on Windows.
9270
75f4f1ac
EZ
92712009-01-30 Eli Zaretskii <eliz@gnu.org>
9272
9273 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9274 EOLs that also has stray ^M characters.
9275
07a1e794
JB
92762009-01-30 Juanma Barranquero <lekktu@gmail.com>
9277
9278 * atimer.c (run_timers, alarm_signal_handler):
9279 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9280 * w32inevt.c (w32_console_read_socket):
9281 * w32term.c (w32_read_socket):
9282 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9283
a8b11cc9
CY
92842009-01-30 Chong Yidong <cyd@stupidchicken.com>
9285
9286 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9287 Initialize it as a relative filename pattern.
9288 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9289 (Fcall_process_region): Simplify temp file creation using
9290 temporary-file-directory.
9291
c279587b
EZ
92922009-01-29 Eli Zaretskii <eliz@gnu.org>
9293
9294 * msdos.c: Rename pending_signals to msdos_pending_signals.
9295 (sig_suspender, sigprocmask): Adjust.
9296
a8fe3242
CY
92972009-01-29 Chong Yidong <cyd@stupidchicken.com>
9298
9299 * keyboard.c (pending_signals): New var.
9300 (poll_for_input, input_available_signal, init_keyboard): Set it.
9301 (process_pending_signals): New function.
9302
9303 * lisp.h (QUIT): Check pending_signals instead of
9304 interrupt_input_pending. Use process_pending_signals.
9305
51d861de 9306 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9307
51d861de 9308 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9309
9310 * sysdep.c (emacs_write): Use process_pending_signals.
9311
9312 * xterm.c (XTread_socket): Update pending_signals.
9313
9314 * w32term.c (w32_read_socket): Update pending_signals.
9315
9316 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9317
6570a1c4
KH
93182009-01-29 Kenichi Handa <handa@m17n.org>
9319
9320 * xftfont.c (xftfont_has_char): New function.
9321 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9322
d72a4afa
AR
93232009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9324
9325 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9326 under GNUstep.
9327 (ns_query_color): New declaration.
9328
9329 * nsterm.m (ns_confirm_quit): New variable.
9330 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9331 (EmacsApp-applicationShouldTerminate:): Use it.
9332 (EmacsPrefsController): Let user set it.
9333 (ns_query_color): New function.
9334 (ns_defined_color): Use it.
9335 (ns_initialize): Drop.
9336 (ns_term_init): Add two lines from ns_initialize(), and set
9337 input_interrupt_mode to nil.
9338
9339 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9340 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9341
9fe78804
KH
93422009-01-28 Kenichi Handa <handa@m17n.org>
9343
9344 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9345 (fontset_get_font_group): Remember that no font-group is specified
9346 for C.
9fe78804 9347
fa57de36
CY
93482009-01-27 Chong Yidong <cyd@stupidchicken.com>
9349
930600e9
CY
9350 * fns.c (concat): Check for string overflow (bug#1787).
9351
fa57de36
CY
9352 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9353 Quadruple undo limits (bug#1501).
9354
7179ce7b
KH
93552009-01-27 Kenichi Handa <handa@m17n.org>
9356
9357 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9358 directly use GT_Get_Char_index.
9359
9360 * xftfont.c (struct xftfont_info): New member `index'.
9361
9362 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9363 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9364
5be8fcc0
CY
93652009-01-26 Kenichi Handa <handa@m17n.org>
9366
9367 * fontset.c (fontset_find_font): Fix handling of non-cons return
9368 value of fontset_get_font_group.
9369 (fontset_font): Revert last change.
9370
19ae3e61
JR
93712009-01-26 Jason Rumney <jasonr@gnu.org>
9372
9373 * w32font.c (w32font_list_internal): Return quickly if registry is
9374 unknown. Simplify final return.
9375 (add_font_entity_to_list): Break complex logic down into more
9376 manageable chunks. Move unknown registry check to
9377 w32font_list_internal.
9378
8612b71a
AR
93792009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9380
9381 Changes to remove Feval calls from GUI under NS.
9382
d8038940
JB
9383 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9384 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9385 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9386
9387 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9388 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9389 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9390 instead of NON_ASCII_KEYSTROKE_EVENT.
9391 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9392 (EmacsApp-applicationShouldTerminate:): Query user.
9393 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9394 instead of Feval.
9395
9396 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9397
9398 * keyboard.c (kbd_buffer_get_event): Check for it.
9399 (keys_of_keyboard): Define lispy keys for
9400 ns-put/unput-working-text.
9401
9402 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9403 versions.
9404 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9405
6288ae55
CY
94062009-01-25 Chong Yidong <cyd@stupidchicken.com>
9407
9408 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9409 setting current_buffer directly. (Bug#2044)
6288ae55 9410
289e7f8f
CY
94112009-01-24 Chong Yidong <cyd@stupidchicken.com>
9412
5ce87308 9413 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9414 any work. (Bug#1952, bug#1990).
5ce87308 9415
64cc3cf6 9416 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9417
b3243e6f
AR
94182009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9419
9420 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9421 (ns_no_defaults): New declaration.
9422 (main): Use it.
e0d2e69a 9423
d900b2af 9424 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9425
d900b2af 9426 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9427
d900b2af
AR
9428 * nsterm.m (ns_no_defaults): New variable.
9429 (ns_initialize): Don't read defaults when ns_no_defaults.
9430 (EmacsView-readSelectionFromPasteboard:)
9431 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9432 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9433 (ns_dumpglyphs_stretch): New function.
9434 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9435 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9436
e0d2e69a
AR
9437 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9438
3ac71f5d
CY
94392009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9440
9441 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9442 call for Sparc64.
9443
3fe53a83
AR
94442009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9445
9446 * nsfns.m:
9447 * nsgui.h:
9448 * nsmenu.m:
9449 * nsselect.m:
9450 * nsterm.h:
9451 * nsterm.m: Remove '23' comments that indicated code added during
9452 update from emacs-20 -> emacs-23.
9453
10f87c6f 94542009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9455
9456 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9457 ns_alternate_modifier. (Bug#1217)
a3b53a85 9458
c7cef62d
AR
9459 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9460 Display all shortcuts, including those w/o super modifier.
9461
575fb8bd
AR
9462 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9463
918b848b
CY
94642009-01-22 Chong Yidong <cyd@stupidchicken.com>
9465
9466 * fileio.c (Vwrite_region_post_annotation_function)
9467 (Vwrite_region_annotation_buffers): New vars.
9468 (build_annotations_unwind): Just reset
9469 Vwrite_region_annotation_buffers.
9470 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9471 Call write-region-post-annotation-function.
9472 (build_annotations): Add to Vwrite_region_annotation_buffers if
9473 buffer changes.
9474
a39e2539
AR
94752009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9476
9477 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9478 Tiger.
51d861de
SM
9479 * nsfns.m (ns_do_applescript):
9480 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9481
35ed44db
AR
94822009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9483
9484 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9485
cbe0b5bf
AR
94862009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9487
9488 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9489
6049d3a0
AR
9490 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9491
9492 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9493 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9494 handle Ctrl-tab. (Bug#1841)
9495 (ns_get_color): Use unsigned long long for scanned hex string value.
9496 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9497 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9498 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9499 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9500 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9501 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9502 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9503
d3810c21 9504 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9505 DPI. (Bug#1316)
d3810c21
AR
9506 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9507 values in onTiger section.
4c7077c3 9508
e301e634
CY
95092009-01-19 Chong Yidong <cyd@stupidchicken.com>
9510
7f82490b
CY
9511 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9512 Check return value of font_spec_from_name.
64cc3cf6 9513 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9514
9515 * font.c (font_spec_from_name): Return Qnil if font name could not
9516 be parsed.
9517 (font_parse_name): Treat a `?' character as part of an XLFD.
9518
e301e634
CY
9519 * fns.c (Fsubstring): Doc fix.
9520
1c0db158
KH
95212009-01-19 Kenichi Handa <handa@m17n.org>
9522
51d861de 9523 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9524 (ftfont_list): Likewise.
9525
acf20901
JB
95262009-01-18 Juanma Barranquero <lekktu@gmail.com>
9527
fff4e459
JB
9528 * dbusbind.c (Fdbus_register_signal):
9529 * process.c (conv_sockaddr_to_lisp):
9530 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9531
acf20901
JB
9532 * callproc.c (Fgetenv_internal): Doc fix.
9533
e7abcdfb
CY
95342009-01-16 Chong Yidong <cyd@stupidchicken.com>
9535
9536 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9537 it is not even used.
9538
b60861e6
GM
95392009-01-16 Glenn Morris <rgm@gnu.org>
9540
9541 * font.c (Ffont_variation_glyphs): Silence compiler.
9542
8db52afe
JB
95432009-01-15 Juanma Barranquero <lekktu@gmail.com>
9544
9545 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9546 Reported by David Robinow <drobinow@gmail.com>.
9547
4cddb209
KH
95482009-01-15 Kenichi Handa <handa@m17n.org>
9549
51d861de 9550 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9551
f247f67b
JR
95522009-01-14 Jason Rumney <jasonr@gnu.org>
9553
9554 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9555 never a fontset. (Bug#1562)
f247f67b 9556
f56a4450
KH
95572009-01-14 Kenichi Handa <handa@m17n.org>
9558
9559 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9560 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9561
4e99855e
CY
95622009-01-13 Chong Yidong <cyd@stupidchicken.com>
9563
9564 * font.c (font_clear_prop): If clearing the family, clear the font
9565 width index too.
9566
fff4e459 9567 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9568
24f01470
JB
95692009-01-12 Juanma Barranquero <lekktu@gmail.com>
9570
9571 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9572 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9573 functions, use sizeof.
9574
a41240a3
MR
95752009-01-12 Martin Rudalics <rudalics@gmx.at>
9576
9577 * keyboard.c (read_char): Fix case where last_nonmenu_event
9578 returned a bad value with submenus. (Bug#447)
9579
944636b8
CY
95802009-01-12 Chong Yidong <cyd@stupidchicken.com>
9581
9582 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9583 family, clear the font width index too.
9584
0dad7c6f
JR
95852009-01-11 Jason Rumney <jasonr@gnu.org>
9586
9587 * keyboard.c (cmd_error_internal): Exit when errors occur before
9588 frame creation and not in daemon mode. (Bug#1836)
9589
7c2363af
CY
95902009-01-10 Chong Yidong <cyd@stupidchicken.com>
9591
9592 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9593 of a display vector, backtrack.
9594 (try_window_reusing_current_matrix): Check glyph type before
9595 referencing charpos member.
9596
97b1b294
EZ
95972009-01-10 Eli Zaretskii <eliz@gnu.org>
9598
9599 Fix Bug #876:
9600
9601 * coding.c (inhibit_null_byte_detection): New variable.
9602 (detect_coding, detect_coding_system): Don't pay attention to null
9603 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9604 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9605 <inhibit-iso-escape-detection>: Doc fix.
9606
4624b6e3
JR
96072009-01-09 Jason Rumney <jasonr@gnu.org>
9608
9609 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9610 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9611 Only report Unicode Plane 2 fonts as unicode-sip.
9612
323b840c
CY
96132009-01-09 Chong Yidong <cyd@stupidchicken.com>
9614
51d861de
SM
9615 * xfaces.c (Fx_font_family_list): Delete function.
9616 Move compatibility version to faces.el.
323b840c 9617
51d861de 9618 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9619
eba7400d
MR
96202009-01-09 Martin Rudalics <rudalics@gmx.at>
9621
9622 * frame.c (x_set_frame_parameters): Remember requested value for
9623 fullscreen before it's reset by the parameter handler.
9624
4b09796d
GM
96252009-01-09 Glenn Morris <rgm@gnu.org>
9626
9627 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9628 (last_command_event): ... and update all users.
4b09796d
GM
9629 (last_input_char): For clarity, rename to...
9630 (last_input_event): ... and update all users.
9631 (last-command-char, last-input-char): Move to subr.el as aliases.
9632 * cmds.c, commands.h: Update for last_command_char rename.
9633
14ccea62
CY
96342009-01-08 Chong Yidong <cyd@stupidchicken.com>
9635
51d861de 9636 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9637
5f004711
JR
96382009-01-08 Jason Rumney <jasonr@gnu.org>
9639
9640 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9641 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9642 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9643 Don't declare.
fff4e459 9644 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9645 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9646
b71f6f73
KH
96472009-01-07 Kenichi Handa <handa@m17n.org>
9648
50b06221 9649 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9650 remember the coding system used for decoding in
50b06221
KH
9651 coding_system (Bug#1039).
9652
b71f6f73 9653 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9654 breaking the loop. (Bug#870)
b71f6f73
KH
9655 (decode_coding_utf_16, decode_coding_emacs_mule)
9656 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9657 (decode_coding_charset): Likewise.
9658
56f668f7
MR
96592009-01-05 Martin Rudalics <rudalics@gmx.at>
9660
9661 * frame.c (x_set_frame_parameters): Make sure height (width) get
9662 applied when fullwidth (fullheight) is set. (Bug#1522)
9663
5da9424d
JB
96642009-01-04 Juanma Barranquero <lekktu@gmail.com>
9665
9666 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9667 (utc_base): Declare as ULONGLONG, not long double.
9668 (convert_time_raw): Delete.
9669 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9670 (initialize_utc_base): New function.
9671 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9672 (convert_from_time_t): Use initialize_utc_base; compute result with
9673 64-bit arithmetic.
9674 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9675
c4605e09
EZ
96762009-01-03 Eli Zaretskii <eliz@gnu.org>
9677
9acef61c 9678 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9679 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9680 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9681 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9682 [!subprocesses]: Define.
9683 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9684 (Flist_system_processes, Fsystem_process_attributes)
9685 [!subprocesses]: Call list_system_processes and
9686 system_process_attributes instead of returning Qnil.
9687
9acef61c
JB
9688 * dosfns.c (system_process_attributes, list_system_processes):
9689 New functions.
c4605e09
EZ
9690
9691 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9692
9693 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9694 Don't use the default (no-op) implementation.
9695
8b7d0a16
JR
96962009-01-03 Jason Rumney <jasonr@gnu.org>
9697
a6d46bc1
JR
9698 * keyboard.c (parse_modifiers_uncached): Wheel events are
9699 clicks (bug#687).
9700
8b7d0a16
JR
9701 * w32term.c (x_query_colors, x_query_color): New functions.
9702
9703 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9704 (svg_load_image): Cast returned pointers from dynamically loaded
9705 functions. Eliminate W32 specific code.
9706
bfe11752
DN
97072009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9708
89e2438a
DN
9709 * nsfns.m (x_set_foreground_color, x_set_background_color)
9710 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9711 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9712 x_ prefix instead of ns_. Update references.
9713 (syms_of_nsfns): Add a FIXME comment.
9714
9715 * nsterm.m (x_set_cursor_type): New prototype.
9716 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9717
bfe11752
DN
9718 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9719 for Solaris instead of incorrectly providing Qutime and Qcutime.
9720
031da700
EZ
97212009-01-02 Eli Zaretskii <eliz@gnu.org>
9722
9723 * w32.c (process_times): Compute sum of utime and stime.
9724 (system_process_attributes): Add Qtime to the alist.
9725
9726 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9727 and add them to the alist.
9728
9729 * process.c (top level) <Qtime, Qctime>: New variables.
9730 (syms_of_process): staticpro them.
9731 (Fsystem_process_attributes): Add their documentation to the doc
9732 string.
9733
9734 * process.h: Declare Qtime and Qctime.
9735
df23bf08
JR
97362009-01-02 Jason Rumney <jasonr@gnu.org>
9737
9acef61c 9738 * image.c (Qgobject): New symbol.
df23bf08
JR
9739 (syms_of_image): Initialize it.
9740 (init_svg_functions): Load some functions from gobject library.
9741
5bbdf7aa
DN
97422009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9743
9744 * frame.c (make_terminal_frame): Remove redundant code and useless
9745 block.
9746
63136da6
AS
97472009-01-01 Andreas Schwab <schwab@suse.de>
9748
9749 * process.c (conv_sockaddr_to_lisp): Add workaround for
9750 getsockname bug on BSD.
9751
9ef69046
CY
97522009-01-01 Chong Yidong <cyd@stupidchicken.com>
9753
d6fafbe0
CY
9754 * xfns.c (x_create_tip_frame): Set border width of the X window.
9755
51d861de 9756 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9757
f9c34147
JR
97582009-01-01 Jason Rumney <jasonr@gnu.org>
9759
9acef61c 9760 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9761 Don't block input, as per earlier xterm.c changes.
9762
f5497e45
AR
97632008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9764
9765 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9766 (ns_appkit_version_int): New function.
9767 (x-server-version): Use ns_appkit_version_int and follow 21+
9768 convention of returning 3 integers.
9769
c19cab20
KH
97702008-12-30 Kenichi Handa <handa@m17n.org>
9771
9772 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9773 (CHAR_SURROGATE_PAIR_P): New macro.
9774
9775 * font.h (struct font_driver): New member get_variation_glyphs.
9776
9acef61c 9777 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9778 (Ffont_variation_glyphs): New function.
9779 (syms_of_font): Defsubr it.
9780
9781 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9782 ftfont_variation_glyphs.
9783 (setup_otf_gstring): New function.
9784 (ftfont_drive_otf): Use it.
9785 (ftfont_shape_by_flt): Handle variation selector.
9786 (ftfont_variation_glyphs): New function.
9787
28cd591f
MR
97882008-12-30 Martin Rudalics <rudalics@gmx.at>
9789
9790 * frame.c (Vemacs_iconified): Remove.
9791
7f714baf
JR
97922008-12-30 Jason Rumney <jasonr@gnu.org>
9793
9794 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9795 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9796
9d2d22ab
CY
97972008-12-30 Chong Yidong <cyd@stupidchicken.com>
9798
9799 * indent.c (Fvertical_motion): Don't advance iterator if we have
9800 reseated to the desired position.
9801
9802 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9803 checking for pos match.
9804
545312c2
KH
98052008-12-30 Kenichi Handa <handa@m17n.org>
9806
1ede3eb6
KH
9807 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9808 just get the low 8-bit of the code.
9809
545312c2
KH
9810 * font.c (font_intern_prop): Validate str as multibyte.
9811
bd7bbf29
DN
98122008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9813
31e0750e
DN
9814 * dispextern.h (struct face): Move lface and hash from the middle
9815 of bitfields.
9816
bd7bbf29
DN
9817 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9818
b5672e7c
DN
98192008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9820
9821 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9822 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9823 instead of intervals.h.
9824
d704470f
AS
98252008-12-26 Andreas Schwab <schwab@suse.de>
9826
9827 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9828 cons.
9829
54b33868
MR
98302008-12-26 Martin Rudalics <rudalics@gmx.at>
9831
9832 * textprop.c (Qminibuffer_prompt): New variable.
9833 (syms_of_textprop): Initialize it.
9834 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9835 in minibuffer-prompt face. (Bug#1662)
9836
40b615d6
JR
98372008-12-25 Jason Rumney <jasonr@gnu.org>
9838
9839 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9840
baae5c2d
JR
98412008-12-24 Jason Rumney <jasonr@gnu.org>
9842
9843 * ralloc.c (r_alloc_reset_variable): New function.
9844
9845 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9846 record of what points where. (Bug#716)
baae5c2d 9847
a9051c88
DN
98482008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9849
9850 * minibuf.c (read_minibuf): Follow the non-interactive case when
9851 running as a daemon, before detaching.
9852
8b146312
AS
98532008-12-22 Andreas Schwab <schwab@suse.de>
9854
9855 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9856 * gtkutil.c (free_widget_value): Use xfree instead of free.
9857
56f2de10
MR
98582008-12-22 Martin Rudalics <rudalics@gmx.at>
9859
9860 * frame.c (delete_frame): New function derived from
9861 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9862 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9863 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9864 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9865 * frame.h: Extern delete_frame.
9866 * window.c (window_loop):
9867 * terminal.c (delete_terminal):
9868 * xterm.c (x_connection_closed):
9869 * xfns.c (Fx_hide_tip):
9acef61c 9870 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9871
1fc200d6
JR
98722008-12-21 Jason Rumney <jasonr@gnu.org>
9873
9874 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9875 when character maps to .notdef character.
9876
5e252df2
SM
98772008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9878
9879 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9880
99b72cc4
JR
98812008-12-20 Jason Rumney <jasonr@gnu.org>
9882
9883 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9884 a graphical frame on Windows. (Bug#1325)
99b72cc4 9885
acc49a52
JD
98862008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9887
9888 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9889
6ea15123
CY
98902008-12-20 Chong Yidong <cyd@stupidchicken.com>
9891
9892 * minibuf.c (Fread_buffer): Doc fix.
9893
b2dab6c8
JR
98942008-12-20 Jason Rumney <jasonr@gnu.org>
9895
54ea0c87 9896 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9897 server name in UNC paths. (Bug#719)
54ea0c87 9898
b2dab6c8 9899 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9900 charbuf. (Bug#1035)
b2dab6c8 9901
6d1921be
DN
99022008-12-19 Daniel Engeler <engeler@gmail.com>
9903
9904 * sysdep.c (serial_configure): Fix typo.
9905
53934c98
DN
99062008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9907
9908 * sysdep.c: Include alloca.h.
f4f634e8
DN
9909 (system_process_attributes): Add implementation for Solaris.
9910
9911 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9912
06e111a6
DN
99132008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9914
9915 Reorganize implementation of Flist_system_processes and
9916 Fsystem_process_attributes. No functional changes.
9917 * process.c: Don't #include pwd.h, grp.h and limits.h.
9918 (Flist_system_processes): Just call list_system_processes.
9919 (Fsystem_process_attributes): Just call system_process_attributes.
9920 (procfs_list_system_processes, time_from_jiffies)
9921 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9922 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9923
9924 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9925 (list_system_processes): Rename from
9926 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9927 Provide a do nothing implementation.
9928 (system_process_attributes): Rename from
9929 procfs_list_system_processes.
9930 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9931 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9932
9933 * w32.c (list_system_processes): Rename from
9934 w32_list_system_processes.
9935 (system_process_attributes): Rename from
9936 w32_system_process_attributes.
9937
9938 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9939
9940 * process.h (w32_list_system_processes)
9941 (w32_system_process_attributes): Remove.
362654a6
JB
9942 (list_system_processes, system_process_attributes):
9943 New prototypes.
06e111a6 9944
6a705b23
KH
99452008-12-19 Kenichi Handa <handa@m17n.org>
9946
9947 * xfont.c (xfont_decode_coding_xlfd): New function.
9948 (xfont_encode_coding_xlfd): New function.
9949 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9950 (xfont_list): Decode and encode XLFD by iso-8859-1.
9951 (xfont_match): Likewise.
9952 (xfont_list_family): Likewise.
9953 (xfont_open): Likewise.
9954
d66c0241 9955 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9956 names are utf-8.
9957
d66c0241 9958 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9959 names are utf-8.
9960
5a130941
JD
99612008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9962
9963 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9964 changed.
bfd20325
JD
9965 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9966 clicked on a detached tool bar button.
5a130941 9967
fd95644b
DN
99682008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9969
9970 * emacs.c (main): Print and error and exit when no data is read
9971 from the pipe.
9972
e6eee6ae
JR
99732008-12-17 Jason Rumney <jasonr@gnu.org>
9974
9975 * w32font.c (w32font_has_char): Always return -1.
9976
a35dd56b
KH
99772008-12-16 Kenichi Handa <handa@m17n.org>
9978
9979 * font.c (font_open_entity): Fix previous change.
9980
0e3635c2
DN
99812008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9982
9983 * process.c: Include <limits.h>.
9984
d4835507 99852008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9986
9987 * font.c (font_update_drivers): Fix mistake in reconstructing the
9988 driver list.
9989
99902008-12-16 Chong Yidong <cyd@stupidchicken.com>
9991
9992 * font.c (font_clear_cache): Fix format of font cache data.
9993
e2cbc401
CY
99942008-12-15 Chong Yidong <cyd@stupidchicken.com>
9995
9996 * xftfont.c (xftfont_open): Free Xft font pattern if
9997 XftFontOpenPattern fails.
9998
9999 * xterm.c (x_free_frame_resources): Remove extraneous call to
10000 free_frame_faces.
10001
b131d535
CY
100022008-12-13 Chong Yidong <cyd@stupidchicken.com>
10003
10004 * xterm.c (x_delete_display): Move xim_close_dpy call to
10005 x_delete_terminal.
10006 (x_delete_terminal): Call xim_close_dpy.
10007
e6df5336
JR
100082008-12-13 Jason Rumney <jasonr@gnu.org>
10009
10010 * w32font.c (intern_font_name): New function.
10011 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10012 (w32font_open_internal, Fx_select_font): Decode font name.
10013 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10014
10015 * w32font.h (intern_font_name): Declare new function.
10016
10017 * w32uniscribe.c (add_opentype_font_name_to_list):
10018 Use intern_font_name.
10019
20d68145
CY
100202008-12-13 Chong Yidong <cyd@stupidchicken.com>
10021
9f2554de
CY
10022 * frame.c (Fdelete_frame): Call free_font_driver_list.
10023
3d9bec9a
CY
10024 * font.c (free_font_driver_list): Implement missing function.
10025
20d68145
CY
10026 * w32term.c (w32_term_init): Don't initialize the image cache
10027 here; it will be done in init_frame_faces.
10028
10029 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10030 (struct x_display_info): Remove unused member null_pixel. New
10031 member xim_callback_data.
10032
10033 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10034 (xim_initialize): Save pointer to callback function data.
10035 (xim_close_dpy): Free callback function data. Call XCloseIM,
10036 reverting 2008-11-04 change by David Smith.
10037 (x_term_init): Don't initialize the image cache here; it will be
10038 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10039 (x_delete_display): Free x_dnd_atoms member.
10040
96f9306b
KH
100412008-12-13 Kenichi Handa <handa@m17n.org>
10042
6dec9044
JB
10043 * font.c (font_rescale_ratio): Moved from xfaces.c.
10044 Argument type changed. Handle a font-spec too.
96f9306b 10045 (font_score): Check Vface_font_rescale_alist.
6dec9044 10046 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10047
10048 * xfaces.c (font_rescale_ratio): Moved to font.c.
10049
8d5b4964
CY
100502008-12-13 Chong Yidong <cyd@stupidchicken.com>
10051
10052 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10053
e6df5336
JR
100542008-12-12 Jason Rumney <jasonr@gnu.org>
10055
10056 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10057 Vwindow_system_version to the real w32 major version.
10058
97c6058a
DN
100592008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10060
10061 * term.c (init_tty): Move setting the terminal name before the
10062 potential user: maybe_fatal.
10063
ec4e88d7
CY
100642008-12-11 Chong Yidong <cyd@stupidchicken.com>
10065
d4835507
JB
10066 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10067 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10068
b4233ec9
JR
100692008-12-11 Jason Rumney <jasonr@gnu.org>
10070
8ec71e23 10071 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10072 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10073
b4233ec9 10074 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10075 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10076
011a0143
JB
100772008-12-11 Juanma Barranquero <lekktu@gmail.com>
10078
10079 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10080
3c309f34
JB
100812008-12-11 Juanma Barranquero <lekktu@gmail.com>
10082
10083 * process.c (Fsystem_process_attributes, syms_of_process):
10084 Fix typo in name of Ssystem_process_attributes.
10085 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10086
fedc6ab5
JB
100872008-12-11 Juanma Barranquero <lekktu@gmail.com>
10088
10089 * syntax.c (Fmodify_syntax_entry): Doc fix.
10090
ba3de0e8
JB
100912008-12-10 Juanma Barranquero <lekktu@gmail.com>
10092
10093 * font.c (Ffont_spec): Move usage to end of docstring.
10094
174f1c74
JR
100952008-12-10 Jason Rumney <jasonr@gnu.org>
10096
10097 * w32font.c (Qcham): New symbol.
10098 (font_supported_scripts): Add cham, and comments for other new
10099 scripts in bitfield from OpenType spec.
9d32f818
JR
10100 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10101 contain characters beyond the bmp.
174f1c74 10102
7b649478
KH
101032008-12-10 Kenichi Handa <handa@m17n.org>
10104
10105 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10106 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10107 Qunicode_sip.
10108
2133e2d1
JB
101092008-12-10 Juanma Barranquero <lekktu@gmail.com>
10110
10111 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10112 (Fcoding_system_put): Use QCdefault_char.
10113 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10114
9af886ee
CY
101152008-12-09 Chong Yidong <cyd@stupidchicken.com>
10116
74d819eb
CY
10117 * xftfont.c (syms_of_xftfont): Fix typo.
10118
4ccfa1c0 10119 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10120
7c19d3ae
DN
101212008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10122
10123 * emacs.c (main): Close daemon_pipe on exec.
10124
567826bb
CY
101252008-12-08 Chong Yidong <cyd@stupidchicken.com>
10126
10127 * termchar.h (struct tty): New members termcap_term_buffer and
10128 termcap_strings_buffer.
10129
10130 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10131 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10132 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10133 All callers changed.
10134 (init_tty): Store termcap data and string buffers in new struct
10135 tty members termcap_term_buffer and termcap_strings_buffer.
10136 (delete_tty): Free them.
4ccfa1c0 10137 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10138
aa96c42b
SZ
101392008-12-07 Seiji Zenitani <zenitani@mac.com>
10140
10141 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10142 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10143
b7e1d896
CY
101442008-12-06 Chong Yidong <cyd@stupidchicken.com>
10145
10146 * coding.c (make_conversion_work_buffer): Disable buffer
10147 modification hooks in the work buffer.
10148
b5ec91a5
EZ
101492008-12-05 Eli Zaretskii <eliz@gnu.org>
10150
10151 * process.c (procfs_system_process_attributes): If `nread' has a
10152 negative value, assign zero to it.
10153
a5d2a52b
CY
101542008-12-05 Chong Yidong <cyd@stupidchicken.com>
10155
68c5540b 10156 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10157
7bf1bb21
KH
101582008-12-05 Kenichi Handa <handa@m17n.org>
10159
10160 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10161 second character is a combining character.
10162
2fdc7d00
EZ
101632008-12-05 Eli Zaretskii <eliz@gnu.org>
10164
10165 * process.c (procfs_system_process_attributes): Don't use cmd,
10166 cmdsize, and q without initializing them first.
10167
bf6bfba8
JR
101682008-12-04 Jason Rumney <jasonr@gnu.org>
10169
10170 * w32font.c (w32font_draw): Initialize orig_clip before getting
10171 it, and delete it when finished.
10172
a3b1a468
DN
101732008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10174
10175 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10176 case when running as a daemon before detaching.
10177
8b8be8eb
JB
101782008-12-03 Juanma Barranquero <lekktu@gmail.com>
10179
805f2638 10180 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10181
b1bde622
KH
101822008-12-03 Kenichi Handa <handa@m17n.org>
10183
e500c47d
KH
10184 * font.c (font_at): Set `multibyte' at first.
10185
ca516334
KH
10186 * coding.c (decode_coding_charset): Check type of an element of
10187 vector VALIDS.
7bf1bb21 10188 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10189
4ccfa1c0 10190 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10191 (font_for_char): Likewise.
10192
1e5ecd37
CY
101932008-12-03 Chong Yidong <cyd@stupidchicken.com>
10194
d5b01609 10195 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10196 (font_update_lface): Handle fonts with corrupted size specs,
10197 i.e. non-int and non-float.
d5b01609 10198
11e3a6e4 10199 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10200 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10201 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10202
ab06788b
CY
10203 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10204
1e5ecd37 10205 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10206 underline_minimum_offset for underline position.
1e5ecd37 10207
63c125ab
DN
102082008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10209
10210 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10211
10212 * character.c (c_string_width): Specify the type for LEN.
10213
3a8406e1
KH
102142008-12-03 Kenichi Handa <handa@m17n.org>
10215
4ccfa1c0 10216 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10217 (decode_coding_utf_8): Likewise.
4ccfa1c0 10218 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10219 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10220
651df7d9
CY
102212008-12-02 Chong Yidong <cyd@stupidchicken.com>
10222
10223 * keyboard.c (make_lispy_position): Only use PT if the selected
10224 window is current.
10225
1f625c6c
AS
102262008-12-02 Andreas Schwab <schwab@suse.de>
10227
f7741ce9
AS
10228 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10229
1f625c6c
AS
10230 * doprnt.c (doprnt1): Fix size of charbuf.
10231
92bc2678
CY
102322008-12-02 Chong Yidong <cyd@stupidchicken.com>
10233
10234 * keyboard.c (timer_check): Revert last change.
10235
93b9e8cc
JB
102362008-12-02 Juanma Barranquero <lekktu@gmail.com>
10237
10238 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10239
fd7a37d5
JB
102402008-12-01 Juanma Barranquero <lekktu@gmail.com>
10241
10242 * makefile.w32-in: Update dependencies.
10243 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10244
c115043b
AS
102452008-12-01 Andreas Schwab <schwab@suse.de>
10246
10247 * font.c (register_font_driver): Use xmalloc.
10248 (font_put_frame_data): Likewise.
10249
f5668d2a
CY
102502008-12-01 Chong Yidong <cyd@stupidchicken.com>
10251
860d96be
CY
10252 * xfaces.c (realize_x_face): Make abort condition clearer.
10253
f5668d2a
CY
10254 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10255
379c17e7
CY
102562008-11-30 Chong Yidong <cyd@stupidchicken.com>
10257
10258 * keyboard.c (timer_check): After a timer runs, ensure that the
10259 selected window's buffer is current.
10260
35f36d65
JB
102612008-11-30 Juanma Barranquero <lekktu@gmail.com>
10262
f952c61c
JB
10263 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10264 It was accidentally restored by the Unicode merge.
10265
35f36d65
JB
10266 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10267
b23077df
JB
102682008-11-29 Juanma Barranquero <lekktu@gmail.com>
10269
10270 * w32proc.c: Include "coding.h".
10271 (Fw32_short_file_name): Encode filename passed to Windows API.
10272 (Fw32_long_file_name): Encode filename passed to Windows API and
10273 decode back the result. (Bug#1433)
10274
b8ebe9dd
KH
102752008-11-29 Kenichi Handa <handa@m17n.org>
10276
8cc53f96
KH
10277 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10278 not before accessing it.
10279
b8ebe9dd
KH
10280 * charset.c (Fdefine_charset_internal): After calculating
10281 min_char, max_char, and fastmap, copy the charset structure again.
10282 (encode_char): Fix the previous change.
10283
59bc82c0
SZ
102842008-11-28 Seiji Zenitani <zenitani@mac.com>
10285
10286 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10287
10288 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10289
10290 * nsterm.m (x_set_frame_alpha): New function.
10291
32247e3d
EZ
102922008-11-27 Eli Zaretskii <eliz@gnu.org>
10293
10294 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10295
b003e5ff
JB
102962008-11-27 Juanma Barranquero <lekktu@gmail.com>
10297
10298 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10299 pointer to check_face_name.
10300
708550f5
KH
103012008-11-27 Kenichi Handa <handa@m17n.org>
10302
10303 * category.h (SET_CATEGORY_SET): Call set_category_set.
10304 (set_category_set): Extern it.
10305
10306 * category.c (hash_get_category_set): New function.
10307 (Fmodify_category_entry): Adjusted for the change of
10308 char_table_ref_and_range. Call hash_get_category_set to get a
10309 category set to store in the table.
10310
10311 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10312 Funify_charset.
10313
2ae37cf0 10314 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10315 (DECODE_CHAR): Check if the decoder vector is ready.
10316 (ENCODE_CHAR): Check if the encoder char-table is ready.
10317 (maybe_unify_char): Extern it.
10318
10319 * charset.c (Vchar_unified_charset_table): Delete it.
10320 (inhibit_load_charset_map): New variable.
10321 (temp_charset_work): New variable.
10322 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10323 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10324 New macros.
10325 (load_charset_map): Meaning of control_flag changed. If
10326 inhibit_load_charset_map is nonzero, setup a table in
10327 temp_charset_work.
10328 (load_charset): New argument control_flag.
10329 (map_charset_for_dump): New function.
10330 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10331 map_charset_for_dump.
10332 (Fdefine_charset_internal): If the charset method is MAP, load
10333 mapping tables by calling load_charset.
10334 (Funify_charset): Don't load a mapping table but directly set
10335 Vchar_unify_table.
10336 (maybe_unify_char): New function.
10337 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10338 Handle the case of inhibit_load_charset_map being nonzero.
10339 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10340 Handle the case of inhibit_load_charset_map being nonzero.
10341 (Fclear_charset_maps): Just free temp_charset_work.
10342 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10343 variable.
10344
10345 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10346 change of char_table_ref_and_range.
10347 (char_table_ref_and_range): Change the meaning of argument FROM
10348 and TO. Now the caller must provide initial values for *FROM
10349 and *TO.
10350
10351 * fontset.c (fontset_add): Adjusted for the change of
10352 char_table_ref_and_range.
10353 (fontset_get_font_group): Likewise.
10354 (Ffontset_info): Likewise.
10355
10356 * keymap.c (describe_vector): Adjusted for the change of
10357 char_table_ref_and_range. For char-table, put boundary between
10358 non-ASCII and 8-bit characters.
10359
10360 * print.c (print_object): For bool-vector, delete unnecessary
10361 check of ASCII_BYTE_P.
10362
9196133b
JR
103632008-11-26 Jason Rumney <jasonr@gnu.org>
10364
10365 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10366 leading in font height. (Bug#879)
9196133b 10367
9f688acf
GM
103682008-11-26 Glenn Morris <rgm@gnu.org>
10369
10370 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10371 redefinition with ifdef. (Bug#1383)
10372
90d19aff
AR
103732008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10374
10375 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10376
4ccfa1c0 103772008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10378
10379 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10380 New EmacsView methods.
10381 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10382 Fixes bug #1048,1357,1414.
10383
103842008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10385
10386 Fix bug #1362.
10387 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10388 is not an indexed color.
10389 * nsterm.m (free_indexed_color): Add argument checking.
10390 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10391
e7d5ecb3
CY
103922008-11-24 Chong Yidong <cyd@stupidchicken.com>
10393
10394 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10395 Document confirm-after-completion value for
10396 minibuffer-completion-confirm.
10397
c285743c
JR
103982008-11-24 Jason Rumney <jasonr@gnu.org>
10399
10400 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10401 warning.
10402
b0857706
JR
104032008-11-23 Jason Rumney <jasonr@gnu.org>
10404
10405 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10406 restored before returning.
10407
10408 * w32font.c (check_face_name): New function.
10409 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10410 fonts. (Bug#642)
b0857706 10411
ee50ff07
MR
104122008-11-22 Martin Rudalics <rudalics@gmx.at>
10413
10414 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10415 confirm-nonexistent-file-or-buffer in doc-string.
10416
b8ff72fa
SM
104172008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10418
10419 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10420 Fix copy/paste typo. Add checks.
10421
cee53ed4
KH
104222008-11-21 Kenichi Handa <handa@m17n.org>
10423
10424 * coding.c (detect_coding_iso_2022): Reject invalid composition
10425 sequence.
10426 (DECODE_COMPOSITION_START): If the current source is the last
10427 block, and the current composition doesn't end, regard this
10428 sequence as invalid.
10429 (decode_coding_iso_2022): Handle invalid composition sequence.
10430
f6ef1e65
MR
104312008-11-20 Martin Rudalics <rudalics@gmx.at>
10432
10433 * window.c (coordinates_in_window): Don't return
10434 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10435 line when the window is not the rightmost one. (Bug#1372)
10436
e08b1705
MR
104372008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10438
10439 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10440
ad98e89f
EZ
104412008-11-15 Eli Zaretskii <eliz@gnu.org>
10442
10443 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10444 and bright_bg if noninteractive is non-zero.
10445
fb098a4b
CY
104462008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10447
10448 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10449 x_draw_glyph_string_background.
10450
10451 * w32term.c (x_draw_glyph_string): Likewise.
10452
ce952b6e
CY
104532008-11-15 Chong Yidong <cyd@stupidchicken.com>
10454
10455 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10456 the next glyph string once past the overhang width.
10457
10458 * nsterm.m (ns_draw_glyph_string): Likewise.
10459
10460 * w32term.c (x_draw_glyph_string): Likewise.
10461
26ea7079
CY
104622008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10463
10464 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10465 double file close.
10466
1c33c906
MR
104672008-11-14 Martin Rudalics <rudalics@gmx.at>
10468
10469 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10470 dedicated status of window before attempting to display another
10471 buffer in it.
10472
8fc29035
JB
104732008-11-14 Juanma Barranquero <lekktu@gmail.com>
10474
10475 * msdos.c (Fmsdos_long_file_names):
10476 (syms_of_msdos) <dos-unsupported-char-glyph>:
10477 * dosfns.c (Fint86): Fix typos in docstrings.
10478
55fb4286
EZ
104792008-11-14 Eli Zaretskii <eliz@gnu.org>
10480
10481 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10482
3fda0315
KY
104832008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10484
10485 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10486
7e849c17
CY
104872008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10488
10489 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10490
10491 * frame.h: Negative alpha means "don't touch".
10492
10493 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10494
10495 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10496
b9fd67bd
DN
104972008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10498
10499 * hftctl.c:
10500 * chpdef.h:
10501 * acldef.h: Remove files used only for systems no longer supported.
10502
10503 * Makefile.in: Fix .o alphabetical ordering.
10504 (hftctl.o): Remove dependency, file removed.
10505 (keymap.o, print.o): Depend on charset.h.
10506
d5998e03
KH
105072008-11-10 Kenichi Handa <handa@m17n.org>
10508
2ae37cf0 10509 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10510
be70e183
CY
105112008-11-08 Chong Yidong <cyd@stupidchicken.com>
10512
10513 * dired.c (file_name_completion): If completion_ignore_case is
10514 enabled, ignore case when checking completion-regexp-list.
10515
7cf94eac
EZ
105162008-11-08 Eli Zaretskii <eliz@gnu.org>
10517
10518 * vm-limit.c (get_lim_data): Fix last change.
10519
ee107a89
KH
105202008-11-08 Kenichi Handa <handa@m17n.org>
10521
10522 * character.c (Fget_byte): New function.
10523 (syms_of_character): Defsubr Fget_byte.
10524
5fd15622
CY
105252008-11-07 Chong Yidong <cyd@stupidchicken.com>
10526
10527 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10528 cursor position is valid after scrolling.
10529
13d62fad
JB
105302008-11-06 Juanma Barranquero <lekktu@gmail.com>
10531
10532 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10533
a1dd2936
GM
105342008-11-06 Glenn Morris <rgm@gnu.org>
10535
10536 * xterm.c (handle_one_xevent): Don't let popup menus cause
10537 mouse-autoselect-window related window switching. (Bug#1261)
10538
860cd236
CY
105392008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10540
10541 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10542
653a3150
AS
105432008-11-04 Andreas Schwab <schwab@suse.de>
10544
10545 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10546
870f5cac
CY
105472008-11-03 Chong Yidong <cyd@stupidchicken.com>
10548
10549 * xfns.c (Fx_wm_set_size_hint): New function.
10550
1e02f3cb
MR
105512008-11-03 Martin Rudalics <rudalics@gmx.at>
10552
10553 * textprop.c (Fprevious_single_char_property_change): Return 0
10554 when there's no change in a string. (Bug#1301)
10555
e630dfc6
MR
105562008-11-02 Martin Rudalics <rudalics@gmx.at>
10557
10558 * frame.c (do_switch_frame): New argument NORECORD passed to
10559 Fselect_window.
10560 (Fselect_frame): New argument NORECORD passed to
10561 do_switch_frame.
10562 (Fset_frame_selected_window): New argument NORECORD passed to
10563 Fselect_frame.
10564 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10565 in call of do_switch_frame.
10566 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10567 Handle NORECORD argument in call of Fselect_frame.
10568 * lisp.h (do_switch_frame, Fselect_frame)
10569 (Fset_frame_selected_window): Adjust declarations.
10570 * window.c (select_frame_norecord): New function.
10571 (run_window_configuration_change_hook): Use it and call
10572 Fselect_frame with NORECORD set.
10573 (Fselect_window): Pass NORECORD to Fselect_frame.
10574 (Fset_window_configuration): Handle NORECORD argument in call of
10575 do_switch_frame.
10576 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10577 Fset_frame_selected_window.
10578 * keyboard.c (command_loop_1): Handle NORECORD in call of
10579 Fselect_frame (currently ifdefd).
10580
9020b223
GM
105812008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10582
10583 * emacs.c (USAGE2): Untabify.
10584
793ffee8
SM
105852008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10586
10587 * composite.c (fill_gstring_header): Fix copy/paste typo.
10588
ab6d1131
MR
105892008-10-31 Martin Rudalics <rudalics@gmx.at>
10590
10591 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10592 (Fother_window): Rename argument and rewrite doc-string.
10593 (select_window_norecord): Fix return value. (Bug#1276)
10594
601a9cf1
JB
105952008-10-30 Juanma Barranquero <lekktu@gmail.com>
10596
10597 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10598 new frames overriding foreground for tooltips. Based on similar patch
10599 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10600
813b0652
CY
106012008-10-29 Chong Yidong <cyd@stupidchicken.com>
10602
10603 * emacs.c (Fdaemon_initialized): Initialize nfd.
10604
4414f58f
MR
106052008-10-29 Martin Rudalics <rudalics@gmx.at>
10606
10607 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10608 (Fwindow_text_height): Clarify doc-strings.
10609 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10610 doc-string of window-scroll-functions.
10611
ecdcaa09
RS
106122008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10613
10614 * category.c (syms_of_category): Fix typo in docstring.
10615
23fe745a
JB
106162008-10-28 Juanma Barranquero <lekktu@gmail.com>
10617
10618 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10619 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10620 Fix typos in docstrings.
10621
ff808935
DN
106222008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10623
10624 * emacs.c (daemon_pipe): Make non-static.
10625 (IS_DAEMON): Move definition ...
10626 * lisp.h (IS_DAEMON): ... here.
10627 (daemon_pipe): Declare.
10628 (is_daemon): Remove.
10629 * dispnew.c (init_display): Use IS_DAEMON.
10630
fc012771
SM
106312008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10632
10633 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10634 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10635
10636 * emacs.c (is_daemon): Remove.
10637 (main): Don't set is_daemon.
10638 (IS_DAEMON): New macro.
10639 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10640 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10641 parent exits.
10642 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10643
d8bdbe6f
CY
106442008-10-27 Chong Yidong <cyd@stupidchicken.com>
10645
d1a072bf
CY
10646 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10647 over-sized glyph, draw it with the default glyph width.
10648
e2e325aa
CY
10649 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10650 glyph, draw it with the default glyph width.
10651
10652 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10653 glyph, draw it with the default glyph width.
10654
d8bdbe6f
CY
10655 * xdisp.c (try_scrolling): When computing the distance from the
10656 scroll margin to PT, try moving some distance past the window
10657 bottom before giving up.
10658
7bfac547
MR
106592008-10-27 Martin Rudalics <rudalics@gmx.at>
10660
10661 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10662 (Fset_window_buffer): Explain in doc-string that a window can be
10663 "strongly" dedicated to its buffer.
10664
4ff029f6
DN
106652008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10666
10667 * emacs.c (daemon_name): New variable.
10668 (main): Deal with --daemon=SERVER_NAME.
10669 (Fdaemonp): Return a name if one was passed to --daemon.
10670
5790ef40
DN
106712008-10-26 Romain Francoise <romain@orebokech.com>
10672
f9bd0df9 10673 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10674 (main): Create a pipe before forking, make the parent exit only after
10675 the child has closed its end of the pipe. Move closing the
10676 descriptors ...
10677 (Fdaemon_initialized): ... here. New function.
10678
f5385255
SM
106792008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10680
4d632321
SM
10681 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10682 the previous unoptimized table.
10683
f5385255
SM
10684 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10685 the distinction between non-nil and non-t value of `dedicated'.
10686
6c56a0f3
CY
106872008-10-25 Chong Yidong <cyd@stupidchicken.com>
10688
10689 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10690 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10691
fec89261
MR
106922008-10-25 Martin Rudalics <rudalics@gmx.at>
10693
10694 * window.c (Fget_buffer_window, Fdelete_windows_on)
10695 (Freplace_buffer_in_windows): Make buffer argument optional and
10696 rename to buffer_or_name.
10697
34fcddd0
CY
106982008-10-24 Chong Yidong <cyd@stupidchicken.com>
10699
f5385255
SM
10700 * xdisp.c (handle_single_display_spec, handle_display_prop):
10701 Undo 2005-05-16 change.
34fcddd0
CY
10702 (handle_stop): Pop iterator if it's loaded with an empty string.
10703 (get_overlay_strings_1): Don't save iterator if it's loaded with
10704 an empty string (bug#1201).
10705
064766f2
KH
107062008-10-24 Kenichi Handa <handa@m17n.org>
10707
10708 * ftfont.c (ftfont_otf_features): Fix previous change.
10709 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10710 calling ftfont_otf_features.
10711
f9bd0df9 107122008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10713
10714 * font.c (font_match_p): Fix for the case that a vector of
10715 characters is in script-representative-chars.
10716
1dae9197
MA
107172008-10-24 Michael Albinus <michael.albinus@gmx.de>
10718
10719 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10720 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10721 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10722 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10723 macro. (Bug#1186)
1dae9197 10724
f9bd0df9 107252008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10726
10727 * s/sol2-10.h: New file.
10728
878a4584
JB
107292008-10-23 Juanma Barranquero <lekktu@gmail.com>
10730
10731 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10732 poor beast has survived 9+ years and the jump from xterm.c!).
10733
cd265ca6
MR
107342008-10-23 Martin Rudalics <rudalics@gmx.at>
10735
10736 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10737 Reword doc-string.
f5385255 10738 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10739
472a4dc9
JB
107402008-10-23 Juanma Barranquero <lekktu@gmail.com>
10741
10742 * character.c (syms_of_character) <script-representative-chars>:
10743 <unicode-category-table>: Doc fixes.
10744
159bd5a2
NF
107452008-10-23 Noah Friedman <friedman@splode.com>
10746
10747 * coding.c (make_conversion_work_buffer): Check that
10748 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10749 Fget_buffer_create.
10750
49f9c344
KH
107512008-10-23 Kenichi Handa <handa@m17n.org>
10752
10753 * font.c (font_add_log): Check the values of extra properties.
10754
12bb3111
MR
107552008-10-22 Martin Rudalics <rudalics@gmx.at>
10756
10757 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10758 Reword doc-string.
10759 (Fset_window_parameter): Use NILP.
10760 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10761 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10762
bbeb4e99
JB
107632008-10-22 Juanma Barranquero <lekktu@gmail.com>
10764
10765 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10766
107672008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10768
10769 * nsfns.m (ns_appkit_version): New function.
10770 (x-server-version): Use it.
10771 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10772 (x-server-vendor): Don't check_ns().
10773
10774 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10775
a9b555d3
JB
107762008-10-22 Juanma Barranquero <lekktu@gmail.com>
10777
10778 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10779 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10780
4626499f
KH
107812008-10-22 Kenichi Handa <handa@m17n.org>
10782
e3681952
KH
10783 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10784 scripts.
10785
4626499f
KH
10786 * category.c (word_boundary_p): Check scripts instead of charset.
10787 Handle nil value in word-separating-categories and
10788 word-combining-categories.
10789 (syms_of_category): Fix docstrings of word-separating-categories
10790 and word-combining-categories.
10791
1560f91a
EZ
107922008-10-21 Eli Zaretskii <eliz@gnu.org>
10793
10794 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10795 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10796
f4668441
MR
107972008-10-21 Martin Rudalics <rudalics@gmx.at>
10798
10799 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10800 Rename arg "buffer" to "buffer_or_name".
10801 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10802 it optional.
10803 (no_switch_window): Remove since the return value is not used.
a9b555d3 10804 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10805 Consider window as dedicated when Fwindow_dedicated_p returns a
10806 non-nil value.
10807 * lisp.h: Remove prototype for no_switch_window.
10808
fd75ddb2
JD
108092008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10810
10811 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10812 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10813
07295713
KH
108142008-10-21 Kenichi Handa <handa@m17n.org>
10815
10816 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10817 check Vlatin_extra_code_table.
10818
712adc82
EZ
108192008-10-20 Eli Zaretskii <eliz@gnu.org>
10820
10821 * fileio.c (Fset_file_modes): Doc fix.
10822
f549eb0b
MA
108232008-10-19 Michael Albinus <michael.albinus@gmx.de>
10824
10825 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10826 in arrays.
10827
aac0c6e3
MR
108282008-10-19 Martin Rudalics <rudalics@gmx.at>
10829
10830 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10831 Mention kill-buffer in doc-string.
10832 (Fset_window_buffer): Reinsert tem check removed in last commit.
10833 (Fenlarge_window, Fshrink_window): Have argument names and
10834 doc-string follow Elisp manual more closely.
10835
108362008-10-18 Eli Zaretskii <eliz@gnu.org>
10837
10838 * fileio.c (Fset_file_modes): Doc fix.
10839
108402008-10-18 Martin Rudalics <rudalics@gmx.at>
10841
10842 * window.c (Fwindow_width, Fset_window_start)
10843 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10844 (Fdelete_windows_on, Freplace_buffer_in_windows):
10845 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10846 (Fwindow_dedicated_p): Make window argument optional.
10847 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10848 (Fset_window_buffer): Respect any non-nil dedicated value for
10849 window. Rename "buffer" argument to "buffer_or_name".
10850
108512008-10-18 Ulrich Mueller <ulm@gentoo.org>
10852
10853 * m/sh3.h: New file, machine description for SuperH.
10854
108552008-10-17 Martin Rudalics <rudalics@gmx.at>
10856
10857 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10858
108592008-10-17 Kenichi Handa <handa@m17n.org>
10860
10861 * ftfont.c (ftfont_otf_features): Fix indexing
10862 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10863
108642008-10-16 Magnus Henoch <mange@freemail.hu>
10865
10866 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10867 (Fdbus_call_method_asynchronously): Ditto.
10868 This change makes C-h f display the argument list.
10869
108702008-10-16 Chong Yidong <cyd@stupidchicken.com>
10871
10872 * fileio.c (Fexpand_file_name): Doc fix.
10873
10874 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10875 of :foreground and :background equivalent to unspecified (20.x
10876 compatibility).
10877
108782008-10-15 Eli Zaretskii <eliz@gnu.org>
10879
10880 * buffer.c (syms_of_buffer): Doc fix.
10881
108822008-10-14 Kenichi Handa <handa@m17n.org>
10883
10884 * font.c (font_clear_prop): When clearing font width, clear the
10885 average width field too.
10886
108872008-10-12 Andreas Schwab <schwab@suse.de>
10888
10889 * ftfont.c (ftfont_shape_by_flt): Make static.
10890 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10891
10892 * font.c: Don't include <m17n-flt.h>.
10893
108942008-10-10 Eli Zaretskii <eliz@gnu.org>
10895
10896 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10897
108982008-10-09 Eli Zaretskii <eliz@gnu.org>
10899
10900 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10901 away code.
10902
109032008-10-09 Chong Yidong <cyd@stupidchicken.com>
10904
10905 * dispnew.c (update_text_area): Avoid looping due to large glyph
10906 overhangs (bug#1070).
10907
109082008-10-09 Kenichi Handa <handa@m17n.org>
10909
10910 * fontset.c (face_for_char): If face->fontset is negative, just
10911 return ascii_face.
10912
f5385255
SM
10913 * font.c (font_delete_unmatched): Fix previous change.
10914 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10915
109162008-10-09 Martin Rudalics <rudalics@gmx.at>
10917
10918 * frame.c (Fraise_frame): On text-only terminals select frame in
10919 order to make it visible. (Bug#1061)
10920
109212008-10-08 Chong Yidong <cyd@stupidchicken.com>
10922
10923 * fontset.c (fontset_find_font): Check frame validity.
10924
109252008-10-07 Chong Yidong <cyd@stupidchicken.com>
10926
a9b555d3 10927 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10928 (xg_display_close): Allow Emacs to close all displays (bug#985).
10929
109302008-10-06 Andreas Schwab <schwab@suse.de>
10931
f5385255 10932 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10933
109342008-10-06 Chong Yidong <cyd@stupidchicken.com>
10935
f5385255 10936 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10937
a9b555d3 10938 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10939
10940 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10941 during initialization.
10942
109432008-10-04 Eli Zaretskii <eliz@gnu.org>
10944
10945 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10946 whole thing on MSDOS frames as well as on a TTY.
10947
10948 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10949 well as for TTY.
10950 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10951 well as on a TTY.
10952
10953 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10954 as well as for TTY.
10955
10956 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10957
10958 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10959 MSDOS frames as well.
10960
109612008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10962
10963 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10964 correct arguments.
b71ac3dd 10965 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10966
109672008-10-03 Glenn Morris <rgm@gnu.org>
10968
10969 * emacs.c (USAGE1): Add --daemon.
10970
109712008-10-02 Eli Zaretskii <eliz@gnu.org>
10972
10973 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10974 100, so it's in percents as advertised.
10975
109762008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10977
10978 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10979 (ns_output.current_cursor, ns_output.desired_cursor)
10980 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10981 (FRAME_NEW_CURSOR_COLOR): Remove.
10982
10983 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10984 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10985 enumeration (HOLLOW_BOX_CURSOR, etc.).
10986
10987 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10988 (draw_window_cursor): Simplify code.
f5385255
SM
10989 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10990 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10991 updates manually.
a9b555d3
JB
10992 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10993 Use core Emacs cursor types.
aac0c6e3 10994
b8ff72fa 10995 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10996
109972008-10-02 Martin Rudalics <rudalics@gmx.at>
10998
10999 * process.c (Faccept_process_output): Fix doc-string.
11000
110012008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11002
11003 * gmalloc.c (__sbrk): Also define for uClibc.
11004
11005 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11006 for uClibc.
11007
110082008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11009
11010 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11011 styles.
11012 (nsfont_open): Reenable the cache.
11013
110142008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11015
11016 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11017 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11018
110192008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11020
11021 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11022 a suspended terminal.
11023
110242008-09-30 Michael Albinus <michael.albinus@gmx.de>
11025
11026 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11027
110282008-09-30 Eli Zaretskii <eliz@gnu.org>
11029
11030 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11031
110322008-09-30 Chong Yidong <cyd@stupidchicken.com>
11033
11034 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11035 in a continued line coincides with a line beginning.
11036
110372008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11038
11039 * nsfont.m (nsfont_trait_distance): Fix bug.
11040 (nsfont_list): Return a list rather than a vector (syncs with Handa
11041 changes of 2008-05-14).
11042 (nsfont_open): Improve logging.
11043
110442008-09-29 Andreas Schwab <schwab@suse.de>
11045
11046 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11047
110482008-09-28 Martin Rudalics <rudalics@gmx.at>
11049
11050 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11051 name as char-resolve-modifiers.
11052 Reported by: Markus Triska <markus.triska@gmx.at>
11053
110542008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11055
11056 * dispnew.c (init_display): Return earlier when running as a daemon.
11057
110582008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11059
11060 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11061
110622008-09-27 Eli Zaretskii <eliz@gnu.org>
11063
11064 * composite.c (Fcomposition_get_gstring)
11065 (Fcompose_region_internal, Fcompose_string_internal)
11066 (Ffind_composition_internal): Doc fix.
11067 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11068 (syms_of_composite) <auto-composition-function>: Doc fix.
11069 (syms_of_composite) <composition-function-table>: Doc fix.
11070
110712008-09-25 Chong Yidong <cyd@stupidchicken.com>
11072
11073 * search.c (wordify): New argument for lax word-ends.
11074 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11075
110762008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11077
11078 * lisp.h (is_daemon): Declare.
11079 * dispnew.c (init_display): Do not try to initialize the terminal
11080 when running as a daemon.
11081
110822008-09-22 Chong Yidong <cyd@stupidchicken.com>
11083
11084 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11085 x_display_pixel_height.
11086
110872008-09-22 Martin Rudalics <rudalics@gmx.at>
11088
11089 * undo.c (record_point): Don't call Fundo_boundary for first
11090 change. (Bug#731)
11091
110922008-09-22 Juanma Barranquero <lekktu@gmail.com>
11093
11094 * emacs.c (Fdaemonp): Doc fix.
11095
110962008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11097
11098 * emacs.c (main): Place #ifdef in the proper place.
11099
111002008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11101
11102 * emacs.c (standard_args): Add --daemon.
11103 (main): Disconnect from the terminal when --daemon is passed.
11104 (is_daemon): New variable.
11105 (Fdaemonp): New function.
11106 (syms_of_emacs): Defsubr it.
11107
111082008-09-20 Chong Yidong <cyd@stupidchicken.com>
11109
11110 * xdisp.c (get_next_display_element): Handle string display
11111 correctly when checking for the end of a box run.
11112
111132008-09-20 Glenn Morris <rgm@gnu.org>
11114
11115 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11116 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11117 (Frename_file): Avoid copying to trash if a rename involves
11118 a delete. (Bug#964).
11119
111202008-09-20 Eli Zaretskii <eliz@gnu.org>
11121
11122 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11123 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11124 frames as well as termcap frames.
11125 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11126 get_named_tty.
11127
111282008-09-19 Eli Zaretskii <eliz@gnu.org>
11129
11130 * process.c (procfs_system_process_attributes): Fix cmdline in
11131 case /proc/PID/cmdline is empty.
11132
11133 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11134 x_display_pixel_height.
11135
111362008-09-19 Juanma Barranquero <lekktu@gmail.com>
11137
11138 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11139
11140 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11141 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11142
111432008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11144
11145 * dispextern.h (struct it): Move line_wrap away from the middle of
11146 bitfields. Move voffset in struct iterator_stack_entry after the
11147 bitfields. Move tab_width near after another short.
11148
111492008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11150
11151 * frame.h (struct frame): Move alpha from the middle of bitfields.
11152
11153 * window.h (struct window): Move frozen_window_start_p after the
11154 rest of the bitfields to reduce padding.
11155
111562008-09-18 Chong Yidong <cyd@stupidchicken.com>
11157
11158 * xterm.h (x_display_info): Remove `height' and `width' members.
11159
11160 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11161
11162 * w32term.h (w32_display_info): Remove `height', `width',
11163 `height_in', and `width_in' members.
11164
b8ff72fa
SM
11165 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11166 New functions.
aac0c6e3
MR
11167 (x_calc_absolute_position): Use them.
11168 (x_term_init): Omit removed `height' and `width' members.
11169
b8ff72fa
SM
11170 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11171 New functions.
aac0c6e3
MR
11172 (w32_read_socket, x_calc_absolute_position): Use them.
11173 (w32_initialize_display_info, w32_term_init): Omit removed members
11174 of w32_display_info.
11175
b8ff72fa
SM
11176 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11177 New functions.
11178 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11179
b8ff72fa
SM
11180 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11181 New functions.
aac0c6e3
MR
11182 (x_calc_absolute_position): Use them.
11183 (x_term_init): Omit removed `height' and `width' members.
11184
11185 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11186 (compute_tip_xy):
11187 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11188 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11189 x_display_pixel_width.
11190
111912008-09-18 Kenichi Handa <handa@m17n.org>
11192
11193 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11194 (composition_compute_stop_pos): Fix handling of static composition.
11195 (Fcomposition_get_gstring): Check FROM and TO at first.
11196
111972008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11198
46e722a9 11199 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11200 mixup (YAILOM).
11201
112022008-09-17 Chong Yidong <cyd@stupidchicken.com>
11203
11204 * indent.c (Fvertical_motion): Use position reported by iterator
11205 instead of PT for determining screen motion (bug#943).
11206
112072008-09-17 Romain Francoise <romain@orebokech.com>
11208
11209 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11210
112112008-09-17 Kenichi Handa <handa@m17n.org>
11212
11213 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11214
11215 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11216 if necessary.
11217
112182008-09-16 Kenichi Handa <handa@m17n.org>
11219
11220 * coding.c (make_conversion_work_buffer): Avoid calling
11221 Fget_buffer_create if it is not necessary.
11222
112232008-09-15 Martin Rudalics <rudalics@gmx.at>
11224
11225 * window.c (Fselect_window): Don't update window_select_count and
11226 use_time when norecord is not nil.
11227
112282008-09-14 Kenichi Handa <handa@m17n.org>
11229
11230 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11231 specpdl_ptr.
11232
112332008-09-12 Kenichi Handa <handa@m17n.org>
11234
11235 * indent.c (scan_for_column): Don't handle automatic composition
11236 if the current buffer is not associated with a window.
11237
11238 * composite.c (composition_reseat_it): If the current buffer is
11239 not associated with a window, ignore the automatic composition.
11240 (find_automatic_composition): Likewise.
11241
112422008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11243
11244 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11245 (Fgpm_mouse_stop): Use it.
11246 * termhooks.h (close_gpm): Declare.
11247 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11248 connection if Gpm_GetEvent fails.
11249
11250 * window.c (set_window_buffer): Always preserve current-buffer.
11251
112522008-09-12 Glenn Morris <rgm@gnu.org>
11253
11254 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11255
112562008-09-11 Glenn Morris <rgm@gnu.org>
11257
11258 * charset.c (charset-map-path): Doc fix.
11259
112602008-09-10 Kenichi Handa <handa@m17n.org>
11261
11262 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11263
11264 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11265 compose a grapheme cluster with the preceding base glyph.
11266
11267 * composite.c (composition_compute_stop_pos): Fix previous change.
11268 Reset cmp_it->id to -1 at first.
11269
112702008-09-10 Glenn Morris <rgm@gnu.org>
11271
11272 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11273
112742008-09-09 Chong Yidong <cyd@stupidchicken.com>
11275
11276 * keyboard.c (read_key_sequence): Reapply translation maps when
11277 switching keyboards.
11278
112792008-09-09 Kenichi Handa <handa@m17n.org>
11280
11281 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11282 characters.
11283
11284 * composite.c (FORWARD_CHAR): Fix calculation
11285 of (POSITION).pos_byte.
11286 (composition_compute_stop_pos): Limit the search of composition to
11287 at most 500 characters ahead. If we reach the limit or find a
11288 newline, set cmp_it->ch to -2 and return 0.
11289 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11290
112912008-09-08 Kenichi Handa <handa@m17n.org>
11292
11293 * indent.c (Fvertical_motion): Be sure to set
11294 it_overshoot_expected if it.cmp_it.id is non-negative.
11295
112962008-09-07 Andreas Schwab <schwab@suse.de>
11297
11298 * callproc.c (Fcall_process): Don't hold references to string data
11299 across garbage collection. Move initialisation of new_argv down
11300 to avoid compiler bug.
11301
113022008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11303
11304 * process.c (Fsystem_process_attributes): Doc fix.
11305
113062008-09-07 Chong Yidong <cyd@stupidchicken.com>
11307
11308 * callproc.c (Fcall_process): Canonicalize current directory name.
11309
11310 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11311 iterator advances to the next line if the current line ends in a
11312 continued tab.
11313
113142008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11315
11316 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11317 member to point to cmp_from.
11318
11319 * xdisp.c: Doc fix for references to gidx data member.
11320
113212008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11322
11323 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11324
113252008-09-07 Kenichi Handa <handa@m17n.org>
11326
11327 * composite.c (FORWARD_CHAR): Check STOP after
11328 incrementing (POSITION).pos.
11329
113302008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11331
11332 * process.c (Fsystem_process_attributes): Doc fix.
11333
113342008-09-06 Chong Yidong <cyd@stupidchicken.com>
11335
11336 * keyboard.c (Ftop_level): Doc fix.
11337
113382008-09-06 Eli Zaretskii <eliz@gnu.org>
11339
11340 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11341 minibuffer, don't let lower part of menu invade the echo area.
11342
11343 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11344 "char *q" to access menu text and advance through it. Revert the
11345 change that displayed ">" instead of ASCII character 0x10.
11346
113472008-09-05 Eli Zaretskii <eliz@gnu.org>
11348
11349 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11350 toggle boxes and radio buttons on MS-DOS as well.
11351
113522008-09-05 Kenichi Handa <handa@m17n.org>
11353
11354 * composite.c (autocmp_chars): Check lookback count.
11355 (composition_compute_stop_pos): Set cmp_it->lookback.
11356 (composition_reseat_it): Check lookback count.
11357 (struct position_record): New struct.
11358 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11359 (find_automatic_composition): New function.
11360 (composition_adjust_point): Use find_automatic_composition.
11361
11362 * dispextern.h (struct composition_it): New member lookback.
11363
113642008-09-02 Chong Yidong <cyd@stupidchicken.com>
11365
11366 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11367 if moving by a single line.
11368
113692008-09-02 Andreas Schwab <schwab@suse.de>
11370
11371 * xterm.c (x_delete_display): Fix merge error.
11372
11373 * fileio.c (Fexpand_file_name): Remove unused variables.
11374
113752008-09-02 Eli Zaretskii <eliz@gnu.org>
11376
11377 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11378 storage on all platforms, not just on DOS_NT.
11379
113802008-09-02 Jason Rumney <jasonr@gnu.org>
11381
b8ff72fa
SM
11382 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11383 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11384
113852008-09-01 Chong Yidong <cyd@stupidchicken.com>
11386
11387 * xfaces.c (Finternal_set_alternative_font_family_alist)
11388 (Finternal_set_alternative_font_registry_alist): Properly copy
11389 entire alist structure.
11390
113912008-09-01 Kenichi Handa <handa@m17n.org>
11392
d66c0241 11393 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11394 representative chars of the script is a vector.
d66c0241
JB
11395 (ftfont_list): Handle the case where the representative chars of
11396 the script is a vector.
aac0c6e3
MR
11397
11398 * character.c (syms_of_character): Docstring of
11399 script-representative-chars fixed.
11400
114012008-08-31 Eli Zaretskii <eliz@gnu.org>
11402
11403 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11404 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11405 the menu. Allocate larger buffer for `text', to account for
11406 possible ^C characters.
11407
114082008-08-31 Martin Rudalics <rudalics@gmx.at>
11409
11410 * xdisp.c (prepare_menu_bars): Don't call
11411 Vwindow_size_change_functions with arg Qt.
11412
114132008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11414
11415 * font.h (font_range):
11416 * fileio.c (report_file_error):
46e722a9
SM
11417 * composite.c (composition_update_it): Yet another int/Lisp_Object
11418 mixup (YAILOM).
aac0c6e3
MR
11419
114202008-08-30 Glenn Morris <rgm@gnu.org>
11421
11422 * data.c (Fmake_variable_frame_local): Doc fix.
11423
11424 * frame.c (Fmodify_frame_parameters): Doc fix.
11425
114262008-08-30 Eli Zaretskii <eliz@gnu.org>
11427
11428 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11429 needed by GetTokenInformation.
11430 (w32_system_process_attributes): Check return values of all system
11431 APIs.
11432
11433 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11434 only when the state changes.
11435 (IT_update_begin, IT_update_end): Add termscript trace.
11436
11437 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11438 clipboard is unavailable. Set dst to NULL if it doesn't point to
11439 malloc'ed data.
11440 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11441 passing random values to xfree.
11442
11443 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11444 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11445
114462008-08-29 Jason Rumney <jasonr@gnu.org>
11447
11448 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11449
114502008-08-29 Eli Zaretskii <eliz@gnu.org>
11451
11452 * composite.c (fill_gstring_body): Avoid compiler warnings.
11453
11454 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11455 LGLYPH_SET_CODE to avoid compiler warnings.
11456
2ae37cf0 11457 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11458
11459 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11460
11461 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11462 LGLYPH_SET_CODE.
11463
114642008-08-29 Kenichi Handa <handa@m17n.org>
11465
11466 * fileio.c (report_file_error): Don't downcase the first character
11467 of errstring if it is still unibyte.
11468
114692008-08-29 Kenichi Handa <handa@m17n.org>
11470
11471 These changes are to re-implement the automatic composition so
11472 that it doesn't use text properties.
11473
11474 * Makefile.in (ftfont.o): Depend on composite.h.
11475 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11476
11477 * character.h (Vunicode_category_table): Extern it.
11478
11479 * character.c (Vunicode_category_table): New variable.
11480 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11481
11482 * chartab.c (optimize_sub_char_table): Perform more greedy
11483 optimization.
11484
b8ff72fa
SM
11485 * composite.h (enum composition_method):
11486 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11487 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11488 (Vcomposition_function_table): Extern it.
11489 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11490 (composition_gstring_put_cache, composition_gstring_from_id)
11491 (composition_gstring_p, composition_gstring_width)
11492 (composition_compute_stop_pos, composition_reseat_it)
11493 (composition_update_it, composition_adjust_point): Extern them.
11494 (Fcomposition_get_gstring): EXFUN it.
11495
d66c0241 11496 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11497 (Vcomposition_function_table)
11498 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11499 (gstring_hash_table, gstring_work, gstring_work_headers):
11500 New variables.
aac0c6e3
MR
11501 (gstring_lookup_cache, composition_gstring_put_cache)
11502 (composition_gstring_from_id, composition_gstring_p)
11503 (composition_gstring_width, fill_gstring_header)
11504 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11505 (composition_reseat_it, composition_update_it)
b8ff72fa 11506 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11507 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11508 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11509 Defsubr composition_get_gstring.
aac0c6e3
MR
11510
11511 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11512 cmp_id.
11513 (struct glyph_string): Delete the member gidx. New members
11514 cmp_id, cmp_from, and cmp_to.
11515 (enum it_method): Delete GET_FROM_COMPOSITION.
11516 (struct composition_it): New struct.
11517 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11518 Delete c, len, cmp_id, cmp_len in u.comp.
11519
11520 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11521 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11522 (enum lglyph_indices): Likewise.
b8ff72fa 11523 (font_range): Adjust extern.
aac0c6e3
MR
11524 (font_fill_lglyph_metrics): Extern it.
11525
11526 * font.c (QCf): New variable.
11527 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11528 (font_prepare_composition): Delete this function.
11529 (font_range): Type and arguments changed.
11530 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11531 (font_fill_lglyph_metrics): New function.
b8ff72fa 11532 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11533 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11534 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11535 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11536
11537 * fontset.h (font_for_char): Extern it.
11538
11539 * fontset.c (font_for_char): New function.
11540
11541 * ftfont.c: Include composite.h.
11542 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11543 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11544
11545 * indent.c: Include composite.h and dispextern.h.
11546 (check_composition): Delete this function.
11547 (scan_for_column): Handle composition by
11548 composition_compute_stop_pos, composition_reseat_it, and
11549 composition_update_it.
11550 (compute_motion): Likewise.
11551 (Fvertical_motion): Fix checking of composition.
11552
11553 * keyboard.c (adjust_point_for_property): Check composition by
11554 composition_adjust_point.
11555
b8ff72fa 11556 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11557 struct glyph_string.
11558
b8ff72fa
SM
11559 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11560 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11561 struct glyph.
11562 (produce_composite_glyph): Likewise.
11563
b8ff72fa
SM
11564 * w32term.c (x_draw_composite_glyph_string_foreground):
11565 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11566 (x_draw_glyph_string): Likewise.
11567
11568 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11569 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11570
11571 * xdisp.c: Include font.h.
11572 (it_props): Delete the entry for Qauto_composed.
11573 (init_iterator): Initialize it->cmp_it.id to -1.
11574 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11575 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11576 (handle_auto_composed_prop): Delete it.
11577 (handle_composition_prop): Handle only static composition.
11578 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11579 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11580 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11581 (pop_it): Likewise.
11582 (get_next_element): Delete next_element_from_composition.
11583 (CHAR_COMPOSED_P): New macro.
11584 (get_next_display_element): For automatic composition, get a face
11585 from the font in the glyph-string.
11586 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11587 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11588 (next_element_from_string): Check if the character at the current
11589 position is composed by CHAR_COMPOSED_P.
11590 (next_element_from_buffer): Likewise.
d66c0241
JB
11591 (next_element_from_composition): Adjust for the change of struct it.
11592 Update it->cmp_it.
b8ff72fa
SM
11593 (dump_glyph): Adjust for the change of struct glyph.
11594 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11595 it and struct glyph. Don't handle automatic composition here.
11596 (fill_gstring_glyph_string): New function.
11597 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11598 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11599 (BUILD_GSTRING_GLYPH_STRING): New macro.
11600 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11601 automatic composition.
b8ff72fa 11602 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11603 struct glyph.
b8ff72fa 11604 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11605
b8ff72fa 11606 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11607 the change of struct glyph_string.
11608 (x_draw_glyph_string): Likewise.
11609
116102008-08-29 Glenn Morris <rgm@gnu.org>
11611
11612 * buffer.c (word-wrap): Doc fix.
11613 * xdisp.c (truncate-partial-width-windows): Doc fix.
11614 Increase default to 50.
11615
116162008-08-29 Chong Yidong <cyd@stupidchicken.com>
11617
11618 * xdisp.c (update_tool_bar_unwind): New function.
11619 (update_tool_bar): Temporarily set selected frame before building
11620 tool-bar items.
11621
116222008-08-28 Michael Albinus <michael.albinus@gmx.de>
11623
11624 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11625 snprintf, respectively.
11626 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11627
116282008-08-28 Chong Yidong <cyd@stupidchicken.com>
11629
11630 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11631 LDFLAGS to GNUstep CC invocation.
11632
116332008-08-27 Chong Yidong <cyd@stupidchicken.com>
11634
11635 * indent.c (Fvertical_motion): Revert last change. Handle the
11636 general case where we are moving forward, and PT spans multiple
11637 screen lines.
11638
11639 * eval.c (find_handler_clause): Temporarily increase
11640 max-lisp-eval-depth while printing the backtrace buffer, to
11641 guarantee that help-mode code can run.
11642
116432008-08-27 Eli Zaretskii <eliz@gnu.org>
11644
11645 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11646 colors under -rv.
11647 (IT_set_frame_parameters): Don't swap foreground and background
11648 colors if `(reverse . t)' is present in the frame properties.
11649 (internal_terminal_init): Call init_frame_faces only for the
11650 initial frame.
11651
116522008-08-27 Andreas Schwab <schwab@suse.de>
11653
11654 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11655
116562008-08-27 Andreas Schwab <schwab@suse.de>
11657
11658 * search.c (search_buffer): Set char_base to zero only at the end.
11659
116602008-08-27 Kenichi Handa <handa@m17n.org>
11661
b8ff72fa 11662 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11663
116642008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11665
11666 * xterm.c (x_term_init): Temporarily hide the partially
11667 initialized terminal while calling vendor-specific-keysyms.
11668
116692008-08-26 Eli Zaretskii <eliz@gnu.org>
11670
11671 * msdos.c (internal_terminal_init): Most initializations done only
11672 once, especially initial_screen_colors[] and termscript open.
11673
116742008-08-26 Chong Yidong <cyd@stupidchicken.com>
11675
11676 * eval.c (Fcondition_case): Doc fix.
11677
11678 * widgetprv.h (EmacsFramePart): Change font member to the new font
11679 struct.
11680
11681 * widget.c: Include character.h and font.h for XSETFONT.
11682 (setup_frame_gcs): Compute X font id from font struct, just once.
11683
116842008-08-26 Eli Zaretskii <eliz@gnu.org>
11685
11686 * term.c (get_named_tty): Fix last change.
11687
116882008-08-26 Chong Yidong <cyd@stupidchicken.com>
11689
11690 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11691 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11692
116932008-08-25 Eli Zaretskii <eliz@gnu.org>
11694
11695 * frame.c (do_switch_frame): Mark previously displayed frame as
11696 obscured for FRAME_MSDOS_P frames as well.
11697
116982008-08-24 Eli Zaretskii <eliz@gnu.org>
11699
11700 * frame.c (make_terminal_frame): Initialize f->terminal,
11701 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11702 Set the top frame to newly created frame.
11703 (Fmake_terminal_frame): Reuse the_only_display_info.
11704
11705 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11706 estimating available memory.
11707
b97439ce 117082008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11709
11710 * nsterm.m (ns_draw_window_cursor): Don't call
11711 NSDisableScreenUpdates and NSEnableScreenUpdates on
11712 non-NS_IMPL_COCOA systems.
11713
117142008-08-23 Andreas Schwab <schwab@suse.de>
11715
11716 * process.c (procfs_system_process_attributes): Fix use of
11717 uninitialized variables.
11718
117192008-08-23 Eli Zaretskii <eliz@gnu.org>
11720
11721 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11722
11723 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11724 calling tty-set-up-initial-frame-faces.
11725
b8ff72fa
SM
11726 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11727 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11728
11729 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11730 addition to output_termcap.
11731
11732 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11733
11734 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11735 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11736 highlight.
11737
11738 * process.c [!subprocesses]: Define QCname.
11739 (syms_of_process): Intern and staticpro it.
11740
11741 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11742 Adjust for changes in encoding/decoding routines.
11743 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11744 encode_coding and decode_coding.
11745
b8ff72fa 11746 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11747
11748 * dosfns.c: Include frame.h before termhooks.h.
11749 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11750 variable termscript.
11751
11752 * s/msdos.h (USER_FULL_NAME): Define.
11753 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11754
11755 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11756 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11757 pw->pw_gecos.
11758
11759 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11760 SELECTED_FRAME as additional (1st) argument.
11761 (tty_read_avail_input): Handle output_msdos_raw in
11762 addition to output_termcap.
11763
11764 * msdos.c: Include frame.h before termhooks.h.
11765 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11766 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11767 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11768 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11769 (IT_set_terminal_modes, IT_reset_terminal_modes)
11770 (IT_set_frame_parameters): Use tty->termscript instead of a global
11771 variable termscript.
11772 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11773 global variable terminal_coding. Don't refer to
11774 Vnonascii_translation_table.
11775 (internal_terminal_init): Set Vwindow_system in current_kboard.
11776 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11777 Announce date and time of session start, if termscript is open.
11778 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11779 term.c:init_tty). Open termscript only of not already open.
11780 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11781 here instead of dos_ttraw. Don't initialize display if this is an
11782 initial tty. Don't set FRAME_FONT.
11783 (Vwindow_system_version): Bump to 23.
11784 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11785 is available, set up mouse_position_hook.
11786 (dos_ttraw, IT_set_terminal_modes): If called with initial
11787 terminal, do nothing.
11788 (IT_set_frame_parameters): Handle the Qtty_type frame
11789 parameter by calling internal_terminal_init.
11790 (dos_set_window_size, show_mouse_face)
11791 (clear_mouse_face, IT_note_mode_line_highlight)
11792 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11793 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11794 (initialize_msdos_display): New function.
11795 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11796 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11797 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11798 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11799 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11800 (request_sigio, unrequest_sigio): Don't define, now defined on
11801 sysdep.c.
11802 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11803
11804 * term.c [MSDOS]: Include msdos.h.
11805 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11806 conditional to DOS_NT. Allow only one call to this function in a
11807 session. Don't allocate a new struct tty_display_info; instead,
11808 reuse the_only_display_info. Call get_tty_size to get screen
11809 dimensions. Call init_baud_rate to set bad_rate.
11810 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11811 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11812 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11813 (get_tty_terminal, get_named_tty, Ftty_type)
11814 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11815 output_termcap.
b8ff72fa
SM
11816 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11817 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11818 only when subprocesses are supported.
aac0c6e3
MR
11819
11820 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11821 f->output_data.x.
11822 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11823 terminal devices.
11824
5582fbc7 11825 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11826 x_output.
11827 (FRAME_FONT): Use output_data.tty.
11828 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11829 (struct x_display_info): Rename from display_info. Update all users in
11830 msdos.c.
aac0c6e3 11831 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11832 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11833 (dos_ttraw): Update prototype.
11834
11835 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11836 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11837
118382008-08-23 Jason Rumney <jasonr@gnu.org>
11839
11840 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11841 (fn_TIFFSetDirectory): New library function used.
11842 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11843 (tiff_load): Use :index to select among multiple images. Set count
11844 property when multiple images exist.
11845 (gif_format): Use :index, not :image.
11846
118472008-08-23 Chong Yidong <cyd@stupidchicken.com>
11848
11849 * xdisp.c (try_scrolling): Check INT_MAX instead of
11850 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11851 to obtain INT_MAX.
11852
118532008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11854
11855 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11856
118572008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11858
11859 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11860 GNUstep library location.
11861
118622008-08-21 Chong Yidong <cyd@stupidchicken.com>
11863
11864 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11865 before using it.
11866
11867 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11868
118692008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11870
11871 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11872 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11873 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11874 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11875 (EmacsApp-cursor_blink_handler): Remove declaration.
11876 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11877 match 01 Feb 2008 changes in xterm.c.
11878 (ns_read_socket): Add cast to avoid warning.
11879 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11880 GNUstep.
11881
118822008-08-20 Chong Yidong <cyd@stupidchicken.com>
11883
11884 * xselect.c (x_get_foreign_selection): Return nil if desired
11885 selection could not be obtained, instead of signalling an error.
11886
118872008-08-20 David Reitter <david.reitter@gmail.com>
11888
11889 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11890 * nsterm.m: Remove ns-specific code for cursor blinking.
11891 (ns_draw_window_cursor): Clear cursor properly rather than
11892 redrawing the area. Respect width of bar cursors.
11893 These changes enable the use of generic blink-cursor-mode and
11894 generic cursor types in NS and support smooth cursor movements (do
11895 not blink off after command).
11896 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11897 Nextstep, too.
11898
118992008-08-19 Kenichi Handa <handa@m17n.org>
11900
11901 * font.c (Vfont_log_deferred): New variable.
11902 (font_add_log): Check Vfont_log_deferred.
11903 (font_deferred_log): New function.
11904
11905 * font.h (font_deferred_log): Extern it.
11906
11907 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11908 for sorting.
11909 (face_for_char): Use deferred log.
11910
119112008-08-18 Kenichi Handa <handa@m17n.org>
11912
11913 * fontset.c (face_for_char): Add font log.
11914
11915 * font.c (font_add_log): Add the font properties :script, :lang,
11916 and :otf in the log.
11917
119182008-08-17 Chong Yidong <cyd@stupidchicken.com>
11919
11920 * xdisp.c: Remove dead code.
11921 (handle_invisible_prop, next_overlay_string): Defer call to
11922 setup_for_ellipsis.
11923 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11924
119252008-08-15 Chong Yidong <cyd@stupidchicken.com>
11926
11927 * xfaces.c (lookup_derived_face): Properly handle possible zero
11928 return value of get_lface_attributes.
11929 (merge_faces): Don't tell lookup_derived_face to signal an error
11930 if face is not found.
11931
11932 * dired.c (Fdirectory_files): Doc fix.
11933
11934 * process.c (make_process): Initialize kill_without_query struct
11935 member.
11936
119372008-08-15 Eli Zaretskii <eliz@gnu.org>
11938
11939 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11940 Alternative calculation of totphys for Visual Studio 6.
11941
11942 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11943
11944 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11945 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11946 All users changed.
11947 (stat): Only root directory passed to GetDriveType. Allow RAM
11948 disk as well as local fixed disk when w32-get-true-file-attributes
11949 is set to `local'.
11950 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11951 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11952 (w32_cached_id, w32_add_to_cache): New functions.
11953 (get_name_and_id): Look account names in the cache before calling
11954 lookup_account_sid.
11955 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11956 New initialization flags.
11957 (globals_of_w32): Initialize them to zero.
11958 (w32_system_process_attributes): Use w32_cached_id and
11959 w32_add_to_cache.
11960
119612008-08-14 Lawrence Mitchell <wence@gmx.li>
11962
11963 * lread.c (Fread_char, Fread_char_exclusive): If no character
11964 event is read before timeout is reached, return nil, rather than
11965 converting to a number.
11966
119672008-08-14 Chong Yidong <cyd@stupidchicken.com>
11968
11969 * fns.c (use_dialog_box): Doc fix.
11970
11971 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11972 on OS X.
11973
119742008-08-13 Chong Yidong <cyd@stupidchicken.com>
11975
11976 * frame.c (Qns_parse_geometry): New var.
11977 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11978
119792008-08-11 Chong Yidong <cyd@stupidchicken.com>
11980
11981 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11982 space character in calculating tabs.
11983
119842008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11985
11986 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11987
119882008-08-10 Glenn Morris <rgm@gnu.org>
11989
11990 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11991 silence gcc "limited range of data type" warnings in some
11992 make_fixnum_or_float calls.
11993
119942008-08-09 Eli Zaretskii <eliz@gnu.org>
11995
11996 * w32.c (w32_system_process_attributes): If the process does not
11997 exist, return nil.
11998
11999 * w32.c: Include thelp32.h, psapi.h and coding.h.
12000 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12001 declarations.
12002 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12003 (Process32Next_Proc): New typedefs.
12004 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12005 (g_b_init_process32_next, g_b_init_open_thread_token)
12006 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12007 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12008 (g_b_init_get_process_working_set_size)
12009 (g_b_init_global_memory_status_ex): New static variables.
12010 (globals_of_w32): Initialize them.
12011 (create_toolhelp32_snapshot, process32_first, process32_next)
12012 (open_thread_token, impersonate_self, revert_to_self)
12013 (get_process_memory_info, get_process_working_set_size)
12014 (global_memory_status, global_memory_status_ex): New wrapper
12015 functions.
12016 (w32_list_system_processes, w32_system_process_attributes)
12017 (enable_privilege, restore_privilege, ltime, process_times):
12018 New functions.
12019 (convert_time_raw): New function.
12020 (convert_time): Remove conversion of FILETIME into time in 100
12021 nsec units, call convert_time_raw instead.
12022
12023 * process.h (w32_list_system_processes, w32_system_process_attributes):
12024 Add prototypes.
12025 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12026 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12027 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12028 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12029
12030 * process.c (Fsystem_process_attributes): Doc fix.
12031
120322008-08-08 Chong Yidong <cyd@stupidchicken.com>
12033
12034 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12035 a continued multi-char glyph; if so, advance to the actual glyph.
12036
120372008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12038
12039 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12040
12041 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12042 (.m.o): Use it.
12043 * config.in: Regenerate.
12044
120452008-08-07 Chong Yidong <cyd@stupidchicken.com>
12046
12047 * xdisp.c (redisplay_window): Revert last change.
12048 (try_window): Check bottom scroll margin too.
12049
120502008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12051
12052 * config.in: Regenerate.
12053
12054 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12055 -list-load-path-shadows'.
12056 (nsgui.h): Reduce number of things depending on it.
12057
120582008-08-06 Chong Yidong <cyd@stupidchicken.com>
12059
12060 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12061 instead of window-end which does the wrong thing at eob.
12062 (try_cursor_movement): Minor optimization.
12063 (redisplay_window): If scroll margin is defined, don't assume
12064 window doesn't need scrolling.
12065
120662008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12067
12068 * config.in: Regenerate.
12069
12070 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12071 (mostlyclean): Don't delete *.d under NS.
12072
12073 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12074
120752008-08-06 Kenichi Handa <handa@m17n.org>
12076
12077 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12078
120792008-08-06 Andreas Schwab <schwab@suse.de>
12080
12081 * config.in: Regenerate.
12082
120832008-08-05 Chong Yidong <cyd@stupidchicken.com>
12084
12085 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12086 forcing a window start.
12087
12088 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12089 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12090
120912008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12092
12093 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12094 argument.
12095
120962008-08-05 Juanma Barranquero <lekktu@gmail.com>
12097
12098 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12099 <scroll-down-aggressively, before-change-functions>:
12100 <after-change-functions>: Reflow docstrings.
12101
121022008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12103 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12104
12105 Dock menu customization, based on a patch by Ken Raeburn, plus some
12106 other fixes.
12107 * nsmenu.m (dockMenu): New variable.
12108 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12109
12110 * nsterm.h (dockMenu): Declare.
12111
12112 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12113 (ns_term_init): Initialize dockMenu.
12114 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12115 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12116 left.
12117
12118 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12119
121202008-08-04 Chong Yidong <cyd@stupidchicken.com>
12121
12122 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12123
12124 * config.in: Regenerate.
12125
121262008-08-04 Seiji Zenitani <zenitani@mac.com>
12127
12128 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12129
121302008-08-04 Chong Yidong <cyd@stupidchicken.com>
12131
12132 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12133
121342008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12135
12136 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12137
12138 * keyboard.h: Comment an #endif.
12139
12140 * lisp.h (have_menus_p): Adjust comment.
12141
12142 * menu.c (find_and_return_menu_selection): Fix comparison with
12143 client_data.
12144
12145 * nsmenu.m (popup_activated_flag): New variable.
12146 (popup_activated): New function.
12147 (menu-or-popup-active-p): New exported lisp definition.
12148 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12149 when popup done.
12150 (ns_popup_dialog): Set popup_activated_flag.
12151
12152 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12153 version for GNUstep (handled by conditional typedef in nsterm.m).
12154 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12155 in rgb.txt).
12156
12157 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12158
12159 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12160
12161 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12162
12163 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12164 shortcircuit if popup_activated like GTK and X toolkit.
12165
12166 * m/inter386.h: Change DARWIN to DARWIN_OS.
12167
12168 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12169 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12170 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12171 comment on NO_SOCK_SIGIO.
12172
121732008-08-03 Chong Yidong <cyd@stupidchicken.com>
12174
12175 * nsterm.m (windowDidResize): Remove stopModal call.
12176
121772008-08-03 Andreas Schwab <schwab@suse.de>
12178
12179 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12180 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12181
121822008-08-02 Chong Yidong <cyd@stupidchicken.com>
12183
12184 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12185 Don't use uninitialized pointer variable when using getrlimit.
12186
121872008-08-02 Jason Rumney <jasonr@gnu.org>
12188
12189 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12190
121912008-08-02 Eli Zaretskii <eliz@gnu.org>
12192
12193 * alloc.c (NSTATICS): Bump to 0x640.
12194
12195 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12196
12197 * lisp.h: Add prototype for directory_files_internal.
12198
12199 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12200 New functions.
12201 (syms_of_process): Defsubr them. Add initializations for various
12202 Q* symbols used in procfs_system_process_attributes.
12203 (procfs_list_system_processes, procfs_system_process_attributes)
12204 [HAVE_PROCFS]: New functions.
12205 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12206 (procfs_get_total_memory): New functions.
12207
122082008-08-01 Juanma Barranquero <lekktu@gmail.com>
12209
12210 * xfaces.c (Fx_load_color_file): Fix previous change;
12211 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12212
122132008-08-01 Michael Albinus <michael.albinus@gmx.de>
12214
12215 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12216
122172008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12218
12219 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12220
122212008-08-01 Chong Yidong <cyd@stupidchicken.com>
12222
12223 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12224
12225 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12226 define NSApplicationDelegateReplySuccess.
12227 (EmacsView -converstationIdentifier): Use long instead of
12228 NSInteger for GNUstep, since it doesn't have NSInteger.
12229
12230 * xmenu.c: Revert last change.
12231
12232 * keyboard.h: Fix last change.
12233
122342008-08-01 Juanma Barranquero <lekktu@gmail.com>
12235
12236 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12237 on Windows.
12238
122392008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12240
12241 Warning clearing and clean-up in NS port.
12242 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12243 Add prototypes.
12244 * nsgui.h (FACE_DEFAULT): Remove, unused.
12245 (XGCValues): Change colors to unsigned long.
12246 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12247 nsterm.m.
12248 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12249 (ns_list_fonts): Remove, unused.
12250 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12251 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12252 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12253 (nsfont_draw): Compare face colors to 0, not nil.
12254 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12255 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12256 (-addSubmenuWithTitle:): Use NSMenuItem class.
12257 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12258 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12259 (ns_clip_to_row): Make gc arg a BOOL.
12260 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12261 ns_clip_to_row() call.
12262 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12263 used). Cast FRAME_FONT assignments.
12264 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12265 (ns_string_to_lispmod): Change arg to const char.
12266 (ns_term_init): Use NSMenuItem class.
12267 (EmacsApp -openFile:): Move to different section of file.
12268 (EmacsApp -application:openFiles:): Don't return a value, call
12269 -replyToOpenOrPrint:.
12270 (EmacsView -keyDown:): Fix up cast.
12271 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12272 (EmacsView -menuDown:): Cast tag in call to
12273 find_and_call_menu_selection().
12274 (ns_list_fonts): Remove, unused.
12275 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12276 (ns_fontname_to_xlfd): Make static.
12277 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12278 Remove prototypes (now in keyboard.h).
12279 (next_menubar_widget_id): Remove, unused.
12280 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12281 Remove prototypes (now in keyboard.h).
12282 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12283
122842008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12285
12286 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12287 (floatfns.o): Depend on syssignal.h.
12288 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12289
12290 * systty.h: Fix previous change that removed BSD_TERMIOS.
12291 Add comments to #ifdefs.
12292
122932008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12294
12295 * w32fns.c (w32-load-color-file): Remove.
12296 (x-open-connection): Use renamed Fx_load_color_file.
12297 * xfaces.c (x-load-color-file): Add.
12298 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12299 Emacs.clr.
12300 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12301
123022008-07-31 Michael Albinus <michael.albinus@gmx.de>
12303
12304 * dbusbind.c (Fdbus_call_method_asynchronously)
12305 (Fdbus_method_error_internal): New defuns.
12306 (xd_read_message): Handle also reply messages.
12307 (Vdbus_registered_functions_table): Extend docstring.
12308
123092008-07-31 Juanma Barranquero <lekktu@gmail.com>
12310
12311 * keyboard.c (gobble_input): Fix previous change.
12312
123132008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12314
12315 * bitmaps/README:
12316 * xfns.c:
12317 * termcap.c:
12318 * term.c:
12319 * syswait.h:
12320 * systty.h:
12321 * systime.h:
12322 * syssignal.h:
12323 * sysdep.c:
12324 * process.h:
12325 * process.c:
12326 * print.c:
12327 * ndir.h:
12328 * lread.c:
12329 * keyboard.c:
12330 * getpagesize.h:
12331 * floatfns.c:
12332 * fileio.c:
12333 * emacs.c:
12334 * doc.c:
12335 * dispnew.c:
12336 * dired.c:
12337 * data.c:
12338 * callproc.c:
12339 * buffer.c:
12340 * README:
12341 * Makefile.in:
12342 * s/template.h:
12343 * s/msdos.h:
12344 * m/vax.h: Remove VMS support.
12345 * s/vms.h:
12346 * vlimit.h:
12347 * uaf.h:
12348 * temacs.opt:
12349 * param.h:
12350 * ioctl.h: Remove file.
12351
123522008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12353
12354 * s/ms-w32.h (MULTI_KBOARD): Remove.
12355 * xterm.c:
12356 * xselect.c:
12357 * xfns.c:
12358 * window.c:
12359 * w32term.c:
12360 * w32fns.c:
12361 * terminal.c:
12362 * termhooks.h:
12363 * term.c:
12364 * sysdep.c:
12365 * keyboard.h:
12366 * keyboard.c:
12367 * frame.h:
12368 * frame.c:
12369 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12370 * config.in: Regenerate.
12371
123722008-07-30 Jason Rumney <jasonr@gnu.org>
12373
12374 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12375
12376 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12377 (w32font_open_internal): Get unicode version of textmetrics.
12378 Don't enable or disable glyph indices here.
12379 (w32font_open): Disable use of glyph indices.
12380
12381 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12382
123832008-07-30 Chong Yidong <cyd@stupidchicken.com>
12384
12385 * minibuf.c (Vread_buffer_function): Doc fix.
12386
123872008-07-30 John Paul Wallington <jpw@pobox.com>
12388
12389 * minibuf.c (read_buffer_completion_ignore_case): New var.
12390 (Fread_buffer): Use it.
12391
123922008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12393
12394 * systty.h (sensemode): Remove empty #if. Remove reference to
12395 BSD_TERMIOS, unused.
12396
12397 * sysdep.c: Remove reference to DGUX.
12398 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12399
12400 * config.in: Regenerate.
12401
124022008-07-30 Jason Rumney <jasonr@gnu.org>
12403
12404 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12405
124062008-07-29 Jason Rumney <jasonr@gnu.org>
12407
12408 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12409 is populated.
12410 (uniscribe_encode_char): Always use uniscribe.
12411 Avoid using context if cache is populated.
12412
124132008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12414
12415 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12416 open menu.
12417
12418 * gtkutil.c (menu_nav_ended): Remove.
12419 (create_menus): Remove signal connect for menu_nav_ended.
12420
124212008-07-28 Chong Yidong <cyd@stupidchicken.com>
12422
12423 * xdisp.c (redisplay_window): Check return value of
12424 compute_window_start_on_continuation_line before forcing a window
12425 start.
12426
124272008-07-28 Jason Rumney <jasonr@gnu.org>
12428
12429 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12430
12431 * w32term.c (w32_enable_unicode_output, cleartype_active):
12432 Remove obsolete display options.
12433 (x_draw_glyph_string_background): Don't use old cleartype_active
12434 workaround.
12435 (w32_initialize): Remove cleartype_active initialization.
12436 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12437
124382008-07-28 Andreas Schwab <schwab@suse.de>
12439
12440 * lisp.h (init_weak_hash_tables, syms_of_font)
12441 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12442 (remove_hash_entry): Don't declare.
12443 * eval.c (maybe_call_debugger): Make static and move before use.
12444 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12445 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12446 * xterm.h (x_set_frame_alpha): Declare.
12447
124482008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12449
12450 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12451 (create_menus): Connect selection-done to menu_nav_ended.
12452
124532008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12454
12455 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12456 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12457 parameter with read of 'alpha' one.
12458 (Qns_frame_parameter): Remove.
5582fbc7 12459 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12460 (next-selection-coding-system, Vselection_coding_system)
12461 (Vnext_selection_coding_system): Drop.
12462
124632008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12464
12465 * nsfns.m (do-applescript, do_applescript): Rename to
12466 ns-do-applescript, ns_do_applescript, and move within file.
12467
124682008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12469
12470 Remove support for Mac Carbon.
12471 * mactoolbox.c:
12472 * macterm.h:
12473 * macterm.c:
12474 * macselect.c:
12475 * macmenu.c:
12476 * macgui.h:
12477 * macfns.c:
12478 * mac.c: Remove file.
12479 * s/darwin.h:
12480 * m/intel386.h:
12481 * xfaces.c:
12482 * xdisp.c:
12483 * window.c:
12484 * tparam.c:
12485 * termhooks.h:
12486 * termcap.c:
12487 * term.c:
12488 * syssignal.h:
12489 * sysselect.h:
12490 * sysdep.c:
12491 * process.c:
12492 * lread.c:
12493 * lisp.h:
12494 * keyboard.c:
12495 * image.c:
12496 * fringe.c:
12497 * frame.h:
12498 * frame.c:
12499 * fontset.c:
12500 * font.h:
12501 * font.c:
12502 * fns.c:
12503 * fileio.c:
12504 * emacs.c:
12505 * dispnew.c:
12506 * dispextern.h:
12507 * config.in:
12508 * atimer.c:
2ae37cf0 12509 * Makefile.in: Remove code for Carbon.
aac0c6e3 12510
f0131492 125112008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12512
12513 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12514
125152008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12516
12517 * macterm.h (kCGBitmapByteOrder32Host): New define for
12518 non-universal SDKs.
12519
12520 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12521 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12522
12523 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12524 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12525
125262008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12527
12528 * w32inevt.c: Include dispextern.h.
12529
125302008-07-26 Andreas Schwab <schwab@suse.de>
12531
12532 * print.c (print_object): Fix off-by-one in last change.
12533
125342008-07-25 Juanma Barranquero <lekktu@gmail.com>
12535
12536 * term.c (syms_of_term): Don't initialize default_orig_pair,
12537 default_set_foreground and default_set_background on Windows.
12538
125392008-07-25 Jason Rumney <jasonr@gnu.org>
12540
12541 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12542 ScriptItemize. Clean up return value checking. Remove unused
12543 variables.
12544 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12545 shaping engine.
12546
12547 * w32font.c (w32font_has_char): Handle the case where we can't
12548 determine the script for a character.
12549
125502008-07-25 Chong Yidong <cyd@stupidchicken.com>
12551
12552 * term.c (syms_of_term): Initialize default_orig_pair,
12553 default_set_foreground, and default_set_background.
12554
12555 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12556 clash (bug#86).
12557 (getloadavg): Callers changed.
12558
12559 * image.c (svg_load_image): Fix last change.
12560 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12561 image size is valid. Use g_object_unref instead of deprecated
12562 rsvg_handle_free to free rsvg handle.
12563 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12564
125652008-07-25 Jason Rumney <jasonr@gnu.org>
12566
12567 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12568 surrogates before looking up glyph index.
12569 (w32font_text_extents): Encode as surrogates if falling back to
12570 functions that need UTF-16 wide chars.
12571
12572 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12573 BMP as surrogates before looking up glyph index.
12574
125752008-07-25 Chong Yidong <cyd@stupidchicken.com>
12576
12577 * image.c (svg_load_image): Check for failure in return value of
12578 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12579
125802008-07-25 Jason Rumney <jasonr@gnu.org>
12581
12582 * w32font.c (Fx_select_font): Reverse sense of second arg.
12583
125842008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12585
12586 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12587 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12588
12589 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12590 (PURESIZE): Use it.
12591
125922008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12593
12594 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12595 * m/alpha.h (TEXT_END):
12596 * m/ibmrs6000.h (TEXT_END):
12597 * m/macppc.h (TEXT_END):
12598 * s/darwin.h (TEXT_END):
12599 * s/msdos.h (TEXT_END): Remove, unused.
12600 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12601 * s/cygwin.h: Remove comment.
12602
12603 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12604 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12605 * m/intel386.h (DOT_GLOBAL_START):
12606 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12607 (USG): Remove, file not used on USG platforms.
12608
12609 * Makefile.in (HAVE_X11): Remove empty #else.
12610
126112008-07-24 Andreas Schwab <schwab@suse.de>
12612
12613 * fileio.c (Finsert_file_contents): Properly adjust undo list
12614 after format conversion.
12615
126162008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12617
12618 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12619 (menu_nav_ended): Remove.
12620 (create_menus): Remove signal connect for menu_nav_ended.
12621 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12622 create_menus.
12623 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12624
126252008-07-23 Jason Rumney <jasonr@gnu.org>
12626
12627 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12628 with opened font.
12629 (w32font_open): Set font type to gdi.
12630
12631 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12632
126332008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12634
12635 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12636 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12637 defines it.
12638 * unexec.c (ADDR_CORRECT): Define unconditionally.
12639
12640 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12641
12642 * unexec.c: Remove code depending on !COFF and USG, the file is
12643 not used for such systems.
12644
12645 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12646 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12647 (LD_SWITCH_SYSTEM_1): Remove, update users.
12648
12649 * s/darwin.h (DATA_END):
12650 * m/intel386.h (DATA_END):
12651 * m/ibmrs6000.h (DATA_END):
12652 * m/alpha.h (DATA_END): Remove, unused.
12653
12654 * config.in: Regenerate.
12655 * s/ms-w32.h (subprocesses): Define unconditionally.
12656 * s/template.h (subprocesses): Update comment.
12657 * s/vms.h (subprocesses):
12658 * s/usg5-4.h (subprocesses):
12659 * s/hpux10-20.h (subprocesses):
12660 * s/gnu-linux.h (subprocesses):
12661 * s/cygwin.h (subprocesses):
12662 * s/bsd-common.h (subprocesses):
12663 * s/aix4-2.h (subprocesses):
12664 * s/darwin.h (subprocesses): Do not define, defined by default now.
12665
12666 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12667 Remove all references.
12668 (temacs): Add GNUstep specific ld flags.
12669
12670 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12671 similarly to what X does.
12672
126732008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12674
12675 * nsfns.m (x-list-fonts): Remove.
12676 (syms_of_nsfns): Drop the x-list-fonts declaration.
12677 * nsterm.m: Get rid of remaining "//" comments.
12678
126792008-07-22 Chong Yidong <cyd@stupidchicken.com>
12680
12681 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12682
12683 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12684 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12685 (Fns_own_selection_internal, Fx_disown_selection_internal)
12686 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12687
12688 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12689 ... */' style of docstrings. Doc fixes.
12690
126912008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12692
12693 * terminfo.c (UP, BC, PC): Undo previous change.
12694
12695 * nsfns.m: Rename ns prefixed functions/variables to the
12696 corresponding x versions. Update references.
12697
126982008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12699
12700 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12701
127022008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12703
12704 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12705 Remove forwarding functions.
12706 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12707 non-static.
12708 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12709 non-static.
12710 (ns_frame_parm_handlers): Use the new names.
12711 (syms_of_nsfns): Move to the end of file.
12712
12713 * nsterm.m (syms_of_nsterm): Move to the end of file.
12714
12715 * dispnew.c (init_display): Remove code for X10.
12716
127172008-07-22 Jason Rumney <jasonr@gnu.org>
12718
12719 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12720 bare drive.
12721
127222008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12723
12724 * nsterm.m (syms_of_nsterm): Remove debugging println.
12725
127262008-07-22 David Reitter <david.reitter@gmail.com>
12727
12728 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12729 Carbon implementation of the same functionality: execute arbitrary
12730 AppleScript code.
12731
127322008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12733
12734 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12735 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12736 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12737 (Fx_display_mm_height, Fx_display_mm_width)
12738 (Fx_display_backing_store, Fx_display_visual_class)
12739 (Fx_display_save_under, Fx_open_connection)
12740 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12741 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12742 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12743 (Fx_display_pixel_width, Fx_display_pixel_height)
12744 (Fx_display_usable_bounds, Fx_display_planes)
12745 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12746 ... */' style of docstrings.
12747
127482008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12749
12750 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12751 on this platform.
12752 (mips):
12753 * m/iris4d.h (mips): Do not define.
12754 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12755
12756 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12757
12758 * image.c:
12759 * nsfns.m:
12760 * nsselect.m:
12761 * nsterm.h:
12762 * nsterm.m: Rename ns prefixed functions/variables to the
12763 corresponding x versions. Update references.
12764
12765 * m/ibms390x.h (NO_REMAP): Do not undefine.
12766
12767 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12768
127692008-07-21 Chong Yidong <cyd@stupidchicken.com>
12770
12771 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12772 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12773 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12774 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12775 (Fns_display_mm_height, Fns_display_mm_width)
12776 (Fns_display_backing_store, Fns_display_visual_class)
12777 (Fns_display_save_under, Fns_open_connection)
12778 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12779 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12780 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12781 (Fns_display_pixel_width, Fns_display_pixel_height)
12782 (Fns_display_usable_bounds, Fx_display_planes)
12783 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12784
127852008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12786
12787 * print.c (print_object): Check print_depth before searching for
12788 circularities.
12789
127902008-07-21 Michael Albinus <michael.albinus@gmx.de>
12791
12792 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12793 only sprintf.
12794
127952008-07-21 Kenichi Handa <handa@m17n.org>
12796
12797 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12798
127992008-07-20 Andreas Schwab <schwab@suse.de>
12800
12801 * syntax.c (find_start_pos, find_start_value)
12802 (find_start_value_byte, find_start_begv, find_defun_start)
12803 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12804
128052008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12806
12807 * s/sol2-3.h: Insert contents of s/sol2.h.
12808 (LD_SWITCH_SYSTEM): Remove redundant definition.
12809 * s/sol2.h: Remove, unused.
12810
128112008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12812
12813 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12814
128152008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12816
12817 * Makefile.in (ns_appdir): Fix typo in find command.
12818
128192008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12820
12821 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12822
12823 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12824 added not supported anymore.
12825
12826 * s/usg5-4-2.h (LIBS_SYSTEM):
12827 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12828
12829 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12830 * s/lynxos.h (GETPGRP_NO_ARG):
12831 * s/hpux10-20.h (NO_SIOCTL_H):
12832 * s/gnu.h (GETPGRP_NO_ARG):
12833 * s/gnu-linux.h (NO_SIOCTL_H):
12834 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12835 * s/cygwin.h (GETPGRP_NO_ARG):
12836 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12837 (C_DEBUG_SWITCH): Remove duplicate definition.
12838
12839 * m/ibms390.h: Remove boilerplate comments.
12840
12841 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12842
12843 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12844 (wait_reading_process_output): Remove code for SunOS, platform not
12845 supported anymore. Use SOLARIS2 instead of sun.
12846
128472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12848
12849 * font.c (font_open_by_name): Under NS, default lface height to zero.
12850 (font_open_for_lface): Under NS, set size based on frame fontsize.
12851 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12852 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12853
128542008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12855
12856 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12857 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12858 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12859 YES/NO.
12860 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12861 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12862 * Makefile.in (clean): Clear out build destination dir.
12863
128642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12865
12866 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12867 xterm, xselect.
12868 * lisp.h: Remove declaration of hash_remove.
12869 * nsgui.h: Remove redefinitions of hash_remove.
12870 * fns.c (hash_remove): Rename to hash_remove_from_table.
12871
128722008-07-19 Seiji Zenitani <zenitani@mac.com>
12873
12874 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12875 strdup() the family UTF8String before modifying it.
12876
128772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12878
12879 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12880 NS_FACE_BACKGROUND with 0 instead of nil.
12881 * nsfont.m (nsfont_draw): Same.
12882
128832008-07-19 Chong Yidong <cyd@stupidchicken.com>
12884
12885 * nsfns.m (ns_set_background_color): Fix crash.
12886
128872008-07-18 Chong Yidong <cyd@stupidchicken.com>
12888
12889 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12890
128912008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12892
12893 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12894
128952008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12896
12897 * gtkutil.c: Include <config.h> instead of "config.h".
12898
12899 * lisp.h (Foverlay_buffer): Add EXFUN.
12900
12901 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12902 child process to complete child_setup. Undo 2005-09-21 change.
12903
12904 * s/darwin.h: Mention setsid after vfork.
12905
129062008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12907
12908 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12909 Depend on macgui.h.
12910
12911 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12912 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12913
12914 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12915 and f19.
12916 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12917
12918 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12919 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12920 Remove enumerators.
12921
12922 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12923 Check if FACE_FROM_ID returns NULL.
12924
129252008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12926
12927 * w32inevt.c (change_frame_size): Remove extern declaration.
12928 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12929 change_frame_size.
12930
129312008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12932
12933 * getloadavg.c: Revert last change (2008-07-15).
12934
129352008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12936
12937 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12938 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12939 from configure.
12940
129412008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12942
12943 * s/sol2.h:
12944 * s/sol2-4.h: Reorganize conditionals.
12945
12946 * ecrt0.c: Remove code depending on m68000, not used anymore.
12947
12948 * fns.c (hash_remove): Make static.
12949 * lisp.h (hash_remove): Don't prototype.
12950
12951 * m/ibmrs6000.h:
12952 * m/ibms390x.h:
12953 * m/macppc.h: Remove boilerplate comments.
12954
12955 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12956 Solaris, which does not need them.
12957
12958 * m/vax.h: Remove comments about unsupported systems.
12959
12960 * s/darwin.h: Reorganize ifdefs.
12961
129622008-07-17 Andreas Schwab <schwab@suse.de>
12963
12964 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12965
129662008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12967
12968 Use SDATA. Follow coding convention of placing operators at
12969 beginning of next line rather than end of previous line, and placing
12970 spaces around infix operators.
12971
12972 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12973 in case it was defined already.
12974 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12975 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12976 ns_default.
12977 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12978 Lisp_Objects.
12979 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12980 (ns_defined_color, ns_color_to_lisp): Declare.
12981 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12982 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12983 it's accepted even with USE_LISP_UNION_TYPE.
12984 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12985 (update_frame_tool_bar): Remove apparently obsolete tests for
12986 non-integerness of f->tool_bar_lines.
12987 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12988 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12989 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12990 (nsfont_open): Don't confuse NULL for Qnil.
12991 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12992 * menu.h (find_and_call_menu_selection):
12993 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12994 (find_and_return_menu_selection): Always return something.
12995 * frame.h: Include dispextern.h for Display_Info.
12996 (display_x_get_resource): Declare.
12997
129982008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12999
13000 * syntax.c: Remove stdio.h include accidentally introduced in
13001 Emacs.app commit.
13002 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13003 NS_IMPL_COCOA.
13004 * keyboard.c (handle_async_input, input_available_signal): Remove
13005 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13006
130072008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13008
13009 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13010 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13011 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13012 Use SDATA.
13013
13014 * keymap.c: Remove all NS-specific code.
13015 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13016 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13017 where_is_preferred_modifier, return a different value depending on how
13018 preferred is the binding.
13019 (where_is_internal): Adjust accordingly.
13020 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13021 Adjust to new preferred_sequence_p.
13022 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13023 * keyboard.c (parse_solitary_modifier): Not static any more.
13024 * keyboard.h (parse_solitary_modifier): Declare.
13025
130262008-07-16 Andreas Schwab <schwab@suse.de>
13027
13028 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13029 of easymenu.
13030
130312008-07-16 Chong Yidong <cyd@stupidchicken.com>
13032
13033 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13034 that we don't move off the line.
13035
130362008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13037
13038 * keyboard.c (Qsuper): Remove.
13039 (parse_menu_item): Don't call where_is_internal specially for NS.
13040
130412008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13042
13043 * s/gnu-linux.h: Remove boilerplate comments.
13044
13045 * m/alpha.h (__ELF__): Consolidate conditions.
13046
13047 * m/m68k.h (linux): Use GNU_LINUX instead.
13048 Remove boilerplate comments.
13049
13050 * m/intel386.h: Undo refactoring from previous change.
13051 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13052 too, remove dead code.
13053 (linux): Use GNU_LINUX instead.
13054
130552008-07-16 Jason Rumney <jasonr@gnu.org>
13056
13057 * w32gui.h: Repeat 26 June changes lost by last change.
13058
130592008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13060
13061 * systty.h: Remove code for Aix on 386, unsupported platform.
13062
13063 * s/ms-w32.h: Remove boilerplate comments.
13064 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13065
13066 * s/gnu-linux.h (TERM): Remove support.
13067 (HAVE_SYSVIPC): Remove, unused.
13068 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13069 for this system.
13070
13071 * process.c: Remove support for IRIS, unused.
13072 Remove support for TERM, not relevant anymore.
13073
13074 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13075 used with the definition.
13076
13077 * s/aix4-2.h (static): Do not undef.
13078
13079 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13080 only used on Aix.
13081 (HAVE_SYSVIPC): Remove, unused.
13082
13083 * m/hp800.h (CANNOT_DUMP): Do not undef.
13084
13085 * m/alpha.h: Fix comment.
13086
13087 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13088 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13089 used by this configuration.
13090 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13091 * unexec.c: Remove code depending on HPUX and
13092 USG_SHARED_LIBRARIES, not used with this file. Remove code
13093 depending on IRIS, unused. Remove if 0-ed code.
13094
13095 * s/template.h: Remove comments about static.
13096
13097 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13098 Remove if 0-ed code.
13099 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13100 were the same as the default.
13101 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13102 Remove boilerplate comments.
13103 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13104 (HAVE_SYSVIPC): Remove, unused.
13105 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13106
13107 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13108 Remove boilerplate comments.
13109 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13110 Remove boilerplate comments.
13111 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13112 Remove boilerplate comments.
13113 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13114
13115 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13116 USG systems which do not use DATA_SEG_BITS.
13117 Refactor code. Remove boilerplate comments.
13118
13119 * m/ibms390.h:
13120 * m/m68k.h:
13121 * s/bsd-common.h:
13122 * s/cygwin.h:
13123 * s/darwin.h:
13124 * s/freebsd.h:
13125 * s/gnu.h:
13126 * s/msdos.h: Remove boilerplate comments.
13127
13128 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13129 do not use this file.
aac0c6e3
MR
13130 (IRIS_4D): Remove, unused.
13131
13132 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13133 do not use this file.
aac0c6e3
MR
13134 (SIGN_EXTEND_CHAR):
13135 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13136 * unexmips.c: Remove file, unused.
13137
13138 * editfns.c (Fuser_full_name): Replace the only use of
13139 USER_FULL_NAME with its value.
13140 * config.in: Regenerate.
13141
131422008-07-16 David Reitter <david.reitter@gmail.com>
13143
13144 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13145 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13146
131472008-07-16 Glenn Morris <rgm@gnu.org>
13148
13149 * emacs.c (system-type): Doc fix.
13150
131512008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13152
13153 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13154 If the cache doesn't work, let's fix it, rather than work around it.
13155
131562008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13157
13158 * Makefile.in: Correct additions for nsfont.o in last commit.
13159 * nsfont.m: New file (forgot last commit).
13160
131612008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13162
13163 * callproc.c (set_initial_environment): Initialize
13164 Vprocess_environment under CANNOT_DUMP (fixes crash when
13165 batch-compiling for bootstrap).
13166
131672008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13168 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13169
c4cc8b9a
JB
13170 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13171 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13172
131732008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13174
13175 Changes and additions for NeXTstep windowing system (Cocoa and
13176 GNUstep) support.
13177
13178 * Makefile.in:
13179 * config.in: Support defines and build commands for NS port.
13180 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13181 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13182 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13183 windowing.
13184 (struct face): Add synth_ital field.
13185 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13186 (init_display): Initialize Vinitial_window_system to "ns" when so
13187 compiled.
13188 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13189 (display_arg): Use under NS.
13190 (main): Under NS, allocate autorelease pool and handle command line
13191 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13192 (standard_args): Add NS-specific args.
13193 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13194 * font.c (DEFAULT_ENCODING): New variable.
13195 (font_find_for_lface): Use it.
13196 (syms_of_font): Load syms_of_nsfont under NS.
13197 * font.h: Declare nsfont_driver when compiled under NS.
13198 * fontset.c: When compiling under NS, include nsterm.h.
13199 (fontset_from_font): Autoconstruct fontset under NS.
13200 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13201 symbol, document and use it.
13202 (do_switch_frame): When for_deletion under Cocoa, add
13203 Fraise_frame(Qnil).
13204 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13205 (x_get_arg): Allow "yes" and "no" as boolean values.
13206 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13207 Qright under Cocoa.
13208 (focus-follows-mouse): Default to 0 under NS.
13209 * frame.h (enum output_method): Add output_ns.
13210 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13211 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13212 (FRAME_WINDOW_P): NS-specific definition.
13213 * fringe.c (max_used_fringe_bitmap): Make public.
13214 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13215 (getloadavg): Use NeXT code under descendant OS's.
13216 * image.c (includes and header section, x_create_bitmap_from_data)
13217 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13218 (image_background_transparent, x_clear_image_1)
13219 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13220 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13221 (x_to_xcolors, x_from_xcolors, x_disable_image)
13222 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13223 other GUIs, including XPM support using code originally written for
13224 Carbon GUI.
13225 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13226 using NS API.
13227 (image_ascent): Use font metrics macros instead of direct struct field
13228 access.
13229 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13230 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13231 Also, handle NS as GTK for menu bar purposes.
13232 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13233 toolkit where they differ.
13234 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13235 use cachelist, still needed under NS.
13236 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13237 (struct widget_value): Define it here for menu.c.
13238 * keymap.c (includes): Include modifier internals.
13239 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13240 NS.
13241 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13242 support for preferring sequences using certain modifiers, specified by
13243 the FIRSTONLY argument.
13244 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13245 under NS GNUstep implementation.
13246 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13247 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13248 * menu.c: Include nsterm.h under NS.
13249 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13250 (free_menubar_widget_tree_value, update_submenu_strings)
13251 (find_and_call_menu_selection): Treat NS as X and NT.
13252 (find_and_return_menu_selection): New function, used for popup menus.
13253 * nsgui.h:
13254 * nsterm.h:
13255 * nsfns.m:
13256 * nsimage.m:
13257 * nsmenu.m:
13258 * nsselect.m:
13259 * nsterm.m: New files.
13260 * process.c (wait_reading_process_output): Under NS, call ns_select()
13261 instead of plain select().
13262 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13263 beginning of buffer.
13264 * sysselect.h (init_process): Rename when compiling under Cocoa to
13265 avoid name conflict.
13266 * termhooks.h (display_info): Add ns_display_info to union.
13267 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13268 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13269 COCOA environment.
13270 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13271 unexec() signature. (Note, this will dump, but the resulting file
13272 crashes; unexosx is used instead; keeping around for reference and
13273 possible aid in getting dump working under GNUstep.)
13274 * w32gui.h (button_type, widget_value): Remove definitions (now in
13275 keyboard.h).
13276 * window.c: Include nsterm.h when compiling under NS.
13277 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13278 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13279 other GUI windowing systems.
13280 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13281 GTK.
13282 (x_consider_frame_title): Under NS, set icon type and frame
13283 modified-state indicator; use ns_set_name_as_filename() when using
13284 formatted title.
13285 (update_window_cursor): Make public when compiling under NS.
13286 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13287 (hourglass_atimer, Vhourglass_delay
13288 * xfaces.c (header section, init_frame_faces, clear_font_table)
13289 (defined_color, unload_color, x_face_list_fonts)
13290 (prepare_face_for_display): Add NS support parallel to other GUIs.
13291 Emulate GCs like other non-X GUIs.
13292 (split_font_name): Don't lowercase font name under NS.
13293 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13294 under NS.
13295 * s/darwin.h: Add support for compilation under NS.
13296
132972008-07-15 Jason Rumney <jasonr@gnu.org>
13298
13299 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13300 (w32_show_hourglass): Rename from show_hourglass.
13301 (w32_hide_hourglass): Rename from hide_hourglass.
13302 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13303 (Vhourglass_delay): Declare extern.
13304 (hourglass_started): Remove.
13305
13306 * xdisp.c (Vhourglass_delay): Remove static.
13307 (hourglass_started, start_hourglass, cancel_hourglass):
13308 Don't include these versions on WINDOWSNT.
13309
133102008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13311
13312 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13313 variables (formerly in xfns.c).
13314 (show_hourglass, hide_hourglass): New prototypes (same).
13315 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13316 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13317 in xfns.c).
13318 (syms_of_xdisp): Declare/initialize display-hourglass,
13319 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13320 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13321 formerly in xfns.c.
13322 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13323 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13324 (start_hourglass, cancel_hourglass): Remove.
13325 (show_hourglass, hide_hourglass): Remove prototypes and static
13326 modifiers.
13327 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13328 hourglass_atimer, hourglass_shown_p declaration/initialization.
13329 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13330 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13331 (start_hourglass, cancel_hourglass): Remove.
13332 (show_hourglass, hide_hourglass): Remove prototypes and static
13333 modifiers.
13334 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13335 hourglass_atimer, hourglass_shown_p declaration/initialization.
13336 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13337 (DEFAULT_HOURGLASS_DELAY): Remove.
13338 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13339 hourglass_shown_p declaration/initialization.
13340
133412008-07-14 Jason Rumney <jasonr@gnu.org>
13342
13343 * w32fns.c (w32_get_arg): Remove wrapper function.
13344 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13345 directly.
13346 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13347
133482008-07-14 Kenichi Handa <handa@m17n.org>
13349
13350 * xfont.c (xfont_open): Add workaround for X's bug.
13351
133522008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13353
13354 * fontset.c: Include <stdio.h> unconditionally.
13355
133562008-07-13 Michael Albinus <michael.albinus@gmx.de>
13357
13358 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13359 for filtering.
13360
133612008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13362
13363 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13364
13365 * m/macppc.h:
13366 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13367
c4cc8b9a 13368 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13369 (SPECIAL_EMACS_INT):
13370 * m/ia64.h (SPECIAL_EMACS_INT):
13371 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13372 * s/gnu.h (NLIST_STRUCT):
13373 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13374 * s/gnu-linux.h (LINUX):
13375 * s/msdos.h (HAVE_FACES):
13376 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13377
13378 * systty.h:
13379 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13380 anymore.
13381
133822008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13383
13384 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13385 always defined as int.
13386
13387 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13388 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13389 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13390 * s/freebsd.h (HAVE_WAIT_HEADER):
13391 * s/bsd-common.h (HAVE_UNION_WAIT):
13392 * s/aix4-2.h (HAVE_WAIT_HEADER):
13393 * m/mips.h (HAVE_UNION_WAIT):
13394 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13395 (COFF, static): Do not define, they are undefined later in the file.
13396
13397 * process.c (update_status): Don't use a union.
13398 (status_convert):
13399 (sigchld_handler): Use int instead of WAITTYPE.
13400
134012008-07-12 Chong Yidong <cyd@stupidchicken.com>
13402
13403 * indent.c (Fvertical_motion): Restore hscroll before moving to
13404 goal column.
13405
134062008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13407
13408 * lisp.h: Remove left over code.
13409
134102008-07-11 Andreas Schwab <schwab@suse.de>
13411
13412 * lisp.h: Fix logic in last change.
13413
13414 * menu.h: New file.
13415 * menu.c: Include it.
13416 * xmenu.c: Likewise.
13417 * Makefile.in: Update dependencies.
13418
134192008-07-11 Kenichi Handa <handa@m17n.org>
13420
13421 * fontset.c (fontset_from_font): Cancel the previous change.
13422
134232008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13424
13425 * lisp.h:
13426 * w32heap.c:
13427 * emacs.c:
13428 * alloc.c: Replace all references of NO_UNION_TYPE with
13429 USE_LISP_UNION_TYPE.
13430
13431 * m/xtensa.h (NO_UNION_TYPE):
13432 * m/vax.h (NO_UNION_TYPE):
13433 * m/template.h (NO_UNION_TYPE):
13434 * m/sparc.h (NO_UNION_TYPE):
13435 * m/mips.h (NO_UNION_TYPE):
13436 * m/macppc.h (NO_UNION_TYPE):
13437 * m/m68k.h (NO_UNION_TYPE):
13438 * m/iris4d.h (NO_UNION_TYPE):
13439 * m/intel386.h (NO_UNION_TYPE):
13440 * m/ibms390x.h (NO_UNION_TYPE):
13441 * m/ibms390.h (NO_UNION_TYPE):
13442 * m/ibmrs6000.h (NO_UNION_TYPE):
13443 * m/ia64.h (NO_UNION_TYPE):
13444 * m/hp800.h (NO_UNION_TYPE):
13445 * m/arm.h (NO_UNION_TYPE):
13446 * m/amdx86-64.h (NO_UNION_TYPE):
13447 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13448 defining it the same.
13449
134502008-07-10 Chong Yidong <cyd@stupidchicken.com>
13451
13452 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13453
134542008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13455
13456 * fileio.c:
50426a04 13457 * sysdep.c:
aac0c6e3
MR
13458 * systty.h:
13459 * m/ibmrs6000.h:
13460 * m/iris4d.h:
13461 * s/aix4-2.h:
13462 * s/freebsd.h:
13463 * s/gnu-linux.h:
13464 * s/hpux10-20.h:
13465 * s/hpux11.h:
13466 * s/netbsd.h:
13467 * s/sol2-3.h:
13468 * s/sol2-4.h:
13469 * s/sol2.h:
13470 * s/usg5-4.h:
13471 * s/vms.h: Remove references to unused variables.
13472
134732008-07-10 Andreas Schwab <schwab@suse.de>
13474
13475 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13476 pattern before matching the generic family.
13477
134782008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13479
13480 * unexec.c:
13481 * s/vms.h:
13482 * s/usg5-4-2.h:
13483 * s/sol2-5.h:
13484 * s/freebsd.h:
13485 * s/darwin.h: Remove dead code.
13486
13487 * m/template.h:
13488 * m/sparc.h:
13489 * m/mips.h:
13490 * m/m68k.h:
13491 * m/iris4d.h:
13492 * m/intel386.h:
13493 * m/ibms390x.h:
13494 * m/ibms390.h:
13495 * m/ia64.h:
13496 * m/hp800.h:
13497 * m/arm.h:
13498 * m/amdx86-64.h: Remove dead code and references to unused
13499 and compiler defined symbols.
13500
13501 * unexmips.c:
13502 * unexelf.c: Remove references to desupported systems.
13503
13504 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13505
13506 * m/powermac.h: Remove boilerplate comments.
13507 (NO_REMAP): Remove unused definition.
13508
13509 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13510 define them.
13511
135122008-07-10 Kenichi Handa <handa@m17n.org>
13513
13514 * xfont.c (xfont_open): Log the reason of failure.
13515
135162008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13517
13518 * fontset.c (fontset_get_font_group):
13519 * font.c (font_check_otf): Specify argument types.
13520
135212008-07-09 Kenichi Handa <handa@m17n.org>
13522
13523 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13524 non-ASCII char is found.
13525
13526 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13527 (reorder_font_vector): Change the arg preferred_family to font.
13528 Prefer the spec matching with font.
13529 (fontset_get_font_group): New function.
13530 (fontset_find_font): Change the format of an element of a realized
13531 fontset. Use fontset_get_font_group.
13532 (fontset_font): Try the current fontset, the default fontset, the
13533 fallbacks of the current fontset, and the fallbacks of the default
13534 fontset in this order.
13535 (face_for_char): Delete the shortcut to use the current font.
13536 (fontset_from_font): Don't set fonts for Latin in the fontset.
13537
13538 * font.h (font_make_object, font_match_p): Adjust prototypes.
13539
13540 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13541
13542 * font.c (font_make_object): New arg entity and pixelsize.
13543 (font_check_otf_features, font_check_otf): New functions.
13544 (font_match_p): Check :lang, :script, and :otf properties.
13545
13546 * xfont.c (xfont_open): Adjust it for the change of
13547 font_make_object.
13548 (xfont_text_extents): Fix initial setting of metrics.
13549
13550 * ftfont.c (struct ftfont_info): New member index, delete member
13551 fc_charset_idx. Make the member order compatible with struct
13552 xftfont_info.
13553 (fc_charset_table): Change charset names to registry names.
13554 (ftfont_pattern_entity): Delete the args registry and
13555 fc_charset_idx. Change the value of :font-entity property
13556 to (FONTNAME . INDEX). Always set :registry property to
13557 `iso10646-1'.
13558 (struct ftfont_cache_data): New struct.
13559 (ftfont_lookup_cache): New arg for_face.
13560 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13561 (ftfont_driver): Set the member otf_capability.
13562 (ftfont_get_charset): Adjust it for the change of
13563 fc_charset_table.
13564 (OTF_TAG_SYM): New macro.
13565 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13566 for the change of fc_charset_table.
13567 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13568 ftfont_pattern_entity. Add FC_INDEX to objset.
13569 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13570 and ftfont_pattern_entity.
13571 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13572 font_make_object, struct ftfont_info.
13573 (ftfont_has_char): Use ftfont_get_fc_charset.
13574 (ftfont_otf_features, ftfont_otf_capability): New functions.
13575 (ftfont_shape): Use ftfont_get_otf.
13576 (ftfont_text_extents): Fix initial setting of metrics.
13577
13578 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13579 member order compatible with struct ftfont_info.
13580 (xftfont_open): Add FC_CHARSET to the pattern. Set
13581 xftfont_info->ft_size. Don't unlock the face. Check BDF
13582 properties if appropriate.
13583 (xftfont_close): Unlock the face.
13584 (xftfont_anchor_point, xftfont_shape): Deleted.
13585 (syms_of_xftfont): Don't set members anchor_point and shape of
13586 xftfont_driver.
13587
13588 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13589 font_make_object.
13590
13591 * w32font.c (w32font_open): Adjust it for the change of
13592 font_make_object.
13593 (w32font_open_internal): Don't set properties of font_object here.
13594
135952008-07-08 Chong Yidong <cyd@stupidchicken.com>
13596
13597 * macfns.c (x_create_tip_frame):
13598 * w32fns.c (x_create_tip_frame):
13599 * xfns.c (x_create_tip_frame): Pass parameter argument to
13600 face-set-after-frame-default.
13601
13602 * xfaces.c (Finternal_merge_in_global_face): Save merged
13603 attributes for the default face back into the face vector.
13604
136052008-07-08 Andreas Schwab <schwab@suse.de>
13606
13607 * fontset.h: Declare fontset_from_font. Don't declare
13608 new_fontset_from_font and fontset_from_font_name.
13609 * xterm.c: Include "fontset.h".
13610 * Makefile.in (xterm.o): Update dependencies.
13611
136122008-07-08 Glenn Morris <rgm@gnu.org>
13613
13614 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13615 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13616
136172008-07-07 Chong Yidong <cyd@stupidchicken.com>
13618
13619 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13620 (x_set_frame_parameters): Don't bind it.
13621
136222008-07-07 Juanma Barranquero <lekktu@gmail.com>
13623
13624 * w32fns.c (map_w32_filename): Declare extern.
13625
136262008-07-07 Jason Rumney <jasonr@gnu.org>
13627
13628 * w32term.c (WS_EX_LAYERED): Define if not already.
13629
136302008-07-06 Chong Yidong <cyd@stupidchicken.com>
13631
13632 * xfaces.c (set_font_frame_param): Don't try to set the font
13633 parameter if it is still unspecified in the lface.
13634
136352008-07-05 Chong Yidong <cyd@stupidchicken.com>
13636
13637 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13638 face if it didn't already exist.
13639
13640 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13641
136422008-07-05 Andreas Schwab <schwab@suse.de>
13643
13644 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13645
136462008-07-05 Chong Yidong <cyd@stupidchicken.com>
13647
13648 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13649 word-wrapping.
13650 (IT_DISPLAYING_WHITESPACE): New macro.
13651 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13652 when word-wrapping. Simplify word-wrapping logic. Use correct
13653 pixel positions when saving copies of the iterator.
13654 (display_line): Use proper wrap point if the last character on a
13655 line was preceded by whitespace.
13656
136572008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13658
13659 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13660
136612008-07-04 Kenichi Handa <handa@m17n.org>
13662
13663 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13664
13665 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13666
136672008-07-02 Jason Rumney <jasonr@gnu.org>
13668
13669 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13670 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13671
13672 * xdisp.c (next_element_from_display_vector): Move assignment out
13673 of if statement.
13674
136752008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13676
13677 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13678
13679 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13680 (syms_of_fileio): Initialize and export them.
13681 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13682
13683 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13684 (Fsystem_move_file_to_trash): New function.
13685 (syms_of_w32fns): Export it to lisp.
13686
136872008-07-01 Jason Rumney <jasonr@gnu.org>
13688
13689 * w32font.c (w32font_text_extents): Don't count overhang as part
13690 of width.
13691
136922008-06-30 Miles Bader <miles@gnu.org>
13693
13694 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13695 Add `avoid_cursor_p' field.
13696
13697 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13698 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13699 (append_glyph, append_composite_glyph, produce_image_glyph)
13700 (append_stretch_glyph): Initialize avoid_cursor_p.
13701 (get_it_property): Rename from `get_line_height_property'.
13702 (x_produce_glyphs): Use get_it_property.
13703 (handle_line_prefix, push_display_prop): New functions.
13704 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13705 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13706 New variables.
13707 (syms_of_xdisp): Initialize them.
13708
137092008-06-30 Kenichi Handa <handa@m17n.org>
13710
13711 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13712 XftDefaultSubstitute (they are called in XftFontMatch).
13713 (xftfont_open): Fix args to ftfont_font_format.
13714
13715 * ftfont.c (fc_charset_table): New member lang.
13716 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13717 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13718 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13719 (ftfont_open): Fix args to ftfont_font_format.
13720 (ftfont_font_format): New arg filename.
13721
137222008-06-30 Chong Yidong <cyd@stupidchicken.com>
13723
13724 * xfaces.c (Finternal_merge_in_global_face): If default face was
13725 modified, realize it again. Update the font face attribute.
13726
137272008-06-29 Jason Rumney <jasonr@gnu.org>
13728
13729 * w32term.c (x_set_frame_alpha): Fix logic.
13730
137312008-06-29 Kenichi Handa <handa@m17n.org>
13732
13733 * fontset.c (Finternal_char_font): Return font-object instead of
13734 font-name.
13735
13736 * composite.c (get_composition_id): Fix the width calculation for TAB.
13737
137382008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13739
13740 * indent.c (Fvertical_motion): Properly handle float column arg.
13741
137422008-06-28 Jason Rumney <jasonr@gnu.org>
13743
13744 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13745 (pfnSetLayeredWindowAttributes): New function pointer.
13746 (w32_initialize): Initialize it when supported.
13747 (x_set_frame_alpha): New function.
13748
13749 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13750 (w32_frame_parm_handlers): Set alpha handler.
13751
13752 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13753
137542008-06-27 Jason Rumney <jasonr@gnu.org>
13755
13756 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13757 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13758 (w32_to_x_charset, x_to_w32_charset)
13759 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13760 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13761 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13762 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13763 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13764 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13765 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13766 (Qw32_charset_unicode): Remove.
13767 (syms_of_w32fns): Update for above changes.
13768
13769 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13770 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13771 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13772 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13773 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13774 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13775 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13776 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13777 (syms_of_w32font): Update for above changes.
13778
137792008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13780
13781 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13782 removed #if.
13783 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13784
137852008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13786 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13787
13788 * makefile.w32-in (LOCAL_FLAGS):
13789 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13790
13791 * sysdep.c (_spawnlp, _getpid):
13792 Declare with explicit _cdecl instead of _CRTAPI1.
13793
13794 * editfns.c (Fget_internal_run_time):
13795 Check for WINDOWSNT with #ifdef, not #if.
13796
137972008-06-26 Jason Rumney <jasonr@gnu.org>
13798
13799 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13800
13801 * w32term.c (x_draw_glyph_string_foreground)
13802 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13803 Use FONT_HANDLE macro.
13804 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13805
13806 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13807 (uniscribe_encode_char): Use FONT_HANDLE macro.
13808
13809 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13810 (w32font_text_extents): Use precast w32_font.
13811 (w32font_close): Free cached metrics.
13812 (w32font_open_internal): Allocate space for name on stack.
13813
138142008-06-26 Chong Yidong <cyd@stupidchicken.com>
13815
13816 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13817
138182008-06-26 Jason Rumney <jasonr@gnu.org>
13819
13820 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13821 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13822
138232008-06-26 Juanma Barranquero <lekktu@gmail.com>
13824
13825 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13826
138272008-06-26 Jason Rumney <jasonr@gnu.org>
13828
13829 * w32bdf.c, w32bdf.h: Remove obsolete files.
13830
13831 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13832
13833 * w32gui.h: Don't include w32bdf.h.
13834 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13835 Remove obsolete font support.
13836
13837 * w32font.h (struct w32font_info): Remove compat_w32_font.
13838 Add hfont member.
13839 (FONT_COMPAT): Remove obsolete macro.
13840
13841 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13842 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13843 (w32font_open_internal): Remove compat code. Set new hfont member.
13844 (Fx_select_font): Use new hfont member.
13845
13846 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13847 (uniscribe_encode_char): Use new hfont member.
13848
13849 * w32term.c (x_draw_glyph_string_foreground)
13850 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13851 (x_draw_glyph_string): Use metrics in w32font_info.
13852
138532008-06-26 Kenichi Handa <handa@m17n.org>
13854
13855 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13856
138572008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13858
13859 * unexnext.c:
13860 * m/ews4800.h:
13861 * m/hp9000s300.h:
13862 * m/ibm370aix.h:
13863 * m/mips-siemens.h:
13864 * m/ncr386.h:
13865 * m/next.h:
13866 * m/pmax.h:
13867 * m/powerpcle.h:
13868 * m/tandem-s2.h:
13869 * s/386bsd.h:
13870 * s/bsd386.h:
13871 * s/bsd4-1.h:
13872 * s/bsd4-2.h:
13873 * s/bsdos2-1.h:
13874 * s/bsdos2.h:
13875 * s/bsdos3.h:
13876 * s/bsdos4.h:
13877 * s/nextstep.h:
13878 * s/ultrix4-3.h:
13879 * s/usg5-0.h:
13880 * s/usg5-2-2.h:
13881 * s/usg5-2.h:
13882 * s/usg5-4-3.h:
13883 * s/ux4800.h:
13884 * s/uxpds.h:
13885 * s/uxpv.h: Remove support for obsolete systems.
13886 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13887 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13888 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13889 Remove, insert contents in s/aix4-2.h.
13890 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13891 * s/bsd4-3.h: Rename to ...
13892 * s/bsd-common.h: ... this.
13893 * data.c:
13894 * doc.c:
13895 * ecrt0.c:
13896 * emacs.c:
13897 * fileio.c:
13898 * floatfns.c:
13899 * keyboard.c:
13900 * mem-limits.h:
13901 * print.c:
13902 * process.c:
13903 * sysdep.c:
13904 * syssignal.h:
13905 * systty.h:
13906 * syswait.h:
13907 * term.c:
13908 * unexec.c:
13909 * unexelf.c:
13910 * unexhp9k800.c:
13911 * m/hp800.h:
13912 * m/ibmrs6000.h:
13913 * m/mips.h:
13914 * m/vax.h:
13915 * s/darwin.h:
13916 * s/freebsd.h:
13917 * s/gnu.h:
13918 * s/ms-w32.h:
13919 * s/msdos.h:
13920 * s/netbsd.h:
13921 * s/template.h: Remove references to obsolete variables.
13922
13923 * Makefile.in: Add dependencies for all unexec files.
13924 (admindir): Remove unused variable.
13925 (UNEXEC_SRC): Remove references.
13926
139272008-06-25 Chong Yidong <cyd@stupidchicken.com>
13928
13929 * xfns.c (x_default_font_parameter): If Xft is available, first
13930 try Monospace-12 for the default font.
13931
139322008-06-25 Jason Rumney <jasonr@gnu.org>
13933
13934 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13935
139362008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13937
13938 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13939
13940 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13941
139422008-06-25 Juanma Barranquero <lekktu@gmail.com>
13943
13944 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13945 <scroll-conservatively>: Fix typo in docstring.
13946
13947 * xselect.c (Fx_send_client_event): Doc fix.
13948
139492008-06-25 Kenichi Handa <handa@m17n.org>
13950
13951 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13952
13953 * font.c (font_parse_fcname): Remove unused variables.
13954 (font_sort_entites): Delete the arg SPEC. Caller changed.
13955 Fix for the case of ! best_only.
13956 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13957
13958 * lisp.h (Fstring_to_unibyte): EXFUN it.
13959
13960 * character.h (str_to_unibyte): Extern it.
13961
13962 * character.c (str_to_unibyte): New function.
13963
13964 * fns.c (Fstring_to_unibyte): New function.
13965 (syms_of_fns): Defsubr it.
13966
139672008-06-24 Kenichi Handa <handa@m17n.org>
13968
13969 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13970 DPI too.
13971 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13972
139732008-06-24 Andreas Schwab <schwab@suse.de>
13974
13975 * Makefile.in (${lispsource}loaddefs.el): Rename from
13976 ../lisp/loaddefs.el.
13977 (bootstrap-clean): Do what distclean does but don't remove
13978 Makefile.
13979 (distclean): Depend on bootstrap-clean and remove Makefile.
13980
139812008-06-24 Chong Yidong <cyd@stupidchicken.com>
13982
13983 * buffer.h (struct buffer): New member word_wrap.
13984
13985 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13986 word-wrap.
13987 (init_buffer_once): Initialize them.
13988
13989 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13990 line_wrap enum possessing three possible values.
13991
13992 * termopts.h: Replace truncate_partial_width_windows with
13993 Vtruncate_partial_width_windows.
13994
13995 * dispnew.c (direct_output_for_insert): Avoid direct output when
13996 inserting a space with word wrap on.
13997
13998 * indent.c (compute_motion): Obey integer values of
13999 truncate-partial-width-windows.
14000
14001 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14002 replacing truncate_partial_width_windows.
14003 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14004 truncate only if the window width is below that integer.
14005 (start_display, resize_mini_window, produce_stretch_glyph)
14006 (display_string, move_it_in_display_line_to): Use line_wrap.
14007 (back_to_previous_visible_line_start, reseat_1): Reset
14008 string_from_display_prop_p.
14009 (display_line): Extend default face to end of line when wrapping.
14010
140112008-06-24 Kim F. Storm <storm@cua.dk>
14012
14013 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14014 to wrap continued lines at word boundaries.
14015
140162008-06-24 Jason Rumney <jasonr@gnu.org>
14017
14018 * font.c (Ffont_face_attributes): Multiply pixel size before point
14019 conversion to avoid multiplying rounding error.
14020
140212008-06-23 Jason Rumney <jasonr@gnu.org>
14022
14023 * w32term.c (x_draw_glyph_string_background)
14024 (x_draw_glyph_string): Remove old bdf font code.
14025
14026 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14027
140282008-06-22 Kenichi Handa <handa@m17n.org>
14029
14030 * font.c (font_find_for_lface): Try the adstyle specified in
14031 the property of LFACE_FONT of LFACE (if any).
14032
140332008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14034 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14035
14036 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14037
140382008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14039
14040 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14041 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14042 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14043 (witness-emacs): Remove.
14044 (lisp, shortlisp): Move loaddefs.el earlier.
14045 (mostlyclean): Forget about witness-emacs.
14046
140472008-06-22 Glenn Morris <rgm@gnu.org>
14048
14049 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14050 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14051
140522008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14053
14054 * Makefile.in (PRECOMP): Remove.
14055 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14056 (witness-emacs): Run `compile-first'.
14057 (.el.elc): Use the new compile-onefile target.
14058
140592008-06-21 Kenichi Handa <handa@m17n.org>
14060
14061 * xftfont.c (xftfont_open): Handle QCembolden only when
14062 FC_EMBOLDEN is defined.
14063
140642008-06-21 Andreas Schwab <schwab@suse.de>
14065
14066 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14067 (.el.elc): Likewise.
14068
140692008-06-21 Miles Bader <miles@gnu.org>
14070
14071 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14072 build dir, not the lisp source dir.
14073
140742008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14075
14076 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14077 (bootstrapclean): Remove.
14078 (.el.elc): New rule.
14079 (PRECOMP): New var.
14080 (../lisp/subdirs.el): Remove.
14081 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14082 (witness-emacs): New target.
14083 (mostlyclean): Remove witness-emacs as well.
14084 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14085 Add witness-emacs dependency.
14086
140872008-06-20 Chong Yidong <cyd@stupidchicken.com>
14088
14089 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14090 defined by the font.
14091
140922008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14093
14094 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14095 (bootstrap-clean): New target that keeps TAGS around.
14096 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14097 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14098
140992008-06-20 Jason Rumney <jasonr@gnu.org>
14100
14101 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14102 Remove obsolete font code.
14103
14104 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14105 to determine language support.
14106
141072008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14108
14109 * sysdep.c (cfsetspeed): New fun extracted from the code.
14110 (cfmakeraw): Move before first use.
14111
141122008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14113
14114 * sysdep.c (cfmakeraw): Provide fallback implementation.
14115 (serial_configure): Provide fallback implementation of cfsetspeed.
14116
141172008-06-20 Kenichi Handa <handa@m17n.org>
14118
14119 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14120 the pattern.
14121
14122 * fontset.c (fontset_from_font): Copy font_spec before changing
14123 the elements.
14124
14125 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14126
141272008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14128
14129 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14130 for explicit `font' parameters.
14131
14132 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14133
141342008-06-19 Kenichi Handa <handa@m17n.org>
14135
14136 * frame.c: Include <ctype.h>.
14137 (x_set_font_backend): Allow spacing characters in the X resource
14138 for FontBackend.
14139
141402008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14141
14142 * w32fns.c, xfns.c (Qfont_param): New var.
14143 (syms_of_w32fns): Initialize it.
14144 (x_default_font_parameter): Record explicit `font' into
14145 `font-parameter'.
14146
141472008-06-18 Kenichi Handa <handa@m17n.org>
14148
14149 * font.c (font_parse_xlfd): Fix previous change.
14150 (font_parse_fcname): Don't use :fc-unknown-spec.
14151 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14152 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14153 (font_add_log): Prepend the driver name to the resulting fonts.
14154
14155 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14156 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14157 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14158
14159 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14160 (QCembolden): New variables.
14161 (syms_of_xftfont): DEFSYM them.
14162 (xftfont_open): Call XftFontMatch. Don't trust the result of
14163 XftTextExtents8 if the pixel_size is less than 5.
14164
141652008-06-18 Andreas Schwab <schwab@suse.de>
14166
14167 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14168 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14169
141702008-06-18 Jason Rumney <jasonr@gnu.org>
14171
14172 * w32font.c (w32font_list, w32font_match): Add logging.
14173
14174 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14175
141762008-06-17 Chong Yidong <cyd@stupidchicken.com>
14177
14178 * font.c (font_parse_fcname): Store divider characters for
14179 unknown-spec list. For known key symbols, intern using correct
14180 symbol name.
14181
141822008-06-17 Kenichi Handa <handa@m17n.org>
14183
14184 * xfaces.c (realize_default_face): If the frame is not on window
14185 system, set the fontset of face to nil.
14186
141872008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14188
14189 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14190
141912008-06-16 Juanma Barranquero <lekktu@gmail.com>
14192
14193 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14194 (build_font_name_from_vector): Delete externs.
14195
14196 * xfaces.c (struct font_name): Don't declare.
14197
141982008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14199
14200 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14201
142022008-06-16 Chong Yidong <cyd@stupidchicken.com>
14203
14204 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14205
142062008-06-16 Juanma Barranquero <lekktu@gmail.com>
14207
14208 * font.c (Ffont_spec): Fix usage in docstring.
14209 (Ffont_face_attributes): Doc fix.
14210
142112008-06-16 Andreas Schwab <schwab@suse.de>
14212
14213 * font.c (Ffont_face_attributes): Fix definition.
14214
142152008-06-16 Jason Rumney <jasonr@gnu.org>
14216
14217 * font.h (font_style_symbolic_from_value): Remove.
14218
14219 * font.c (font_style_symbolic_from_value): Remove.
14220 (font_style_symbolic): Revert to pre 2008-06-13 version.
14221
14222 * w32font.c (w32_to_fc_weight): New function.
14223 (w32font_full_name, logfont_to_fcname): Use it.
14224
142252008-06-16 Kenichi Handa <handa@m17n.org>
14226
14227 * font.c (font_check_object): Delete it.
14228 (font_clear_cache): Check if a font-object is alive.
14229 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14230 font-object to nil.
14231 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14232 (font_at): Don't call font_check_object.
14233 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14234
142352008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14236
14237 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14238
142392008-06-16 Chong Yidong <cyd@stupidchicken.com>
14240
14241 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14242
142432008-06-15 Chong Yidong <cyd@stupidchicken.com>
14244
14245 * font.c (font_parse_fcname): Only one decimal point.
14246 (font_unparse_fcname): Handle data in family and foundry indices
14247 as symbols, not strings.
14248 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14249
14250 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14251
14252 * font.h (font_unparse_gtkname): Add prototype.
14253
142542008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14255
14256 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14257
142582008-06-15 Andreas Schwab <schwab@suse.de>
14259
14260 * font.c (font_update_drivers): Fix crash when no drivers match.
14261
142622008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14263
14264 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14265 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14266
142672008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14268
14269 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14270
142712008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14272
14273 * process.c (Fserial_process_configure, Fprocess_send_eof):
14274 Use EQ to compare Lisp_Objects.
14275
142762008-06-13 Jason Rumney <jasonr@gnu.org>
14277
14278 * w32fns.c (Fw32_select_font): Remove old font API function.
14279
14280 * w32font.c (logfont_to_fcname): New function.
14281 (Fx_select_font): New font dialog function compatible with
14282 GTK/fontconfig version.
14283
14284 * font.c (font_style_symbolic_from_value): New function.
14285 (font_style_symbolic): Use it.
14286
14287 * font.h (font_style_symbolic_from_value): Declare new function.
14288
142892008-06-13 Juanma Barranquero <lekktu@gmail.com>
14290
14291 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14292 <font-width-table>: Fix typos in docstrings.
14293
142942008-06-13 Daniel Engeler <engeler@gmail.com>
14295
14296 These changes add serial port access.
14297 * process.c: Add HAVE_SERIAL.
14298 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14299 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14300 (list_processes_1, select_wrapper, Fstop_process)
14301 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14302 (status_notify): Modify to handle serial processes.
14303 [HAVE_SERIAL] (Fserial_process_configure)
14304 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14305 New functions.
14306 * process.h (struct Lisp_Process): Add `type'.
14307 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14308 New functions.
14309 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14310 serial ports.
b71ac3dd 14311 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14312 * w32.h: Add FILE_SERIAL.
14313 (struct _child_process): Add ovl_read, ovl_write.
14314
143152008-06-13 Kenichi Handa <handa@m17n.org>
14316
14317 * dispextern.h (enum lface_attribute_index): New member
14318 LFACE_FOUNDRY_INDEX.
14319
14320 * font.c (font_score): Delete arg alternate_families. Check only
14321 weight, slant, width, and size. Ignore the difference of alias
14322 style symbols.
14323 (font_sort_entites): Adjust for the above change. Reflect the
14324 order of font-driver to scores.
14325 (font_list_entities): Don't check alternate_familes here.
14326 (font_clear_prop): Handle foundry.
14327 (font_update_lface): Don't parse "foundry-family" form here.
14328 Handle FONT_FOUNDRY_INDEX.
14329 (font_find_for_lface): Likewise. Handle alternate families here.
14330 If registry is nil, try iso8859-1 and ascii-0.
14331 (font_open_for_lface): Pay attention to size in ENTITY.
14332 (font_open_by_name): Simplify by calling font_load_for_lface.
14333 (free_font_driver_list): Delete it.
14334 (font_update_drivers): Preserve the order of backends.
14335 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14336 of font_score and font_sort_entites.
14337 (font_update_sort_order): Likewise.
14338
14339 * xfaces.c (LFACE_FOUNDRY): New macro.
14340 (check_lface_attrs): Check foundry.
14341 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14342 (merge_face_vectors): Check foundry.
14343 (merge_face_ref): Likewise.
14344 (Finternal_set_lisp_face_attribute): Likewise.
14345 (x_update_menu_appearance): Likewise.
14346 (Finternal_get_lisp_face_attribute): Likewise.
14347 (lface_hash): Likewise.
14348 (lface_same_font_attributes_p): Likewise.
14349 (x_supports_face_attributes_p): Likewise.
14350 (tty_supports_face_attributes_p): Likewise.
14351 (Finternal_set_alternative_font_family_alist): Intern strings.
14352 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14353 (realize_default_face): Set LFACE_FOUNDRY (lface).
14354
14355 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14356 font-driver at first.
14357
14358 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14359
143602008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14361
14362 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14363
143642008-06-12 Jim Meyering <meyering@redhat.com>
14365
14366 Make unexec_free handle NULL the same way free does.
14367 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14368
143692008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14370
14371 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14372 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14373 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14374 (WEAK_ALIAS): Simplify.
14375 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14376 when searching a unibyte buffer.
14377
143782008-06-12 Chong Yidong <cyd@stupidchicken.com>
14379
14380 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14381
143822008-06-12 Juanma Barranquero <lekktu@gmail.com>
14383
14384 * w32font.c: Include ctype.h.
14385
143862008-06-11 Jason Rumney <jasonr@gnu.org>
14387
14388 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14389 misreported as space.
14390 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14391 as aliases for registry iso10646-1.
14392
143932008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14394
14395 * buffer.c (clone_per_buffer_values): Skip `name'.
14396
143972008-06-11 Chong Yidong <cyd@stupidchicken.com>
14398
14399 * font.c (font_parse_fcname): Fix last change; accept decimal
14400 points in font size.
14401
144022008-06-10 Jason Rumney <jasonr@gnu.org>
14403
14404 * w32uniscribe.c (add_opentype_font_name_to_list):
14405 Skip non unicode fonts.
14406
144072008-06-10 Chong Yidong <cyd@stupidchicken.com>
14408
14409 * xfns.c (Fx_font_dialog): New function.
14410
14411 * gtkutil.c (xg_dialog_response_cb): Rename from
14412 xg_file_response_callback.
14413 (pop_down_dialog): Rename from pop_down_file_dialog.
14414 (xg_get_file_name): Callers changed.
14415 (xg_get_font_name): New function.
14416
14417 * gtkutil.h (xg_get_font_name): Insert prototype.
14418
144192008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14420
14421 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14422 x_underline_minimum_display_offset.
14423 (syms_of_xdisp): Declare it here rather than in xterm.c.
14424 * dispextern.h (underline_minimum_offset): Declare it.
14425 * w32term.c (x_draw_glyph_string): Use it.
14426 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14427 (syms_of_xterm): Don't declare it any more.
14428 (x_draw_glyph_string): Adjust to the new name.
14429
8719abec 144302008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14431
14432 * xterm.c (x_underline_minimum_display_offset): New var.
14433 (x_draw_glyph_string): Use it.
14434 (syms_of_xterm): Declare it.
14435
144362008-06-10 Chong Yidong <cyd@stupidchicken.com>
14437
14438 * font.c (font_parse_fcname): Accept GTK-style font names too.
14439
144402008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14441
14442 * dired.c (file_name_completion): Don't return t if the match is exact
14443 but with different capitalization.
14444 * minibuf.c (Ftry_completion): Simplify.
14445
14446 * window.c (Vwindow_point_insertion_type): New var.
14447 (set_window_buffer): Use it.
14448 (syms_of_window): Init and export it to Lisp.
14449
144502008-06-10 Kenichi Handa <handa@m17n.org>
14451
14452 * font.h (font_intern_prop): Prototype adjusted.
14453
14454 * font.c (font_intern_prop): New arg force_symbol.
14455 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14456 Adjust for the change of font_intern_prop.
14457
14458 * ftfont.c (ftfont_pattern_entity):
14459 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14460 (w32_registry):
14461 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14462 the change of font_intern_prop.
14463
144642008-06-09 Juanma Barranquero <lekktu@gmail.com>
14465
14466 * w32menu.c (digest_single_submenu): Declare extern.
14467
144682008-06-09 Jason Rumney <jasonr@gnu.org>
14469
14470 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14471
14472 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14473 (parse_single_submenu): Remove.
14474 (digest_single_submenu): Remove.
14475 (syms_of_w32menu): Don't initialise variables that have moved
14476 to menu.c.
14477 (set_frame_menubar): Sync with version in xmenu.c.
14478 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14479
14480 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14481 Make static again.
14482
144832008-06-09 Jason Rumney <jasonr@gnu.org>
14484
14485 Changes to w32 files related to the move of common menu code
14486 to menu.c on 2008-06-08 by Chong Yidong.
14487
14488 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14489 defs to w32gui.h.
14490 (single_keymap_panes, push_menu_item, push_menu_pane):
14491 Make globally visible.
14492
14493 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14494 (local_free, malloc_widget_value, free_widget_value)
14495 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14496 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14497 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14498 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14499 (menu_items, menu_items_allocated, menu_items_used)
14500 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14501 (init_menu_items, finish_menu_items, discard_menu_items)
14502 (grow_menu_items, push_submenu_start, push_submenu_end)
14503 (push_left_right_boundary, push_menu_pane, push_menu_item)
14504 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14505 (free_menubar_widget_tree_value, parse_single_submenu)
14506 (update_submenu_strings): Remove functions.
14507 (xmalloc_widget_value): Remove and declare extern.
14508
14509 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14510 (OBJ1): Build it.
14511
14512 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14513 (local_heap, local_alloc, local_free, malloc_widget_value)
14514 (free_widget_value): Define here.
14515
145162008-06-09 Kenichi Handa <handa@m17n.org>
14517
14518 * font.h (Qascii_0): Extern it.
14519
14520 * font.c (Qascii_0): New variable.
14521 (syms_of_font): DEFSYM it.
14522 (font_open_by_name): If the registry "iso8859-1" fails, try also
14523 "ascii-0".
14524
14525 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14526
145272008-06-08 Kenichi Handa <handa@m17n.org>
14528
14529 * .gdbinit (xfont): New command.
14530
145312008-06-08 Andreas Schwab <schwab@suse.de>
14532
14533 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14534 * Makefile.in (menu.o): Update dependencies.
14535
14536 * Makefile.in (obj): Always add menu.o.
14537 * emacs.c (main): Always call syms_of_menu.
14538 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14539
145402008-06-08 Chong Yidong <cyd@stupidchicken.com>
14541
14542 * Makefile.in: Compile menu.c.
14543
14544 * lisp.h: Declare syms_of_menu.
14545
14546 * emacs.c (main): Call syms_of_menu.
14547
14548 * keyboard.h: Relocate platform-independent menu definitions from
14549 xmenu.c.
14550
14551 * menu.c: New file. Relocate platform-independent menu
14552 definitions from xmenu.c. Suggested by Adrian Robert.
14553
14554 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14555 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14556 (menu_items_used, menu_items_n_panes)
14557 (menu_items_submenu_depth): Move to keyboard.h.
14558 (init_menu_items, finish_menu_items, unuse_menu_items)
14559 (discard_menu_items, restore_menu_items, save_menu_items)
14560 (grow_menu_items, push_submenu_start, push_submenu_end)
14561 (push_left_right_boundary, push_menu_pane, push_menu_item)
14562 (keymap_panes, single_keymap_panes, single_menu_item)
14563 (list_of_panes, list_of_items, find_and_call_menu_selection)
14564 (xmalloc_widget_value, free_menubar_widget_value_tree)
14565 (parse_single_submenu, digest_single_submenu)
14566 (update_submenu_strings): Move to menu.c.
14567
145682008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14569
14570 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14571
145722008-06-06 Miles Bader <miles@gnu.org>
14573
14574 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14575 face, not frame default.
14576
145772008-06-05 Martin Rudalics <rudalics@gmx.at>
14578
14579 * window.c (pop_up_windows, pop_up_frames)
14580 (display_buffer_reuse_frames, Vpop_up_frame_function)
14581 (Vdisplay_buffer_function, Veven_window_heights)
14582 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14583 (Vspecial_display_function, Vsame_window_buffer_names)
14584 (Vsame_window_regexps, split_height_threshold)
14585 (Vsplit_window_preferred_function): Move those vars to window.el.
14586 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14587 (Fdisplay_buffer): Move those functions to window.el.
14588 (syms_of_window): Remove corresponding declarations.
14589 (display_buffer): New function.
14590 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14591 * dispnew.c (Flast_nonminibuf_frame): New function.
14592 * buffer.c (Fpop_to_buffer): Move to window.el.
14593
145942008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14595
14596 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14597
145982008-06-05 Kenichi Handa <handa@m17n.org>
14599
14600 * coding.c (detect_coding): Fix previous change.
14601 (detect_coding_system): Likewise.
14602
146032008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14604
14605 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14606
14607 * keymap.c (Vminibuffer_local_filename_must_match_map):
14608 Rename from Vminibuffer_local_must_match_filename_map.
14609 (syms_of_keymap):
14610 * minibuf.c (Fcompleting_read): Adjust accordingly.
14611 * commands.h: Rename declaration as well.
14612
146132008-06-05 Kenichi Handa <handa@m17n.org>
14614
14615 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14616 family name.
14617 (Ffont_put): Likewise.
14618
14619 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14620 current font-spec.
14621
14622 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14623 is unspecified.
14624
14625 * xfaces.c (realize_x_face): If the font-related face attributes
14626 are the same as those of default face, realize a new fontset from
14627 default->fontset.
14628 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14629
146302008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14631
14632 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14633 (move_it_in_display_line): New wrapper.
14634
14635 * window.c (window_scroll_pixel_based_preserve_x)
14636 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14637 (window_scroll_pixel_based, window_scroll_line_based):
14638 Use them to preserve column positions.
14639 (syms_of_window): Initialize them.
14640
14641 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14642 (HPOS . VPOS) pair.
14643
14644 * dispextern.h (move_it_in_display_line): Declare.
14645
146462008-06-05 Juanma Barranquero <lekktu@gmail.com>
14647
14648 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14649 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14650 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14651
146522008-06-04 Juanma Barranquero <lekktu@gmail.com>
14653
14654 * window.c (Fset_window_parameter): Doc fix.
14655 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14656
146572008-06-04 Joakim Verona <joakim@verona.se>
14658
14659 * window.h (struct window): Add new member window_parameters.
14660
14661 * window.c (Fwindow_parameters, Fwindow_parameter)
14662 (Fset_window_parameter): New defuns.
14663 (syms_of_window): Defsubr the new defuns.
14664 (make_window): Initialize window_parameters to nil.
14665
146662008-06-04 John Paul Wallington <jpw@pobox.com>
14667
14668 * eval.c (Fdefmacro): Doc fix.
14669
146702008-06-04 Kenichi Handa <handa@m17n.org>
14671
14672 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14673 Be sure to call setup_coding_system when we find a proper coding system.
14674 (detect_coding_system): Fix handling of coding->head_ascii.
14675
146762008-06-03 Andreas Schwab <schwab@suse.de>
14677
14678 * font.c (font_prop_validate_spacing): Fix last change.
14679
146802008-06-03 Kenichi Handa <handa@m17n.org>
14681
14682 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14683 (font_parse_fcname): Fix handling of unknown key.
14684
14685 * xfont.c (xfont_list): Try an alias.
14686
14687 * charset.c (char_charset): Return NULL if the arg charset_list is
14688 specified and C doesn't belong to any of them.
14689
146902008-06-02 Chip Coldwell <coldwell@redhat.com>
14691
14692 * font.c (font_pixel_size): Don't take cdr of an integer.
14693
146942008-06-02 Jim Meyering <meyering@redhat.com>
14695
14696 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14697 * alloc.c (xfree): Return right away for a NULL arg.
14698 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14699 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14700 * mac.c (create_apple_event_from_event_ref): Likewise.
14701 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14702 Likewise.
14703 * doprnt.c (doprnt1): Likewise.
14704 * frame.c (frame): Likewise.
14705 * keyboard.c (wipe_kboard): Likewise.
14706 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14707 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14708 * term.c (tty_default_color_capabilities, maybe_fatal)
14709 (delete_tty): Likewise.
14710 * w16select.c (string): Likewise.
14711 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14712 * w32bdf.c (w32_free_bdf_font): Likewise.
14713 * w32fns.c (w32_unload_font): Likewise.
14714 * w32font.c (w32font_close): Likewise.
14715 * window.c (size_window): Likewise.
14716 * xselect.c (receive_incremental_selection): Likewise.
14717 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14718 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14719 * w32.c (stat): Likewise.
14720
14721 Remove useless if-before-free tests.
14722 * editfns.c (Fset_time_zone_rule): Likewise.
14723 * lread.c (nosuffix): Likewise.
14724 * ralloc.c (get_bloc): Likewise.
14725 * regex.c (reg_free): Likewise.
14726 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14727 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14728 * xsmfns.c (smc_save_yourself_CB): Likewise.
14729
147302008-06-02 Kenichi Handa <handa@m17n.org>
14731
14732 * font.c (font_find_for_lface): Handle float font size.
14733 (font_open_for_lface): Likewise.
14734
14735 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14736 comparing the properties.
14737
147382008-06-01 Jason Rumney <jasonr@gnu.org>
14739
14740 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14741 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14742 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14743 Don't add empty script list.
14744 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14745
147462008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14747
14748 * Makefile.in (dot, dotdot): Remove, update users.
14749 ".." has been used elsewhere in the file for a long time.
14750 (LIBXT_STATIC): Remove conditional based on unused variable.
14751
147522008-06-01 Miles Bader <miles@gnu.org>
14753
14754 * xfaces.c (Vface_remapping_alist): New variable.
14755 (syms_of_xfaces): Initialize it.
14756 (enum named_merge_point_kind): New type.
14757 (struct named_merge_point): Add `named_merge_point_kind' field.
14758 (push_named_merge_point): Make cycle detection respect different
14759 named-merge-point kinds.
14760 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14761 Remove face-name alias resolution.
14762 (lface_from_face_name): New definition using
14763 `lface_from_face_name_no_resolve'.
14764 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14765 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14766 (get_lface_attributes): New definition that layers face-remapping on
14767 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14768 (lookup_basic_face): New function.
14769 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14770 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14771 `get_lface_attributes'.
14772 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14773 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14774 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14775
14776 * xdisp.c (init_iterator): Pass base_face_id through
14777 `lookup_basic_face' when we actually use it as a face-id.
14778 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14779 DEFAULT_FACE_ID.
14780
14781 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14782 lookup the initial face-id.
14783
14784 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14785
147862008-06-01 Juanma Barranquero <lekktu@gmail.com>
14787
14788 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14789 (Fremove_text_properties): Fix typos in docstrings.
14790
147912008-05-31 Kenichi Handa <handa@m17n.org>
14792
14793 * font.c (font_list_entities): Fix the car part of data to be
14794 stored in the cache.
14795
14796 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14797
147982008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14799
14800 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14801 Add a `test' argument so another predicate than `equal' can be used.
14802 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14803 (map_char_table): Remove unused vars `c' and `i'.
14804 * lisp.h (Foptimize_char_table): Adjust declaration.
14805 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14806
148072008-05-30 Kenichi Handa <handa@m17n.org>
14808
14809 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14810 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14811 defined.
14812
148132008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14814
14815 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14816 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14817 frame-local settings for the same variable.
14818
148192008-05-30 Kenichi Handa <handa@m17n.org>
14820
14821 * fontset.c (Ffont_info): Move to font.c.
14822 (syms_of_fontset): Delete defsubr of Sfont_info.
14823
14824 * font.c (font_style_to_value, font_score): Delete casting of the
14825 args to xstcasecmp.
14826 (register_font_driver): Increment num_font_drivers only when
14827 registering the driver globally.
14828 (Ffont_info): Move from fontset.c. Handle a font object too.
14829 (syms_of_font): Defsubr Sfont_info.
14830
148312008-05-29 Kenichi Handa <handa@m17n.org>
14832
14833 * coding.h (enum define_coding_utf8_arg_index): New enum.
14834 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14835 coding_attr_utf_bom.
14836 (enum utf_bom_type): Rename from utf_16_bom_type.
14837 (struct utf_16_spec): Adjust for the above change.
14838 (struct coding_system): Add utf_8_bom in `spec' union.
14839
14840 * coding.c (CODING_UTF_8_BOM): New macro.
14841 (enum coding_category): Delete coding_category_utf_8, add
14842 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14843 coding_category_utf_8_sig.
14844 (CATEGORY_MASK_UTF_8): Delete it.
14845 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14846 (CATEGORY_MASK_UTF_8_SIG): New macros.
14847 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14848 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14849 CATEGORY_MASK_UTF_8_SIG.
14850 (CATEGORY_MASK_UTF_8): New macro.
14851 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14852 (detect_coding_utf_8): Check BOM.
14853 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14854 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14855 (encode_coding_utf_16): Likewise.
14856 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14857 (detect_coding, detect_coding_system): Handle utf-8-auto.
14858 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14859 (syms_of_coding): Fix setting up of Vcoding_category_table.
14860
148612008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14862
14863 * process.c (Faccept_process_output): If `millisec' is non-nil,
14864 `seconds' default to 0.
14865 (wait_reading_process_output): Also return non-nil if we read output
14866 from a non-running process.
14867
148682008-05-29 Jason Rumney <jasonr@gnu.org>
14869
14870 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14871 `raster' specified.
14872 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14873 in the uniscribe backend, but disallow any font that has no
14874 unicode subrange support.
14875
148762008-05-29 Juanma Barranquero <lekktu@gmail.com>
14877
14878 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14879 Fix typos in docstrings.
14880
148812008-05-29 Kenichi Handa <handa@m17n.org>
14882
14883 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14884 (Fx_family_fonts): Set frame correctly.
14885
148862008-05-28 Jason Rumney <jasonr@gnu.org>
14887
14888 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14889
148902008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14891
14892 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14893 calling build_annotations.
14894
148952008-05-28 Juanma Barranquero <lekktu@gmail.com>
14896
14897 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14898 (Fencode_coding_string):
14899 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14900 <latin-extra-code-table>: Fix typos in docstrings.
14901 (syms_of_coding) <coding-system-alist>: Doc fix.
14902 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14903
149042008-05-28 Kenichi Handa <handa@m17n.org>
14905
14906 * fontset.c (Ffont_info): Don't call font_close_object.
14907
14908 * font.c (font_parse_family_registry): Use Ffont_put to validate
14909 foundry and family.
14910 (font_delete_unmatched): Don't check spacing.
14911 (font_list_entities): Add spacing to the spec to list fonts.
14912
14913 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14914 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14915
14916 * coding.c (encode_coding_raw_text): Fix previous change.
14917 (encode_coding_object): When the dst_object is a buffer and is
14918 different from src_object, move gap to PT.
14919
149202008-05-27 Chong Yidong <cyd@stupidchicken.com>
14921
14922 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14923
149242008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14925
14926 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14927 all branches. Compute it differently.
14928
14929 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14930
149312008-05-27 Juanma Barranquero <lekktu@gmail.com>
14932
14933 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14934 into "else if () ... else ...".
14935
149362008-05-27 Jason Rumney <jasonr@gnu.org>
14937
14938 * w32font.c (w32font_open_internal): Determine if glyph indices
14939 are likely to work here.
14940
149412008-05-27 Chong Yidong <cyd@stupidchicken.com>
14942
14943 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14944 draw overlap glyphs with appropriate highlighting.
14945
149462008-05-27 Kenichi Handa <handa@m17n.org>
14947
14948 * xfont.c (xfont_open): Fix calculation of font->average_width.
14949
149502008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14951
14952 * casefiddle.c (casify_object): Try to guess better whether the
14953 argument is a byte or a char.
14954
149552008-05-26 Andreas Schwab <schwab@suse.de>
14956
14957 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14958 Always send multiples of format size.
14959
14960 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14961
149622008-05-26 Jason Rumney <jasonr@gnu.org>
14963
14964 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14965 (compute_metrics): Don't set failure if we just cleared the cache.
14966 (w32_weight_table): Remove unused variable.
14967 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14968 backwards compatibility.
14969
149702008-05-25 Kenichi Handa <handa@m17n.org>
14971
14972 * w32term.c (x_draw_glyph_string):
14973 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14974
14975 * xfaces.c: Delete unused function prototypes.
14976 (xstrlwr, font_frame): Delete them.
14977 (clear_face_cache): Delete unused variable.
14978
14979 * xftfont.c (xftfont_open): Delete unused variable.
14980 If underline_thickness is not 1, adjust underline_position.
14981
14982 * ftxfont.c (ftxfont_open): Delete unused variable.
14983
14984 * fontset.c (face_for_char): Optimize for the case of no charset
14985 property.
14986
14987 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14988 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14989 (otf_open, font_otf_capability, generate_otf_features)
14990 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14991 Comment out by surrounding "#if 0" and "#endif" for the moment.
14992 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14993 (syms_of_font): Codes for accessing above commented out.
14994
149952008-05-24 Eli Zaretskii <eliz@gnu.org>
14996
14997 * w32proc.c: Include dispextern.h.
14998
14999 * w32.c: Include dispextern.h.
15000
150012008-05-23 Juanma Barranquero <lekktu@gmail.com>
15002
15003 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15004 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15005 Fix typos in docstrings.
15006
150072008-05-23 Jason Rumney <jasonr@gnu.org>
15008
15009 * xsmfns.c: Remove includes that are already included by config.h.
15010
150112008-05-23 Kenichi Handa <handa@m17n.org>
15012
15013 * charset.c (Qemacs, charset_emacs): New variables.
15014 (char_charset): Fix for non-Unicode characters.
15015 (syms_of_charset): Define charset_emacs.
15016
15017 * w32term.c (x_draw_glyph_string): Be sure to update
15018 s->underline_thickness and s->underline_position. Be sure to draw
15019 underline within the current line area.
15020
15021 * xterm.c (x_draw_glyph_string): Be sure to update
15022 s->underline_thickness and s->underline_position. Be sure to draw
15023 underline within the current line area.
15024
15025 * fontset.c: Delete unused variables and add casting for char *
15026 throughout the file.
15027 (fontset_font): Try the fallback fonts of the current fontset
15028 before consulting the default fontset.
15029
15030 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15031
15032 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15033
150342008-05-22 Jason Rumney <jasonr@gnu.org>
15035
15036 * font.c: Don't include strings.h.
15037
15038 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15039
15040 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15041 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15042 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15043 to call xstrcasecmp.
15044
15045 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15046
15047 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15048
15049 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15050
15051 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15052
150532008-05-22 Kenichi Handa <handa@m17n.org>
15054
15055 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15056
15057 * font.c (font_prop_validate_style): Adjust for the format
15058 change of font_style_table.
15059
15060 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15061 two args.
15062
15063 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15064 two args.
15065
150662008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15067
15068 * minibuf.c (keys_of_minibuf): Delete.
15069 * lisp.h (keys_of_minibuf): Delete.
15070 * emacs.c (main): Don't call keys_of_minibuf.
15071
150722008-05-22 Kenichi Handa <handa@m17n.org>
15073
15074 * ftfont.c (ftfont_resolve_generic_family): Rename from
15075 ftfont_list_generic_family. Return a single family for each
15076 generic family.
15077 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15078 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15079 Call font_add_log.
15080 (ftfont_match): Call font_add_log.
15081
15082 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15083 (FONT_DEBUG): Define it.
15084 (font_add_log): Extern it.
15085 (font_assert): Rename from xassert.
15086
15087 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15088 (xfont_list_family): Call font_add_log.
15089 (xfont_match): Likewise.
15090 (memq_no_quit): Delete.
15091
15092 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15093 call of Ffont_xlfd_name.
15094
15095 * xfaces.c (struct table_entry, slant_table, weight_table)
15096 (swidth_table): Move to font.c.
15097
15098 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15099 xassert are changed to font_assert. Delete many unused variables.
15100 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15101 New variables.
15102 (struct table_entry): Move from xfaces.c and modified.
15103 (weight_table, slant_table, width_table): Move from xfaces.c and
15104 contents adjusted for the change of struct table_entry.
15105 (font_style_to_value, font_style_symbolic): Adjust for the
15106 format change of font_style_table.
15107 (font_parse_family_registry): Don't overwrite existing foundry and
15108 family of font_spec.
15109 (font_score): Fix calculation of diff for sizes.
15110 (font_sort_entites): Call font_add_log.
15111 (font_delete_unmatched): Return a newly created list.
15112 (font_list_entities): Fix previous change. Call font_add_log.
15113 (font_matching_entity, font_open_entity, font_close_entity):
15114 Call font_add_log.
15115 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15116 (Finternal_set_font_style_table): Delete.
15117 (BUILD_STYLE_TABLE): New macro.
15118 (build_style_table): New function.
15119 (Vfont_log, font_log_env_checked): New variables.
15120 (font_add_log): New function.
15121 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15122 Declare Lisp variables "font-weight-table", "font-slant-table",
15123 "font-width-table", and "font-log". Initialize font_style_table.
15124
151252008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15126
15127 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15128
151292008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15130 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15131
15132 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15133 (Vframe_alpha_lower_limit): New variable.
15134 (x_set_alpha): New function.
15135
15136 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15137
15138 * xfns.c (x-create-frame, Qalpha):
15139 Initialize the frame parameter `alpha'.
15140 * xterm.c (OPAQUE, OPACITY): New.
15141 (x_set_frame_alpha): New function.
15142 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15143
15144 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15145 * w32fns.c (w32_frame_parm_handlers): Likewise.
15146
151472008-05-20 Jason Rumney <jasonr@gnu.org>
15148
15149 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15150 truetype fonts to opentype list.
15151
151522008-05-20 Juanma Barranquero <lekktu@gmail.com>
15153
15154 * fontset.c (Ffontset_info): Doc fix.
15155 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15156 <ignore-relative-composition>: Fix typos in docstrings.
15157
15158 * font.c (syms-of-font) <font-encoding-alist>:
15159 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15160 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15161 (Ffont_otf_alternates): Doc fixes.
15162
151632008-05-20 Kenichi Handa <handa@m17n.org>
15164
15165 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15166 font.h through out the file.
15167 (FONT_DRIVERS): Rename from FONTOBJ.
15168 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15169 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15170
15171 * emacs.c (main): Call syms_of_font unconditionally.
15172
15173 * font.h (find_font_encoding): Extern it.
15174
15175 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15176 fontset.c.
194d44e7 15177 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15178 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15179 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15180 only when HAVE_WINDOW_SYSTEM is defined.
15181 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15182 when HAVE_WINDOW_SYSTEM is defined.
15183
15184 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15185 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15186
15187 * xfaces.c: Include font.h unconditionally.
15188 (merge_face_ref, merge_face_vectors)
15189 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15190
151912008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15192
15193 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15194 indirect_variable.
15195 * eval.c (lisp_indirect_variable): New fun.
15196 (Fuser_variable_p): Use it.
15197
151982008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15199
15200 * lisp.h (indirect_variable):
15201 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15202 Use Lisp_Symbol pointers rather than Lisp_Object.
15203 Adjust callers.
15204 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15205 To this end, change calling-convention.
15206
15207 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15208 if some non-hidden buffers are selected by string&pred.
15209
152102008-05-19 Chong Yidong <cyd@stupidchicken.com>
15211
15212 * process.c (wait_reading_process_output): Always check status
15213 when in batch mode.
15214
152152008-05-19 Kenichi Handa <handa@m17n.org>
15216
15217 * font.c (font_list_entities): Fix handling of cache.
15218 (font_matching_entity): Likewise.
15219
15220 * ftfont.c (cs_iso8859_1): Delete.
15221 (ft_face_cache): New variable.
15222 (struct ftfont_info): New member fc_charset_idx.
15223 (ftfont_build_basic_charsets): Delete.
15224 (fc_charset_table): New variable.
15225 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15226 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15227 Callers changed.
15228 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15229 (ftfont_spec_pattern): New argument fc_charset_idx.
15230 Check registry more rigidly. Change callers.
15231 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15232 change of :font-entity property of the font.
15233
15234 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15235 property of the font.
15236
152372008-05-18 Juanma Barranquero <lekktu@gmail.com>
15238
15239 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15240 (Funencodable_char_position, Fcheck_coding_systems_region)
15241 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15242 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15243 (Ffind_operation_coding_system, Fset_coding_system_priority)
15244 (Fcoding_system_eol_type): Doc fixes.
15245
152462008-05-17 Glenn Morris <rgm@gnu.org>
15247
15248 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15249
152502008-05-16 Eli Zaretskii <eliz@gnu.org>
15251
15252 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15253 and st_gid.
15254
15255 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15256 HAVE_WINDOW_SYSTEM is not defined.
15257
15258 * xfaces.c (merge_face_ref, merge_face_vectors)
15259 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15260 HAVE_WINDOW_SYSTEM is defined.
15261 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15262
152632008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15264
15265 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15266
152672008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15268
15269 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15270
152712008-05-15 Kenichi Handa <handa@m17n.org>
15272
15273 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15274 preference.
15275
152762008-05-15 Glenn Morris <rgm@gnu.org>
15277
15278 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15279
152802008-05-15 Chong Yidong <cyd@stupidchicken.com>
15281
15282 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15283 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15284
15285 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15286
152872008-05-15 Kenichi Handa <handa@m17n.org>
15288
15289 * ftfont.c (ftfont_list): Downcase family name to check generic
15290 families.
15291
15292 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15293 font-spec for QCfont value.
15294
15295 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15296 buffer. Check the return value of it.
15297
152982008-05-14 Jason Rumney <jasonr@gnu.org>
15299
15300 * w32term.c (w32_get_glyph_overhangs): Remove.
15301 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15302
153032008-05-14 Kenichi Handa <handa@m17n.org>
15304
15305 * font.c (font_prop_validate): Make nil a valid value.
15306 (font_clear_cache): Check if the cached vector of entities is nil
15307 or not.
15308
153092008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15310
15311 * emacs.c (main_thread): Conditionalize on
15312 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15313 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15314
15315 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15316 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15317 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15318
153192008-05-14 Kenichi Handa <handa@m17n.org>
15320
15321 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15322 has no corresponding coding system.
15323
153242008-05-14 Jason Rumney <jasonr@gnu.org>
15325
15326 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15327
15328 * w32font.h (w32font_open_internal): Update declaration.
15329
15330 * w32font.c (w32font_open_internal): Change last argument from
15331 w32font_info struct to font object. Fill in font object from
15332 font_entity. Get Outline metrics if possible. Use them to
15333 calculate underline position and thickness. Use xlfd name as name
15334 property. Don't set codepage.
15335 (w32font_open): Pass font_object to w32font_open_internal. Don't
15336 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15337 (w32font_draw): Use s->font.
15338 (clear_cached_metrics): Don't clear non-existent blocks.
15339
15340 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15341 font was not found.
15342 (x_draw_glyph_string): Use underline position and thickness from font.
15343
15344 * w32uniscribe.c (uniscribe_open): Pass font_object to
15345 w32font_open_internal.
15346
153472008-05-14 Kenichi Handa <handa@m17n.org>
15348
15349 These changes are to delete all legacy font-handling codes, and
15350 make Emacs use only font-backends.
15351
15352 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15353 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15354
15355 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15356
15357 * charset.h (Vcharset_non_preferred_head)
15358 (Vcurrent_iso639_language): Extern them.
15359
15360 * charset.c (Vcharset_non_preferred_head): New variable.
15361 (Vcurrent_iso639_language): New variable.
15362 (syms_of_charset): Declare it as a Lisp variable.
15363 (char_charset): Don't check non preferred charsets. As a last
15364 resort, return charset_unicode.
15365 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15366
15367 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15368 conditionals. Don't check enable_font_backend. Delete all codes
15369 used only when USE_FONT_BACKEND is not defined.
15370
15371 * dispextern.h (struct glyph_string): Change type of `font' to
15372 `struct font *'.
15373 (struct glyph_string): New member underline_position and
15374 underline_thickness.
15375 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15376 (struct face): Change type of `font' to `struct font *'. Remove
15377 members `font_name', `font_info_id'.
15378 (per_char_metric, encode_char): Delete externs.
15379 (calc_pixel_width_or_height): Adjust the prototype.
15380
15381 * emacs.c (enable_font_backend): Delete extern.
15382 (main): Don't set enable_font_backend. Don't check the command
15383 line argument "-disable-font-backend".
15384
15385 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15386 (enum font_property_index): New members FONT_DPI_INDEX,
15387 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15388 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15389 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15390 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15391 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15392 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15393 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15394 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15395 (struct font_spec, struct font_entity): New structs.
15396 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15397 (struct font): Many members from old "struct font_info" moved to
15398 here. Members font and entity deleted.
15399 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15400 the new font-related objects.
15401 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15402 (CHECK_FONT_GET_OBJECT): Likewise.
15403 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15404 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15405 (struct font_driver): New members case_sensitive anc check. Type
15406 of the member list and open changed.
15407 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15408 (font_symbolic_width, font_find_object, font_get_spec)
15409 (font_set_lface_from_name): Delete extern.
15410 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15411
15412 * font.c: Include <strings.h>.
15413 (enable_font_backend): Delete it.
15414 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15415 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15416 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15417 (null_string): Delete it.
15418 (null_vector): Make it static.
15419 (font_family_alist): Delete it.
15420 (Qnormal): Extern it.
15421 (QCextra, QClanguage): Delete it.
15422 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15423 (font_make_spec, font_make_entity, font_make_object)
15424 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15425 the string. Callers changed.
15426 (font_pixel_size): Adjusted for the format change of font-related
15427 objects.
15428 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15429 (font_style_to_value, font_style_symbolic): New function.
15430 (build_font_family_alist): Delete it.
15431 (font_registry_charsets): Use Fassoc_string instead of
15432 assq_no_quit.
15433 (font_prop_validate_symbol): Don't return null_string.
15434 (font_prop_validate_style): Adjusted for the change of
15435 style-related values in a font vector.
15436 (font_property_table): Delete entries for QClanguage and
15437 QCantialias, add entries for QCavgwidth.
15438 (get_font_prop_index): Delete the 2nd argument FROM.
15439 (font_prop_validate): Arguments changed.
15440 (font_put_extra): Adjusted for the change of font-related objects.
15441 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15442 (font_parse_fcname, font_unparse_fcname)
15443 (font_prepare_composition): Likewise.
15444 (font_parse_family_registry): Renamed from font_merge_old_spec.
15445 (otf_open): Delete the 1st arg entity.
15446 (font_otf_capability): Adjusted for the above change.
15447 (font_score): New arg alternate_families. Adjusted for the change
15448 of font-related objects.
15449 (font_sort_entites): New arg best_only.
15450 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15451 Delete them.
15452 (font_match_p): Check alternate families.
15453 (font_find_object): Delete it.
15454 (font_check_object): New function.
15455 (font_clear_cache): Adjusted for the change of font-related objects.
15456 (font_delete_unmatched): New arg.
15457 (font_list_entities): Call font_driver->list with a spec that
15458 doesn't specify style-related properties.
15459 (font_matching_entity): Arguments changed. Caller changed.
15460 (font_open_entity): Adjusted for the change of font-related objects.
15461 (font_close_object, font_has_char, font_encode_char)
15462 (font_get_name, font_get_spec): Likewise.
15463 (font_spec_from_name, font_clear_prop, font_update_lface):
15464 New functions.
15465 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15466 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15467 (font_at): Adjusted for the change of font-related objects.
15468 (font_range): New function.
15469 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15470 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15471 (Fcopy_font_spec, Fmerge_font_spec): New function.
15472 (Ffont_family_list): Renamed from list-families.
15473 (Finternal_set_font_style_table): Arguments changed.
15474 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15475 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15476 change of font-related objects.
15477 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15478
15479 * fontset.h (struct font_info): Delete it. Most members go to
15480 struct font.
15481 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15482 (enum FONT_SPEC_INDEX): Delete it.
15483 (font_info, list_fonts_func, load_font_func, query_font_func)
15484 (set_frame_fontset_func, find_ccl_program_func)
15485 (get_font_repertory_func, new_fontset_from_font_name): Delete
15486 externs.
15487 (fontset_from_font_name): Extern it.
15488 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15489 (FONT_INFO_FROM_FACE): Deleted.
15490 (face_for_font): Adjust prototype.
15491
15492 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15493 conditionals. Don't check enable_font_backend. Delete all codes
15494 used only when USE_FONT_BACKEND is not defined.
15495 (get_font_info_func, list_font_func, load_font_func)
15496 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15497 (get_font_repertory_func): Delete them.
15498 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15499 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15500 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15501 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15502 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15503 (fontset_compare_rfontdef): New function.
15504 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15505 rfont-defs by qsort. Adjusted for the change of font-group vector.
15506 (load_font_get_repertory): Deleted.
15507 (fontset_find_font): Use new macros to ref/set elements of
15508 font-def and rfont-def.
15509 (fontset_font): Fix the timing of remembering that no font for C.
15510 (free_face_fontset): Do nothing if the face has no fontset.
15511 (face_suitable_for_char_p): Use new macros to ref/set elements of
15512 rfont-def.
15513 (face_for_char): Likewise. Call face_for_char with font_object.
15514 (fs_load_font): Delete. Delete #pragma surrounding it.
15515 (fs_query_fontset): Use strcasecmp instead of strcmp.
15516 (generate_ascii_font_name): Adjusted for the format change of
15517 font-spec.
15518 (Fset_fontset_font): Likewise. Use new macros to set elements of
15519 font-def.
15520 (Fnew_fontset): Use font_unparse_xlfd to generate
15521 FONTSET_ASCII (fontset).
15522 (new_fontset_from_font_name): Deleted.
15523 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15524 a fontset is already created for the font. FIx updating of
15525 Vfontset_alias_alist.
15526 (fontset_ascii_font): Deleted.
15527 (Ffont_info): Adjusted for the format change of font-spec.
15528 (Finternal_char_font): Likewise.
15529 (Ffontset_info): Likewise.
15530 (syms_of_fontset): Don't check load_font_func.
15531
15532 * fns.c (internal_equal): Handle PREV_FONT.
15533
15534 * frame.h: Delete USE_FONT_BACKEND conditional.
15535
15536 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15537 conditionals. Don't check enable_font_backend. Delete all codes
15538 used only when USE_FONT_BACKEND is not defined.
15539 (x_set_font): Call x_new_font, not x_new_fontset2.
15540 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15541 already set for the frame.
15542
15543 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15544 a font-entity by font_make_entity. Use font_intern_prop instead
15545 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15546 font property. If a font is scalable, set avgwidth property to 0.
15547 Set font-entity property by font_put_extra.
15548 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15549 (ffont_driver): Adjusted for the change of struct font_driver.
15550 (ftfont_spec_pattern): New function.
15551 (ftfont_list): Return a list, not vector.
15552 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15553 (ftfont_list_family): Don't downcase names.
15554 (ftfont_free_entity): Deleted.
15555 (ftfont_open): Return a font-object. Adjusted for the change of
15556 struct font. Get underline_thickness and underline_position from
15557 font property. Don't update dpyinfo->smallest_font_height and
15558 dpyinfo->smallest_char_width.
15559 (ftfont_close): Don't free `struct font'.
15560 (ftfont_has_char): Adjusted for the format change of font-entity.
15561 (ftfont_encode_char, ftfont_text_extents): Likewise.
15562
15563 * ftxfont.c (ftxfont_list): Return a list, not vector.
15564 (ftxfont_open): Return a font-object. Adjusted for the change of
15565 struct font. Get underline_thickness and underline_position from
15566 font property. Don't update dpyinfo->smallest_font_height and
15567 dpyinfo->smallest_char_width.
15568 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15569 (ftxfont_draw): Adjusted for the change of struct font.
15570
15571 * image.c (image_ascent): Don't include "charset.h". Include
15572 "character.h" and "font.h".
15573
15574 * lisp.h (enum pvec_type): New member PREV_FONT.
15575 (Fassoc_string): EXFUN it.
15576
15577 * print.c: Include font.h.
15578 (print_object): Handle font-related objects.
15579
15580 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15581 conditionals. Don't check enable_font_backend. Delete all codes
15582 used only when USE_FONT_BACKEND is not defined.
15583 (handle_auto_composed_prop): Do nothing if it->f is not on a
15584 window system. Check how many following characters can be
15585 displayed by the same font.
15586 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15587 'struct font *'.
15588 (get_char_face_and_encoding): Assign the whole encoding task to
15589 the `encode-char' method of a font driver.
15590 (fill_composite_glyph_string): Adjusted for the change of `struct
15591 face' and `struct glyph_string'.
15592 (fill_glyph_string): Likewise.
15593 (get_per_char_metric): Arguments changed.
15594 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15595 and `struct glyph_string'.
15596 (produce_stretch_glyph, calc_line_height_property)
15597 (x_produce_glyphs): Likewise.
15598
15599 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15600 conditionals. Don't check enable_font_backend. Delete all codes
15601 used only when USE_FONT_BACKEND is not defined. Use
15602 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15603 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15604 (Qp): Extern them.
15605 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15606 Deleted.
15607 (struct font_name): Deleted.
15608 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15609 (compare_fonts_by_sort_order): New function.
15610 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15611 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15612 Deleted.
15613 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15614 compare_fonts_by_sort_order.
15615 (Fx_font_family_list): Call Ffont_family_list.
15616 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15617 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15618 (face_symbolic_slant, face_symbolic_swidth)
15619 (split_font_name_into_vector, build_font_name_from_vector)
15620 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15621 (font_rescale_ratio, split_font_name, build_font_name)
15622 (free_font_names, sort_fonts, x_face_list_fonts)
15623 (face_font_available_p, sorted_font_list, cmp_font_names)
15624 (font_list_1, concat_font_list, font_list, remove_duplicates):
15625 Deleted.
15626 (Fx_list_fonts): Use Ffont_list.
15627 (LFACE_AVGWIDTH): Deleted.
15628 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15629 by FONTP.
15630 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15631 (set_lface_from_font_name): Delete it.
15632 (set_lface_from_font): Renamed from
15633 set_lface_from_font_and_fontset. Caller changed. Don't set
15634 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15635 for face.
15636 (merge_face_vectors): Copy font-spec if necessary.
15637 Clear properties of the font-spec if necessary.
15638 (merge_face_ref): Clear properties of the font-spec if necessary.
15639 (Finternal_set_lisp_face_attribute): Likewise.
15640 (set_font_frame_param): Use font_load_for_lface to load a
15641 font-object, and call Fmodify_frame_parameters with it.
15642 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15643 font name by Ffont_xlfd_name.
15644 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15645 QCslant, and QCwidth.
15646 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15647 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15648 Compare fonts by EQ.
15649 (lookup_non_ascii_face): Deleted.
15650 (face_for_font): The 2nd argument changed.
15651 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15652 Check atomic font properties by case insensitive.
15653 (realize_non_ascii_face): Set face->overstrike correctly.
15654 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15655 (dump_realized_face): Get font name from
15656 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15657
15658 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15659 conditionals. Don't check enable_font_backend. Delete all codes
15660 used only when USE_FONT_BACKEND is not defined.
15661 (xic_create_xfontset): Original code deleted and renamed from
15662 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15663 (x_make_gc): Don't set GCFont in GCs.
15664 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15665 opened by "fixed".
15666 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15667 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15668 get_font_repertory_func.
15669
15670 * xfont.c: Include <stdlib.h> and "ccl.h".
15671 (struct xfont_info): New structure.
15672 (xfont_query_font): Deleted.
15673 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15674 moved from xterm.c.
15675 (xfont_driver): Adjusted for the change of struct font_driver.
15676 (compare_font_names): New function.
15677 (xfont_list_pattern): Sort font names case insensitively. Make
15678 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15679 (xfont_list): Return a list, not vector.
15680 (xfont_match): If the font doesn't have QCname property, generate
15681 a name from the other font properties.
15682 (xfont_open): Return a font-object. Adjusted for the change of
15683 struct font. Get underline_thickness and underline_position from
15684 font property. Don't update dpyinfo->smallest_font_height and
15685 dpyinfo->smallest_char_width.
15686 (xfont_close): Don't free struct font.
15687 (xfont_prepare_face): Adjusted for the change of struct font.
15688 (xfont_done_face): Deleted.
15689 (xfont_has_char): Adjusted for the change of struct font.
15690 (xfont_encode_char, xfont_draw): Likewise.
15691 (xfont_check): New function.
15692
15693 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15694 callback function.
15695 (xftfont_match): Adjusted for the format change of font-entity.
15696 (xftfont_open): Adjusted for the format change of font-entity and
15697 font-object. Adjusted for the change of struct font. Return a
15698 font-object. Don't update dpyinfo->smallest_font_height and
15699 dpyinfo->smallest_char_width.
15700 (xftfont_close): Block input while calling XftFontClose.
15701 (xftfont_prepare_face): Don't block input while calling
15702 xftfont_get_colors. Adjusted for the change of struct font.
15703 (xftfont_shape): Return value of error case fixed.
15704
15705 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15706
15707 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15708 conditionals.
15709 (FONT_WIDTH): Return (f)->max_width.
15710 (struct x_display_info): Delete member `font'.
15711 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15712 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15713 (struct x_output): Change type of `font' to `struct font *'.
15714
15715 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15716 conditionals. Don't check enable_font_backend. Delete all codes
15717 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15718 (x_per_char_metric, x_encode_char): Deleted.
15719 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15720 (x_compute_glyph_string_overhangs): Adjusted for the change of
15721 `struct face'.
15722 (x_draw_glyph_string_foreground)
15723 (x_draw_composite_glyph_string_foreground): Likewise.
15724 (x_draw_glyph_string): Likewise. Use font->underline_position and
15725 font->underline_thickness.
15726 (x_new_font): Renamed from x_new_fontset2.
15727 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15728 (x_check_font): Call `check' method of a font driver.
15729 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15730 (x_query_font, x_get_font_repertory): Deleted.
15731 (x_find_ccl_program): Renamed and moved to xfont.c.
15732 (x_redisplay_interface): Adjusted for the change of `struct
15733 redisplay_interface'.
15734
15735 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15736 conditionals. Don't check enable_font_backend. Delete all codes
15737 used only when USE_FONT_BACKEND is not defined. Surround non-used
15738 code by "#ifdef OLD_FONT" and "endif".
15739 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15740
15741 * w32font.h (struct w32font_info): New member.
15742 (FONT_COMPAT): New macro.
15743 (w32font_open_internal): Prototype adjusted.
15744
15745 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15746 OLD_FONT" and "endif".
15747
15748 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15749 conditionals. Don't check enable_font_backend. Delete all codes
15750 used only when USE_FONT_BACKEND is not defined.
15751 (w32font_open): Return a font-object. Make a font-object by
15752 font_make_object. Adjusted for the change of struct w32font_info.
15753 (w32font_close): Don't free struct font. Adjusted for the change
15754 of struct w32font_info.
15755 (w32font_encode_char, w32font_text_extents, w32font_draw):
15756 Adjusted for the change of struct w32font_info.
15757 (w32font_draw): Likewise.
15758 (w32font_list_internal): Return a list, not vector.
15759 (w32font_open_internal): Change the 4th arg to font-object.
15760 Adjusted for the change of struct w32font_info and font-object format.
15761 (add_font_name_to_list): Don't downcase names.
15762 (w32_enumfont_pattern_entity): Make a font-entity by
15763 font_make_entity. Adjusted for the format change of font-entity.
15764 Use FONT_SET_STYLE to set a style-related font property. If a
15765 font is scalable, set avgwidth property to 0. Set font-entity
15766 property by font_put_extra.
15767 (font_matches_spec): Adjusted for the format change of font-entity.
15768 (w32_weight_table, w32_decode_weight): New variables.
15769 (w32_encode_weight): New function.
15770 (fill_in_logfont): Adjusted for the format change of font-spec.
15771 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15772 weight value.
15773 (w32font_driver): Adjusted for the change of struct font_driver.
15774
15775 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15776 conditionals. Don't check enable_font_backend. Surround non-used
15777 code by "#ifdef OLD_FONT" and "endif".
15778 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15779 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15780
15781 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15782 conditionals. Don't check enable_font_backend. Delete all codes
15783 used only when USE_FONT_BACKEND is not defined. Surround non-used
15784 code by "#ifdef OLD_FONT" and "endif".
15785
15786 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15787 (uniscribe_open): Return value changed to font-object.
15788 Adjusted for the format change of font-object.
15789 (uniscribe_otf_capability): Adjusted for the change of struct font.
15790 (add_opentype_font_name_to_list): Don't downcase names.
15791 (uniscribe_font_driver): Adjusted for the change of struct
15792 font_driver.
15793
157942008-05-13 Chong Yidong <cyd@stupidchicken.com>
15795
15796 * dispnew.c (update_frame_1): Check if tty output is still valid
15797 before flushing it.
15798
157992008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15800
15801 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15802 to Gtk+ menus.
15803
158042008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15805
15806 * dired.c (file_name_completion): Tweak the code so as to always do it
15807 in a single pass. Tighten the scope of some variables.
15808
15809 * dired.c (Qdefault_directory): New var.
15810 (file_name_completion): Use it instead of Fexpand_file_name.
15811 (syms_of_dired): Initialize it.
15812
158132008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15814
15815 * fileio.c (double_dollars): Remove dead code.
15816
158172008-05-10 Eli Zaretskii <eliz@gnu.org>
15818
15819 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15820 Mention w32-get-true-file-attributes in doc string.
15821
15822 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15823
158242008-05-09 Glenn Morris <rgm@gnu.org>
15825
15826 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15827 2008-04-23.
15828
158292008-05-09 Eli Zaretskii <eliz@gnu.org>
15830
15831 Support for reporting owner and group of each file on MS-Windows:
15832 * dired.c (stat_uname, stat_gname): New functions, with special
15833 implementation for w32.
15834 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15835
15836 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15837 (dflt_group_name): New static variable.
15838 (dflt_group): Rename from the_group.
15839 (init_user_info): Init dflt_group fields. Get user's group name
15840 from LookupAccountSid.
15841 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15842 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15843 New initialization states.
15844 (globals_of_w32): Initialize them to zero. Initialize the default
15845 group name to "None".
15846 (GetFileSecurity_Name): New global var, the name of the function
15847 to call for GetFileSecurity.
15848 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15849 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15850 (get_file_security, get_security_descriptor_owner)
15851 (get_security_descriptor_group, is_valid_sid)
15852 (get_file_security_desc, get_rid, get_name_and_id)
15853 (get_file_owner_and_group): New functions.
15854 (stat): Use get_file_security_desc and get_file_owner_and_group to
15855 report the owner and primary group of each file. Don't ignore the
15856 high 32 bits of file's size, now that st_size is 64-bit wide.
15857 Fix test when to get true file attributes.
15858 (init_user_info): Use get_rid instead of equivalent inline code.
15859 (fstat): Don't ignore the high 32 bits of file's size.
15860
158612008-05-09 Chong Yidong <cyd@stupidchicken.com>
15862
15863 * image.c (png_load): Use correct bit-depth for setting background
15864 color.
15865
158662008-05-08 Eli Zaretskii <eliz@gnu.org>
15867
15868 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15869 epa-hook.elc.
15870
158712008-05-08 Juanma Barranquero <lekktu@gmail.com>
15872
15873 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15874
158752008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15876
15877 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15878 because the original parameters are in pure storage now.
15879 (mac_window): Remove unused params. Update callers.
15880
158812008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15882
15883 * lread.c (substitute_object_recurse): Use lower-level primitives.
15884 Don't signal errors when traversing sub-char-tables.
15885 Don't loop over all the possible characters when traversing char-tables.
15886
15887 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15888 just like we do in print.c.
15889
158902008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15891
15892 * minibuf.c (Ftry_completion): Remove code left over from when we used
15893 scmp instead of Fcompare_strings.
15894
158952008-05-04 Juanma Barranquero <lekktu@gmail.com>
15896
15897 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15898
158992008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15900
15901 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15902 Create bitmap context in native byte order.
15903
15904 * macterm.c (XDrawLine)
15905 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15906 context in native byte order.
15907
159082008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15909
15910 * config.in: Regenerate.
15911
15912 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15913 New definitions for Image I/O support.
15914 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15915 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15916 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15917 (mac_data_provider_release_data, image_load_image_io)
15918 [USE_MAC_IMAGE_IO]: New functions.
15919 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15920 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15921 (init_image_func_pointer) [MAC_OSX]: Remove function.
15922 (image_load_quartz2d) [MAC_OSX]: Check availability of
15923 CGImageCreateWithPNGDataProvider at compile time.
15924 Use lowercase `false' for boolean constant.
15925 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15926 Use image_load_image_io.
15927 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15928 Don't check MyCGImageCreateWithPNGDataProvider.
15929 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15930 Don't call init_image_func_pointer.
15931
15932 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15933
15934 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15935 Make variable non-static.
15936 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15937 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15938
15939 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15940 (RED_FROM_ULONG): Mask off higher bits.
15941 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15942
15943 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15944 Include AvailabilityMacros.h.
15945 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15946 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15947
159482008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15949
15950 * chartab.c (Fset_char_table_range): If range is t, really set all
15951 chars to that value.
15952
159532008-05-03 Eli Zaretskii <eliz@gnu.org>
15954
15955 * dired.c (Ffile_attributes): Don't allow the device number become
15956 negative.
15957
159582008-05-02 Daiki Ueno <ueno@unixuser.org>
15959
15960 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15961
159622008-05-02 Juri Linkov <juri@jurta.org>
15963
15964 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15965 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15966 DEFAULT argument as a list of default values in docstrings.
15967
159682008-05-01 Chong Yidong <cyd@stupidchicken.com>
15969
15970 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15971
159722008-05-01 Martin Rudalics <rudalics@gmx.at>
15973
15974 * dispnew.c (change_frame_size_1): Preserve small windows when
15975 shrinking frames by calling set_window_height|width with third
15976 arg 2.
15977
15978 * window.h (struct window): Replace field too_small_ok by field
15979 resize_proportionally.
15980
15981 * window.c (make_window): Initialize resize_proportionally.
15982 (enlarge_window): Temporarily set resize_proportionally to make
15983 sure that shrink_windows does scale the window proportionally.
15984 (shrink_windows): When window has resize_proportionally set try
15985 to shrink it proportionally by stealing from other windows.
15986 (struct saved_window, Fset_window_configuration)
15987 (compare_window_configurations): Handle resize_proportionally.
15988 (WINDOW_TOTAL_SIZE): New macro.
15989 (window_min_size, shrink_windows, size_window): Use it.
15990 (check_min_window_sizes): Remove. Invalid values of
15991 window-min-height|width are handled by window_min_size_2 now.
15992 (size_window, Fsplit_window, enlarge_window)
15993 (adjust_window_trailing_edge, grow_mini_window): Don't call
15994 check_min_window_sizes.
15995 (window_min_size_2, window_min_size_1, window_min_size):
15996 New argument safe_p for retrieving "safe" minimum sizes.
15997 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15998 (adjust_window_trailing_edge, grow_mini_window):
15999 Adjust arguments of window_min_size... functions.
16000 (shrink_windows): Argument min_size removed. New argument
16001 safe_p allows shrinking windows to their safe minimum sizes.
16002 Calculate minimum size and decide whether a window shall be
16003 deleted for each window individually.
16004 (size_window): When nodelete_p equals 2, tell shrink_windows to
16005 delete windows only if their new minimum size is no more safe.
16006 (shrink_window_lowest_first): Call window_min_size_1 to make
16007 sure to preserve modeline of bottom-most window when resizing
16008 the minibuffer.
16009 (Fset_window_configuration, Fcurrent_window_configuration)
16010 (compare_window_configurations): Do not handle
16011 window-min-height|width any more.
16012 (syms_of_window): Clarify window-min-height|width doc-strings.
16013
160142008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16015
16016 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16017 some more. Copy some of the code from Ftry_completions.
16018 Remove special case code that dates back to initial revision when the
16019 slash was only added when necessary and that can't trigger nowadays.
16020
160212008-04-27 Kenichi Handa <handa@m17n.org>
16022
16023 * font.c (font_prop_validate): Signal `error' instead of `font'.
16024
160252008-04-29 Jason Rumney <jasonr@gnu.org>
16026
16027 * w32fns.c (Fw32_battery_status): New defun.
16028 (syms_of_w32fns): Defsubr it.
16029
160302008-04-28 Andreas Schwab <schwab@suse.de>
16031
16032 * dired.c (file_name_completion): Fix another mixing of encoded
16033 and decoded names.
16034
160352008-04-28 Juanma Barranquero <lekktu@gmail.com>
16036
16037 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16038
160392008-04-27 Juanma Barranquero <lekktu@gmail.com>
16040
16041 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16042
160432008-04-27 Andreas Schwab <schwab@suse.de>
16044
16045 * dired.c (file_name_completion): Fix inappropriate mixing of
16046 encoded and decoded names.
16047
16048 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16049
16050 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16051
160522008-04-26 Eli Zaretskii <eliz@gnu.org>
16053
16054 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16055 2008-03-31, it's not needed anymore with `struct stat' definition
16056 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16057 for the same reasons.
16058
160592008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16060
16061 * m/sparc.h: Additional redefinitions for GNU/Linux.
16062
160632008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16064
16065 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16066 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16067 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16068 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16069 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16070 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16071 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16072 Likewise.
16073
16074 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16075 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16076 (mac_ax_number_of_characters): Add externs.
16077 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16078 [USE_MAC_TSM]: Likewise.
16079 (mac_handle_text_input_event) [MAC_OSX]:
16080 Handle kEventTextInputOffsetToPos for no active input area case.
16081 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16082 (mac_handle_document_access_event)
16083 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16084 (install_application_handler) [MAC_OSX]: Register handlers for
16085 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16086 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16087 Register mac_handle_document_access_event.
16088
16089 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16090 Make functions non-static.
16091
160922008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16093
16094 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16095 (read_file_name_completion_ignore_case, insert_default_directory)
16096 (Qdefault_directory): Move to minibuffer.el.
16097 (Fread_file_name): Call the new `read-file-name' instead.
16098
160992008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16100
16101 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16102 Make function non-static.
16103 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16104 Remove function.
16105 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16106 Move to mactoolbox.c.
16107 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16108
16109 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16110 (mac_rect_make): New macro.
16111
16112 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16113 instead of float.
16114 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16115 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16116 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16117 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16118 CGRectMake.
16119 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16120 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16121 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16122 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16123 instead of WindowRef in argument type.
16124 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16125 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16126 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16127 instead of DISPLAY. All uses changed.
16128 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16129 (x_calc_absolute_position): Simplify so as not to use
16130 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16131
16132 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16133 instead of WindowRef in argument type.
16134 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16135 [TARGET_API_MAC_CARBON]: Remove externs.
16136 (create_apple_event, mac_event_parameters_to_lisp)
16137 [TARGET_API_MAC_CARBON]: Add externs.
16138
16139 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16140 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16141 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16142 is clicked.
16143 (x_activate_menubar): Remove extern for saved_menu_event_location.
16144 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16145 Move from mac.c.
16146
161472008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16148
16149 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16150 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16151
161522008-04-23 Jason Rumney <jasonr@gnu.org>
16153
16154 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16155 attributes only for local files.
16156
16157 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16158 default to Qlocal.
16159
161602008-04-22 Juri Linkov <juri@jurta.org>
16161
16162 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16163 read-buffer-to-switch instead of using the letter "B".
16164
161652008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16166
16167 * fileio.c (Qdefault_directory): New variable.
16168 (Fread_file_name): Use it to pass `dir' to the completion functions.
16169
161702008-04-20 Chong Yidong <cyd@stupidchicken.com>
16171
16172 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16173
161742008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16175
16176 * keyboard.c (Vpre_help_message): Remove.
16177 (show_help_echo): Remove default C code.
16178
16179 * dired.c (directory_files_internal, file_name_completion):
16180 Only call ENCODE_FILE if the string is indeed decoded.
16181
161822008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16183
16184 * Makefile.in (TOOLKIT_DEFINES): Remove.
16185 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16186
161872008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16188
16189 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16190 (mactoolbox.o): New target.
16191
16192 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16193 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16194
16195 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16196 Use mac_set_frame_window_background instead of XSetWindowBackground.
16197 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16198 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16199 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16200 instead of SetWindowTitleWithCFString.
16201 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16202 Move function to mactoolbox.c.
16203 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16204 Use mac_set_window_modified instead of SetWindowModified.
16205 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16206 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16207 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16208 FrontNonFloatingWindow. Use mac_activate_window instead of
16209 ActivateWindow. Use mac_active_non_floating_window instead of
16210 ActiveNonFloatingWindow.
16211 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16212 Use mac_show_hourglass and mac_hide_hourglass.
16213 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16214 instead of GetGlobalMouse.
16215 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16216 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16217 Use mac_bring_window_to_front instead of BringToFront.
16218 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16219 mactoolbox.c.
16220 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16221 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16222 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16223 mactoolbox.c.
16224
16225 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16226 (XtPointer): Move typedef from macmenu.c.
16227 (enum button_type): Move enum from macmenu.c.
16228 (widget_value): Move typedef from macmenu.c.
16229 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16230 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16231 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16232 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16233 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16234 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16235 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16236 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16237 (Selection): Move typedef from macselect.c.
16238 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16239 macterm.c.
16240 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16241 (mac_is_window_collapsed, mac_bring_window_to_front)
16242 (mac_send_window_behind, mac_hide_window, mac_show_window)
16243 (mac_collapse_window, mac_front_non_floating_window)
16244 (mac_active_non_floating_window, mac_activate_window)
16245 (mac_move_window_structure, mac_move_window, mac_size_window)
16246 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16247
16248 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16249 (enum mac_menu_kind): Move enum to mactoolbox.c.
16250 (min_menu_id): Move variable to mactoolbox.c.
16251 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16252 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16253 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16254 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16255 [TARGET_API_MAC_CARBON]: Likewise.
16256 (XtPointer): Move typedef to macgui.h.
16257 (enum button_type): Move enum to macgui.h.
16258 (widget_value): Move typedef to macgui.h.
16259 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16260 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16261 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16262 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16263 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16264 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16265 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16266 (popup_activated_flag): Make variable non-static.
16267 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16268 (add_menu_item, fill_menu, dispose_menus):
16269 Move functions to mactoolbox.c.
16270 (restore_show_help_function, menu_target_item_handler)
16271 (install_menu_target_item_handler, mac_handle_dialog_event)
16272 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16273 [TARGET_API_MAC_CARBON]: Likewise.
16274 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16275 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16276 (find_and_call_menu_selection, name_is_separator): Make function
16277 non-static.
16278 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16279 to mactoolbox.c.
16280 (set_frame_menubar): Don't call install_menu_quit_handler.
16281 (menu_item_selection): New variable.
16282 (mac_menu_show): Use create_and_show_popup_menu.
16283 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16284 selection but set variable menu_item_selection. All uses changed.
16285 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16286 Call install_menu_quit_handler. Move to mactoolbox.c.
16287
16288 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16289 (Selection): Move typedef to macgui.h.
16290 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16291 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16292 Make variables non-static.
16293 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16294 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16295 Make functions non-static.
16296 (Vmac_service_selection) [MAC_OSX]: Likewise.
16297 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16298 (mac_valid_selection_target_p, mac_clear_selection)
16299 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16300 (mac_put_selection_value, mac_selection_has_target_p)
16301 (mac_get_selection_value, mac_get_selection_target_list)
16302 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16303 Move functions to mactoolbox.c.
16304 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16305 Likewise.
16306 (copy_scrap_flavor_data, mac_handle_service_event)
16307 (install_service_handler) [MAC_OSX]: Likewise.
16308 (syms_of_macselect) <Vmac_dnd_known_types>:
16309 Use mac_dnd_default_known_types.
16310
16311 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16312 Move to mactoolbox.c.
16313 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16314 (Fx_selection_owner_p): Add EXFUN.
16315 (install_window_handler, remove_window_handler, XSetWindowBackground):
16316 Remove externs.
16317 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16318 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16319 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16320 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16321 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16322 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16323 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16324 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16325 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16326 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16327 (mac_valid_selection_target_p, mac_clear_selection)
16328 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16329 (mac_put_selection_value, mac_selection_has_target_p)
16330 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16331 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16332 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16333 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16334 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16335 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16336 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16337 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16338 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16339
16340 * mactoolbox.c: New file.
16341
163422008-04-18 Jason Rumney <jasonr@gnu.org>
16343
16344 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16345
163462008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16347
16348 * character.c (Fmultibyte_char_to_unibyte):
16349 Return latin1 chars unchanged.
16350
16351 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16352 relocated if it points to `name'.
16353
163542008-04-17 Kenichi Handa <handa@m17n.org>
16355
16356 * data.c (Faset): Allow setting a multibyte character in an
16357 ASCII-only unibyte string.
16358
16359 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16360
163612008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16362
16363 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16364 done in config.h.
16365
163662008-04-16 Juanma Barranquero <lekktu@gmail.com>
16367
16368 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16369 (Fchar_direction): Add usage in the docstring.
16370
163712008-04-15 Chong Yidong <cyd@stupidchicken.com>
16372
16373 * keyboard.c (read_key_sequence): Remove always-true checks.
16374
163752008-04-14 Jason Rumney <jasonr@gnu.org>
16376
16377 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16378 compatibility struct, for better underline positioning.
16379
163802008-04-13 David Hansen <david.hansen@gmx.net>
16381
16382 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16383 string.
16384
163852008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16386
16387 * m/hp800.h (XUINT, XSET): Remove.
16388
163892008-04-12 Juanma Barranquero <lekktu@gmail.com>
16390
16391 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16392 previous change.
16393
163942008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16395
16396 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16397 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16398
163992008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16400
16401 * keymap.h (map_keymap_canonical): Declare.
16402 * xmenu.c (single_keymap_panes): Use it.
16403
164042008-04-11 Glenn Morris <rgm@gnu.org>
16405
16406 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16407 set the target's value to that of the alias.
16408
164092008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16410
16411 * term.c (set_tty_color_mode): Left over typo.
16412
164132008-04-10 Michael Albinus <michael.albinus@gmx.de>
16414
16415 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16416 only after check for file name handler functions. Signal, when
16417 native functionality is not supported.
16418 (syms_of_fileio): Declare it unconditionally.
16419
164202008-04-10 Jason Rumney <jasonr@gnu.org>
16421
16422 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16423 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16424
16425 * w32.c (logon_network_drive): Also logon to remote drives that
16426 are mapped to drive letters.
16427
164282008-04-10 Glenn Morris <rgm@gnu.org>
16429
16430 * xdisp.c (truncate-partial-width-windows): Doc fix.
16431
164322008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16433
16434 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16435 Move functions to minibuffer.el.
16436 (syms_of_fileio): Don't declare them.
16437
164382008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16439
16440 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16441 (syms_of_minibuf): Remove its initialization.
16442
16443 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16444
164452008-04-09 Juanma Barranquero <lekktu@gmail.com>
16446
16447 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16448
164492008-04-09 Jason Rumney <jasonr@gnu.org>
16450
16451 * makefile.w32-in (distclean): Delete makefile too.
16452 (maintainer-clean): New target.
16453
16454 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16455
16456 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16457 for new font backend and composite cases.
16458
164592008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16460
16461 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16462 Most of the code moved to run_timers.
16463 (do_pending_atimers): Call run_timers.
16464 (run_timers): New function.
16465
16466 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16467 run atimers.
16468
16469 * process.c (wait_reading_process_output): The same as above.
16470
164712008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16472
16473 * minibuf.c (last_exact_completion): Remove variable.
16474 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16475 (complete_and_exit_1, complete_and_exit_2)
16476 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16477 (Fdisplay_completion_list, display_completion_list_1)
16478 (Fminibuffer_completion_help, Fself_insert_and_exit)
16479 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16480 minibuffer.el.
16481 (syms_of_minibuf): Remove corresponding initializations.
16482
16483 * keyboard.c (Qdeactivate_mark): New var.
16484 (command_loop_1): Use it to call `deactivate-mark'.
16485 (syms_of_keyboard): Initialize it.
16486
16487 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16488 to another frame.
16489 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16490 Don't call set_tty_color_mode.
16491 (store_frame_param): Reset previous_frame rather than call
16492 set_tty_color_mode.
16493 * term.c (set_tty_color_mode): Rewrite.
16494 * dispextern.h (set_tty_color_mode): New type.
16495 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16496
164972008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16498
16499 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16500 for generic chars, which do not exist any more in emacs-unicode.
16501
165022008-04-08 Michael Albinus <michael.albinus@gmx.de>
16503
16504 * coding.c (detect_coding_emacs_mule)
16505 (Ffind_operation_coding_system): Fix typo.
16506
165072008-04-08 Jason Rumney <jasonr@gnu.org>
16508
16509 * w32uniscribe.c (SNAME): Extract only symbol name.
16510
16511 * w32font.h (struct w32_metric_cache): New struct.
16512 (w32font_info): Use it.
16513 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16514 (CACHE_BLOCKSIZE): New constants.
16515
16516 * w32font.c (Qja, Qko, Qzh): New symbols.
16517 (syms_of_w32font): Initialise them.
16518 (font_matches_spec): Use them to filter by language.
16519 (recompute_cached_metrics): Remove function.
16520 (compute_metrics, clear_cached_metrics): New functions.
16521 (w32font_encode_char): Use them to manage metric cache.
16522 (w32font_text_extents): Cache metrics for all glyphs on demand.
16523 Delay converting glyph indices to WORD until needed.
16524 (w32font_open_internal): Initialize metric cache to empty.
16525 (registry_to_w32_charset): Charset should always be a symbol.
16526 (fill_in_logfont, list_all_matching_fonts): Family should
16527 always be a symbol.
16528
165292008-04-06 Jason Rumney <jasonr@gnu.org>
16530
16531 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16532 Give up if glyph indices not supported. Use uniscribe obtained
16533 ABC widths for individual metrics. Map glyph clusters back to
16534 characters using fClusterStart flag. Return number of glyphs
16535 produced, not chars processed.
16536 (uniscribe_shape): Map char at FROM to current glyph.
16537
165382008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16539
16540 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16541 Use SetMenuItemHierarchicalMenu.
16542
165432008-04-05 Jason Rumney <jasonr@gnu.org>
16544
16545 * image.c (pbm_load): Allow color values up to 65535.
16546 Throw an error if max_color_idx is outside the supported range.
16547 Report an error when image size is invalid.
16548 Read two bytes at a time when raw images have max_color_idx above 255.
16549
aac0c6e3
MR
165502008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16551
16552 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16553 append "CCL: Quitted" when the CCL program is quitted.
16554 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16555
16556 * ccl.h (struct ccl_program): New member quit_silently.
16557
165582008-04-05 Chong Yidong <cyd@stupidchicken.com>
16559
16560 * search.c (compile_pattern_1): Treat non-nil and non-string of
16561 search-spaces-regexp as nil.
16562
16563 * minibuf.c (Fassoc_string): Tweak docstring.
16564
165652008-04-05 Eli Zaretskii <eliz@gnu.org>
16566
16567 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16568 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16569 2008-03-14 to force inode be positive.
16570
16571 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16572 _S_* ones, since we now use our own sys/stat.h.
16573 (stat, fstat): Don't mangle the inode number.
16574 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16575
165762008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16577
16578 * frame.h (struct frame): Give one more bit to `visible' since we use
16579 values larger than 1 to indicate obscured frames on ttys.
16580
16581 * keymap.c (Qkeymap_canonicalize): New var.
16582 (Fmap_keymap_internal): New fun.
16583 (describe_map): Use keymap-canonicalize.
16584
16585 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16586 (Fundo_boundary): Set them.
16587 (syms_of_undo): Initialize them.
16588 (record_point): Use them instead of last_point_position*.
16589 (last_undo_buffer): Change type.
16590
165912008-04-04 Jason Rumney <jasonr@gnu.org>
16592
16593 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16594 (recompute_cached_metrics): Don't set ascent and descent per char.
16595
16596 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16597 (uniscribe_check_otf): Add GC protection before consing.
16598 Rearrange loop for counting features.
16599
166002008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16601
16602 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16603 buffer with byte-size of source buffer.
16604
166052008-04-03 Chong Yidong <cyd@stupidchicken.com>
16606
16607 * callint.c (Fcall_interactively): Handle temporary region even
16608 when shift-select-mode is off.
16609
166102008-04-03 Jason Rumney <jasonr@gnu.org>
16611
16612 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16613
166142008-04-03 Kenichi Handa <handa@m17n.org>
16615
16616 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16617 (CATEGORY_MASK_UTF_16): Likewise.
16618 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16619 binary file.
16620 (detect_coding): Add null-byte detection for a binary file.
16621 (detect_coding_system): Likewise.
16622
166232008-04-03 Jason Rumney <jasonr@gnu.org>
16624
16625 * w32uniscribe.c: New file.
16626
16627 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16628
16629 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16630
16631 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16632 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16633 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16634 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16635 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16636 (Qphonetic): New symbols.
16637 (syms_of_w32font): Initialize them.
16638 (font_supported_scripts): Use them.
16639 (w32font_list_family): List all charsets.
16640 (w32font_text_extents, recompute_cached_metrics): Fix metric
16641 calculations.
16642 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16643 Give opentype fonts their own format.
16644 (font_matches_spec): New arguments backend and logfont.
16645 Handle :otf spec for uniscribe backend.
16646 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16647 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16648
16649 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16650 font backend.
16651 (globals_of_w32fns): Initialize uniscribe font backend.
16652
16653 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16654 dependencies.
16655 (w32uniscribe.$(O)): New file to build.
16656 (FONT_OBJ): Include w32uniscribe.$(O).
16657 (LIBS): Add uniscribe libraries.
16658
16659 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16660
166612008-04-02 Chong Yidong <cyd@stupidchicken.com>
16662
16663 * callint.c (Vshift_select_mode): New var.
16664 (Finteractive): Document new ^ spec.
16665 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16666 is present.
16667
16668 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16669 (command_loop_1): Avoid running the direct display versions of
16670 forward-char and backward-char if shift-selection may occur.
16671 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16672 shift-translation takes place.
16673
16674 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16675 avoid clobbering by define-minor-mode.
16676
16677 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16678 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16679
16680 * syntax.c (Fforward_word): Add ^ interactive spec.
16681
16682 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16683 (Fscroll_right): Add ^ interactive spec.
16684
166852008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16686
16687 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16688
16689 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16690
16691 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16692
166932008-03-31 Juri Linkov <juri@jurta.org>
16694
16695 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16696
166972008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16698
16699 * gtkutil.c (xg_set_geometry): Fix indentation.
16700 (xg_resize_outer_widget): Remove.
16701 (x_wm_size_hint_off): Fix indentation.
16702 (xg_frame_set_char_size): Call flush_and_sync after
16703 gtk_window_resize.
16704 (x_wm_set_size_hint): Pass NULL as geometry window to
16705 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16706 Add menu bar and tool bar height to base height.
16707 (xg_update_frame_menubar, free_frame_menubar)
16708 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16709 (update_frame_tool_bar, free_frame_tool_bar):
16710 Change xg_resize_outer_widget to xg_frame_set_char_size.
16711
167122008-03-30 Michael Albinus <michael.albinus@gmx.de>
16713
16714 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16715 (Fdbus_call_method): New parameter TIMEOUT.
16716 (dbus-send-signal): Optimize UNGCPRO call.
16717
167182008-03-29 Juri Linkov <juri@jurta.org>
16719
16720 * window.c (Fdisplay_buffer): Move call to
16721 Vsplit_window_preferred_function out of conditions that check
16722 if window is eligible for vertical splitting.
16723 When Vsplit_window_preferred_function is non-nil, call it and use
16724 its non-nil return value as window. Otherwise, continue doing
16725 vertical splitting using Fsplit_window with arg horflag=nil.
16726 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16727 default value from `split-window' to nil.
16728
167292008-03-29 Juri Linkov <juri@jurta.org>
16730
16731 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16732 for interactive code letters 'b' and 'B'.
16733
167342008-03-29 Eli Zaretskii <eliz@gnu.org>
16735
16736 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16737 multibyte string.
16738
167392008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16740
16741 * keyboard.c (pending_funcalls): New var.
16742 (timer_check): Run it.
16743 (syms_of_keyboard): Initialize it.
16744 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16745 (Vdelete_terminal_functions): New vars.
16746 (syms_of_terminal): Initialize them.
16747 (Fdelete_terminal): Run delete-terminal-functions.
16748 * xdisp.c (safe_eval): Rewrite.
16749 (safe_call2): New fun.
16750 * frame.c (Qdelete_frame_functions): New var.
16751 (syms_of_frame): Initialize it.
16752 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16753 * lisp.h (safe_call2, pending_funcalls): Declare.
16754
167552008-03-28 Andreas Schwab <schwab@suse.de>
16756
16757 * indent.c (Fmove_to_column): Move declaration before statements.
16758
167592008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16760
16761 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16762 (struct frame): Use bit fields for boolean vars.
16763
16764 * process.c (server_accept_connection): Simplify naming.
16765 (emacs_get_tty_pgrp): Use SDATA.
16766
16767 * coding.c (decode_coding_object): Fix last change.
16768
167692008-03-27 Jason Rumney <jasonr@gnu.org>
16770
16771 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16772
167732008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16774
16775 * charset.c (Fdefine_charset_internal): Change the way of
16776 registering charsets in Vcharset_order_list.
16777 (syms_of_charset): Make the charset `eight-bit' supplementary.
16778
167792008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16780
16781 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16782 operations, to avoid having the difference between pointers
16783 overflow.
16784
167852008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16786
16787 * indent.c (check_display_width): New fun.
16788 (scan_for_column): Use it.
16789
16790 * data.c (syms_of_data): Mark most-positive-fixnum and
16791 most-negative-fixnum as constants.
16792
16793 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16794
16795 * indent.c (scan_for_column): Extract from current_column_1.
16796 Merge with the same code from Fmove_to_column.
16797 (current_column_1, Fmove_to_column): Use it.
16798
167992008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16800
16801 * keymap.c (map_keymap_internal): New fun.
16802 (map_keymap): Use it.
16803 (Fmap_keymap_internal): New fun.
16804 (Fmap_keymap): Remove left-out test from before make_save_value.
16805
16806 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16807
16808 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16809 Use XCAR/XCDR.
16810
16811 * process.h (struct Lisp_Process): Remove filter_multibyte.
16812 * process.c (QCfilter_multibyte): Remove.
16813 (setup_process_coding_systems): Don't use filter_multibyte.
16814 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16815 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16816 (Fset_process_filter_multibyte): Change the coding-system to
16817 approximate the previous behavior.
16818 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16819 coding-system.
16820
16821 * coding.c (decode_coding_object): When not decoding into a buffer,
16822 obey the coding system's preference of (uni|multi)byte.
16823
168242008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16825
16826 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16827 every char is changed and has a different byte-length.
16828 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16829 Fix int -> EMACS_INT.
16830
168312008-03-23 David Hansen <david.hansen@gmx.net>
16832
16833 * dbusbind.c (xd_read_message): Remove extra copying of message
16834 strings. Check for NULL `interface' or `member'.
16835
168362008-03-22 Eli Zaretskii <eliz@gnu.org>
16837
16838 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16839 cFileName a file name that includes `?' characters, use the 8+3
16840 alias in cAlternateFileName instead.
16841
168422008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16843
16844 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16845
168462008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16847
16848 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16849 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16850 work on current_buffer only instead (that was already the case
16851 for some of the code anyway).
16852 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16853 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16854 (SET_PT, SET_PT_BOTH): Adjust.
16855 * intervals.h (set_point, temp_set_point, set_point_both)
16856 (temp_set_point_both): Remove redundant declarations.
16857
168582008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16859
16860 * fileio.c (Finsert_file_contents):
16861 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16862 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16863 when buffer != current_buffer anyway.
16864
168652008-03-20 Andreas Schwab <schwab@suse.de>
16866
16867 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16868 as default.
16869
168702008-03-19 Jason Rumney <jasonr@gnu.org>
16871
16872 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16873 (syms_of_w32fns): Initialize them.
16874 (HOURGLASS_ID): New constant.
16875 (x_window_to_frame): Don't check hourglass_window.
16876 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16877 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16878 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16879 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16880 Only change the cursor if hourglass is not active.
16881 (Fx_create_frame): Initialize frame's current_cursor.
16882 (hourglass_atimer): Remove.
16883 (hourglass_started): New function.
16884 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16885 (show_hourglass): Adapt to w32, changing argument to frame.
16886
16887 * w32term.h (struct w32_output): Remove hourglass_window.
16888 Add current_cursor.
16889
16890 * eval.c (call_debugger, Fsignal):
16891 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16892 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16893 (Fexecute_extended_command, cancel_hourglass_unwind):
16894 * minibuf.c (read_minibuf):
16895 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16896
168972008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16898
16899 * window.c (run_funs): New fun.
16900 (run_window_configuration_change_hook): Use it to run the buffer-local
16901 and the global part of the hook.
16902
16903 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16904 (unwind_format_mode_line): Restore selected window.
16905 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16906
169072008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16908
16909 * editfns.c (Fchar_equal): Check they are valid characters.
16910
16911 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16912
169132008-03-17 Andreas Schwab <schwab@suse.de>
16914
16915 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16916 against a charset.
16917
16918 * lisp.h (Fbuffer_list): Declare.
16919
169202008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16921
aac0c6e3
MR
16922 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16923 handlebox_widget is != 0.
16924
169252008-03-16 Juri Linkov <juri@jurta.org>
16926
16927 * callint.c (Fcall_interactively): For interactive code letters
16928 'b' and 'B' put the buffer list into the list of default "future"
16929 values of the minibuffer.
16930
169312008-03-16 Andreas Schwab <schwab@suse.de>
16932
16933 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16934 modifiers.
16935
16936 * regex.c (re_match_2_internal): Correct matching of a charset
16937 against latin-1 characters.
16938
169392008-03-16 Kenichi Handa <handa@m17n.org>
16940
16941 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16942 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16943 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16944 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16945 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16946 CHAR_STRING_ADVANCE.
16947 (produce_chars): Fix for the case that the source and the
16948 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16949 instead of CHAR_STRING_ADVANCE.
16950 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16951 STRING_CHAR_ADVANCE.
16952
169532008-03-15 Andreas Schwab <schwab@suse.de>
16954
16955 * regex.c (re_match_2_internal): Correct matching of eight bit
16956 characters in unibyte strings.
16957
169582008-03-15 Martin Rudalics <rudalics@gmx.at>
16959
16960 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16961 at end of range when it coincides with the end of the buffer.
16962
169632008-03-14 Eli Zaretskii <eliz@gnu.org>
16964
16965 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16966
16967 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16968
169692008-03-14 Jason Rumney <jasonr@gnu.org>
16970
16971 * editfns.c (initial_tz): New variable.
16972 (syms_of_editfns): Initialize it.
16973 (Fset_time_zone_rule): Set it when first called.
16974 Use it when TZSTRING is nil.
16975
16976 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16977 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16978 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16979 (globals_of_w32fns): Initialize them.
16980 (compute_tip_xy): Use them to position tooltips.
16981
169822008-03-14 Glenn Morris <rgm@gnu.org>
16983
16984 * emacs.c (main): Revert previous change.
16985 (standard_args): Revert -internal-script back to -scriptload,
16986 and remove the long-option form.
16987
169882008-03-13 Glenn Morris <rgm@gnu.org>
16989
16990 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16991 Remove option -enable-font-backend.
16992
169932008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16994
16995 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16996
169972008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16998
16999 * xterm.c (x_connection_closed): For GTK: If this is the last
17000 terminal just exit without closing the display.
17001
170022008-03-11 Jason Rumney <jasonr@gnu.org>
17003
17004 * w32font.c (w32font_full_name): Use floor to round.
17005
f0131492 170062008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17007
17008 * sound.c (alsa_configure): Declare vol at beginning of block.
17009
17010 * fontset.c (Ffontset_info): Remove extra semicolon.
17011
170122008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17013
17014 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17015 size of resulting string.
17016
170172008-03-10 Jason Rumney <jasonr@gnu.org>
17018
17019 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17020
170212008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17022
17023 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17024 Don't pretend as if characters with display property haven't been
17025 consumed for string-replacing-string case.
17026
170272008-03-08 Kim F. Storm <storm@cua.dk>
17028
17029 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17030 (get_next_display_element, next_element_from_string)
17031 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17032
170332008-03-08 Andreas Schwab <schwab@suse.de>
17034
17035 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17036
170372008-03-06 Jason Rumney <jasonr@gnu.org>
17038
17039 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17040 when charset not specified. Only translate ANSI to unicode when
17041 font_type is truetype.
17042 (w32font_coverage_ok): New function.
17043 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17044
170452008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17046
17047 * lread.c (Fread_char): Resolve modifiers.
17048 (Fread_char_exclusive): Likewise.
17049
17050 * character.c (char_resolve_modifier_mask): New function.
17051 (char_string): Use char_resolve_modifier_mask.
17052 (Fchar_resolve_modifiers): New function.
17053 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17054 function.
17055
170562008-03-04 Jason Rumney <jasonr@gnu.org>
17057
17058 * makefile.w32-in: Always include w32font.c in the build.
17059 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17060
170612008-03-04 Andreas Schwab <schwab@suse.de>
17062
17063 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17064 (versionclean): Likewise.
17065
170662008-03-04 Juanma Barranquero <lekktu@gmail.com>
17067
17068 * .cvsignore: Add oo.
17069
170702008-03-03 Andreas Schwab <schwab@suse.de>
17071
17072 * coding.c (decode_coding_object): Inhibit gap shrinking while
17073 decoding in place.
17074
170752008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17076
17077 * w32term.c: Remove unused include "gnu.h".
17078 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17079
17080 * gnu.h: Rename to ...
17081 * emacs-icon.h: ... this.
17082 * xterm.c: Use emacs-icon.h instead of gnu.h.
17083 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17084
170852008-03-03 Juanma Barranquero <lekktu@gmail.com>
17086
17087 * w32font.c: Include math.h.
17088
170892008-03-03 Jason Rumney <jasonr@gnu.org>
17090
17091 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17092 Compute options separately.
17093 (w32font_open_internal): Set glyph_idx before caching metrics.
17094
17095 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17096 Define if system headers don't.
17097 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17098 (w32font_encode_char): Don't declare here.
17099
17100 * w32font.c (Quniscribe, QCformat): New symbols.
17101 (syms_of_w32font): Define them.
17102 (w32font_has_char): Indicate uncertainty.
17103 (w32font_encode_char): Encode as glyph point. Make static.
17104 (recompute_cached_metrics): New function.
17105 (w32font_open_internal): Use it. Set font to use glyph points
17106 initially. Set format based on type of font.
17107 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17108 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17109 on it. Set format based on information available here.
17110 (add_font_entity_to_list): Identify backend based on opentype_only.
17111
171122008-03-02 Andreas Schwab <schwab@suse.de>
17113
17114 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17115
17116 * coding.c (decode_coding_big5, produce_chars):
17117 Fix typos in last change.
17118
171192008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17120
17121 * gnu.h: New icon.
17122
171232008-03-02 Kenichi Handa <handa@m17n.org>
17124
17125 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17126 `dos', don't decode '\r' if that is the last in the source.
17127 (decode_coding_utf_16, decode_coding_emacs_mule)
17128 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17129 (decode_coding_raw_text, decode_coding_charset): Likewise.
17130 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17131
171322008-03-01 Jason Rumney <jasonr@gnu.org>
17133
17134 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17135
171362008-03-01 Kim F. Storm <storm@cua.dk>
17137
17138 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17139
171402008-03-01 Jason Rumney <jasonr@gnu.org>
17141
17142 * w32font.c (w32font_full_name): New function.
17143 (w32font_open_internal): Use it.
17144
171452008-03-01 Kim F. Storm <storm@cua.dk>
17146
17147 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17148
171492008-03-01 Jason Rumney <jasonr@gnu.org>
17150
17151 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17152
171532008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17154
17155 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17156 xg_frame_resized when the event is for the edit widget.
17157
17158 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17159
17160 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17161 set_char_size.
17162 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17163 operations on widgets here. Just set frame size if needed.
17164 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17165 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17166 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17167 the whole frame.
17168 (xg_create_tool_bar): Move attachment of the tool bar to
17169 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17170 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17171
171722008-03-01 Jason Rumney <jasonr@gnu.org>
17173
17174 * w32fns.c (w32_msg_pump): Disable debug code.
17175
171762008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17177
17178 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17179
171802008-02-29 Chong Yidong <cyd@stupidchicken.com>
17181
17182 * xdisp.c (next_overlay_string): Don't set
17183 overlay_strings_at_end_processed_p if we're currently reading from
17184 a display string.
17185
171862008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17187
17188 * xdisp.c (get_overlay_strings_1): Fix typo.
17189
171902008-02-29 Chong Yidong <cyd@stupidchicken.com>
17191
17192 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17193
171942008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17195
17196 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17197
17198 * xdisp.c (display_mode_element): Cancel the previous change.
17199 (decode_mode_spec): Likewise.
17200 (handle_auto_composed_prop): Don't make composition if it->string
17201 is a string.
17202
172032008-02-27 Kim F. Storm <storm@cua.dk>
17204
17205 * lisp.h (GLYPH): Change type from int to struct with separate char
17206 and face_id members.
17207 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17208 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17209 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17210 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17211 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17212 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17213 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17214 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17215 handle new Lisp glyph code encoding, either an integer or a cons.
17216
17217 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17218 (GLYPH_ALIAS): Delete.
17219 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17220 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17221 (GLYPH_FROM_CHAR): Replace macro by ...
17222 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17223
17224 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17225 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17226 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17227 (GLYPH_INVALID_P): New macro.
17228 (spec_glyph_lookup_face): Update prototype.
17229
17230 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17231 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17232 new glyph code encoding.
17233 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17234 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17235
17236 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17237 Adapt to new glyph type and new glyph code encoding.
17238
17239 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17240
17241 * indent.c (current_column, current_column_1, Fmove_to_column)
17242 (compute_motion): Adapt to new glyph code encoding.
17243
17244 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17245
172462008-02-27 Chong Yidong <cyd@stupidchicken.com>
17247
17248 * process.c (wait_reading_process_output): Check for window
17249 changes caused by timers.
17250 Suggested by Johan Bockgård.
17251
172522008-02-27 Glenn Morris <rgm@gnu.org>
17253
17254 * emacs.c (USAGE1): Add `--disable-font-backend'.
17255
172562008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17257
17258 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17259 is made to the buffer.
17260
172612008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17262
17263 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17264 (face_at_string_position):
17265 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17266 (face_at_string_position):
17267 * xdisp.c (display_string, next_overlay_change):
17268 * buffer.h (overlays_at):
17269 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17270 Update callers.
17271
172722008-02-26 Chong Yidong <cyd@stupidchicken.com>
17273
17274 * editfns.c (Fformat): Doc fix.
17275
172762008-02-26 Juanma Barranquero <lekktu@gmail.com>
17277
17278 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17279 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17280 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17281
172822008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17283
17284 * buffer.c (Fbuffer_swap_text): New function.
17285 (syms_of_buffer): Defsubr it.
17286
172872008-02-25 Chong Yidong <cyd@stupidchicken.com>
17288
17289 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17290
172912008-02-25 Jason Rumney <jasonr@gnu.org>
17292
17293 * w32font.c (w32font_draw): Draw one character at a time when padding.
17294
172952008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17296
17297 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17298 Handle a nil arg. Use run_window_configuration_change_hook.
17299 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17300 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17301 Use run_window_configuration_change_hook.
17302
173032008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17304
17305 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17306 1-pixel width.
17307
173082008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17309
17310 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17311 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17312 if the glyph in the font is zero pixel with.
17313
17314 * dispextern.h (struct glyph_string): New member padding_p.
17315
17316 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17317
17318 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17319
17320 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17321
17322 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17323
17324 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17325
173262008-02-25 Jason Rumney <jasonr@gnu.org>
17327
17328 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17329
173302008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17331
17332 Allow fine-grained image-cache flushing.
17333 * dispextern.h (struct image): Add `dependencies' field.
17334 (clear_image_caches): Change arg to Lisp_Object.
17335 * image.c (make_image): Initialize `dependencies' field.
17336 (clear_image_cache): Change arg to allow fine-grained flushing.
17337 Perform the flush even if image-cache-eviction-delay is nil.
17338 (clear_image_caches): Change arg to Lisp_Object.
17339 (Fclear_image_cache): Expand meaning of the argument.
17340 (mark_image): Mark `dependencies' field.
17341 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17342 (lface_hash): Use XHASH rather than XFASTINT.
17343 (face_at_buffer_position): Fix int -> EMACS_INT position.
17344 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17345 (select_frame_for_redisplay): Remove code duplication.
17346 (redisplay_internal): Adapt arg to call to clear_image_caches.
17347
173482008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17349
17350 * s/vms4-0.h:
17351 * s/vms4-2.h:
17352 * s/vms4-4.h:
17353 * s/vms5-5.h: Remove, unused.
17354
17355 * s/irix5-2.h:
17356 * s/irix6-0.h:
17357 * s/riscos5.h:
17358 * s/mach-bsd4-3.h:
17359 * m/mips4.h: Remove files for obsolete systems.
17360
17361 * Makefile.in:
17362 * filelock.c:
17363 * unexmips.c:
17364 * m/hp9000s300.h:
17365 * m/iris4d.h:
17366 * s/aix3-1.h:
17367 * s/hpux.h:
17368 * s/msdos.h:
17369 * s/usg5-0.h:
17370 * s/usg5-2-2.h:
17371 * s/usg5-2.h:
17372 * s/usg5-3.h: Remove references to obsolete variables.
17373
17374 * s/irix5-0.h: Remove, move all the contents ...
17375 * s/irix6-5.h: ... here. Simplify.
17376 * config.in: Regenerate.
17377
173782008-02-24 Jason Rumney <jasonr@gnu.org>
17379
17380 * w32term.c (x_draw_glyph_string_background): Clear the background
17381 manually when cleartype is in use.
17382 (x_draw_glyph_string_foreground): Draw text transparently when
17383 cleartype is in use.
17384
17385 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17386 a font into it unless we have to.
17387
173882008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17389
17390 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17391 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17392
aac0c6e3
MR
173932008-02-18 Jason Rumney <jasonr@gnu.org>
17394
17395 * w32fns.c (Fw32_shell_execute): Encode parameters.
17396
173972008-02-09 Eli Zaretskii <eliz@gnu.org>
17398
17399 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17400
174012008-02-05 Juanma Barranquero <lekktu@gmail.com>
17402
17403 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17404
174052008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17406
17407 * xterm.c (x_set_offset): Don't change the gravity if
17408 CHANGE_GRAVITY is -1.
17409
174102008-02-23 Chong Yidong <cyd@stupidchicken.com>
17411
17412 * fileio.c (auto_save_error_occurred): New var.
17413 (auto_save_error): Set it.
17414 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17415 error occurred.
17416
174172008-02-23 Eli Zaretskii <eliz@gnu.org>
17418
17419 * w32.c (globals_of_w32): Add initializations for
17420 g_b_init_get_sid_sub_authority and
17421 g_b_init_get_sid_sub_authority_count.
17422
174232008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17424
17425 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17426 (font_parse_xlfd): Use them for sanity check.
17427 (Finternal_set_font_style_table): Make sure the table is bijective.
17428
17429 Consolidate the image_cache to the terminal struct.
17430 * termhooks.h (P_): Remove redundant def.
17431 (struct terminal): New field `image_cache'.
17432 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17433 of FRAME_X_IMAGE_CACHE.
17434 * xterm.h (struct x_display_info): Remove image_cache field.
17435 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17436 * w32term.h (struct w32_display_info): Remove image_cache field.
17437 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17438 * macterm.h (struct mac_display_info): Remove image_cache field.
17439 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17440 * xterm.c (x_term_init):
17441 * w32term.c (w32_term_init):
17442 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17443 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17444 Remove declarations.
17445 (clear_image_caches, mark_image_cache): New declarations.
17446 * xfaces.c (clear_face_cache):
17447 * xdisp.c (redisplay_internal): Use clear_image_caches.
17448 * image.c (clear_image_cache): Don't check that a frame is on
17449 a window-system before checking if it shares the same cache.
17450 (clear_image_caches): New function.
17451 (Fclear_image_cache): Use it.
17452 (mark_image): Move from allo.c.
17453 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17454 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17455 (mark_object): Don't call mark_image_cache for frames.
17456 (mark_terminals): Call mark_image_cache.
17457
17458 * lisp.h (Fdelete_terminal): Declare.
17459
17460 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17461 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17462 wrong_type_argument.
17463
174642008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17465
17466 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17467 malayalam.el, and tamil.el. Add sinhala.el.
17468
174692008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17470
17471 * xterm.c (x_connection_closed): Consolidate identical tests.
17472 (x_delete_terminal): Don't crash if called via x_connection_closed.
17473
174742008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17475
17476 * xdisp.c (decode_mode_spec): New arg string.
17477 (display_mode_element): Adjust for the above change.
17478
174792008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17480
17481 * callint.c (Fcall_interactively): Use AREF.
17482
174832008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17484
17485 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17486
174872008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17488
17489 * xfns.c (Fx_show_tip): Set string to " " if empty.
17490
174912008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17492
17493 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17494 with Qt.
17495
174962008-02-17 Kenichi Handa <handa@m17n.org>
17497
17498 * ftfont.c (ftfont_shape): Return Lispy number.
17499
17500 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17501 for GCs.
17502 (Finternal_set_font_selection_order): Call font_update_sort_order
17503 only when enable_font_backend is set.
17504 (realize_x_face): Set face->font_info to that of default face only
17505 when enable_font_backend is set.
17506
17507 * xdisp.c (handle_composition_prop): Set it->c to the fist
17508 character of the composed region.
17509 (fill_composite_glyph_string): Set base_face->font_info to
17510 s->font_info. Get a face for ascii from base_face->ascii_face.
17511 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17512 with a face already decided.
17513 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17514 non-negative.
17515 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17516 call font_prepare_composition unconditionally.
17517
17518 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17519
17520 * xterm.h (struct x_display_info): New member font.
17521
17522 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17523 (x_set_mouse_face_gc, x_new_font): Likewise.
17524 (x_term_init): Setup display_info->font.
17525 (x_delete_terminal): Free display_info->font.
17526
17527 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17528
17529 * ftxfont.c (ftxfont_default_fid): Delete it.
17530 (ftxfont_open): Set xfont->fid to 0.
17531 (ftxfont_end_for_frame): Clear data specific to the frame and the
17532 font-driver.
17533
17534 * xftfont.c (xftfont_default_fid): Delete it.
17535 (xftfont_open): Set xfont->fid to 0.
17536
17537 * fontset.c (FONTSET_OBJLIST): New macro.
17538 (fontset_find_font): Update font-object list of the fontset.
17539 (free_realized_fontset): New function.
17540 (free_face_fontset): Call free_realized_fontset.
17541 (Ffont_info): Call font_close_object only when enable_font_backend
17542 is set.
17543
17544 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17545 [HAVE_NTGUI]: Include w32term.h.
17546 [MAC_OS]: Include macterm.ch.
17547 (font_otf_ValueRecord): Use make_number.
17548 (font_finish_cache): Fix handling of reference count.
17549 (font_clear_cache): Update num_fonts.
17550 (font_open_entity): Update smallest_char_width and
17551 smallest_font_height of the frame.
17552 (font_close_object): Update num_fonts.
17553 (Fclear_font_cache): Fix finding the target cache data.
17554
175552008-02-16 Glenn Morris <rgm@gnu.org>
17556
17557 * fontset.c (Finternal_char_font): Fix compilation warning.
17558
175592008-02-16 Eli Zaretskii <eliz@gnu.org>
17560
17561 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17562 instead of char arrays. Enlarge the size of array passed to
17563 get_token_information.
17564
17565 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17566 warnings.
17567
175682008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17569
17570 * .gdbinit: Don't set `args', it breaks gdb --args.
17571
175722008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17573
17574 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17575 within a narrowed buffer.
17576
175772008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17578
17579 * coding.c (decode_coding_object, encode_coding_object):
17580 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17581
175822008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17583
17584 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17585 hardcoding 1.
17586 (detect_coding_system):
17587 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17588 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17589 * insdel.c (insert_from_gap):
17590 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17591 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17592 (string_to_multibyte):
17593 * character.c (chars_in_text, multibyte_chars_in_text):
17594 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17595
17596 * character.h (FETCH_STRING_CHAR_ADVANCE)
17597 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17598 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17599 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17600
17601 * casefiddle.c (casify_region): Only call after-change and composition
17602 functions on the part of the region that was changed.
17603
17604 * keyboard.c (read_avail_input):
17605 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17606
176072008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17608
17609 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17610 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17611
176122008-02-11 Juanma Barranquero <lekktu@gmail.com>
17613
17614 * w32menu.c (push_submenu_start, push_submenu_end)
17615 (push_left_right_boundary, push_menu_pane, push_menu_item):
17616 * keyboard.c (read_key_sequence): Don't pass args with side effects
17617 to AREF, it fails when compiling with -DENABLE_CHECKING.
17618
176192008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17620
17621 * Makefile.in (${lispsource}international/charprop.el):
17622 Delete this target.
17623
17624 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17625 emacs-unicode-2.
17626
176272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17628
17629 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17630
176312008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17632
17633 * frame.c (Qnoelisp): New symbol.
17634 (syms_of_frame): Initialize it.
17635 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17636 harmless Elisp code, from a strong `force' from x_connection_closed.
17637 * frame.h (Qnoelisp): Declare.
17638 * xterm.c (x_connection_closed): Pass `noelisp'.
17639
17640 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17641 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17642 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17643 rather than `int' for the type of `type'.
17644
176452008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17646
17647 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17648
17649 * Makefile.in (GNUC): Remove support for gcc-1.x.
17650
176512008-02-10 Richard Stallman <rms@gnu.org>
17652
17653 * lisp.h (ASET): Use AREF, not ASLOT.
17654
176552008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17656
17657 * lisp.h (ASET): Check bounds.
17658
176592008-02-10 Glenn Morris <rgm@gnu.org>
17660
17661 * buffer.c (mode-name): Doc fix.
17662
176632008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17664
17665 * Makefile.in:
17666 * emacs.c:
17667 * gmalloc.c:
17668 * keyboard.c:
17669 * lisp.h:
17670 * m/ibm370aix.h:
17671 * process.c:
17672 * regex.c:
17673 * s/hpux.h:
17674 * sysdep.c:
17675 * sysselect.h:
17676 * systty.h:
17677 * unexec.c:
17678 * w32term.c:
17679 * xsmfns.c:
17680 * xterm.c: Remove code that deals with obsolete variables.
17681
17682 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17683
17684 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17685 nothing else needs it anymore.
17686
176872008-02-09 Eli Zaretskii <eliz@gnu.org>
17688
17689 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17690 instead of unibyte_char_to_multibyte.
17691
176922008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17693
17694 * s/gnu-linux.h: Remove commented out code.
17695
17696 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17697
17698 * Makefile.in: Update what RMS says about using autoconf.
17699 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17700 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17701 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17702 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17703
177042008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17705
17706 * keymap.c (Fkey_description): Move side effect outside of macro call.
17707
17708 * xfaces.c (Finternal_make_lisp_face):
17709 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17710
17711 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17712 (syms_of_fontset): Use ASET.
17713
17714 * fns.c (concat): Move side effect outside of macro call.
17715 (hash_clear): Use ASET.
17716
177172008-02-08 Richard Stallman <rms@gnu.org>
17718
17719 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17720 If FORCE, and frame has a surrogate minibuffer for another frame,
17721 delete the other frame first.
17722
177232008-02-07 Timo Savola <timo.savola@iki.fi>
17724
17725 * xterm.c (x_detect_focus_change): Handle embed client message.
17726 (handle_one_xevent): Ditto.
17727 (handle_one_xevent): If embedded and we get a button press/release,
17728 request focus.
17729 (xembed_set_info, xembed_send_message): New functions.
17730 (x_make_frame_visible): Call xembed_set_info if embedded.
17731 (x_make_frame_invisible): Call xembed_set_info if embedded.
17732 (x_term_init): Initialize Xatom_XEMBED.
17733 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17734 (x_iconify_frame): Ditto.
17735
17736 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17737 (enum xembed_info, enum xembed_message, enum xembed_focus)
17738 (enum xembed_modifier, enum xembed_accelerator): New.
17739 (xembed_set_info, xembed_send_message): Declare.
17740 (FRAME_X_EMBEDDED_P): New.
17741
17742 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17743 gtk_plug_new.
17744
17745 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17746 window ID of a frame.
17747 (x_window): Reparent frame if embedded.
17748 (Fx_create_frame): Don't set border width if embedded.
17749
17750 * emacs.c (USAGE3): Add --parent-id.
17751 (standard_args): Ditto.
17752
177532008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17754
17755 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17756
177572008-02-07 Jim Meyering <meyering@redhat.com>
17758
17759 Use "do...while (0)", not "if (1)...else" in macro definitions.
17760 The latter provokes a warning from gcc about the empty else, when
17761 followed by ";". Also, without that trailing semicolon, it would
17762 silently swallow up any following statement.
17763 * syntax.h (SETUP_SYNTAX_TABLE)
17764 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17765 * buffer.h (DECODE_POSITION): Likewise.
17766 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17767 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17768 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17769 (FETCH_CHAR_ADVANCE): Likewise.
17770 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17771
177722008-02-07 Jim Meyering <meyering@redhat.com>
17773
17774 * lread.c [lint]: Don't include <sys/inode.h>.
17775
177762008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17777
17778 * xselect.c (x_handle_dnd_message):
17779 * xmenu.c (digest_single_submenu, xmenu_show):
17780 * xdisp.c (with_echo_area_buffer_unwind_data)
17781 (format_mode_line_unwind_data, unwind_format_mode_line)
17782 (display_menu_bar):
17783 * eval.c (Ffetch_bytecode):
17784 * doc.c (store_function_docstring):
17785 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17786 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17787 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17788
177892008-02-07 Kenichi Handa <handa@m17n.org>
17790
17791 * ftxfont.c (ftxfont_open): Don't set
17792 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17793
17794 * ftfont.c (ftfont_open): Fix previous change.
17795
177962008-02-06 Jason Rumney <jasonr@gnu.org>
17797
17798 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17799 Use cached metrics for ASCII characters.
17800 (w32font_open_internal): Don't set font's owning_frame.
17801 Cache metrics for ASCII characters.
17802
17803 * w32font.h (struct w32font_info): Add ascii_metrics.
17804 Remove owning_frame.
17805
178062008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17807
17808 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17809 to negative value.
17810
17811 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17812
17813 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17814
17815 * charset.c (syms_of_charset): Set QCtest and Qeq.
17816
178172008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17818
17819 * process.c (Fstart_process):
17820 * callproc.c (Fcall_process): Handle the case where
17821 Funhandled_file_name_directory returns nil.
17822
17823 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17824 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17825 * font.c (check_gstring): Use them and AREF to access the vector before
17826 we know it's really a gstring.
17827 (Ffont_shape_text): Fix typo.
46e722a9 17828 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17829
17830 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17831 Declare.
17832
17833 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17834
178352008-02-05 Jason Rumney <jasonr@gnu.org>
17836
17837 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17838 Set smallest_font_height and smallest_char_width in display info.
17839
178402008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17841
17842 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17843
178442008-02-05 Miles Bader <miles@gnu.org>
17845
17846 * xfaces.c (get_lface_attributes, merge_named_face)
17847 (lookup_named_face, lookup_derived_face, realize_named_face):
17848 Revert 2008-02-01 change by cyd@stupidchicken.com.
17849
178502008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17851
17852 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17853 fallback fonts.
17854 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17855
178562008-02-04 Jason Rumney <jasonr@gnu.org>
17857
17858 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17859 set full_name.
17860 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17861
178622008-02-03 Jason Rumney <jasonr@gnu.org>
17863
17864 * makefile.w32-in (OBJ1): Include font.o here.
17865 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17866
178672008-02-02 Jason Rumney <jasonr@gnu.org>
17868
17869 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17870
178712008-02-01 Jason Rumney <jasonr@gnu.org>
17872
17873 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17874
17875 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17876
178772008-02-01 Andreas Schwab <schwab@suse.de>
17878
17879 * Makefile.in (shortlisp, lisp): Update for rename of
17880 ../lisp/language/myanmar.el.
17881
178822008-02-01 Chong Yidong <cyd@stupidchicken.com>
17883
17884 * xfaces.c (get_lface_attributes): Delete function.
17885 (merge_named_face, lookup_named_face, lookup_derived_face)
17886 (realize_named_face): Call lface_from_face_name directly, and use
17887 the fact that merge_face_vectors does not alter its FROM argument.
17888
178892008-02-01 Jason Rumney <jasonr@gnu.org>
17890
17891 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17892 input in the default locale. Handle non-Unicode multibyte input.
17893
178942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17895
17896 * fontset.c (reorder_font_vector): Exclude nil elements from the
17897 font group. Don't try multiple fonts.
17898 (fontset_font): Adjust for the above change.
17899 (Finternal_char_font): Return nil if the found font doesn't
17900 contain the character ch.
17901
17902 * Makefile.in (lisp, shortlisp): Add cham.el.
17903
179042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17905
17906 * font.h (FONTP): Make it return 1 also for a font-object.
17907
17908 * .gdbinit (xfontset): New function.
17909
17910 * font.c (font_find_for_lface): Check if the character C is
17911 supported or not only for the first font.
17912
17913 * fontset.c (reorder_font_vector): Fix typo.
17914 (fontset_find_font): Don't add a font-spec specifying a script.
17915 Use 0 (not Qt) for the indication of empty font-group. Change the
17916 format of RFONT-DEF. Return Qt if no font in the font-group
17917 support the character.
17918 (fontset_font): Adjust for the above change. If no font was
17919 found the character, remember that.
17920 (face_for_char): Adjust for the change of RFONT-DEF.
17921 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17922 no font for the target.
17923 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17924
179252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17926
17927 * font.c (font_load_for_face): Handle the case that the font in
17928 face->lface is a string.
17929
179302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17931
17932 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17933
179342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17935
17936 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17937 Fix previous change. If the frame is not on a window system,
17938 signal an error.
17939
179402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17941
17942 * coding.c (decode_coding_object, encode_coding_object): Adjust
17943 marker positions after conversion.
17944
17945 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17946
179472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17948
17949 * font.c (font_find_for_lface): Fix the handling of the return
17950 value of font_has_char.
17951 (Ffont_shape_text): Fix previous change.
17952
17953 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17954 (fontset_ref_and_range): Delete it.
17955 (fontset_find_font): Call char_table_ref_and_range instead of
17956 FONTSET_REF_AND_RANGE.
17957 (make_fontset): Don't setup font groups of Latin here.
17958 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17959 (new_fontset_from_font): Make the specified font the default for
17960 all Latin characters.
17961
179622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17963
17964 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17965 is on a window system before accessing the fontset of the frame.
17966
179672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17968
17969 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17970
17971 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17972 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17973
17974 * font.c (Ffont_shape_text): If the font driver doesn't have a
17975 shaper function, make zero-width glyphs to have at least one-pixel
17976 width. Fix setting of `to' field of glyphs.
17977
179782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17979
17980 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17981 glyphs.
17982
17983 * font.h (struct font_driver): Improve docstring of member `shape'.
17984
179852008-02-01 Kenichi Handa <handa@m17n.org>
17986
17987 * composite.c (syms_of_composite): Fix docstring of
17988 auto-composition-function.
17989
17990 * font.h (LGLYPH_SIZE): New macro.
17991
17992 * font.c (Ffont_fill_gstring): Stop filling when a character not
17993 supported by the font is found.
17994 (Ffont_shape_text): When a shape callback function returns nil,
17995 try at most two more times with larger gstring.
17996 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17997
17998 * xdisp.c (handle_auto_composed_prop): Change the argument to
17999 auto-composition-function.
18000
18001 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18002 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18003 Lispy glyph and store it in the lgstring.
18004
18005 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18006
18007 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18008
180092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18010
18011 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18012
18013 * fontset.c (Vfont_encoding_charset_alist): New variable.
18014 (syms_of_fontset): DEFVAR it.
18015 (reorder_font_vector, fontset_find_font): Optimize for the case of
18016 no need of reordering.
18017 (face_for_char): Map the charset property by
18018 Vfont_encoding_charset_alist.
18019
180202008-02-01 Jason Rumney <jasonr@gnu.org>
18021
18022 * w32font.c (logfonts_match): Don't check adstyle here.
18023 (font_matches_spec): Check here against physical font instead.
18024 (add_font_entity_to_list): Avoid some substitutions.
18025
18026 * font.c (font_parse_fcname): Default weight and slant to normal.
18027 (font_score): Prefer normal fonts if weight or slant unspecified.
18028 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18029 match freetype scores.
18030
180312008-02-01 Jason Rumney <jasonr@gnu.org>
18032
18033 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18034 font, as it may have been deleted.
18035 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18036 most common hyphenless variation.
18037 (logfonts_match): Check generic family.
18038 (font_matches_spec): Don't check generic family here.
18039 (fill_in_logfont): Set generic family based on adstyle.
18040
18041 * w32font.h (w32font_get_cache): Update declaration.
18042
180432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18044
18045 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18046
18047 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18048 If none of the new drivers are available, call font_update_drivers
18049 with the old drivers.
18050
18051 * w32font.c (w32font_get_cache): Adjust the argument type.
18052
18053 * xfont.c (xfont_get_cache): Adjust the argument type.
18054
18055 * font.h (struct font_driver): Change argument type of get_cache.
18056
18057 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18058
18059 * font.c (Ffont_get): Fix arguments to Fassoc.
18060 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18061 (font_clear_cache): New function.
18062 (font_list_entities, font_matching_entity): Use font_get_cache.
18063 (font_update_drivers): Call font_clear_cache when finishing a driver.
18064
18065 * fontset.c (fontset_find_font): Fix previous change.
18066
180672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18068
18069 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18070 dpyinfo->font_table.
18071 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18072 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18073
18074 * font.c (font_at): Handle the case that the arg C is negative.
18075 Handle the unibyte case.
18076 (Ffont_at): Call font_at with the arg C -1.
18077
18078 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18079 the position here, and call font_at with the arg C -1.
18080 Don't check the range of the existing composition at the point.
18081
180822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18083
18084 * fontset.c (fontset_add): New args charset_id and family.
18085 Change caller.
18086 (load_font_get_repertory, fontset_find_font): Assume that
18087 font_spec is always a font-spec object.
18088 (Fset_fontset_font): Always store a font-spec object in a fontset.
18089
18090 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18091 instead of get_property_and_range.
18092
180932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18094
18095 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18096 (xftfont_open): Don't keep locking face.
18097 (xftfont_close): Don't unlock face.
18098 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18099
18100 * fontset.c (fontset_find_font): Don't prefer a font of
18101 supplementary charset.
18102
181032008-02-01 Kenichi Handa <handa@m17n.org>
18104
18105 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18106 script, langsys_tag to langsys, new member script.
18107 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18108 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18109 listing to the script specified in that property. Fix arg to
18110 OTF_check_features.
18111
181122008-02-01 Jason Rumney <jasonr@gnu.org>
18113
18114 * w32font.h: New file.
18115
18116 * w32font.c: Include it.
18117 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18118 (w32font_open): Set owning_frame.
18119 (w32font_text_extents): Use owning_frame.
18120 (struct font_callback_data): Add opentype_only field.
18121 (add_font_entity_to_list): Use it to filter fonts.
18122 Don't check against full name.
18123 (w32font_list_internal): New function.
18124 (w32font_list): Use it.
18125 (w32font_match_internal): New function.
18126 (w32font_match): Use it.
18127 (w32font_open_internal): New function.
18128 (w32font_open): Use it.
18129 (w32font_get_cache, w32font_close, w32font_has_char)
18130 (w32font_encode_char, w32font_text_extents, w32font_draw):
18131 Make non-static.
18132
18133 * makefile.w32-in (w32font.o): Depend on w32font.h.
18134
181352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18136
18137 * charset.c (Fdefine_charset_internal): Record a supplementary
18138 charset at the tail of Vcharset_order_list.
18139
18140 * font.c (Ffont_shape_text): Fix the return value.
18141
18142 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18143
18144 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18145
181462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18147
18148 * ftfont.c (struct OpenTypeSpec): New struct.
18149 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18150 (ftfont_get_open_type_spec): New function.
18151 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18152
18153 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18154
181552008-02-01 Jason Rumney <jasonr@gnu.org>
18156
18157 * w32font.c (add_font_entity_to_list): Compare only the beginning
18158 of full name.
18159
181602008-02-01 Kenichi Handa <handa@m17n.org>
18161
18162 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18163 Never return HANDLED_RECOMPUTE_PROPS.
18164
181652008-02-01 Kenichi Handa <handa@m17n.org>
18166
18167 * font.c (font_gstring_produce): Delete it.
18168
18169 * composite.h (COMPOSITION_METHOD):
18170 Handle COMPOSITION_WITH_GLYPH_STRING.
18171
181722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18173
18174 * xfont.c (Qx): Delete.
18175 (syms_of_xfont): Don't initialize Qx.
18176
18177 * composite.h (enum composition_method):
18178 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18179
181802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18181
18182 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18183 (choose_face_font): Accept new form of font-spec.
18184
18185 * frame.h (font_driver_list): Declare it unconditionally.
18186 (struct frame): Define members font_driver_list and font_data_list
18187 unconditionally.
18188
18189 * fontset.c: Include "font.h" unconditionally.
18190 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18191 (Fset_fontset_font): Accept a font-spec object.
18192
18193 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18194 PIXEL_SIZE part a wild card.
18195
18196 * dispextern.h (struct glyph_string): Define members clip and
18197 num_clips unconditionally.
18198 (struct face): Define members font_info and extra unconditionally.
18199
18200 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18201 ftfont_info only when HAVE_LIBOTF is defined.
18202
182032008-02-01 Andreas Schwab <schwab@suse.de>
18204
18205 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18206 and end.
18207
182082008-02-01 Jason Rumney <jasonr@gnu.org>
18209
18210 * w32font.c (w32font_driver): Add new fields.
18211
182122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18213
18214 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18215 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18216 (LIBES): Add @M17N_FLT_CFLAGS@.
18217
18218 * composite.c (compose_text): Don't treat the new style
18219 composition specially.
18220
18221 * emacs.c (main): Call syms_of_font unconditionally.
18222
18223 * font.h (FONT_ENTITY_NOT_LOADABLE)
18224 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18225 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18226 (struct font_driver): New member shape.
18227 (font_registry_charsets): Extern it.
18228 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18229 (font_otf_capability, font_drive_otf): Delete their externs.
18230
18231 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18232 (font_charset_alist, font_registry_charsets): Move from xfont.c
18233 and rename.
18234 (font_prop_validate_otf): New function.
18235 (font_property_table): Register it for QCotf.
18236 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18237 (font_drive_otf): Delete.
18238 (font_prepare_composition): New arg F. Adjust for the change of
18239 lispy gstring.
18240 (font_find_for_lface): New arg C.
18241 (font_load_for_face): Adjust for the change of font_find_for_lface.
18242 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18243 lispy gstring.
18244 (Ffont_shape_text): New function.
18245 (Fopen_font): If the font size is not given, use 12-pixel.
18246 (Ffont_at): New arg STRING.
18247 (syms_of_font): Initalize font_charset_alist.
18248 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18249 conditionally.
18250
18251 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18252 fonts of the same font-spec. Change the format of RFONT-DEF.
18253 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18254 Adjust for the change of RFONT-DEF.
18255 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18256
18257 * ftfont.h: New file.
18258
18259 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18260 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18261 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18262 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18263 font_otf_capability and font_drive_otf, set ftfont_shape.
18264 (ftfont_list): Adjust for the change of :otf property value.
18265 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18266 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18267 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18268 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18269 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18270 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18271
18272 * w32term.c (x_draw_composite_glyph_string_foreground):
18273 Adjust for the change of lispy gstring.
18274
18275 * xdisp.c (handle_composition_prop): Adjust for the change of
18276 lispy gstring. Call a function for auto-composition with the
18277 third arg it->window.
18278 (fill_composite_glyph_string): Adjust for the change of lispy string.
18279 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18280
18281 * xfaces.c (set_font_frame_param): Adjust for the change of
18282 font_find_for_lface.
18283
18284 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18285 (xfont_registry_charsets): Likewise. Change caller.
18286 (syms_of_xfont): Don't handle x_font_charset_alist.
18287
18288 * xftfont.c: Include "ftfont.h".
18289 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18290 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18291 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18292 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18293 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18294 Set xftfont_driver.shape to xftfont_shape.
18295
18296 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18297 the change of lispy gstring.
18298
182992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18300
18301 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18302
183032008-02-01 Jason Rumney <jasonr@gnu.org>
18304
18305 * w32font.c (w32font_draw): Fill background manually.
18306
183072008-02-01 Jason Rumney <jasonr@gnu.org>
18308
18309 * font.c (Qfontp): Remove unused symbol.
18310 (QCantialias): New symbol.
18311 (syms_of_font): Define it.
18312 (font_property_table): Set a validator for QCantialias.
18313
18314 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18315 Define if not already.
18316 (QCfamily): Share with xfaces.c.
18317 (Qstandard, Qsubpixel, Qnatural): New symbols.
18318 (syms_of_w32font): Define them. Don't define QCfamily here.
18319 (w32_antialias_type, lispy_antialias_type): New functions.
18320 (w32_enumfont_pattern_entity): New arg requested_font.
18321 Set antialias parameter if non-default was requested.
18322 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18323
183242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18325
18326 * lread.c (read1): Undo the previous change.
18327
183282008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18329
18330 * frame.c (Fdelete_frame): Call font_update_drivers only when
18331 USE_FONT_BACKEND is defined.
18332
183332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18334
18335 * font.h (struct font_bitmap): New member bits_per_pixel.
18336 (struct font_driver): New members start_for_frame and end_for_frame.
18337 (struct font_data_list): New struct.
18338 (font_put_frame_data, font_get_frame_data): Extern them.
18339
18340 * frame.h (struct frame): New member font_data_list.
18341
18342 * font.c (font_update_drivers): Call driver->start_for_frame and
18343 driver->end_for_frame at proper timings.
18344 (font_put_frame_data, font_get_frame_data): New functions.
18345 (Ffont_spec): Add usage in the docstring.
18346
18347 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18348 (Fdelete_frame): Call font_update_drivers.
18349
18350 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18351 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18352 (xftfont_get_xft_draw): New function.
18353 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18354 (xftfont_end_for_frame): New function.
18355 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18356
18357 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18358 Change argument. Cache GCs in the per-frame data.
18359 (struct ftxfont_frame_data): New struct.
18360 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18361 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18362 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18363 (ftxfont_end_for_frame): New function.
18364 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18365
18366 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * xselect.c (Vselection_coding_system)
18371 (Vnext_selection_coding_system): Delete them.
18372 (syms_of_xselect): Don't declare selection-coding-system and
18373 next-selection-coding-system. They are declared in select.el.
18374
183752008-02-01 Jason Rumney <jasonr@gnu.org>
18376
18377 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18378
18379 * w32fns.c: Include imm.h.
18380 (get_composition_string_fn, get_ime_context_fn): New optional
18381 system functions.
18382 (globals_of_w32fns): Load them from imm32.dll.
18383 (ignore_ime_char): New flag.
18384 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18385 WM_IME_ENDCOMPOSITION messages.
18386
18387 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18388 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18389
183902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18391
18392 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18393 (READCHAR_REPORT_MULTIBYTE): New macro.
18394 (readchar): New 2nd arg MULTIBYTE.
18395 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18396 Make symbol's name multibyte according to the multibyteness of the
18397 source.
18398
183992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18400
18401 * xfaces.c (face_for_overlay_string): Call lookup_face with
18402 correct arguments (fix of synching with the trunk).
18403
184042008-02-01 Kenichi Handa <handa@m17n.org>
18405
18406 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18407 (font_prop_validate_non_neg, font_prop_validate_spacing):
18408 Delete argument prop_index.
18409 (font_property_table): Change arguments to validater. Change Callers.
18410 (font_lispy_object): Delete.
18411 (font_at): Use font_find_object instead fo font_lispy_object.
18412
184132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18414
18415 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18416 and file names.
18417
184182008-02-01 Jason Rumney <jasonr@gnu.org>
18419
18420 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18421 (font_matches_spec): Remove debug output.
18422 (add_font_entity_to_list): Avoid using substituted fonts.
18423
184242008-02-01 Jason Rumney <jasonr@gnu.org>
18425
18426 * doc.c (Fsnarf_documentation):
18427 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18428
184292008-02-01 Miles Bader <miles@gnu.org>
18430
18431 * dispextern.h (struct glyph_row): Only define "clip" field if
18432 HAVE_WINDOW_SYSTEM is defined.
18433
184342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18435
18436 Fix up multi-tty merge.
18437
18438 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18439 and indentation.
18440
18441 * xfaces.c (free_realized_face, clear_face_gcs):
18442 Include font_done_for_face in the input_blocked section, just in case.
18443
18444 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18445 (get_char_face_and_encoding): Undo last change and remove the *other*
18446 duplicate definition (i.e. keep the one that's better scoped and that
18447 includes code for the font-backend).
18448
18449 * terminal.c (create_terminal): Default keyboard_coding to
18450 `no-conversion' and terminal_coding to `undecided'.
18451
18452 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18453
18454 * fontset.c (free_realized_fontsets): Check that the table entry does
18455 contain a fontset before trying to compare it to `base'.
18456
18457 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18458 syms_of_charset, and syms_of_coding earlier because init_window_once
18459 now needs Vcoding_system_hash_table to be setup.
18460
18461 * coding.h (default_buffer_file_coding): Remove.
18462
18463 * coding.c (default_buffer_file_coding): Remove.
18464 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18465 than ->symbol, and use the terminal-local coding system.
18466 (syms_of_coding): Don't setup the coding-systems that are not
18467 terminal-local.
18468 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18469
18470 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18471 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18472
18473 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18474 in chartab.c and were re-added here by mistake.
18475 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18476
18477 * doc.c (Fsnarf_documentation):
18478 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18479 src to etc.
18480
18481 * ChangeLog.10: Add mistakenly removed entry.
18482
184832008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18484
18485 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18486
184872008-02-01 Miles Bader <miles@gnu.org>
18488
18489 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18490 Add extra args to FACE_FOR_CHAR.
18491
184922008-02-01 Kenichi Handa <handa@m17n.org>
18493
18494 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18495 in sequence.
18496
18497 * chartab.c (map_sub_char_table, map_char_table): If the range
18498 contains just one character, call the function with that character
18499 even if the depth is not 3.
18500
185012008-02-01 Jason Rumney <jasonr@gnu.org>
18502
18503 * w32font.c (w32font_text_extents): Calculate metrics for the
18504 whole string.
18505
185062008-02-01 Jason Rumney <jasonr@gnu.org>
18507
18508 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18509
185102008-02-01 Jason Rumney <jasonr@gnu.org>
18511
18512 * w32term.c (x_set_glyph_string_clipping): Use
18513 get_glyph_string_clip_rects.
18514 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18515 Adjust for the change of struct glyph_string.
18516
18517 * w32font.c (w32font_draw): Do clipping here.
18518
185192008-02-01 Kenichi Handa <handa@m17n.org>
18520
18521 * xftfont.c (xftfont_draw): Adjust for the change of struct
18522 glyph_string.
18523
18524 * xterm.c (x_set_glyph_string_clipping): Use
18525 get_glyph_string_clip_rects.
18526 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18527 Adjust for the change of struct glyph_string.
18528
18529 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18530 the resulting clip(s}.
18531 (expose_overlaps): Add arg r. Change callers. Set it to
18532 row->clip temporarily.
18533 (expose_window): Redraw rows overlapping the exposed area.
18534
18535 * dispextern.h (struct glyph_row): New member clip.
18536 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18537 clip_height, new member clip, and num_clips.
18538
185392008-02-01 Kenichi Handa <handa@m17n.org>
18540
18541 * data.c (Fchar_or_string_p): Fix docstring.
18542
185432008-02-01 Kenichi Handa <handa@m17n.org>
18544
18545 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18546 create a temporary XftDraw object.
18547
185482008-02-01 Kenichi Handa <handa@m17n.org>
18549
18550 * font.c (Ffontp): Fix docstring.
18551
18552 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18553 strong evidence of ISO-2022.
18554
185552008-02-01 Kenichi Handa <handa@m17n.org>
18556
18557 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18558 SYNTAX_ENTRY_FOLLOW_PARENT.
18559
185602008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18561
18562 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18563 its type.
18564 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18565 Update to the new type of weak_hash_tables and next_weak.
18566
18567 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18568 a plain C pointer to Lisp_Hash_Table.
18569
18570 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18571 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18572 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18573 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18574 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18575 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18576 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18577 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18578 (GC_EQ): Remove since they've been identical to their non-GC_
18579 alter-egos ever since the markbit was eradicated.
18580
18581 * alloc.c:
18582 * buffer.c:
18583 * buffer.h:
18584 * data.c:
18585 * fileio.c:
18586 * filelock.c:
18587 * fns.c:
18588 * frame.h:
18589 * lisp.h:
18590 * macterm.c:
18591 * print.c:
18592 * process.c:
18593 * w32fns.c:
18594 * w32menu.c:
18595 * w32term.c:
18596 * xfns.c:
18597 * xmenu.c:
18598 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18599
186002008-02-01 Kenichi Handa <handa@m17n.org>
18601
18602 * chartab.c (map_sub_char_table): Make it work for the top-level
18603 char-table. Fix handling of parent char-table.
18604 (map_char_table): Adjust for the above change.
18605
186062008-02-01 Jason Rumney <jasonr@gnu.org>
18607
18608 * w32font.c (Qgdi): Rename from Qw32.
18609
186102008-02-01 Jason Rumney <jasonr@gnu.org>
18611
18612 * w32bdf.c (get_quoted_string): Make function static.
18613
186142008-02-01 Kenichi Handa <handa@m17n.org>
18615
18616 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18617 bigger ascent and descent than those of the font, use them as
18618 font's ascent and descent.
18619
186202008-02-01 Kenichi Handa <handa@m17n.org>
18621
18622 * Makefile.in (${lispsource}international/charprop.el): Move this
18623 target within "#ifdef HAVE_UNIDATA" and "#endif".
18624
186252008-02-01 Kenichi Handa <handa@m17n.org>
18626
18627 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18628 (shortlisp): Add ../lisp/language/tai-viet.el.
18629
186302008-02-01 Ulrich Mueller <ulm@gentoo.org>
18631
18632 * Makefile.in (${lispsource}international/charprop.el): Depend on
18633 temacs${EXEEXT}.
18634
186352008-02-01 Jason Rumney <jasonr@gnu.org>
18636
18637 * w32font.c (w32font_close): Delete the GDI font object.
18638
18639 * w32menu.c: Include character.h.
18640
18641 * w32proc.c: Likewise.
18642
18643 * w32select.c: Likewise.
18644
18645 * makefile.w32-in (w32proc.o): Depend on character.h.
18646
186472008-02-01 Jason Rumney <jasonr@gnu.org>
18648
18649 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18650
18651 * w32menu.c (syms_of_w32menu): Likewise.
18652
18653 * w32proc.c (syms_of_ntproc): Likewise.
18654
18655 * w32select.c (syms_of_w32select): Likewise.
18656
18657 * w32term.c (syms_of_w32term): Likewise.
18658
186592008-02-01 Jason Rumney <jasonr@gnu.org>
18660
18661 * w32font.c (w32font_draw): Delete brush after using it.
18662
186632008-02-01 Jason Rumney <jasonr@gnu.org>
18664
18665 * w32font.c (w32font_open): Don't set font_idx.
18666 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18667 to font settings.
18668 (w32font_draw): Fill background explicitly.
18669
186702008-02-01 Jason Rumney <jasonr@gnu.org>
18671
18672 * w32term.c (w32_initialize): Don't call w32font_initialize.
18673
18674 * w32font.c (w32font_info): Remove subranges.
18675 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18676 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18677 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18678 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18679 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18680 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18681 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18682 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18683 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18684 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18685 New symbols.
18686 (font_callback_data): New struct.
18687 (w32font_list, w32font_match): Use it.
18688 (w32font_open): Don't populate subranges.
18689 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18690 (w32font_encode_char): Always return unicode code-point as-is.
18691 (w32font_text_extents): Supply a transformation matrix to
18692 GetGlyphOutline. Never look up by glyph index. Avoid looping
18693 twice. Use unicode version of GetTexExtentPoint32 instead of
18694 glyph index version.
18695 (set_fonts_frame): Remove.
18696 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18697 set frame parameter. Use backward compatible fake foundries.
18698 Save generic family in extra slot under QCfamily. Make width slot
18699 constant. Save QCspacing value. Save list of scripts instead of
18700 binary subranges.
18701 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18702 (add_font_entity_to_list): Use font_callback_data struct. Filter
18703 unwanted fonts.
18704 (add_one_font_entity_to_list): Use font_callback_data struct.
18705 (w32_registry): Default to iso10646_1.
18706 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18707 string font registries. Don't fill in font name if it is a generic
18708 family name, fill family instead. Use spacing, family and script
18709 extra info to fill pitch, family and charset fields.
18710 (list_all_matching_fonts): Use font_callback_data struct.
18711 (unicode_range_for_char): Remove.
18712 (font_supported_scripts): New function.
18713 (w32font_initialize): Remove.
18714 (syms_of_w32font): Update which symbols are defined.
18715
187162008-02-01 Jason Rumney <jasonr@gnu.org>
18717
18718 * font.c (font_pixel_size): Reverse assq_no_quit args.
18719
18720 * w32term.h (FONT_WIDTH): Report max width, not average.
18721 (FONT_MAX_WIDTH): Remove.
18722 (FONT_AVG_WIDTH): New macro.
18723
18724 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18725 redefinition of FONT_WIDTH.
18726
18727 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18728 (w32_cache_char_metrics): Use FONT_WIDTH.
18729
18730 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18731
187322008-02-01 Jason Rumney <jasonr@gnu.org>
18733
18734 * w32font.c (w32font_open): Make lfHeight negative.
18735
18736 * w32fns.c (x_default_font_parameter): Use new style font name.
18737 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18738
187392008-02-01 Jason Rumney <jasonr@gnu.org>
18740
18741 * w32font.c (QCsubranges): New symbol.
18742 (w32font_open, w32font_has_char): Get subranges from subproperty
18743 of extra.
18744 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18745 (syms_of_w32font): Define :subranges symbol.
18746
18747 * font.c (font_put_extra): Expose externally.
18748
18749 * font.h (font_put_extra): Move declaration from font.c.
18750
18751 * font.c (Ffont_get): Use font driver to determine otf capability.
18752 (adjust_anchor): Check if driver defines anchor_point before using.
18753
18754 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18755 (w32font_draw): Use options.
18756 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18757 Fix detection of truetype fonts.
18758 (registry_to_w32_charset): Handle charsets other than iso8859-1
18759 expressed as lisp symbols.
18760 (w32_registry): Express charset as lisp symbol.
18761 (fill_in_logfont): Reverse pixel and point height logic.
18762 Don't set width here. Set quality to default.
18763
18764 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18765 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18766
18767 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18768 Remove redundant loop and allocation.
18769
18770 * makefile.w32-in (font.o, w32font.o): New objects.
18771 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18772 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18773
18774 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18775 STORE_XCHARB a valid l-value.
18776
18777 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18778 calculations for non-Truetype fonts.
18779 (x_draw_glyph_string): Sync with xterm.c.
18780 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18781 Remove redundant code.
18782 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18783
18784 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18785 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18786
18787 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18788 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18789
18790 * w32font.c: New file for w32 font backend.
18791
187922008-02-01 Kenichi Handa <handa@m17n.org>
18793
18794 * term.c: Don't include "buffer.h" twice.
18795
187962008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * character.c (Funibyte_string): New function.
18799 (syms_of_character): Defsubr it.
18800
188012008-02-01 Jason Rumney <jasonr@gnu.org>
18802
18803 * w32term.c [USE_FONT_BACKEND]:
18804 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18805 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18806 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18807 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18808 (x_free_frame_resources): Sync with xterm.c.
18809
188102008-02-01 Andreas Schwab <schwab@suse.de>
18811
18812 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18813 char-table size.
18814
188152008-02-01 Kenichi Handa <handa@m17n.org>
18816
18817 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18818
188192008-02-01 Kenichi Handa <handa@m17n.org>
18820
18821 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18822 font_otf_gpos, add font_drive_otf.
18823
18824 * fontset.c (fontset_find_font): Pay attention to font size
18825 specified for a font.
18826 (reorder_font_vector): Check contents of font_def.
18827
18828 * font.c (struct otf_list): Delete it.
18829 (otf_list): Make it a lisp variable.
18830 (otf_open): Use lispy otf_list.
18831 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18832 (check_otf_features): New function.
18833 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18834 New functions.
18835 (font_drive_otf): New function merging font_otf_gsub and
18836 font_otf_gpos.
18837 (font_open_for_lface): New arg spec. Change argument order.
18838 (font_load_for_face): Adjust for the change of font_open_for_lface.
18839 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18840 Ffont_otf_gpos.
18841 (syms_of_font): Staticpro otf_list. Delete defsubr of
18842 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18843
18844 * xfaces.c (set_font_frame_param): Adjust for the change of
18845 font_open_for_lface.
18846
18847 * font.h (font_open_for_lface): Adjust prototype.
18848 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18849 member otf_drive.
18850 (font_otf_gsub, font_otf_gpos): Delete externs.
18851 (font_drive_otf): Extern it.
18852
188532008-02-01 Kenichi Handa <handa@m17n.org>
18854
18855 * font.c (font_at): If the window W is not on a window system,
18856 return Qnil.
18857
18858 * coding.c (produce_chars, encode_coding): Don't call
18859 insert_from_gap if no characters to produce.
18860
188612008-02-01 Kenichi Handa <handa@m17n.org>
18862
18863 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18864 Fclear_face_cache.
18865
18866 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18867
188682008-02-01 Miles Bader <miles@gnu.org>
18869
18870 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18871 Parse "--disable-font-backend" option.
18872 (standard_args): Add "--disable-font-backend" option.
18873
188742008-02-01 Kenichi Handa <handa@m17n.org>
18875
18876 * fontset.c (fontset_find_font): New function.
18877 (fontset_font): Use fontset_find_font.
18878 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18879 Register the specified font for all Latin characters.
18880 (new_fontset_from_font): Register the specified font for all Latin
18881 characters.
18882 (dump_fontset): For a realized fontset, include the base fontset
18883 name in the returned vector.
18884
188852008-02-01 Kenichi Handa <handa@m17n.org>
18886
18887 * character.h (CHAR_STRING): Cast C to unsigned on calling
18888 char_string.
18889
18890 * character.c (char_string): Type of arg C changed to unsigned.
18891 Signal an error if C is an invalid character code.
18892
18893 * editfns.c (general_insert_function, Fchar_to_string):
18894 Use CHARACTERP, not INTEGERP.
18895
188962008-02-01 Kenichi Handa <handa@m17n.org>
18897
18898 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18899 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18900
18901 * regex.c (analyse_first): Fix for multibyte characters in "case
18902 charset:" and "case categoryspec:".
18903
189042008-02-01 Andreas Schwab <schwab@suse.de>
18905
18906 * Makefile.in (LIBES): Move standard libraries to the end.
18907
189082008-02-01 Kenichi Handa <handa@m17n.org>
18909
18910 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18911 nonzero, don't shrink the buffer nextb.
18912
18913 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18914
18915 * coding.c (coding_alloc_by_making_gap): New arg offset.
18916 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18917 offset.
18918 (decode_coding_iso_2022): Update coding->safe_charsets.
18919 (decode_coding_gap): Temporarily set
18920 current_buffer->text->inhibit_shrinking to 1.
18921
189222008-02-01 Kenichi Handa <handa@m17n.org>
18923
18924 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18925 indexing into elements of s->cmp and s->char2b.
18926
189272008-02-01 Juanma Barranquero <lekktu@gmail.com>
18928
18929 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18930
189312008-02-01 Kenichi Handa <handa@m17n.org>
18932
18933 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18934 target_multibyte instead of multibyte.
18935 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18936 (bcmp_translate): Change the argument name from multibyte to
18937 target_multibyte.
18938
189392008-02-01 Kenichi Handa <handa@m17n.org>
18940
18941 These changes are to compile a regexp into a pattern that can be
18942 used both for multibyte and unibyte targets.
18943
18944 * Makefile.in (search.o): Depend on charset.h.
18945
18946 * character.c (multibyte_char_to_unibyte_safe): New function.
18947
18948 * search.c: Include "charset.h".
18949 (compile_pattern_1): Delete argument multibyte. Don't set
18950 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18951 (compile_pattern): Don't compare cp->buf.target_multibyte.
18952 Compare cp->buf.charset_unibyte.
18953 (compile_pattern): Set cp->buf.target_multibyte.
18954
18955 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18956
18957 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18958
18959 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18960 multibyte. Change callers.
18961 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18962 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18963 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18964 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18965 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18966 (regex_compile): Make the compiled pattern usable both for
18967 multibyte and unibyte targets.
18968 (analyse_first): Make the fastmap usable both for multibyte and
18969 unibyte targets.
18970 (TRANSLATE_VIA_MULTIBYTE): Delete.
18971 (re_match_2_internal): Pay attention to the case that the
18972 multibyteness of bufp and target may be different.
18973
189742008-02-01 Kenichi Handa <handa@m17n.org>
18975
18976 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18977 empty box occupy at least one column width.
18978
189792008-02-01 Miles Bader <miles@gnu.org>
18980
18981 * Makefile.in: Remove redundant HAVE_XFT clause.
18982
189832008-02-01 Kenichi Handa <handa@m17n.org>
18984
18985 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18986
189872008-02-01 Kenichi Handa <handa@m17n.org>
18988
18989 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18990 being nil.
18991
189922008-02-01 Kenichi Handa <handa@m17n.org>
18993
18994 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18995
189962008-02-01 Kenichi Handa <handa@m17n.org>
18997
18998 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18999
190002008-02-01 Kenichi Handa <handa@m17n.org>
19001
19002 * search.c (simple_search): Fix previous change.
19003
190042008-02-01 Kenichi Handa <handa@m17n.org>
19005
19006 * xftfont.c (ftfont_font_format): Extern declaration.
19007
19008 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19009
19010 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19011 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19012
19013 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19014 (ftfont_font_format): Fix previous change.
19015
19016 * font.h (Ffont_xlfd_name): EXFUN it.
19017
19018 * font.c (font_parse_xlfd): Fix the array size of `f'.
19019 (register_font_driver): Use EQ to compare driver->type.
19020
19021 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19022 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19023 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19024
190252008-02-01 Kenichi Handa <handa@m17n.org>
19026
19027 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19028 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19029
190302008-02-01 Kenichi Handa <handa@m17n.org>
19031
19032 * xfont.c (xfont_open): Set font->format.
19033
19034 * xftfont.c (xftfont_open): Set font->format.
19035
19036 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19037 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19038 (ftfont_open): Set font->format.
19039 (ftfont_font_format): New function.
19040
19041 * font.h (struct font): New member format.
19042
19043 * font.c (Qopentype): New variable.
19044 (syms_of_font): Defsym it.
19045 (Fquery_font): Change the format of the last element of the return
19046 value.
19047
190482008-02-01 Kenichi Handa <handa@m17n.org>
19049
19050 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19051 last resort.
19052
190532008-02-01 Kenichi Handa <handa@m17n.org>
19054
19055 * coding.c (detect_coding_charset): Fix detection of multi-byte
19056 charset.
19057
190582008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19059
19060 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19061
190622008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * xdisp.c (get_next_display_element): Set it->face_id for the
19065 first component of a composition.
19066 (x_produce_glyphs): Check if the font is changed or not for composition.
19067
190682008-02-01 Kenichi Handa <handa@m17n.org>
19069
19070 * fontset.c (Qlatin): New variable.
19071 (syms_of_fontset): Define it as a lisp symbol.
19072 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19073
190742008-02-01 Kenichi Handa <handa@m17n.org>
19075
19076 * font.c (font_unparse_fcname): Pay attention to the case that
19077 some of font property is a null string.
19078
190792008-02-01 Kenichi Handa <handa@m17n.org>
19080
19081 * term.c: Include "composite.h".
19082 (encode_terminal_code): Output all components of composition.
19083 Check the size of encode_terminal_src.
19084 (produce_glyphs): For composition, call produce_composite_glyph.
19085 (append_composite_glyph, produce_composite_glyph): New functions.
19086
19087 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19088 is not found, get font_info from the current ascii face.
19089
190902008-02-01 Kenichi Handa <handa@m17n.org>
19091
19092 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19093 buffer-file-name to Qnil before calling insert_from_buffer.
19094
19095 * font.c (font_unparse_fcname): Pay attention to the case that
19096 foundry is a null string.
19097
190982008-02-01 Kenichi Handa <handa@m17n.org>
19099
19100 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19101
19102 * font.c (Qunicode_sip): New variable.
19103 (syms_of_font): Declare it as a Lisp symbol.
19104
19105 * font.h (Qunicode_sip): Extern it.
19106
191072008-02-01 Kenichi Handa <handa@m17n.org>
19108
19109 * composite.c (get_composition_id): Pay attention to TAB component.
19110
19111 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19112 TAB. Adjust for the change of s->char2b which always points to
19113 the first element of allocated memory.
19114
19115 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19116
19117 * xdisp.c (handle_composition_prop): Set it->c to the first
19118 non-TAB component.
19119 (fill_composite_glyph_string): Change argument.
19120 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19121 (x_produce_glyphs): Fix handling of left/right padding.
19122
191232008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * coding.c (detect_coding_system): Fix for handling off
19126 inhibit_iso_escape_detection. Fix for the case that no coding
19127 system is defined for a specific coding category.
19128
191292008-02-01 Kenichi Handa <handa@m17n.org>
19130
19131 * font.c (font_matching_entity): Delete unused local var.
19132
19133 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19134 opening a font.
19135
19136 * fileio.c (Finsert_file_contents): On recovering a file, assume
19137 Unix-like eol.
19138 (choose_write_coding_system): On auto-saving a file, force
19139 Unix-like eol.
19140
19141 * coding.c (setup_coding_system): Fix setting of
19142 coding->common_flags based on eol_type.
19143 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19144 inherit from it.
19145
191462008-02-01 Kenichi Handa <handa@m17n.org>
19147
19148 * alloc.c (NSTATICS): Increas to 0x600.
19149
191502008-02-01 Kenichi Handa <handa@m17n.org>
19151
19152 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19153 (ftfont_list): Don't check :name property.
19154 (ftfont_match): New function.
19155 (ftfont_pattern_entity): If the pattern doesn't contain
19156 FC_SPACING, don't assume FC_MONO.
19157
19158 * font.h (struct font_driver): New member `match'.
19159 (font_update_drivers): Adjust prototype.
19160
19161 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19162 property of FONT.
19163 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19164 them unconditionally.
19165 (font_matching_entity): New function.
19166 (font_open_by_name): Try font_matching_entity if exact match is
19167 not found.
19168 (font_update_drivers): Delete the arg FONT. Return a list of
19169 actually used backends. Don't free faces, font caches here.
19170 Don't store data in frame parameters. Don't call x_set_font.
19171 (Ffont_spec): Store :name property as is.
19172 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19173 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19174 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19175 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19176 Call font->driver->otf_gsub instead of font_otf_gsub.
19177
19178 * frame.c (x_set_font_backend): Do more works that were done in
19179 font_update_drivers before.
19180
19181 * xfont.c (xfont_match): New function.
19182 (xfont_driver): Set xfont_driver.match to xfont_match.
19183 (xfont_draw): Set font in GC if necessary.
19184
19185 * ftxfont.c (ftxfont_match): New function.
19186 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19187
19188 * xftfont.c (xftfont_match): New function.
19189 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19190
191912008-02-01 Kenichi Handa <handa@m17n.org>
19192
19193 * font.h (struct font): New member scalable.
19194 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19195 (font_otf_gsub): Adjust prototype.
19196
19197 * font.c (font_otf_capability): Fix handling of the default langsys.
19198 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19199 Check the contents of SPEC.
19200 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19201 (check_gstring): New function.
19202 (REPLACEMENT_CHARACTER): New macro.
19203 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19204 glyph codes of GSTRING.
19205 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19206 (font_prepare_composition): Set cmp->glyph_len.
19207 (font_open_entity): Set font->scalable.
19208 (Ffont_get): Handle :otf property.
19209 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19210 functions.
19211 (Fquery_font): Use font->font.full_name.
19212 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19213 Sfont_otf_alternates.
19214
19215 * ftfont.c (ftfont_open): Set font->font.full_name and
19216 font->font.name properly. Fix calculation of font->font.height
19217 and font->min_width.
19218
19219 * ftxfont.c (ftxfont_create_gcs): New function.
19220 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19221 (ftxfont_draw_backgrond): Fix filling region.
19222 (ftxfont_default_fid): New function.
19223 (ftxfont_open): Set xfont->fid to the return value of
19224 ftxfont_default_fid.
19225 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19226 (ftxfont_done_face): Free only GCs that are created by
19227 ftxfont_create_gcs.
19228 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19229
19230 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19231 Clip to src->width, etc (not src->clip_XXX).
19232
19233 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19234 FontBackend frame parameter.
19235
192362008-02-01 Kenichi Handa <handa@m17n.org>
19237
19238 * font.h (struct font_driver_list): New member `on'.
19239 (Fclear_font_cache): EXFUN it.
19240 (font_update_drivers): Extern it.
19241
19242 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19243 (font_list_entities): Check driver_list->on.
19244 (register_font_driver): Initalize `on' member to 0.
19245 (font_update_drivers): New function.
19246 (Fclear_font_cache): Check driver_list->on.
19247
19248 * frame.h (Qfont_backend): Extern it.
19249 (x_set_font_backend): Extern it.
19250
19251 * frame.c (Qfont_backend): New variable.
19252 (frame_parms): New element for font-backend.
19253 (x_set_font_backend): New function.
19254
19255 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19256 FontBackend frame parameter.
19257 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19258 x_set_font_backend.
19259
19260 * xfont.c (xfont_list): Don't try listing by :name property if the
19261 name is not for XLFD.
19262
192632008-02-01 Kenichi Handa <handa@m17n.org>
19264
19265 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19266 (LGLYPH_SET_TO): New macros.
19267 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19268 element of G is vector or not.
19269 (font_at): Extern it.
19270
19271 * font.c: Include window.h.
19272 (font_lispy_object): New function.
19273 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19274 end of valid glyph.
19275 (font_close_object): Fix getting (struct font *).
19276 (font_at): New function.
19277 (Ffont_get): If FONT is a font-object, get entity from it.
19278 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19279 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19280 range check.
19281 (Ffont_at): New function.
19282 (syms_of_font): Defsubr Sfont_at.
19283
19284 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19285 before the entry for Qcomposition.
19286 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19287 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19288 the font in gstring.
19289 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19290 LGLYPH_FORM (g) to detect the end of valid glyph.
19291 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19292 we are composing with gstring.
19293
19294 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19295 Check if adjustment is vector or not.
19296
19297 * Makefile.in (font.o): Make it depends on window.h.
19298
192992008-02-01 Kenichi Handa <handa@m17n.org>
19300
19301 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19302 adjustment is vector or not.
19303
193042008-02-01 Miles Bader <miles@gnu.org>
19305
19306 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19307
193082008-02-01 Kenichi Handa <handa@m17n.org>
19309
19310 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19311 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19312 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19313
19314 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19315 (DEVICE_DELTA): Fix typo.
19316 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19317 LGLYPH format.
19318
19319 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19320 the change of LGLYPH format.
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * ftfont.c (ftfont_list): Fix typo.
19325 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19326
193272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19328
19329 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19330
19331 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19332 xftface_info is non-NULL.
19333
193342008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19335
19336 * ftfont.c (ftfont_list): Move misplaced #endif.
19337
193382008-02-01 Kenichi Handa <handa@m17n.org>
19339
19340 * ftfont.c (ftfont_list): Pay attention to the case that
19341 FC_CAPABILITY is not defined.
19342
193432008-02-01 Kenichi Handa <handa@m17n.org>
19344
19345 * xftfont.c (xftfont_open): Set charset related members to -1.
19346
19347 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19348 QCname.
19349 (ftfont_open): Set charset related members to -1.
19350
19351 * fontset.c (Votf_script_alist): New variable.
19352 (syms_of_fontset): Initialize it.
19353 (fontset_font): Delete unused variable.
19354
19355 * fontset.h (Votf_script_alist): Extern it.
19356
19357 * font.c (font_find_for_lface): Optimize code.
19358
19359 * font.h (font_close_object, font_merge_old_spec): Extern them.
19360
193612008-02-01 Kenichi Handa <handa@m17n.org>
19362
19363 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19364 (syms_of_font): Initialize them.
19365 (font_pixel_size): Allow float value in dpi.
19366 (font_prop_validate_type): Delete.
19367 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19368 Change caller.
19369 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19370 (font_prop_validate_extra): Delete.
19371 (font_prop_validate_spacing): New function.
19372 (font_property_table): Add elements for all known properties.
19373 (get_font_prop_index): Rename from check_font_prop_name. New
19374 argument FROM. Change caller.
19375 (font_prop_validate): Validate all known properties.
19376 (font_put_extra): Delete argument force. Change caller.
19377 (font_expand_wildcards): Make it static. Fix the way of shrinking
19378 the possible range.
19379 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19380 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19381 Change caller.
19382 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19383 (font_parse_fcname): Delete argument merge. Fix parsing of point
19384 size. Don't validate properties values here. Change caller.
19385 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19386 (font_open_by_name): Delete unused variable.
19387 (Ffont_spec): Likewise. Validate property values.
19388 (Ffont_match_p): New function.
19389
19390 * font.h (QCscalable): Extern it.
19391 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19392
19393 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19394
19395 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19396 (xfont_list_pattern): New function.
19397 (xfont_list): Use xfont_list_pattern.
19398
193992008-02-01 Kenichi Handa <handa@m17n.org>
19400
19401 * font.h (Flist_fonts): EXFUN it.
19402
194032008-02-01 Jason Rumney <jasonr@gnu.org>
19404
19405 * w32term.c (w32_initialize): Add back smoothing_type and
19406 smoothing_enabled definitions.
19407
194082008-02-01 Kenichi Handa <handa@m17n.org>
19409
19410 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19411 s->face->font on determining underline position.
19412
194132008-02-01 Kenichi Handa <handa@m17n.org>
19414
19415 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19416 (font_has_char): Accept font-object too.
19417 (font_find_for_lface): Try at first with a size specified in face.
19418
194192008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19422 font_open_by_name.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * font.h (QCspacing, QCdpi): Extern them.
19427 (enum font_spacing): New enum.
19428 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19429
19430 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19431 (QCspacing, QCdpi): New variables.
19432 (syms_of_font): Initialize them.
19433 (font_pixel_size): New function.
19434 (font_put_extra): New function.
19435 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19436 in FONT_EXTRA.
19437 (font_parse_fcname): Handle enumerated values (e.g. bold).
19438 Fix handling font size. Add QCname property that contains only
19439 unknown properties.
19440 (font_score): Change argument. Change caller. Pay attention to
19441 FONT_PIXEL_SIZE_QUANTUM.
19442 (font_sort_entites, font_list_entities, font_find_for_lface)
19443 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19444 (Ffont_spec): Add QCname property that contains only unknown properties.
19445
19446 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19447 include weight in listing pattern, instead check weight of each
19448 listed font. Don't include scalable in pattern. Pay attention to
19449 FONT_PIXEL_SIZE_QUANTUM.
19450
194512008-02-01 Kenichi Handa <handa@m17n.org>
19452
19453 * font.c (font_parse_fcname): Fix parsing of point-size.
19454 (font_unparse_fcname): Produce symbolic names for style properties.
19455 (font_list_entities): Handle float size correctly.
19456 (font_open_by_name): Prefer `normal' property values if the name
19457 doesn't specify them.
19458
19459 * fontset.c (Finternal_char_font): Use font_get_name, not
19460 Ffont_xlfd_name.
19461
19462 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19463 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19464 pattern. Don't force scalable.
19465
19466 * xftfont.c (xftfont_open): For generating a name, start from
19467 96-byte buffer.
19468
194692008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19470
19471 * frame.h (x_new_fontset2): Fix prototype.
19472
194732008-02-01 Kenichi Handa <handa@m17n.org>
19474
19475 * font.h (struct font_driver): Delete member parse_name.
19476 (font_match_p, font_get_spec, font_parse_fcname)
19477 (font_unparse_fcname): Extern them.
19478 (font_get_name): Adjust prototype.
19479
19480 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19481 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19482 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19483 unnecessary checks for weight, slant, and swidth.
19484 (font_parse_fcname): New function.
19485 (font_unparse_fcname): New function.
19486 (font_parse_name): New function.
19487 (font_match_p): New function.
19488 (font_get_name): Change return value to Lisp string.
19489 (font_get_spec): New function.
19490 (Qunspecified, Qignore_defface): Don't extern them.
19491 (font_find_for_lface): Assume that LFACE is fully specified.
19492 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19493 object, use it for FACE.
19494 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19495 driver->parse_name.
19496 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19497
19498 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19499 prototype.
19500
19501 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19502 argument F. Don't call Fnew_fontset. Instead, directly call
19503 make_fontset.
19504
19505 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19506
19507 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19508 of x_new_fontset2.
19509
19510 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19511 (Qsans__serif): New variables.
19512 (ftfont_generic_family_list): New variable.
19513 (syms_of_ftfont): Initialize the above variables.
19514 (ftfont_pattern_entity): Delete argument NAME.
19515 (ftfont_list_generic_family): New function.
19516 (ftfont_parse_name): Delete this function.
19517 (ftfont_list): Try generic family only when FcFontList found no font.
19518 (ftfont_list_family): Fix args to FcObjectSetBuild.
19519
19520 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19521 object in attrs[LFACE_FONT_INDEX].
19522 (set_lface_from_font_name): Cancel all changes for font-backend.
19523 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19524 function.
19525 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19526 font object in QCfont attribute.
19527 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19528 (realize_default_face) [USE_FONT_BACKEND]: Call
19529 set_lface_from_font_and_fontset.
19530
19531 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19532 "fixed", and signal error here if no suitable font was found.
19533
19534 * xfont.c (xfont_parse_name): Delete this function.
19535
19536 * xftfont.c (xftfont_open): Change coding style of error
19537 handling. Generate fontconfig's fontname pattern.
19538
19539 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19540 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19541
19542 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19543 Both args FONTSET and FONT_OBJECT must be existing ones.
19544
195452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19546
19547 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19548
195492008-02-01 Kenichi Handa <handa@m17n.org>
19550
19551 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19552
19553 * font.h (struct font): Fix typo.
19554
19555 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19556 XLFD_XXX_INDEX.
19557 (enum xlfd_field_mask): New enum.
19558 (intern_font_field): Changed argument. Change caller. If digits
19559 are followed by non-digits, return a symbol.
19560 (font_expand_wildcards): New function.
19561 (font_parse_xlfd): Fix wildcard handling.
19562 (Ffont_spec): If :name is specified, reflect the info in the other
19563 properties.
19564
19565 * ftfont.c (ftfont_pattern_entity): Fix typo.
19566 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19567 locale.
19568
195692008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19572
19573 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19574 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19575 registry doesn't specify encoding part.
19576 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19577 (font_open_by_name): At first try parsing the name.
19578 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19579 as Lisp symbols.
19580
19581 * fontset.c (reorder_font_vector): Pay attention to the case that
19582 the 3rd element of font_def is nil.
19583 (fontset_font): For the default fontset, append one more fontset
19584 elements for a script-based font specification. Don't add script
19585 attribute on finding a font.
19586 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19587 font name.
19588 (fontset_ascii_font): If a font can't be opened, return nil.
19589
19590 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19591 (ftfont_pattern_entity): New function.
19592 (ftfont_get_cache): Assume that freetype_font_cache is already
19593 initialized.
19594 (ftfont_list): Handle the case that a file is specified in font
19595 name. Use ftfont_pattern_entity to generate entities.
19596 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19597 (syms_of_ftfont): Initialize freetype_font_cache.
19598
19599 * xftfont.c (xftfont_open): Make the font name fontconfig's
19600 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19601 (xftfont_close): Free font->font.name if not NULL.
19602
19603 * xfont.c (xfont_list): If script is specified for a font, return
19604 null_vector.
19605 (xfont_list_family): Declare argument type.
19606
19607 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19608 name, set LFACE_FONT (lface) to nil.
19609
19610 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19611 return Qnil.
19612
196132008-02-01 Kenichi Handa <handa@m17n.org>
19614
19615 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19616 (standard_args): Add "-enable-font-backend".
19617
196182008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19621 (struct xftdraw_list, xftdraw_list): Delete them.
19622 (register_xftdraw, check_xftdraw): Delete them.
19623 (xftfont_prepare_face): Don't call register_xftdraw.
19624 (xftfont_done_face): Don't call check_xftdraw.
19625 (xftfont_draw): Get background color only when with_background is
19626 nonzero.
19627
19628 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19629
196302008-02-01 Kenichi Handa <handa@m17n.org>
19631
19632 These changes are for the new font handling codes.
19633
19634 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19635 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19636 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19637 (FONTSRC, FONTOBJ): New variables.
19638 (obj): Add $(FONTOBJ).
19639 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19640 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19641 @LIBOTF_LIBS@.
19642 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19643 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19644
19645 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19646
19647 * character.h (Vscript_representative_chars): Extern it.
19648
19649 * character.c (Vscript_representative_chars): New variable.
19650 (syms_of_character): Declare it as a Lisp variable.
19651
19652 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19653 enable_font_backend is nonzero, accept the composition method
19654 COMPOSITION_WITH_GLYPH_STRING.
19655
19656 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19657 enumeration COMPOSITION_WITH_GLYPH_STRING.
19658
19659 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19660 members clip_x, clip_y, clip_width, and clip_height.
19661 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19662
19663 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19664 --enable-font-backend. Call syms_of_font.
19665
19666 * fns.c (assoc_no_quit): New function.
19667
19668 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19669 (face_for_font, new_fontset_from_font)
19670 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19671
19672 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19673 (fontset_font, fontset_ascii, face_for_char)
19674 (make_fontset_for_ascii_face, Ffont_info)
19675 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19676 is nonzero, use font-backend mechanism.
19677 (find_font_encoding): Make it non-static.
19678 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19679 New functions.
19680
19681 * frame.h (struct frame): New members resx and resy.
19682 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19683 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19684
19685 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19686 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19687
19688 * lisp.h (assoc_no_quit): Extern it.
19689
19690 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19691 Through out the file, use FONT_INFO_FROM_FACE instead of
19692 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19693 rif->per_char_metric.
19694 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19695 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19696 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19697 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19698 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19699 nonzero, use font-backend mechanism.
19700 (get_per_char_metric): New function.
19701
19702 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19703 (set_lface_from_font_name)
19704 (set_font_frame_param, free_realized_face)
19705 (prepare_face_for_display, clear_face_gcs)
19706 (Finternal_set_font_selection_order, realize_x_face)
19707 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19708 font-backend mechanism.
19709 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19710 (load_face_font) [USE_FONT_BACKEND]: Abort.
19711 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19712 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19713
19714 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19715 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19716 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19717 nonzero, register all available font drivers. Call
19718 x_default_font_parameter for deciding a font.
19719 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19720
19721 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19722 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19723 (x_set_glyph_string_clipping_exactly)
19724 (x_compute_glyph_string_overhangs)
19725 (x_draw_glyph_string_foreground)
19726 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19727 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19728 enable_font_backend is nonzero, use font-backend mechanism.
19729 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19730
197312008-02-01 Kenichi Handa <handa@m17n.org>
19732
19733 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19734 system_eol_type.
19735 (syms_of_coding): Initialize system_eol_type.
19736
19737 * process.c (Fset_process_coding_system): Inherit system's eol
19738 format if necessary.
19739
197402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19741
19742 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19743
197442008-02-01 Kenichi Handa <handa@m17n.org>
19745
19746 * coding.c (decode_eol): Pay attention to buffer relocation in
19747 del_range_2.
19748 (decode_coding): Call decode_eol before restoring undo_list.
19749
197502008-02-01 Kenichi Handa <handa@m17n.org>
19751
19752 * charset.c (Fdefine_charset_internal): Fix setting of
19753 emacs_mule_bytes.
19754
197552008-02-01 Kenichi Handa <handa@m17n.org>
19756
19757 * keyboard.c (read_char): Check if C is a character or not before
19758 looking up Vkeyboard_translate_table.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19763 condition to terminate the loop.
19764
197652008-02-01 Kenichi Handa <handa@m17n.org>
19766
19767 * coding.c (produce_composition): Compare charbuf[i] instead of
19768 args[i] against 0.
19769 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19770
197712008-02-01 Kenichi Handa <handa@m17n.org>
19772
19773 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19774 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19775 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19776 detect_coding.
19777 (emacs_mule_char): Handle old style (Emacs 20) component character
19778 of a composition.
19779 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19780 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19781 composition rule.
19782 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19783
197842008-02-01 Kenichi Handa <handa@m17n.org>
19785
19786 * coding.c (encode_coding_ccl): Allocate destination dynamically
19787 when necessary.
19788
197892008-02-01 Kenichi Handa <handa@m17n.org>
19790
19791 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19792 the loop. When quitted, show a proper error message.
19793
197942008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19797 src->clip_head and src->clip_tail temporarily instead of src->hl.
19798
19799 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19800 character sequence.
19801 (Fccl_execute_on_string): Use ASET, not XSET.
19802
198032008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19806
198072008-02-01 Kenichi Handa <handa@m17n.org>
19808
19809 * coding.c (decode_coding): Fix the condition of terminating the
19810 decoding loop.
19811
198122008-02-01 Kenichi Handa <handa@m17n.org>
19813
19814 * data.c (Faset): On setting a character bigger than 255 in a
19815 unibyte string, signal an error instead of make the string multibyte.
19816
198172008-02-01 Kenichi Handa <handa@m17n.org>
19818
19819 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19820 made by a mapping table.
19821
198222008-02-01 Kenichi Handa <handa@m17n.org>
19823
19824 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19825 not.
19826 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19827 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19828
19829 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19830 s->face is NULL or not.
19831
198322008-02-01 Kenichi Handa <handa@m17n.org>
19833
19834 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19835 (x_draw_glyph_string): Fix drawing of right_overhang and
19836 left_overhang around/on cursor.
19837
19838 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19839
198402008-02-01 Kenichi Handa <handa@m17n.org>
19841
19842 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19843
198442008-02-01 Kenichi Handa <handa@m17n.org>
19845
19846 * coding.c (Fdefine_coding_system_internal)
19847 (Fdefine_coding_system_alias): Avoid a duplicated element in
19848 Vcoding_system_alist.
19849
198502008-02-01 Kenichi Handa <handa@m17n.org>
19851
19852 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19853
19854 * coding.c (Qcoding_system_define_form): New variable.
19855 (syms_of_coding): Intern and staticpro it.
19856 (Fcoding_system_p): Check Qcoding_system_define_form.
19857 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19858
19859 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19860 Fcoding_system_p.
19861 (CHECK_CODING_SYSTEM): If ID is not available, call
19862 Fcheck_coding_system.
19863 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19864 Try also Fcheck_coding_system.
19865
198662008-02-01 Kenichi Handa <handa@m17n.org>
19867
19868 * coding.c (code_conversion_restore): GCPRO arg.
19869
198702008-02-01 Kenichi Handa <handa@m17n.org>
19871
19872 * character.c (lisp_string_width): Check multibyteness of STRING.
19873
198742008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19875
19876 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19877 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19878 (decode_mac_font_name): Use decode_coding_c_string instead of
19879 decode_coding.
19880 (x_load_font): Initialize fontp->fontset to -1. Set
19881 fontp->encoding_type.
19882
198832008-02-01 Kenichi Handa <handa@m17n.org>
19884
19885 * search.c (search_buffer): Give up BM search on case-fold-search
19886 if one of a target character has a case-equivalence of different
19887 byte length even if that target charcter is an ASCII.
19888 (simple_search): Fix calculation of byte length of matched text.
19889 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19890
198912008-02-01 Kenichi Handa <handa@m17n.org>
19892
19893 * coding.c (decode_coding): Fix handling of invalid bytes.
19894
198952008-02-01 Kenichi Handa <handa@m17n.org>
19896
19897 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19898 Unicode characters.
19899
199002008-02-01 Kenichi Handa <handa@m17n.org>
19901
19902 * coding.c (encode_coding_object): If a pre-write-conversion
19903 function makes a new buffer, kill it.
19904
199052008-02-01 Kenichi Handa <handa@m17n.org>
19906
19907 * coding.c (QCascii_compatible_p): New variable.
19908 (syms_of_coding): Initialize it.
19909 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19910 calling string_char.
19911 (record_conversion_result): Add `default:' case.
19912 (coding_charset_list): Delete unused variable `coding_type'.
19913 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19914 property in the plist of the coding system.
19915 (Fcoding_system_put): Check QCascii_compatible_p.
19916
199172008-02-01 Miles Bader <miles@gnu.org>
19918
19919 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19920 removed calculation of frame `f', as it's now used.
19921
199222008-02-01 Kenichi Handa <handa@m17n.org>
19923
19924 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19925 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19926 (UNIDATA): New variable.
19927 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19928 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19929 $(RUN_TEMACS) unconditionally.
19930
199312008-02-01 Kenichi Handa <handa@m17n.org>
19932
19933 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19934 (admindir): New variable.
19935 ($(lispsource)international/charprop.el): New target.
19936
199372008-02-01 Miles Bader <miles@gnu.org>
19938
19939 * character.c (chars-in-region): Remove obsolete function.
19940 (syms_of_character): Remove its initialization.
19941
199422008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19943
19944 * w32select.c (validate_coding_system)
19945 (setup_windows_coding_system): New functions.
19946 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19947 setup_windows_coding_system.
19948 (setup_config, Fw32_get_clipboard_data): Use
19949 validate_coding_system.
19950 (Fx_selection_exists): Move call to setup_config to a place
19951 where signals are allowed.
19952
19953 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19954 (Fcheck_coding_system): Add declarations.
19955
199562008-02-01 Kenichi Handa <handa@m17n.org>
19957
19958 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19959
199602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19961
19962 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19963 string as the second argument for x_new_fontset.
19964
199652008-02-01 Kenichi Handa <handa@m17n.org>
19966
19967 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19968 (encode_coding_object): Use safe_call instead of call2.
19969
199702008-02-01 Kenichi Handa <handa@m17n.org>
19971
19972 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19973
19974 * Makefile.in (lisp): Include charprop.el.
19975
199762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19977
19978 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19979 Not sure if it's unnecessary.
19980
199812008-02-01 Steven Tamm <steventamm@mac.com>
19982
19983 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19984 some possibly unnecessary fontset checking code that crashed
19985 when creating a new frame.
19986
199872008-02-01 Kenichi Handa <handa@m17n.org>
19988
19989 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19990 lookup_face.
19991
19992 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19993
19994 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19995
199962008-02-01 Kenichi Handa <handa@m17n.org>
19997
19998 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19999 (coding_charset_list): New function.
20000
20001 * coding.h (coding_charset_list): Extern it.
20002
200032008-02-01 Kenichi Handa <handa@m17n.org>
20004
20005 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20006 concatenation of family and registry.
20007
200082008-02-01 Kenichi Handa <handa@m17n.org>
20009
20010 * character.h (BYTE8_STRING): Fix typo.
20011
20012 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20013 string to multibyte (sync to HEAD).
20014
20015 * casefiddle.c (casify_region): Handle changes in byte-length
20016 using replace_range_2 (sync to HEAD).
20017
200182008-02-01 Andreas Schwab <schwab@suse.de>
20019
20020 * chartab.c (map_char_table): GCPRO table and arg.
20021
200222008-02-01 Kenichi Handa <handa@m17n.org>
20023
20024 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20025 already at limit.
20026
200272008-02-01 Kenichi Handa <handa@m17n.org>
20028
20029 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20030 instead of fast_c_string_match_ignore_case.
20031 (find_font_encoding): Change argument to Lisp_Object. Use
20032 fast_string_match_ignore_case instead of
20033 fast_c_string_match_ignore_case. Change caller.
20034
200352008-02-01 Kenichi Handa <handa@m17n.org>
20036
20037 * xdisp.c (get_next_display_element): In unibyte case, decide to
20038 display in octal form by checking a character by
20039 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20040
20041 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20042
20043 * character.c (unibyte_has_multibyte_table): New variable.
20044
20045 * character.h (unibyte_has_multibyte_table): Extern it.
20046 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20047
200482008-02-01 Kenichi Handa <handa@m17n.org>
20049
20050 * coding.c (encode_coding_iso_2022): Fix handling of charset
20051 annotation.
20052
200532008-02-01 Kenichi Handa <handa@m17n.org>
20054
20055 * coding.c (setup_coding_system): If coding_system is nil, use
20056 Qundecided.
20057 (Fterminal_coding_system): Return nil if terminal coding system is
20058 `undecided'.
20059 (syms_of_coding): Define coding-system `undecided' here. Setup
20060 terminal_coding as `undecided'.
20061
200622008-02-01 Kenichi Handa <handa@m17n.org>
20063
20064 * xdisp.c (message_dolog, set_message_1): Call
20065 unibyte_char_to_multibyte with arg type int.
20066
20067 * lread.c (read1): Fix reading of a char-table.
20068
20069 * print.c (print_object): Include sub char-table in circularities
20070 detection.
20071
200722008-02-01 Kenichi Handa <handa@m17n.org>
20073
20074 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20075 Append the found sequences in car of ARGS instead of prepending.
20076
200772008-02-01 Kenichi Handa <handa@m17n.org>
20078
20079 * fileio.c (report_file_error): Make a unibyte string from
20080 strerror (errorno).
20081 (Fsubstitute_in_file_name): Fix the arg to
20082 unibyte_char_to_multibyte. It is evaluated twice.
20083
200842008-02-01 Kenichi Handa <handa@m17n.org>
20085
20086 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20087
200882008-02-01 Kenichi Handa <handa@m17n.org>
20089
20090 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20091 BOM is not found.
20092 (detect_coding, detect_coding_system): Optimization for ISO-2022
20093 when no 8-bit data is found.
20094
200952008-02-01 Jason Rumney <jasonr@gnu.org>
20096
20097 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20098
200992008-02-01 Kenichi Handa <handa@m17n.org>
20100
20101 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20102 CHARS.
20103
201042008-02-01 Steven Tamm <steventamm@mac.com>
20105
20106 * macterm.c (mac_encode_char): Add charset argument and update
20107 to use encoding_type.
20108 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20109 switch to pure fontset.
20110 (decode_mac_font_name): Temporarily remove decoding.
20111 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20112 (x_load_font): Temporarily remove encoding.
20113
201142008-02-01 Kenichi Handa <handa@m17n.org>
20115
20116 * xfaces.c (Fface_font): If frame is not on a window system,
20117 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20118 refer to face->font.
20119 (split_font_name_into_vector, build_font_name_from_vector)
20120 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20121 when HAVE_WINDOW_SYSTEM is defined.
20122
201232008-02-01 Kenichi Handa <handa@m17n.org>
20124
20125 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20126 (x_produce_glyphs): Fix setting of members of cmp in case
20127 cmp->glyph_len is zero.
20128
20129 * fontset.c (Fset_fontset_font): Fix docstring.
20130 (Ffontset_info): Make it backward compatible. New arg ALL.
20131
201322008-02-01 Kim F. Storm <storm@cua.dk>
20133
20134 * process.c (read_process_output): Grow decoding_buf when needed;
20135 this could cause a crash in allocate_string and compact_small_strings.
20136
201372008-02-01 Kenichi Handa <handa@m17n.org>
20138
20139 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20140
201412008-02-01 Kenichi Handa <handa@m17n.org>
20142
20143 * coding.c (setup_coding_system): Set coding->common_flags
20144 correctly for raw-text.
20145 (consume_chars): On encoding unibyte text by raw-text, don't check
20146 multibyte form.
20147 (encode_coding): On encoding by raw-text, never use translation tables.
20148
20149 * fileio.c (e_write): Short cut for the case of no encoding.
20150
201512008-02-01 Kenichi Handa <handa@m17n.org>
20152
20153 * coding.c (detect_coding, detect_coding_system): Delete unused
20154 variables.
20155
201562008-02-01 Kenichi Handa <handa@m17n.org>
20157
20158 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20159 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20160
201612008-02-01 Kenichi Handa <handa@m17n.org>
20162
20163 * coding.c (Ffind_coding_systems_region_internal): Include
20164 raw-text and no-conversion in the result.
20165
201662008-02-01 Kenichi Handa <handa@m17n.org>
20167
20168 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20169 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20170 FONT_DEF.
20171 (font_def_arg, add_arg, from_arg, to_arg): New args.
20172 (set_fontset_font): Change argument.
20173 (Fset_fontset_font): Fix for the case that TARGET is a script
20174 name and charset name.
20175 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20176
201772008-02-01 Kenichi Handa <handa@m17n.org>
20178
20179 * fontset.c (fontset_font): Rename from fontset_face. Change return
20180 value.
20181 (face_suitable_for_char_p, face_for_char): Adjust for the change
20182 of fontset_font.
20183 (make_fontset_for_ascii_face): Fix setting of the fontset element
20184 for ASCII.
20185 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20186 to get a font name.
20187 (Ffontset_info): Adjust for the change of fontset_font.
20188
20189 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20190
20191 * character.h (LEADING_CODE_LATIN_1_MIN)
20192 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20193
201942008-02-01 Kenichi Handa <handa@m17n.org>
20195
20196 * editfns.c (check_translation): New function.
20197 (Ftranslate_region_internal): Handle M:N mapping.
20198
201992008-02-01 Kenichi Handa <handa@m17n.org>
20200
20201 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20202
202032008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20206 goto invalid_code.
20207 (decode_coding_iso_2022): Fix handling of invalid designation.
20208
20209 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20210 after calling code_conversion_save.
20211
202122008-02-01 Kenichi Handa <handa@m17n.org>
20213
20214 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20215
20216 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20217
20218 * fontset.c: Include "intervals.h".
20219 (fontset_face): Fix comparing of Lisp_Objects.
20220 (free_face_fontset, new_fontset_from_font_name): Fix
20221 Lisp_Object/int mixup.
20222
20223 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20224
20225 * coding.c: Add many prototypes for static functions.
20226 (get_translation_table): Allow max_lookup to be NULL.
20227 (decode_coding, Ffind_coding_systems_region_internal)
20228 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20229 get_translation_table with max_lookup NULL.
20230
202312008-02-01 Kenichi Handa <handa@m17n.org>
20232
20233 * coding.c (get_translation_table): Declare it as Lisp_Object.
20234 (LOOKUP_TRANSLATION_TABLE): New macro.
20235 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20236 instead of CHAR_TABLE_REF.
20237
202382008-02-01 Kenichi Handa <handa@m17n.org>
20239
20240 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20241 annotation data format.
20242 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20243 Change arguments FROM and TO to single argument NCHARS. Change caller.
20244 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20245 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20246 (decode_coding_ccl, decode_coding_charset): Pay attention to
20247 coding->charbuf_used.
20248 (get_translation): New function.
20249 (produce_chars): New arguments translation_table and last_block.
20250 Translate characters here. Return number of carryover chars.
20251 Change caller.
20252 (produce_composition): New argument pos. Change caller.
20253 Adjust for the change of annotation data format.
20254 (produce_charset, produce_annotation): Likewise.
20255 (decode_coding, encode_coding): Don't call translate_chars.
20256 (consume_chars): New arg translation_table. Change caller.
20257 (translate_chars): Delete.
20258 (syms_of_coding): Make translation-table's number of extra slots 2.
20259
202602008-02-01 Kenichi Handa <handa@m17n.org>
20261
20262 * search.c (simple_search): Fix setting this_pos_byte in backward
20263 search.
20264
20265 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20266 byte sequence.
20267 (detect_coding_ccl): Fix setting of the variable valids.
20268
202692008-02-01 Kenichi Handa <handa@m17n.org>
20270
20271 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20272
20273 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20274
20275 * editfns.c (Ftranslate_region_internal): Rename from
20276 Ftranslate_region. Accept a char-table in TABLE.
20277 (syms_of_editfns): Defsubr Stranslate_region_internal.
20278
20279 * xfaces.c (set_lface_from_font_name): If a font is specified for
20280 a frame, generate a fontset from the font.
20281 (build_scalable_font_name): If the scalable font is requested for
20282 a specific size, don't change that size.
20283 (try_font_list): Try a scalable font also in the case that a
20284 pattern string is specified.
20285
202862008-02-01 Kenichi Handa <handa@m17n.org>
20287
20288 * xfaces.c (Fface_font): New optional arg CHARACTER.
20289
202902008-02-01 Kenichi Handa <handa@m17n.org>
20291
20292 * charset.h (CHARSET_OFFSET): New macro.
20293
202942008-02-01 Kenichi Handa <handa@m17n.org>
20295
20296 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20297
20298 * fontset.c (fontset_face): Handle the case that repertory is a
20299 char-table.
20300 (find_font_encoding): Return nil for unknown encoding.
20301 (Fset_fontset_font): Ignore a font of unknown encoding.
20302
203032008-02-01 Kenichi Handa <handa@m17n.org>
20304
20305 * keymap.c (describe_vector): Handle default value of a char table.
20306
20307 * fontset.c (fontset_face): Handle fallback fonts correctly.
20308 (Ffontset_info): Return infomation about fallback fonts.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * fontset.c (FONTSET_DEFAULT): New macro.
20313 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20314 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20315 the case that it is nil.
20316 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20317 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20318
20319 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20320 subset or superset.
20321
203222008-02-01 Kenichi Handa <handa@m17n.org>
20323
20324 * emacs.c (main): Call init_charset after syms_of_XXX.
20325
20326 * charset.c (Vcharset_map_directory): Delete.
20327 (Vcharset_map_path): New variable.
20328 (load_charset_map_from_file): Use Vcharset_map_path instead.
20329 (init_charset): Initialize Vcharset_map_path.
20330 (syms_of_charset): Delete declaration of "charset-map-directory",
20331 add declaration of "charset-map-path".
20332
203332008-02-01 Kenichi Handa <handa@m17n.org>
20334
20335 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20336 ASCII only string.
20337
20338 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20339
20340 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20341 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20342
203432008-02-01 Kenichi Handa <handa@m17n.org>
20344
20345 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20346
20347 * coding.c (QCmnemonic, QCdefalut_char)
20348 (QCdecode_translation_table, QCencode_translation_table)
20349 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20350 (get_translation_table): Return a list of translation tables if
20351 necessary.
20352 (decode_coding): Call get_translation_table with ENCODEP 0.
20353 (char_encodable_p): If translation_table is non-nil, always call
20354 translate_char.
20355 (Fdefine_coding_system_internal): Accept list of translation
20356 tables as :encode-translation-table and :decode-translation-table.
20357 (Fcoding_system_put): New function.
20358 (syms_of_coding): Declare new symbols. Defsubr
20359 Scoding_system_put.
20360 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20361 typically JISX0212.
20362
20363 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20364 when the charset is superset type.
20365
20366 * character.c (translate_char): Accept list of translation tables.
20367
203682008-02-01 Kenichi Handa <handa@m17n.org>
20369
20370 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20371 (CODING_ATTR_TRANS_TBL): New macro.
20372
20373 * coding.c (get_translation_table): New function.
20374 (translate_chars): Fix the bug of skipping annotation data.
20375 (decode_coding, encode_coding): Utilize get_translation_table.
20376 (char_encodable_p, Funencodable_char_position): Translate char if
20377 necessary.
20378 (Ffind_coding_systems_region_internal)
20379 (Fcheck_coding_systems_region): Setup translation table for encode
20380 in a coding system attribute vector in advance.
20381 (Fdefine_coding_system_internal): Allow a symbol as translation
20382 table. For shift-jis type coding system, allow 4th charset.
20383
203842008-02-01 Kenichi Handa <handa@m17n.org>
20385
20386 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20387
20388 * xdisp.c (get_next_display_element): Pass -1 as POS to
20389 FACE_FOR_CHAR if displaying a C-string.
20390
203912008-02-01 Kenichi Handa <handa@m17n.org>
20392
20393 * composite.c (get_composition_id): Handle xoff and yoff in a
20394 composition rule.
20395
20396 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20397 (struct composition): New member lbearing and rbearing.
20398
20399 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20400 (x_get_glyph_overhangs): Handle a composition glyph.
20401 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20402
20403 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20404 composition glyph.
20405
204062008-02-01 Kenichi Handa <handa@m17n.org>
20407
20408 * print.c: Include charset.h.
20409 (Vprint_charset_text_property): New variable.
20410 (Qdefault): Extern it.
20411 (PRINT_STRING_NON_CHARSET_FOUND)
20412 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20413 (print_check_string_result): New variable.
20414 (print_check_string_charset_prop): New function.
20415 (print_prune_charset_plist): New variable.
20416 (print_prune_string_charset): New function.
20417 (print_object): Call print_prune_string_charset if
20418 Vprint_charset_text_property is not t.
20419 (print_interval): Print nothing if interval->plist is nil.
20420 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20421 variable. Init and staticpro print_prune_charset_plist.
20422
204232008-02-01 Kenichi Handa <handa@m17n.org>
20424
20425 * fontset.c (new_fontset_from_font_name): Use the specified font
20426 for all characters in the new fontset.
20427
20428 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20429 OBJECT args.
20430
20431 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20432 OBJECT args for composition too.
20433
20434 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20435 OBJECT args.
20436
204372008-02-01 Kenichi Handa <handa@m17n.org>
20438
20439 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20440
20441 * fontset.c (reorder_font_vector): Adjust for the change of
20442 FONT_DEF format.
20443 (fontset_face): New arg id. Change caller.
20444 (face_for_char): New args pos and object.
20445 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20446 (fs_query_fontset): Check NAME by Fassoc too.
20447 (Fset_fontset_font): Allow non-XLFD font name.
20448 (Ffontset_info): Adjust for the change of FONT_DEF format.
20449
20450 * fontset.h (face_for_char): Adjust prototype.
20451
20452 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20453 (append_space, extend_face_to_end_of_line)
20454 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20455 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20456
20457 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20458 POS and OBJECT args.
20459
20460 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20461 POS and OBJECT args.
20462
204632008-02-01 Jason Rumney <jasonr@gnu.org>
20464
20465 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20466 of GlobalAlloc'ed memory.
20467
204682008-02-01 Kenichi Handa <handa@m17n.org>
20469
20470 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20471
20472 * charset.h (charset_table_used): Delete extern.
20473
20474 * charset.c (charset_table_used): Make it static.
20475 (map_charset_chars): Fix args to c_function with.
20476
20477 * chartab.c (map_sub_char_table_for_charset): Fix args to
20478 c_function with.
20479
20480 * coding.h (enum coding_result_code): Delete
20481 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20482
20483 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20484 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20485 (Vlast_code_conversion_error): New variables.
20486 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20487 (ONE_MORE_BYTE): Record error if any instead of signaling an
20488 error. If non-ASCII multibyte char is found, return the negative
20489 value of the code. All callers changed to check it.
20490 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20491 (record_conversion_result): New function. Change all codes setting
20492 coding->result to call this function.
20493 (detect_coding_utf_8, decode_coding_utf_8)
20494 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20495 Don't use the local variable incomplete.
20496 (emacs_mule_char): Change the second arg to `const'.
20497 (decode_coding): Fix of flushing out unprocessed data.
20498 (make_conversion_work_buffer): Fix making of a work buffer.
20499 (decode_coding_object): Return coding->dst_object.
20500
20501 * fontset.c (set_fontset_font): Fix args.
20502
20503 * lisp.h (CHARACTERBITS): Define as 22.
20504
20505 * process.c (send_process): Be sure to set coding->src_multibyte.
20506
20507 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20508
205092008-02-01 Kenichi Handa <handa@m17n.org>
20510
20511 * xdisp.c (handle_auto_composed_prop): Give limit to
20512 Fnext_single_char_property_change.
20513
205142008-02-01 Kenichi Handa <handa@m17n.org>
20515
20516 * composite.c (syms_of_composite): Don't make the composition hash
20517 table weak.
20518
20519 * fontset.c (Fset_fontset_font): Fix docstring.
20520
20521 * lisp.h (detect_coding_system): Adjust prototype.
20522
20523 * fileio.c (kill_workbuf_unwind): Delete this function.
20524 (Finsert_file_contents): Adjust the call of detect_coding_system.
20525 Get conversion_buffer by code_conversion_save. Use the macro
20526 CODING_MAY_REQUIRE_DECODING. After decoding, update
20527 coding_system.
20528
20529 * coding.h (make_conversion_work_buffer): Delete extern.
20530 (code_conversion_save): Extern it.
20531
20532 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20533 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20534 (decode_coding_utf_8): Don't do eol converion.
20535 (detect_coding_utf_16): Check coding->src_chars, not
20536 coding->src_bytes. Add heuristics for those that have no signature.
20537 (decode_coding_emacs_mule, decode_coding_iso_2022)
20538 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20539 Don't do eol converion.
20540 (adjust_coding_eol_type): Return a new coding system.
20541 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20542 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20543 each change.
20544 (decode_coding): Pay attention to undo_list. Do eol conversion for
20545 all types of coding-systems (if necessary).
20546 (Vcode_conversion_work_buf_list): Delete it.
20547 (Vcode_conversion_reused_workbuf): Rename from
20548 Vcode_conversion_reused_work_buf.
20549 (Vcode_conversion_workbuf_name): New variable.
20550 (reused_workbuf_in_use): New variable.
20551 (make_conversion_work_buffer): Delete the arg DEPTH.
20552 (code_conversion_restore): Change argument to cons.
20553 (code_conversion_save): Delete the argument BUFFER. Change callers.
20554 (detect_coding_system): New argument src_chars. Change callers.
20555 Fix for utf-16 detection.
20556 (init_coding_once): Don't use ISO_carriage_return.
20557 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20558 reused_workbuf_in_use.
20559
205602008-02-01 Kenichi Handa <handa@m17n.org>
20561
20562 * keymap.c (store_in_keymap): Pay attention to the case that idx
20563 is a cons specifying a character range.
20564
205652008-02-01 Kenichi Handa <handa@m17n.org>
20566
20567 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20568 HANDLED_RECOMPUTE_PROPS.
20569
20570 * coding.c (Fdefine_coding_system_internal): Fix checking of
20571 ascii compatibility.
20572
205732008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * charset.c (find_charsets_in_text): Delete unused locale variable.
20576 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20577
20578 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20579 Resync charset_list to Vemacs_mule_charset_list.
20580
20581 * keymap.c (store_in_keymap): Pay attention to the case that idx
20582 is a cons specifying a character range.
20583
205842008-02-01 Kenichi Handa <handa@m17n.org>
20585
20586 * composite.c (update_compositions): Bind inhibit-read-only, etc
20587 to t before calling remove-list-of-text-properties.
20588
20589 * print.c (print_object): Always print ASCII chars as is.
20590
205912008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20594
20595 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20596 is a char table.
20597
205982008-02-01 Kenichi Handa <handa@m17n.org>
20599
20600 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20601
206022008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * xfaces.c (set_lface_from_font_name): Fix for the case that
20605 FONTNAME is not fontset name.
20606
206072008-02-01 Kenichi Handa <handa@m17n.org>
20608
20609 * fns.c (base64_encode_1): Fix previous change.
20610
206112008-02-01 Kenichi Handa <handa@m17n.org>
20612
20613 * fontset.c (set_fontset_font): New function.
20614 (Fset_fontset_font): If a font is specified for a charset, use
20615 map_charset_chars to store the font spec in a fontset.
20616
206172008-02-01 Kenichi Handa <handa@m17n.org>
20618
20619 * fontset.c (fontset_face): Create a fallback fontset on demand.
20620 (make_fontset): Don't create a fallback fontset here.
20621 (free_face_fontset): Free a fallback fontset (if any) too.
20622 (n_auto_fontsets): Delete this variable.
20623 (auto_fontset_alist): New variable.
20624 (new_fontset_from_font_name): Check auto_fontset_alist.
20625 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20626 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20627 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20628 Defsubr Sfontset_list_all.
20629
206302008-02-01 Kenichi Handa <handa@m17n.org>
20631
20632 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20633
206342008-02-01 Kenichi Handa <handa@m17n.org>
20635
20636 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20637
206382008-02-01 Kenichi Handa <handa@m17n.org>
20639
20640 * editfns.c (Fgoto_char): Fix docstring.
20641
206422008-02-01 Kenichi Handa <handa@m17n.org>
20643
20644 * insdel.c (insert_from_gap): Adjust intervals correctly.
20645
206462008-02-01 Jason Rumney <jasonr@gnu.org>
20647
20648 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20649 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20650 (w32_initialize): Try to load it.
20651 (x_get_font_repertory): Use it if available.
20652 (w32_encode_char): Add shortcut for unicode output.
20653
20654 * w32fns.c (w32_load_system_font): Default charset to -1.
20655 (x_to_w32_charset): Match all fonts for unicode.
20656 (w32_to_x_charset): New parameter matching. Don't return partial
20657 or wildcard charsets.
20658 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20659 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20660 (w32_to_x_font): Match charset to real charset.
20661 (enum_font_cb2): Always list unicode versions.
20662
20663 * makefile.w32-in (temacs): Increase EMHEAP.
20664
206652008-02-01 Jason Rumney <jasonr@gnu.org>
20666
20667 * w32term.c (w32_encode_char): New charset parameter.
20668 font_info.encoding becomes encoding_type.
20669 (x_get_font_repertory): New function. Warning: stub only!
20670 (x_new_font): Return quickly if font already set.
20671 (x_new_fontset): fontsetname parameter is Lisp_Object.
20672 Use new fs_query_fontset. Try new_fontset_from_font_name.
20673 Use fontset_name for return value.
20674
20675 * w32term.h: Declare x_get_font_repertory.
20676
20677 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20678 place of find_charset_in_text. Use encode_coding_object in place
20679 of encode_coding.
20680 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20681 decode_coding.
20682
20683 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20684 of x_new_fontset.
20685 (w32_load_system_font): Initialize charset as unicode.
20686 font_info.encoding becomes encoding_type.
20687 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20688 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20689 (syms_of_w32fns): Set get_font_repertory_func.
20690
20691 * w32console.c: Include character.h. Use terminal_encode_buffer
20692 from term.c.
20693 (write_glyphs): Use new version of encode_terminal_code. Use
20694 encode_coding_object in place of encode_coding.
20695
20696 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20697 encoding becomes encoding_type.
20698
20699 * term.c (terminal_encode_buffer): Make externally visible.
20700
20701 * makefile.w32-in: Add character.h dependancies.
20702 (character.o, chartab.o): New targets.
20703
207042008-02-01 Kenichi Handa <handa@m17n.org>
20705
20706 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20707 CODING_ID_EOL_TYPE.
20708
207092008-02-01 Andreas Schwab <schwab@suse.de>
20710
20711 * coding.c (produce_chars): Revert last change.
20712
207132008-02-01 Kenichi Handa <handa@m17n.org>
20714
20715 * charset.h (charset_unicode): Extern it.
20716
20717 * charset.c (string_xstring_p): Check by (C >= 0x100).
20718 (find_charsets_in_text): Change format of the arc CHARSETS. New
20719 arg MULTIBYTE.
20720 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20721 change of find_charsets_in_text.
20722 (Fsplit_char): Fix doc. Never return unknown.
20723
20724 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20725
20726 * coding.c (Fdefine_coding_system_alias): Update
20727 Vcoding_system_list.
20728
20729 * fontset.c (load_font_get_repertory): Pay attention to the case
20730 that ENCODING of a font is specified by a char-table.
20731
20732 * xterm.c (x_get_font_repertory): Handle the case that the
20733 encoding of font is other than Unicode.
20734
207352008-02-01 Kenichi Handa <handa@m17n.org>
20736
20737 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20738 if a character is encodable by the terminal coding system. If
20739 not, produces proper number of `?'s. Update
20740 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20741 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20742
207432008-02-01 Kenichi Handa <handa@m17n.org>
20744
20745 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20746 variables.
20747 (encode_terminal_code): Change argument. Encode multiple
20748 characters at once. Store the result of encoding in
20749 terminal_encode_buffer.
20750 (write_glyphs, insert_glyphs): Adjust for the change of
20751 encode_terminal_code.
20752 (term_init): Initialize terminal_encode_buffer and
20753 terminal_encode_buf_size.
20754
20755 * coding.c (consume_chars): If coding->src_object is nil, don't
20756 check annotation.
20757
207582008-02-01 Kenichi Handa <handa@m17n.org>
20759
20760 * character.c (char_string): Use ASCII_CHAR_P instead of
20761 SINGLE_BYTE_CHAR_P.
20762
207632008-02-01 Kenichi Handa <handa@m17n.org>
20764
20765 * xdisp.c (handle_auto_composed_prop): Check if the last
20766 characters of auto-composed region is newly composed with the
20767 following characters.
20768 (handle_composition_prop): Fix checking of point being inside
20769 composition.
20770
207712008-02-01 Kenichi Handa <handa@m17n.org>
20772
20773 * fns.c (concat): Don't change multibyteness of the result by
20774 concatenating an 8-bit character.
20775
20776 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20777 multibyteness of the result when newelt is an 8-bit character.
20778
207792008-02-01 Dave Love <fx@gnu.org>
20780
20781 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20782 EMACS_INT.
20783
20784 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20785
20786 * xfaces.c (face_numeric_value): Declare dim size_t.
20787 (Finternal_lisp_face_equal_p): Remove unused f.
20788
20789 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20790 (MATRIX_ROW): Remove unused vars.
20791 (draw_glyphs, x_insert_glyphs, fast_find_position)
20792 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20793 byte/char counts.
20794
20795 * regex.c (regex_compile): Remove unused var.
20796
20797 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20798
20799 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20800 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20801
20802 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20803
20804 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20805
20806 * fileio.c (Fwrite_region): Remove unused var.
20807
20808 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20809 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20810
20811 * composite.c (Fremove_list_of_text_properties): Declare.
20812
20813 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20814 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20815 (coding_inherit_eol_type): Remove unused attrs.
20816 (detect_coding): Cast arg of detect_eol.
20817
20818 * charset.c (syms_of_charset): Remove unused var p.
20819 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20820 byte/char counts.
20821
20822 * casetab.c (set_case_table): Remove unused var.
20823
20824 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20825 unused vars.
20826
208272008-02-01 Dave Love <fx@gnu.org>
20828
20829 * xterm.c (x_bitmap_mask): Declare.
20830
208312008-02-01 Dave Love <fx@gnu.org>
20832
20833 * xterm.c (x_term_init): Fix type error.
20834
20835 * lisp.h: Add Funibyte_char_to_multibyte.
20836
20837 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20838 (Fset_coding_system_priority): Doc fix.
20839
20840 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20841
20842 * indent.c (check_composition): Make start and end EMACS_INT.
20843
20844 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20845
20846 * xdisp.c (handle_composition_prop, check_point_in_composition):
20847 Make buffer positions EMACS_INT.
20848
20849 * composite.c (find_composition, run_composition_function)
20850 (update_compositions, Ffind_composition_internal): Make buffer
20851 positions EMACS_INT.
20852
20853 * composite.h (find_composition, update_compositions): Make
20854 position args EMACS_INT.
20855
20856 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20857
20858 * intervals.c (get_property_and_range):
20859 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20860
20861 * unexalpha.c: Don't include varargs.h.
20862
208632008-02-01 Dave Love <fx@gnu.org>
20864
20865 * coding.h (ENCODE_UTF_8): New.
20866
20867 * Makefile.in (gtkutil.o): Depend on coding.h.
20868
20869 * coding.c (Fset_coding_system_priority): Doc fix.
20870
208712008-02-01 Kenichi Handa <handa@m17n.org>
20872
20873 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20874 the case of auto saving.
20875
208762008-02-01 Andreas Schwab <schwab@suse.de>
20877
20878 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20879 `range' from GC.
20880
208812008-02-01 Kenichi Handa <handa@m17n.org>
20882
20883 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20884
208852008-02-01 Kenichi Handa <handa@m17n.org>
20886
20887 * fileio.c (choose_write_coding_system): Return a decided coding system.
20888 (Fwrite_region): Set Vlast_coding_system_used to the return value
20889 of choose_write_coding_system.
20890
208912008-02-01 Kenichi Handa <handa@m17n.org>
20892
20893 * charset.c (Fset_charset_priority): Pay attention to duplicated
20894 arguments.
20895
20896 * coding.c (QCcategory): New variable.
20897 (syms_of_coding): Defsym it. Set all elements of
20898 Vcoding_category_table and their symbol values.
20899 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20900 coding-category-XXX, and coding-category-list.
20901 (Fdefine_coding_system_internal): Add category in the plist.
20902
209032008-02-01 Kenichi Handa <handa@m17n.org>
20904
20905 * callproc.c (Fcall_process): Handle carryover correctly.
20906
20907 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20908 (raw_text_coding_system): Check NILP (coding_system).
20909 (coding_inherit_eol_type): Check NILP (coding_system) and
20910 NILP (parent).
20911 (consume_chars): Fix for the case of raw-text.
20912
20913 * process.c (read_process_output): Handle carryover correctly.
20914
209152008-02-01 Dave Love <fx@gnu.org>
20916
20917 * regex.c (re_search_2): Fix last change.
20918
209192008-02-01 Kenichi Handa <handa@m17n.org>
20920
20921 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20922 target_multibyte. Even in a unibyte case, return a converted
20923 multibyte char.
20924 (GET_CHAR_AFTER): New macro.
20925 (PATFETCH): Translate via multibyte char.
20926 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20927 (SETUP_MULTIBYTE_RANGE): New macro.
20928 (regex_compile): Setup compiled code so that its multibyteness
20929 matches that of a target. Fix the handling of "[X-YZ]" using
20930 SETUP_MULTIBYTE_RANGE.
20931 (analyse_first) <charset>: For filling fastmap for all multibyte
20932 characters, don't check by BASE_LEADING_CODE_P.
20933 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20934 the same as RE_MULTIBYTE_P (bufp) now.
20935 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20936 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20937 (TRANSLATE_VIA_MULTIBYTE): New macro.
20938 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20939 It is the same as RE_MULTIBYTE_P (bufp) now.
20940 <exactn>: Translate via multibyte.
20941 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20942 translate it.
20943 <charset, charset_not>: Fetch a character by
20944 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20945 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20946 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20947 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20948 by GET_CHAR_AFTER.
20949 (bcmp_translate): Likewise.
20950
20951 * search.c (compile_pattern): Check the member target_multibyte,
20952 not the member multibyte of buf.
20953
20954 * lread.c (read1): While reading a string, set force_singlebyte
20955 and force_multibyte correctly.
20956
20957 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20958 up of unibyte_to_multibyte_table.
20959
209602008-02-01 Kenichi Handa <handa@m17n.org>
20961
20962 * coding.c (setup_coding_system): If coding has
20963 post-read-conversion or pre-write-conversion, set
20964 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20965 respectively.
20966 (decode_coding_gap): Run post-read-conversion if any.
20967
20968 * fileio.c (Finsert_file_contents): Even if we read into a
20969 unibyte buffer, check if we must decode the result or not.
20970
209712008-02-01 Kenichi Handa <handa@m17n.org>
20972
20973 * coding.c (make_conversion_work_buffer): Change the work buffer
20974 name to the same one as that of Emacs 21.
20975
209762008-02-01 Kenichi Handa <handa@m17n.org>
20977
20978 * coding.h (make_conversion_work_buffer): Adjust prototype.
20979 (code_conversion_restore): Don't extern it.
20980
20981 * coding.c (detected_mask): Delete unused variable.
20982 (decode_coding_iso_2022): Pay attention to the byte sequence of
20983 CTEXT extended segment, and retain those bytes as is.
20984 (decode_coding_ccl): Delete unused variable `valids'.
20985 (setup_coding_system): Delete unused variable `category'.
20986 (consume_chars): Delete unused variable `category'. Make it work
20987 for non-multibyte case.
20988 (make_conversion_work_buffer): Change argument.
20989 (saved_coding): Delete unused variable.
20990 (code_conversion_restore): Don't check saved_coding->destination.
20991 (code_conversion_save): New function.
20992 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20993 instead of record_unwind_protect.
20994 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20995 (detect_coding_system): Delete unused variable `mask'.
20996 (Fdefine_coding_system_internal): Delete unused variable id.
20997
20998 * fileio.c (kill_workbuf_unwind): New function.
20999 (Finsert_file_contents): On replacing, call
21000 make_conversion_work_buffer with correct args, and call
21001 record_unwind_protect with the first arg kill_workbuf_unwind.
21002
21003 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21004
210052008-02-01 Kenichi Handa <handa@m17n.org>
21006
21007 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21008 (fontset_add): Fix for the case that TO is less than TO1.
21009 (Ffontset_info): Don't use fallback fontset on checking the
21010 default fontset.
21011 (dump_fontset): New function for debugging.
21012
21013 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21014 coding_type is Qcharset.
21015
210162008-02-01 Kenichi Handa <handa@m17n.org>
21017
21018 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21019 (map_char_table): Don't inherit the value from the parent on
21020 initializing VAL. Adjust for the above change.
21021
210222008-02-01 Kenichi Handa <handa@m17n.org>
21023
21024 * coding.c (Qsignature, Qendian): Delete these variables.
21025 (syms_of_coding): Don't initialize them.
21026 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21027 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21028 detect_info->found.
21029 (decode_coding_utf_16): Don't detect BOM here.
21030 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21031 is NOT utf_16_without_bom.
21032 (setup_coding_system): For a coding system of type utf-16, check
21033 if the attribute :endian is Qbig or not (not nil or not), and set
21034 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21035 (detect_coding): If coding type is utf-16 and BOM detection is
21036 required, detect it.
21037 (Fdefine_coding_system_internal): For a coding system of type
21038 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21039
210402008-02-01 Kenichi Handa <handa@m17n.org>
21041
21042 * coding.c (coding_set_source): Fix for the case that the current
21043 buffer is different from coding->src_object.
21044 (decode_coding_object): Don't use the conversion work buffer if
21045 DST_OBJECT is a buffer.
21046
210472008-02-01 Dave Love <fx@gnu.org>
21048
21049 * lread.c (read_emacs_mule_char) [len==2]: Index
21050 emacs_mule_charset correctly.
21051
210522008-02-01 Dave Love <fx@gnu.org>
21053
21054 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21055 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21056 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21057 treated specially.)
21058 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21059 (detected_mask): Remove Big5 bits.
21060
210612008-02-01 Kenichi Handa <handa@m17n.org>
21062
21063 The following changes are to make the font rescaling facility
21064 compatible with Emacs 21.
21065
21066 * xfaces.c (Vface_font_rescale_alist): Rename from
21067 Vface_resizing_fonts.
21068 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21069 (font_rescale_ratio): Rename from font_resizing_ratio.
21070 (split_font_name): Set font->rescale_ratio.
21071 (better_font_p): Pay attention to font->rescale_ratio.
21072 (build_scalable_font_name): Likewise. Change RESX, and RESY
21073 fields.
21074 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21075
210762008-02-01 Kenichi Handa <handa@m17n.org>
21077
21078 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21079 (Qutf_16_le): Remove these variables.
21080 (syms_of_coding): Don't DEFSYM them.
21081 (decode_coding_utf_16): Fix handling of BOM.
21082 (encode_coding_utf_16): Fix handling of BOM.
21083
210842008-02-01 Kenichi Handa <handa@m17n.org>
21085
21086 * fileio.c (Finsert_file_contents): On replacing, before decoding
21087 the file into the work buffer, set point of the work buffer to the end.
21088
210892008-02-01 Dave Love <fx@gnu.org>
21090
21091 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21092
210932008-02-01 Dave Love <fx@gnu.org>
21094
21095 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21096 and fix C types.
21097
210982008-02-01 Kenichi Handa <handa@m17n.org>
21099
21100 * xdisp.c (SKIP_GLYPHS): New macro.
21101 (set_cursor_from_row): Pay attention to string display properties.
21102
21103 * category.c (copy_category_entry): Fix for the case that RANGE
21104 is an integer.
21105
21106 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21107
21108 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21109
211102008-02-01 Kenichi Handa <handa@m17n.org>
21111
21112 * charset.c (Fcharset_id_internal): New function.
21113 (syms_of_charset): Defsubr it.
21114
21115 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21116 with the last arg charset_list acquired from coding.
21117 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21118 the attribute coding_attr_ccl_valids.
21119
21120 * coding.h (enum define_coding_ccl_arg_index): Set the first
21121 member coding_arg_ccl_decoder to coding_arg_max.
21122
21123 * ccl.h (ccl_driver): Adjust prototype.
21124
21125 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21126 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21127 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21128 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21129 last arg Qnil.
21130
211312008-02-01 Kenichi Handa <handa@m17n.org>
21132
21133 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21134 call encode_char.
21135
21136 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21137
211382008-02-01 Dave Love <fx@gnu.org>
21139
21140 * composite.c (syms_of_composite): Make composition_hash_table weak.
21141
211422008-02-01 Kenichi Handa <handa@m17n.org>
21143
21144 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21145 (font_name_registry): Don't extern them.
21146 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21147
21148 * fontset.h (Qfontset): Don't extern it.
21149 (new_fontset_from_font_name): Extern it.
21150
21151 * fontset.c: Give 8 extra slots to fontset objects.
21152 (Qfontset_info): New variable.
21153 (syms_of_fontset): Defsym it.
21154 (FONTSET_FALLBACK): New macro.
21155 (fontset_face): Try also the default fontset.
21156 (make_fontset): Realize a fallback fontset from the default fontset.
21157 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21158 using split_font_name_into_vector and build_font_name_from_vector.
21159 (Fset_fontset_font): Access the elements of font_spec by enum
21160 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21161 name by using split_font_name_into_vector.
21162 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21163 generate a proper font name from the fontset name. Update
21164 Vfontset_alias_alist.
21165 (n_auto_fontsets): New variable.
21166 (new_fontset_from_font_name): New function.
21167 (Ffont_info): Store the information about fonts generated from the
21168 default fontset in the first extra slot of the returned char-table.
21169
21170 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21171 (font_name_registry): Delete function.
21172 (split_font_name_into_vector): New function.
21173 (build_font_name_from_vector): New function.
21174 (font_list): The argument REGISTRY is now a list of registry names.
21175 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21176 specifies an explicit font name, return the name as is. Make a
21177 list of registy names.
21178
21179 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21180 of x_new_fontset.
21181 (Fx_create_frame): Don't call x_new_fontset here. Just use
21182 x_list_fonts to check the existence of fonts.
21183
21184 * xterm.h (x_new_fontset): Adjust prototype.
21185
21186 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21187 string. Use new_fontset_from_font_name to create a fontset from a
21188 font name.
21189
211902008-02-01 Kenichi Handa <handa@m17n.org>
21191
21192 * syntax.c (Vfind_word_boundary_function_table): New name for
21193 Vnext_word_boundary_function_table.
21194 (find-word-boundary-function-table): New name for
21195 next-word-boundary-function-table.
21196
211972008-02-01 Dave Love <fx@gnu.org>
21198
21199 * Makefile.in: Fix some dependencies.
21200
21201 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21202 set it to nil before returning.
21203
21204 * composite.c (update_compositions): Fix type error.
21205
21206 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21207
212082008-02-01 Kenichi Handa <handa@m17n.org>
21209
21210 * xterm.c (x_new_font): Optimize for the case that the font is
21211 already set for the frame.
21212
212132008-02-01 Kenichi Handa <handa@m17n.org>
21214
21215 * chartab.c (char_table_ascii): Check if the char table contents
21216 is sub-char-table or not.
21217 (char_table_set, char_table_set_range): Fix argument to
21218 char_table_ascii.
21219
21220 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21221 (detect_coding_utf_8, detect_coding_utf_16)
21222 (detect_coding_emacs_mule, detect_coding_iso_2022)
21223 (detect_coding_sjis, detect_coding_big5)
21224 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21225 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21226 sequence is valid in this coding system. Change callers.
21227 (MAX_ANNOTATION_LENGTH): New macro.
21228 (ADD_ANNOTATION_DATA): New macro.
21229 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21230 ADD_ANNOTATION_DATA. Change the format of annotation data.
21231 (ADD_CHARSET_DATA): New macro.
21232 (emacs_mule_char): New argument ID. Change callers.
21233 (decode_coding_emacs_mule, decode_coding_iso_2022)
21234 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21235 Produce charset annotation data in coding->charbuf.
21236 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21237 to charset annotation data in coding->charbuf.
21238 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21239 coding->common_flags if the coding system is iso-2022 based and
21240 uses designation.
21241 (produce_composition): Adjust for the new annotation data format.
21242 (produce_charset): New function.
21243 (produce_annotation): Handle charset annotation.
21244 (handle_composition_annotation, handle_charset_annotation): New
21245 functions.
21246 (consume_chars): Handle charset annotation. Utilize the above two
21247 functions.
21248 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21249 buffer, get the deleted text as a string and set
21250 coding->src_object to that string.
21251 (detect_coding, detect_coding_system): Use the new struct
21252 coding_detection_info.
21253
21254 * coding.h (struct coding_detection_info): New structure.
21255 (struct coding_system): Adjust prototype of the member `detector'.
21256 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21257
212582008-02-01 Kenichi Handa <handa@m17n.org>
21259
21260 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21261
212622008-02-01 Dave Love <fx@gnu.org>
21263
21264 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21265 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21266 to new local and nullify apropos_accumulate before returning.
21267 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21268
212692008-02-01 Kenichi Handa <handa@m17n.org>
21270
21271 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21272 correctly.
e3eea1fc 21273
aac0c6e3
MR
212742008-02-01 Dave Love <fx@gnu.org>
21275
21276 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21277
212782008-02-01 Kenichi Handa <handa@m17n.org>
21279
21280 The following changes are to make character composition happen
21281 automatically on displaying.
21282
21283 * Makefile.in (lisp, shortlisp): Add composite.elc.
21284
21285 * composite.h (Qauto_composed, Vauto_composition_function)
21286 (Qauto_composition_function): Extern them.
21287
21288 * composite.c (Vcomposition_function_table)
21289 (Qcomposition_function_table): Delete variables.
21290 (Qauto_composed, Vauto_composition_function)
21291 (Qauto_composition_function): New variables.
21292 (run_composition_function): Don't call
21293 compose-chars-after-function.
21294 (update_compositions): Clear `auto-composed' text property.
21295 (compose_chars_in_text): Delete this function.
21296 (syms_of_composite): Staticpro Qauto_composed and
21297 Qauto_composition_function. Declare Vauto_composition_function as
21298 a Lisp variable.
21299
21300 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21301
21302 * xdisp.c (it_props): Add an entry for Qauto_composed.
21303 (handle_auto_composed_prop): New function.
21304
21305 * xselect.c (selection_data_to_lisp_data): Don't call
21306 compose_chars_in_text.
21307
213082008-02-01 Dave Love <fx@gnu.org>
21309
21310 * keyboard.c (read_char): Modify checking around use of
21311 Vkeyboard_translate_table.
21312
21313 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21314 and fix C types.
21315
213162008-02-01 Kenichi Handa <handa@m17n.org>
21317
21318 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21319 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21320 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21321 the case that the last byte is '\r' correctly.
21322 (decode_coding): Flush out the unprocessed data correctly.
21323 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21324
213252008-02-01 Dave Love <fx@gnu.org>
21326
21327 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21328 Add XK_ISO... case.
21329 (xaw_scroll_callback): Revert last change.
21330
213312008-02-01 Kenichi Handa <handa@m17n.org>
21332
21333 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21334
213352008-02-01 Kenichi Handa <handa@m17n.org>
21336
21337 * xfaces.c (Vface_resizing_fonts): New variable.
21338 (struct font_name): New member `resizing_ratio'.
21339 (font_resizing_ratio): New function.
21340 (split_font_name): Set font->resizing_ratio.
21341 (better_font_p): Pay attention to font->resizing_ratio.
21342 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21343 RESX, and RESY fields.
21344 (try_alternative_families): Try scalable fonts if
21345 Vscalable_fonts_allowed is not Qt.
21346 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21347
213482008-02-01 Dave Love <fx@gnu.org>
21349
21350 * xterm.c (xaw_scroll_callback): Cast correctly.
21351
213522008-02-01 Dave Love <fx@gnu.org>
21353
21354 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21355 (lispy_kana_keys): Comment out.
21356 (make_lispy_event) [XK_kana_A]: Comment out.
21357
21358 * xterm.c (xaw_scroll_callback): Cast call_data.
21359 (XTread_socket): Deal with ASCII keysyms.
21360 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21361
213622008-02-01 Dave Love <fx@gnu.org>
21363
21364 * xterm.c (Vx_keysym_table): New.
21365 (syms_of_xterm): Initialize it.
21366 (XTread_socket): Use it.
21367 From head: Eliminate incorrect optimization that tried to avoid
21368 decoding the output of X*LookupString.
21369 (x_get_font_repertory): Delete charset declaration.
21370
213712008-02-01 Kenichi Handa <handa@m17n.org>
21372
21373 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21374 return 0.
21375 (Fdefine_coding_system_internal): Setup
21376 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21377
213782008-02-01 Dave Love <fx@gnu.org>
21379
21380 * coding.c (Fcheck_coding_system): Doc fix.
21381
21382 * editfns.c (Finsert_byte): Return a proper value.
21383
213842008-02-01 Kenichi Handa <handa@m17n.org>
21385
21386 * coding.c (decode_coding): Fix args to translate_chars. Pay
21387 attention to Vstandard_translation_table_for_decode.
21388 (encode_coding): Fix args to translate_chars. Pay attention to
21389 Vstandard_translation_table_for_encode.
21390
21391 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21392 SINGLE_BYTE_CHAR_P.
21393
21394 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21395 not by SINGLE_BYTE_CHAR_P.
21396
21397 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21398 SINGLE_BYTE_CHAR_P.
21399
21400 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21401 SINGLE_BYTE_CHAR_P.
21402
21403 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21404 by SINGLE_BYTE_CHAR_P.
21405
21406 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21407 SINGLE_BYTE_CHAR_P.
21408
214092008-02-01 Dave Love <fx@gnu.org>
21410
21411 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21412
214132008-02-01 Dave Love <fx@gnu.org>
21414
21415 * fns.c (Flanginfo): Fix typo.
21416
21417 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21418
214192008-02-01 Kenichi Handa <handa@m17n.org>
21420
21421 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21422 (detect_coding_emacs_mule, detect_coding_iso_2022)
21423 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21424 incomplete byte sequence. Don't update *mask when correctly detected.
21425 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21426 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21427 (detect_coding, detect_coding_system): Adjust for the changes above.
21428
214292008-02-01 Kenichi Handa <handa@m17n.org>
21430
21431 * character.c (char_string): Rename from
21432 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21433 (string_char): Rename from string_char.
21434
21435 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21436 if C is greater than MAX_3_BYTE_CHAR.
21437 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21438 string_char instead of string_char_with_unification.
21439
214402008-02-01 Dave Love <fx@gnu.org>
21441
21442 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21443
214442008-02-01 Kenichi Handa <handa@m17n.org>
21445
21446 * keymap.c (push_key_description): Pay attention to force_multibyte.
21447
21448 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21449
214502008-02-01 Dave Love <fx@gnu.org>
21451
21452 * charset.c (define_charset_internal): Rename `supprementary'.
21453
21454 * Makefile.in (lisp, shortlisp): Remove latin-N.
21455
214562008-02-01 Dave Love <fx@gnu.org>
21457
21458 * xfns.c (x_window, x_window): Use use_xim.
21459
21460 * xterm.c (use_xim): Initialize.
21461 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21462 (x_term_init): Maybe set use_xim.
21463
21464 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21465
214662008-02-01 Kenichi Handa <handa@m17n.org>
21467
21468 * search.c (search_buffer): Fix case-fold-search of multibyte
21469 characters.
21470 (boyer_moore): Rename the last argument to char_high_bits.
21471
214722008-02-01 Kenichi Handa <handa@m17n.org>
21473
21474 * xdisp.c (display_string): Fix for the case of zero width glyph.
21475
21476 * xfns.c (x_set_font): Change the error message of the case that
21477 x_new_fontset returns Qt.
21478
21479 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21480 (Finternal_set_lisp_face_attribute): Use signal_error for the
21481 error of invalid fontset.
21482
21483 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21484 fontset, return Qt.
21485
214862008-02-01 Dave Love <fx@gnu.org>
21487
21488 * unexelf.c (unexec): Make .got handling not SGI-specific.
21489
21490 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21491
21492 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21493
21494 * keyboard.c (read_key_sequence): Fix type error.
21495
21496 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21497 type error.
21498
21499 * fontset.c (fontset_add): Return Lisp_Object.
21500
215012008-02-01 Dave Love <fx@gnu.org>
21502
21503 * charset.h (charset_ordered_list_tick): Declare extern.
21504
215052008-02-01 Kenichi Handa <handa@m17n.org>
21506
21507 The following changes (and some of 2008-02-01 changes of mine) are
21508 for handling syntax, category, and case conversion for unibyte
21509 characters by converting them to multibyte on the fly. With these
21510 changes, we don't have to setup syntax and case tables for unibyte
21511 characters in each language environment.
21512
21513 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21514 multibyte if necessary.
21515
21516 * bytecode.c (Fbyte_code): Likewise.
21517
21518 * character.h (LEADING_CODE_LATIN_1_MIN)
21519 (LEADING_CODE_LATIN_1_MAX): New macros.
21520 (unibyte_to_multibyte_table): Extern it.
21521 (unibyte_char_to_multibyte): New macro.
21522 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21523 (CHAR_LEADING_CODE): New macro.
21524 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21525
21526 * character.c (unibyte_to_multibyte_table): New variable.
21527 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21528 (multibyte_char_to_unibyte): If C is an eight-bit character,
21529 convert it to the corresponding byte value.
21530
21531 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21532 not 1, signals an error. Update the elements of
21533 unibyte_to_multibyte_table.
21534 (init_charset_once): Initialize unibyte_to_multibyte_table.
21535 (syms_of_charset): Define the charset `iso-8859-1'.
21536
21537 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21538 as is without converting it to unibyte. In a unibyte buffer,
21539 convert C to multibyte before checking the syntax.
21540
21541 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21542
21543 * minibuf.c (Fminibuffer_complete_word): Use the macro
21544 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21545
21546 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21547
21548 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21549 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21550 that is zero, convert an eight-bit char to multibyte.
21551 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21552 non-emacs case.
21553 (PATFETCH): Convert an eight-bit char to multibyte.
21554 (HANDLE_UNIBYTE_RANGE): New macro.
21555 (regex_compile): Setup the compiled pattern for multibyte chars
21556 even if the given regex string is unibyte. Use PATFETCH_RAW
21557 instead of PATFETCH in many places. To handle `charset'
21558 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21559 only for ASCII chars.
21560 (analyse_first) <exactn>: Simplify because the compiled pattern
21561 is multibyte.
21562 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21563 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21564 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21565 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21566 multibyte always 1.
21567 (re_search_2): In emacs, set the locale variable multibyte to 1,
21568 otherwise to 0. New local variable target_multibyte. Check it
21569 to decide the multibyteness of STR1 and STR2. If
21570 target_multibyte is zero, convert unibyte chars to multibyte
21571 before translating and checking fastmap.
21572 (TARGET_CHAR_AND_LENGTH): New macro.
21573 (re_match_2_internal): In emacs, set the locale variable multibyte
21574 to 1, otherwise to 0. New local variable target_multibyte. Check
21575 it to decide the multibyteness of STR1 and STR2. Use
21576 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21577 <charset, charset_not>: If multibyte is nonzero, check fastmap
21578 only for ASCII chars. Call bcmp_translate with
21579 target_multibyte, not with multibyte.
21580 <begline>: Declare the local variable C as `unsigned'.
21581 (bcmp_translate): Change the last arg name to target_multibyte.
21582
21583 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21584 the regexp pattern and the matching target. Set cp->buf.multibyte
21585 to the multibyteness of the regexp pattern. Set
21586 cp->but.target_multibyte to the multibyteness of the matching target.
21587 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21588 FETCH_STRING_CHAR_ADVANCE.
21589 (Freplace_match): Convert unibyte chars to multibyte.
21590
21591 * syntax.c (char_quoted, back_comment, scan_words)
21592 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21593 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21594 unibyte chars to multibyte.
21595 (skip_chars): Delete the arg syntaxp, and move the code for
21596 handling syntaxes to skip_syntaxes. Change callers.
21597 Fix the case that the multibyteness of STRING and the current
21598 buffer doesn't match.
21599 (skip_syntaxes): New function.
21600 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21601 SINGLE_BYTE_CHAR_P.
21602
216032008-02-01 Kenichi Handa <handa@m17n.org>
21604
21605 * xfaces.c (QCfontset): New variable.
21606 (LFACE_FONTSET): New macro.
21607 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21608 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21609 (Finternal_set_lisp_face_attribute)
21610 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21611 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21612 check also LFACE_FONTSET_INDEX.
21613 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21614 attrs[LFACE_FONT_INDEX].
21615 (syms_of_xfaces): Intern and staticpro QCfontset.
21616
21617 * dispextern.h (enum lface_attribute_index): New member
21618 LFACE_FONTSET_INDEX.
21619
21620 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21621
216222008-02-01 Kenichi Handa <handa@m17n.org>
21623
21624 * coding.c (coding_set_destination): Fix coding->destination for
21625 the case converting a region.
21626 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21627 (encode_coding_object): Fix coding->dst_pos and
21628 coding->dst_pos_byte for the case converting a region.
21629
21630 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21631
21632 * character.h (BYTE8_STRING): New macro.
21633
21634 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21635
216362008-02-01 Kenichi Handa <handa@m17n.org>
21637
21638 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21639 characters by octal form.
21640
21641 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21642
21643 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21644 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21645 _fetch_multibyte_char_len.
21646 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21647
21648 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21649
21650 * casefiddle.c (casify_object): Simplify. Handle the case that
21651 the case conversion change the byte length.
21652 (casify_region): Likewise.
21653
21654 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21655
21656 * character.c (_fetch_multibyte_char_len): Delete this variable.
21657 (syms_of_character): Setup Vprintable_chars.
21658
21659 * editfns.c (Fchar_equal): Fix for the unibyte case.
21660 (Finsert_byte): New function.
21661 (syms_of_editfns): Defsubr it.
21662
21663 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21664 of direct code 0x3ffff.
21665
21666 * search.c (Freplace_match): Fix for the unibyte case.
21667
216682008-02-01 Kenichi Handa <handa@m17n.org>
21669
21670 * lread.c (safe_to_load_p): Fix the logic.
21671
21672 * syntax.c (scan_words): Don't treat characters belonging to
21673 different scripts as constituting a word.
21674
21675 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21676
21677 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21678
21679 * emacs.c (main): In the case of --unibyte, instead of aborting on
21680 finding non-empty buffer, make it unibyte.
21681
216822008-02-01 Kenichi Handa <handa@m17n.org>
21683
21684 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21685 to create a fontset.
21686
216872008-02-01 Dave Love <fx@gnu.org>
21688
21689 * character.c (Funibyte_char_to_multibyte): Doc fix.
21690
21691 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21692
216932008-02-01 Kenichi Handa <handa@m17n.org>
21694
21695 * fontset.c (fontset_add): Make the type `int'.
21696 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21697
21698 * character.c (unibyte_char_to_multibyte)
21699 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21700 charset_unibyte, not charset_primary.
21701
21702 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21703
21704 * charset.c (charset_unibyte): Rename from charset_primary.
21705 (Funibyte_charset): Rename from Fprimary_charset.
21706 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21707 (syms_of_charset): Adjust for the above changes.
21708
21709 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21710 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21711 it->multibyte_p is zero.
21712
21713 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21714 Delete extern.
21715
217162008-02-01 Kenichi Handa <handa@m17n.org>
21717
21718 * coding.c (Fdefine_coding_system_internal): Fix category setting
21719 for a coding system of type iso-2022.
21720
217212008-02-01 Kenichi Handa <handa@m17n.org>
21722
21723 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21724
217252008-02-01 Kenichi Handa <handa@m17n.org>
21726
21727 * syntax.c (Vnext_word_boundary_function_table): New variable.
21728 (next-word-boundary-function-table): Declare it as a Lisp variable
21729 in syms_of_syntax.
21730 (scan_words): Call functions in Vnext_word_boundary_function_table
21731 if any.
21732
21733 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21734
21735 * fontset.c (fs_load_font): If fontp->charset is not negative,
21736 return fontp without setting its members.
21737
217382008-02-01 Dave Love <fx@gnu.org>
21739
21740 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21741
21742 * m/sparc.h (HAVE_ALLOCA): Delete.
21743
21744 * s/irix6-5.h: Don't include strings.h.
21745 (bcopy, bzero, bcmp): Don't undef.
21746
21747 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21748
21749 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21750 (TIOCSIGSEND): Don't test IRIX6.
21751 (bcopy, bzero, bcmp): Define conditionally.
21752
217532008-02-01 Kenichi Handa <handa@m17n.org>
21754
21755 * buffer.c (Qas, Qmake, Qto): New variables.
21756 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21757 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21758
21759 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21760 we are inserting a process output into a multibyte buffer.
21761
21762 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21763 multibyte_char_to_unibyte.
21764
21765 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21766 by the primary charset, make it eight-bit char.
21767 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21768
21769 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21770 (charset_8_bit__control, charset_8_bit_graphic)
21771 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21772 (define_charset_internal): New function.
21773 (syms_of_charset): Call define_charset_internal for pre-defined
21774 charsets.
21775
21776 * charset.h (charset_8_bit): Extern it.
21777
21778 * coding.c (make_conversion_work_buffer): Adjust for the change
21779 of Fset_buffer_multibyte.
21780 (encode_coding_raw_text): Increment p0 in the loop.
21781
21782 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21783
21784 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21785 for the change of Fset_buffer_multibyte.
21786
21787 * fns.c (Fstring_to_multibyte): New function.
21788 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21789
217902008-02-01 Dave Love <fx@gnu.org>
21791
21792 * xfns.c (x_put_x_image): Declare args.
21793
21794 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21795 (try_font_list): Declare an arg.
21796
21797 * xdisp.c (message2_nolog, set_message): Declare an arg.
21798
21799 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21800
21801 * syntax.c (scan_sexps_forward): Declare an arg.
21802
21803 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21804 Declare an arg.
21805
21806 * lisp.h (Fnew_fontset): Declare.
21807
21808 * keymap.c (push_key_description): Call CHARACTERP correctly.
21809
21810 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21811 (face_for_char): Delete unused vars.
21812 (Fset_fontset_font): Doc fix. Delete unused vars.
21813
21814 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21815
21816 * composite.c (update_compositions): Declare arg.
21817
21818 * cm.c (calccost, cmgoto): Declare args.
21819
21820 * charset.c: Remove `emacs' conditional. Doc fixes.
21821 (map_char_table_for_charset): Declare.
21822
21823 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21824
21825 * ccl.c: Remove `emacs' conditional.
21826
218272008-02-01 Kenichi Handa <handa@m17n.org>
21828
21829 The following changes are to allow specifying multiple font
21830 patterns for a character range (specified by script or charset).
21831
21832 * Makefile.in (abbrev.o): Depend on syntax.h.
21833 (xfaces.o): Depend on charset.h.
21834
21835 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21836 SINGLE_BYTE_CHAR_P.
21837
21838 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21839
21840 * character.h (Vchar_script_table): Extern it.
21841
21842 * character.c (Vscript_alist): Delete.
21843 (Vchar_script_table, Qchar_script_table): New variable.
21844 (syms_of_character): Declare Vchar_script_table as a lisp variable
21845 and initialize it.
21846
21847 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21848 have property char-table-extra-slots, make no extra slot.
21849
21850 * dispextern.h (struct face): Delete member `charset'.
21851 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21852 SINGLE_BYTE_CHAR_P.
21853 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21854 Add prototypes.
21855 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21856 (generate_ascii_font_name): Rename from generate_ascii_font.
21857
21858 * fontset.h (get_font_repertory_func): New prototype.
21859 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21860 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21861
21862 * fontset.c (Qprepend, Qappend): New variables.
21863 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21864 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21865 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21866 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21867 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21868 (load_font_get_repertory): New functions.
21869 (fontset_set): Delete.
21870 (fontset_face): New arg FACE. Return face ID, not face.
21871 Complete re-write to handle new fontset structure. Change caller.
21872 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21873 (face_for_char): Don't call lookup_face.
21874 (make_fontset_for_ascii_face): New arg FACE.
21875 (fs_load_font): New arg CHARSET_ID. Don't check
21876 Vfont_encoding_alist here.
21877 (find_font_encoding): New function.
21878 (list_fontsets): Use STRINGP, not ! NILP.
21879 (accumulate_script_ranges): New function.
21880 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21881 re-written to handle new fontset structure.
21882 (Ffontset_font): Return a copy of element.
21883 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21884 docstring of font-encoding-alist.
21885
21886 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21887 (Fset_fotset_font): Fix arguments to 5.
21888
21889 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21890
21891 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21892 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21893 (highlight_trailing_whitespace): Adjust for the change of
21894 lookup_named_face.
21895
21896 * xfaces.c: Include charset.h.
21897 (load_face_font): Delete argument C. Change caller.
21898 (generate_ascii_font_name): Rename from generate_ascii_font.
21899 (font_name_registry): New function.
21900 (cache_face): Store ascii faces before non-ascii faces in buckets.
21901 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21902 Lookup only ascii faces.
21903 (lookup_non_ascii_face): New function.
21904 (lookup_named_face): Delete argument C. Change caller.
21905 (lookup_derived_face): Delete argument C. Change caller.
21906 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21907 a string, just call font_list with it.
21908 (choose_face_font): Delete arguments FACE and C. New arg
21909 FONT_SPEC. Change caller.
21910 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21911 Change caller.
21912 (realize_non_ascii_face): New function.
21913 (realize_x_face): Call load_face_font here.
21914 (realize_tty_face): Delete argument C. Change caller.
21915 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21916 get a face ID.
21917 (dump_realized_face): Don't print charset of FACE.
21918
21919 * xfns.c (x_set_font): Always call x_new_fontset and
21920 store_frame_parameter.
21921 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21922 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21923
21924 * xterm.h (x_get_font_repertory): Extern it.
21925
21926 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21927 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21928 it->multibyte_p is zero.
21929 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21930 (x_new_fontset): If FONTSETNAME doesn't match any existing
21931 fontsets, create a new one.
21932 (x_get_font_repertory): New function.
21933
219342008-02-01 Kenichi Handa <handa@m17n.org>
21935
21936 * coding.c (Ffind_coding_systems_region_internal): Detect an
21937 ASCII only string correctly.
21938
21939 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21940 version is 0.
21941
219422008-02-01 Kenichi Handa <handa@m17n.org>
21943
21944 * lread.c: Include "coding.h".
21945 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21946 (load_each_byte, unread_char): New variables.
21947 (readchar_backlog): Delete.
21948 (readchar): Return a character unless load_each_byte is nonzero.
21949 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21950 cons. If unread_char is not -1, simply return it.
21951 (unreadchar): Handle the case that readcharfun is
21952 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21953 (read_multibyte): Delete.
21954 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21955 (read_emacs_mule_char): New functions.
21956 (Fload): Even if the file doesn't have the extension ".elc", if
21957 safe_to_load_p returns a positive version number, assume that the
21958 file contains bytecompiled code. If the version is less than 22,
21959 load the file while decoding multibyte sequences by emacs-mule.
21960 (readevalloop): Don't use readchar_backlog.
21961 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21962 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21963 (read_escape): Delete the arg BYTEREP.
21964 (read1): Set load_each_byte to 1 temporarily while handling
21965 #@NUMBER. Don't call read_multibyte.
21966 (read_vector): Call Fread with a cons. If readcharfun is
21967 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21968 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21969 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21970 and Qload_force_doc_strings.
21971
219722008-02-01 Kenichi Handa <handa@m17n.org>
21973
21974 * xdisp.c (face_before_or_after_it_pos): Call
21975 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21976
219772008-02-01 Kenichi Handa <handa@m17n.org>
21978
21979 * character.h (TRAILING_CODE_P): New macro.
21980 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21981 (string_char_with_unification): Fix prototype.
21982 (Vscript_alist): Extern it.
21983
21984 * character.c (Vscript_alist): New variable.
21985 (string_char_with_unification, str_as_unibyte)
21986 (string_escape_byte8): Add `const' to local variables.
21987 (syms_of_character): Declare script-alist as a Lisp variable.
21988
21989 * charset.h (Vcharset_ordered_list): Extern it.
21990 (charset_ordered_list_tick): Extern it.
21991 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21992 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21993 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21994 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21995 (Funify_charset): Adjust for the change of Funify_charset.
21996
21997 * charset.c (charset_ordered_list_tick): New variable.
21998 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21999 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22000 deunify instead of unify a charset.
aac0c6e3
MR
22001 (string_xstring_p): Add `const' to local variables.
22002 (find_charsets_in_text): Add `const' to arguments and local variables.
22003 (encode_char): Adjust for the change of Funify_charset. Fix
22004 detecting of invalid code.
22005 (Fset_charset_priority): Increment charset_ordered_list_tick.
22006 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22007 and TO_CODE.
22008
22009 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22010 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22011 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22012 (decode_coding_ccl, consume_chars)
22013 (Ffind_coding_systems_region_internal)
22014 (Fcheck_coding_systems_region): Add `const' to local variables.
22015
22016 * print.c (print_object): Use octal form for printing the
22017 contents of a bool vector.
22018
220192008-02-01 Dave Love <fx@gnu.org>
22020
22021 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22022 <version == 20>: Refuse to load.
22023
220242008-02-01 Dave Love <fx@gnu.org>
22025
22026 * fns.c: Move coding.h.
22027 (Qcodeset, Qdays, Qmonths): New.
22028 (concat): Use CHARACTERP instead of INTEGERP.
22029 (Flocale_codeset): Delete.
22030 (Flanginfo): New function.
22031 (syms_of_fns): Change accordingly.
22032
22033 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22034
220352008-02-01 Dave Love <fx@gnu.org>
22036
22037 * casetab.c (init_casetab_once, init_casetab_once): Fix
22038 CHAR_TABLE_SET call.
22039
22040 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22041
22042 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22043
22044 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22045 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22046 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22047
22048 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22049
22050 * coding.c (ENCODE_DESIGNATION, decode_eol)
22051 (make_conversion_work_buffer, code_conversion_restore)
22052 (Fdefine_coding_system_internal): Convert Lisp types.
22053 (code_conversion_restore): Use EQ, not ==.
22054 (Fencode_coding_string): Fix code_convert_string call.
22055
22056 * coding.h (code_convert_region): Fix prototype.
22057
22058 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22059
22060 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22061 (Ffontset_info): Convert Lisp types.
22062
22063 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22064
22065 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22066
22067 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22068
22069 * chartab.c: Include "...h", not <...h> in some cases.
22070
22071 * callproc.c (Fcall_process): Remove unused variables.
22072
220732008-02-01 Dave Love <fx@gnu.org>
22074
22075 * coding.c (Fset_coding_system_priority): Allow null arg list.
22076
220772008-02-01 Dave Love <fx@gnu.org>
22078
22079 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22080 (Fself_insert_and_exit): Use CHARACTERP.
22081
22082 * callproc.c (Fcall_process): Remove unused vars.
22083
22084 * xterm.c (XTread_socket): Add extra dead keysyms.
22085
22086 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22087
22088 * dispextern.h: Remove prototypes for redraw_frame,
22089 redraw_garbaged_frames.
22090
22091 * cmds.c (Fself_insert_command): Use CHARACTERP.
22092
22093 * chartab.c (make_sub_char_table): Remove unused var.
22094 (Fset_char_table_default, Fmap_char_table): Doc fix.
22095
22096 * keymap.c (access_keymap): Remove generic char code.
22097 (push_key_description): Use CHARACTERP.
22098
220992008-02-01 Dave Love <fx@gnu.org>
22100
22101 * charset.c: Doc fixes.
22102 (Funify_charset): Extra checking.
22103
221042008-02-01 Dave Love <fx@gnu.org>
22105
22106 * lread.c: Remove some unused variables.
22107 (safe_to_load_p): If safe, return the magic number version byte.
22108 (Fload): Maybe use load-with-code-conversion.
22109
221102008-02-01 Kenichi Handa <handa@m17n.org>
22111
22112 * category.c (Fmodify_category_entry): Don't modify the contents
22113 of category_set for characters out of the range. Avoid
22114 unnecessary modification.
22115
22116 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22117 Vchar_unify_table. The default value of the table is now nil.
22118
22119 * character.c (syms_of_character): Setup Vchar_width_table for
22120 eight-bit-control and raw-byte chars.
22121
22122 * charset.h (enum define_charset_arg_index): Delete
22123 charset_arg_parents and add charset_arg_subset and
22124 charset_arg_superset.
22125 (enum charset_attr_index): Delete charset_parents and add
22126 charset_subset and charset_superset.
22127 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22128 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22129 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22130 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22131 (CHARSET_SUPERSET): New macros.
22132 (charset_work): Extern it.
22133 (ENCODE_CHAR): Use charset_work.
22134 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22135 (map_charset_chars): Extern it.
22136
22137 * charset.c (load_charset_map): Set the default value of encoder
22138 and deunifier char-tables to nil.
22139 (map_charset_chars): Change argument. Change callers. Use
22140 map_char_table_for_charset instead of map_char_table.
22141 (Fmap_charset_chars): New optional args from_code and to_code.
22142 (Fdefine_charset_internal): Adjust for the change of
22143 `define-charset' (:parents -> :subset or :superset).
22144 (charset_work): New variable.
22145 (encode_char, syms_of_charset): Adjust for the change of
22146 Fdefine_charset_internal.
22147 (Ffind_charset_string): Setup the vector `charsets' correctly.
22148
22149 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22150 the previous change.
22151 (char_table_ref_and_range): Adjust for the above change.
22152 (map_sub_char_table_for_charset): New function.
22153 (map_char_table_for_charset): New function.
22154
22155 * keymap.c (describe_vector): Handle a char-table directly here.
22156 (describe_char_table): Delete.
22157
22158 * lisp.h (map_charset_chars): Delete.
22159
221602008-02-01 Dave Love <fx@gnu.org>
22161
22162 * fns.c (count_combining): Comment out (unused).
22163 (Flocale_codeset): New.
22164 (syms_of_fns): Defsubr it.
22165
22166 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22167 (size_t): Remove.
22168
221692008-02-01 Dave Love <fx@gnu.org>
22170
22171 * Makefile.in (chartab.o): Depend on charset.h.
22172
221732008-02-01 Kenichi Handa <handa@m17n.org>
22174
22175 * character.c (syms_of_character): Set the default value of
22176 Vprintable_chars to Qnil.
22177
221782008-02-01 Dave Love <fx@gnu.org>
22179
22180 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22181
221822008-02-01 Kenichi Handa <handa@m17n.org>
22183
22184 * charset.c (load_charset_map): Handle the case that from < to
22185 correctly.
22186
22187 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22188 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22189 Pay attention to raw-8-bit chars.
22190
221912008-02-01 Kenichi Handa <handa@m17n.org>
22192
22193 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22194 It is not bytecompiled now.
22195
22196 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22197 (charset_jisx0208): New variables.
22198 (Fdefine_charset_internal): Setup them if appropriate.
22199 (init_charset_once): Initialize them to -1.
22200
22201 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22202 (charset_jisx0208): Extern them.
22203
22204 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22205 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22206 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22207 (setup_iso_safe_charsets): Fix arguments to Fassq.
22208 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22209 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22210 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22211 (encode_coding_iso_2022): Change the 1st arg to
22212 ENCODE_ISO_CHARACTER to a variable.
22213
222142008-02-01 Kenichi Handa <handa@m17n.org>
22215
22216 * charset.h (enum define_charset_arg_index): New enums
22217 charset_arg_min_code and charset_arg_max_code.
22218 (struct charset): New member char_index_offset.
22219
22220 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22221 Take charset->char_index_offset into account.
22222 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22223 args[charset_arg_max_code]. Setup charset.char_index_offset.
22224 (syms_of_charset): Fix args to Fdefine_charset_internal.
22225
222262008-02-01 Dave Love <fx@gnu.org>
22227
22228 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22229
222302008-02-01 Dave Love <fx@gnu.org>
22231
22232 * coding.c: Doc fixes.
22233 (Fcoding_system_aliases): Fix return value.
22234 (Qmac): Remove (duplicated) definition.
22235
222362008-02-01 Dave Love <fx@gnu.org>
22237
362654a6
JB
22238 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22239 New functions.
aac0c6e3
MR
22240
22241 * character.c (Fstring): Doc fix.
22242
22243 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22244
362654a6 22245 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22246 (font-encoding-alist): Doc fix.
22247
222482008-02-01 Dave Love <fx@gnu.org>
22249
22250 * term.c (costs_set): Declare static, non-initialized for pcc.
22251 (encode_terminal_code): Remove unused var.
22252
22253 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22254 for K&R.
22255
22256 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22257
22258 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22259 (suffixes): Move out of make_subsidiaries for K&R.
22260
22261 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22262
22263 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22264
222652008-02-01 Dave Love <fx@gnu.org>
22266
22267 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22268
22269 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22270
222712008-02-01 Yong Lu <lyongu@asia-infonet.com>
22272
22273 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22274
22275 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22276
222772008-02-01 Kenichi Handa <handa@m17n.org>
22278
22279 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22280 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22281
222822008-02-01 Kenichi Handa <handa@m17n.org>
22283
22284 * coding.c (decode_coding_charset): Adjust for the change of
22285 Fdefine_coding_system_internal.
22286 (Fdefine_coding_system_internal): For a coding system of
22287 `charset' type, store a list of charset IDs in
22288 `charset_attr_charset_valids' element of coding attributes.
22289
222902008-02-01 Kenichi Handa <handa@m17n.org>
22291
22292 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22293 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22294 caller. Handle 2-byte and 3-byte charsets correctly.
22295 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22296 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22297 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22298 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22299 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22300 sequence.
22301 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22302 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22303 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22304 and alt&rule composition.
22305 (decode_coding_iso_2022): Handle composition correctly.
22306 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22307
22308 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22309 re-defining a charset. If the charset has :emacs-mule-id, setup
22310 emacs_mule_bytes.
22311 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22312
223132008-02-01 Kenichi Handa <handa@m17n.org>
22314
22315 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22316 (encode_coding_big5, encode_coding_charset): If coding requires safe
22317 encoding, produce a character specified by
22318 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22319
223202008-02-01 Dave Love <fx@gnu.org>
22321
22322 * xterm.c (XSetIMValues): Declare.
22323
22324 * process.c: Conditionally include sys/wait.h, pty.h.
22325
22326 * print.c (print_object): Fix print format for 64-bit systems.
22327
22328 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22329
22330 * buffer.c (emacs_strerror): Declare.
22331
22332 * fontset.c (Fclear_face_cache): Declare.
22333 (accumulate_font_info): Comment-out (unused).
22334 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22335 variables.
22336
22337 * character.h (string_escape_byte8): Declare.
22338
22339 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22340 unused vars.
22341 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22342 (Fmap_charset_chars): Doc fix.
22343
22344 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22345 (Fset_coding_system_priority, Fset_coding_system_priority)
22346 (Fdefine_coding_system_internal): Doc fix.
22347
223482008-02-01 Dave Love <fx@gnu.org>
22349
22350 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22351
223522008-02-01 Kenichi Handa <handa@m17n.org>
22353
22354 * character.c (string_escape_byte8): Make multibyte string with
22355 correct size.
22356
22357 * charset.c (Fmake_char): Delete unnecessary code.
22358
223592008-02-01 Kenichi Handa <handa@m17n.org>
22360
22361 * xfns.c (x_encode_text): Allocate coding.destination here, and
22362 call encode_coding_object with dst_object Qnil.
22363
22364 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22365 multibyte form correctly.
22366
22367 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22368 against Vfont_encoding_alist.
22369
22370 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22371 handling of charset list.
22372 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22373 (decode_coding_object): Move point to coding->dst_pos before
22374 calling post-read-conversion function.
22375 (encode_coding_object): Give correct arguments to
22376 pre-write-conversion. Ignore the return value of
22377 pre-write-conversion function. Pay attention to the case that
22378 pre-write-conversion changes the current buffer. If dst_object is
22379 Qt, even if coding->src_bytes is zero, allocate at least one byte
22380 to coding->destination.
22381
22382 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22383
22384 * charset.c (Fmake_char): Make it more backward compatible.
22385 (Fmap_charset_chars): Fix docstring.
22386
223872008-02-01 Dave Love <fx@gnu.org>
22388
22389 * coding.c: Doc fixes.
22390 (Fdefine_coding_system_alias): Use names, not symbols, in
22391 coding-system-alist.
22392
223932008-02-01 Kenichi Handa <handa@m17n.org>
22394
22395 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22396 of calling free_realized_face.
22397
223982008-02-01 Yong Lu <lyongu@asia-infonet.com>
22399
22400 * charset.c (read_hex): Don't treat SPC as a comment starter.
22401 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22402 (Fdecode_char): Fix typo.
22403
224042008-02-01 Kenichi Handa <handa@m17n.org>
22405
22406 * charset.h (struct charset): New member `code_space_mask'.
22407
22408 * coding.c (coding_set_source): Delete the local variable beg_byte.
22409 (encode_coding_charset, Fdefine_coding_system_internal):
22410 Delete the local variable charset.
22411 (Fdefine_coding_system_internal): Setup
22412 attrs[coding_attr_charset_valids] correctly.
22413
22414 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22415 member to check if CODE is valid or not.
22416 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22417 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22418 is within the range of charset->min_code and carset->max_code.
22419
224202008-02-01 Dave Love <fx@gnu.org>
22421
22422 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22423
22424 * dispextern.h (generate_ascii_font): Fix return type.
22425
22426 * xfaces.c (generate_ascii_font): Fix arg declaration.
22427
22428 * coding.c (coding_inherit_eol_type)
22429 (Fset_terminal_coding_system_internal)
22430 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22431
224322008-02-01 Kenichi Handa <handa@m17n.org>
22433
22434 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22435 multiple charsets correctly.
22436
224372008-02-01 Kenichi Handa <handa@m17n.org>
22438
22439 * search.c (boyer_moore): Fix handling of multibyte character
22440 translation.
22441
22442 * xdisp.c (display_mode_element): When the variable `elt' is
22443 changed, update `this' and `lisp_string'.
22444
224452008-02-01 Kenichi Handa <handa@m17n.org>
22446
22447 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22448
22449 * callproc.c (Fcall_process): Be sure to give the current buffer
22450 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22451
22452 * charset.c (struct charset_map_entries): New struct.
22453 (load_charset_map): Rename from parse_charset_map. New args
22454 entries and n_entries. Change caller.
22455 (load_charset_map_from_file): Rename from load_charset_map.
22456 Change caller. New arg control_flag. Call load_charset_map at
22457 the tail.
22458 (load_charset_map_from_vector): New function.
22459 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22460 (encode_char): If the charset is compact, change a character index
22461 to a code point.
22462
22463 * coding.c (coding_alloc_by_making_gap): Check the case that the
22464 source and destination are the same correctly.
22465 (decode_coding_raw_text): Set coding->consumed_char and
22466 coding->consumed to 0.
22467 (produce_chars): If coding->chars_at_source is nonzero, update
22468 coding->consumed_char and coding->consumed before calling
22469 alloc_destination.
22470 (Fdefine_coding_system_alias): Register ALIAS in
22471 Vcoding_system_alist.
22472 (syms_of_coding): Define `no-conversion' coding system at the tail.
22473
22474 * fileio.c (Finsert_file_contents): Set coding_system instead of
22475 val. If the current buffer is multibyte, always call
22476 decode_coding_gap.
22477
22478 * xfaces.c (try_font_list): Give higher priority to fontset's
22479 family than face's family.
22480
224812008-02-01 Kenichi Handa <handa@m17n.org>
22482
22483 * callproc.c (Fcall_process): Be sure to give the current buffer
22484 to decode_coding_c_string.
22485
22486 * xfaces.c (try_font_list): Give a family specified in a fontset
22487 higher priority than a family specified in a face.
22488
224892008-02-01 Kenichi Handa <handa@m17n.org>
22490
22491 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22492 Fix arguments to insert_from_buffer.
22493
22494 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22495
224962008-02-01 Kenichi Handa <handa@m17n.org>
22497
22498 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22499 (decode_coding_gap): Set coding->dst_multibyte correctly.
22500
225012008-02-01 Kenichi Handa <handa@m17n.org>
22502
22503 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22504 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22505 (encode_coding_utf_16): Substitute coding->default_char for
22506 non-Unicode characters.
22507 (decode_coding): Don't call record_insert here.
22508 (setup_coding_system): Initialize `surrogate' of
22509 coding->spec.utf_16 to 0.
22510 (EMIT_ONE_BYTE): Fix for multibyte case.
22511
22512 * insdel.c (insert_from_gap): Call record_insert.
22513
225142008-02-01 Kenichi Handa <handa@m17n.org>
22515
22516 * casefiddle.c (casify_region): Fix multibyte case.
22517
22518 * character.c (c_string_width): Add return type `int'.
22519 (char_string_with_unification): Delete arg ADVANCED.
22520
22521 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22522 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22523 (CHAR_STRING_ADVANCE): Make it do-while statement.
22524
22525 * chartab.c (sub_char_table_set_range): Optimize for the case
22526 DEPTH == 3. Add workaround code for a GCC optimization bug.
22527
22528 * charset.c (parse_charset_map): Remove an unused variable.
22529
22530 * coding.c: Delete unused variables.
22531
22532 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22533 earlier. If inserted is zero and the coding system doesn't
22534 require flushing, don't call decode_coding_gap.
22535
22536 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22537
225382008-02-01 Kenichi Handa <handa@m17n.org>
22539
22540 The following changes are for using Unicode as an internal
22541 character model, and use UTF-8 format for buffer/string
22542 representation.
22543
22544 * .gdbinit (xchartable): Adjust for the change of char table structure.
22545 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22546
22547 * Makefile.in (obj): Add character.o and chartab.o.
22548 (lisp, shortlisp): Remove utf-8.elc.
22549 (*.o): For many files, change dependency on charset.h to
22550 character.h, and add dependency on character.h.
22551 (character.o, chartab.o): New targets.
22552
22553 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22554 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22555 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22556 of "charset.h".
22557
22558 * dired.c, filelock.c: Include "character.h".
22559
22560 * alloc.c: Include "character.h" instead of "charset.h".
22561 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22562 (syms_of_alloc): Remove defsubr for Smake_char_table.
22563
22564 * buffer.c: Include "character.h" instead of "charset.h", don't
22565 include "coding.h".
22566 (Fset_buffer_multibyte): Adjust for UTF-8.
22567
22568 * buffer.h: EXFUN Fbuffer_live_p.
22569
22570 * callproc.c: Include "character.h" instead of "charset.h".
22571 (Fcall_process): Big change for the new code-conversion APIs.
22572
22573 * casetab.c: Include "character.h" instead of "charset.h".
22574 (set_canon, set_identity, shuffle): Adjust for the new
22575 map_char_table spec.
22576 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22577 accessing the char table structure.
22578
22579 * chartab.c: New file that implements char table.
22580
22581 * category.c: Include "character.h".
22582 (copy_category_entry): New function.
22583 (copy_category_table): Call map_char_table and copy_category_entry.
22584 (Fmake_category_table): Initialize all top-level slots.
22585 (char_category_set): New function.
22586 (modify_lower_category_set): Delete.
22587 (Fmodify_category_entry): Call char_table_ref_and_range.
22588
22589 * category.h (CATEGORY_SET): Just call char_category_set.
22590
22591 * ccl.c: Include "character.h".
22592 (Qccl, Qcclp): New variables.
22593 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22594 it's less than 256.
22595 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22596 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22597 and DST type.
22598 (ccl_driver): Change types of argument, adjust code accordingly.
22599 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22600 ccl_driver.
22601 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22602
22603 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22604 New members src_multibyte, dst_multibyte, consumed, and produced.
22605 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22606 (CODING_SPEC_CCL_PROGRAM): New macro.
22607 (ccl_driver): Update prototype.
22608 (Qccl, Qcclp, Fccl_program_p): Extern them.
22609 (CHECK_CCL_PROGRAM): New macro.
22610
22611 * character.c, character.h, chartab.c: New files.
22612
22613 * charset.c: Mostly re-written. Move character and multibyte sequence
22614 handling codes to character.c.
22615
22616 * charset.h: Mostly re-written. Move character and multibyte sequence
22617 handling codes to character.h.
22618
22619 * coding.c, coding.h: Mostly re-written.
22620
22621 * composite.c: Include "character.h" instead of "charset.h".
22622 (CHAR_WIDTH): Move to character.h.
22623 (HASH_KEY, HASH_VALUE): Delete.
22624
22625 * composite.h (enum composition_method): Change order of enumeration
22626 symbols.
22627
22628 * data.c: Include "character.h" instead of "charset.h".
22629 (Faref): Call CHAR_TABLE_REF for a char table.
22630 (Faset): Call CHAR_TABLE_SET for a char table.
22631
22632 * dispextern.h (free_realized_face, check_face_attribytes)
22633 (generate_ascii_font): Extern them.
22634 (free_realized_multibyte_face): Delete extern.
22635
22636 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22637 table structure.
22638
22639 * editfns.c: Include "character.h" instead of "charset.h".
22640 (Fchar_to_string): Always call CHAR_STRING.
22641
22642 * emacs.c (main): Call init_charset_once, init_charset,
22643 syms_of_chartab, and syms_of_character.
22644
22645 * fileio.c: Include "character.h" instead of "charset.h".
22646 (Finsert_file_contents): Big change for the new code-conversion API.
22647 (choose_write_coding_system, Fwrite_region): Likewise.
22648 (build_annotations_2): Delete.
22649 (e_write): Big change for the new code-conversion API.
22650
22651 * fns.c: Include "character.h" instead of "charset.h".
22652 (copy_sub_char_table): Move to chartab.c.
22653 (Fcopy_sequence): Call copy_char_table for a char table.
22654 (concat): Delete codes calling count_multibyte.
22655 (string_char_to_byte, string_byte_to_char): Adjust for the new
22656 multibyte form.
22657 (internal_equal): Adjust for the change of char table structure.
22658 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22659 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22660 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22661 (char_table_translate, optimize_sub_char_table)
22662 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22663 chartab.c.
22664 (char_table_ref_and_index): Delete.
22665 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22666 (Fmd5): Call preferred_coding_system instead of accessing
22667 Vcoding_category_list. Adjust for the new code-conversion API.
22668 (syms_of_fns): Move defsubr for char table related functions to
22669 chartab.c.
22670
22671 * fontset.c: Mostly re-written.
22672
22673 * fontset.h (struct font_info): Change type of the member encoding_type.
22674 (enum FONT_SPEC_INDEX): New enum.
22675 (fontset_font_pattern, fs_load_font): Update prototype.
22676 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22677
22678 * indent.c: Include "character.h" instead of "charset.h".
22679 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22680
22681 * insdel.c: Include "character.h" instead of "charset.h".
22682 (copy_text): Don't refer to Vnonascii_translation_table.
22683 (insert_from_gap): New function.
22684
22685 * keyboard.c: Include "character.h" instead of "charset.h".
22686 (command_loop_1): Never call direct_output_forward_char before
22687 a non-ASCII character.
22688 (read_char): If Vkeyboard_translate_table is a char table, always
22689 translate a character.
22690
22691 * keymap.c: Include "character.h".
22692 (store_in_keymap): Handle the case that IDX is a cons.
22693 (Fdefine_key): Handle the case that KEY is a cons and the car part
22694 is also a cons (range).
22695 (push_key_description): Adjust for the new character code.
22696 (describe_vector): Call describe_char_table for a char table.
22697 (describe_char_table): New function.
22698
22699 * keymap.h (describe_char_table): Extern it.
22700
22701 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22702 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22703 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22704 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22705 Delete.
22706 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22707 structure.
22708 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22709 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22710 (CHARTAB_SIZE_BITS_3): New macros.
22711 (chartab_size): Extern it.
22712 (struct Lisp_Char_Table): Re-design.
22713 (struct Lisp_Sub_Char_Table): New structure.
22714 (HASH_KEY, HASH_VALUE): Move from fns.c.
22715 (CHARACTERBITS): Define as 22.
22716 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22717 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22718 (GC_SUB_CHAR_TABLE_P): New macro.
22719 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22720 (code_convert_string_norecord): Deleted extern.
22721 (init_character_once, syms_of_character, init_charset)
22722 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22723
22724 * lread.c: Include "character.h".
22725 (read_multibyte): New arg NBYTES.
22726 (read_escape): Change the meaning of returned *BYTEREP.
22727 (to_multibyte): Delete.
22728 (read1): Adjust the handling of char table and string.
22729
22730 * print.c: Include "character.h" instead of "charset.h".
22731 (print_string): Convert 8-bit raw bytes to octal form by
22732 string_escape_byte8.
22733 (print_object): Adjust for the new multibyte form. Print 8-bit
22734 raw bytes always in octal form. Handle sub char table correctly.
22735
22736 * process.c: Include "character.h" instead of "charset.h".
22737 (read_process_output, send_process): Adjust for the new
22738 code-conversion API.
22739
22740 * puresize.h (BASE_PURESIZE): Increase.
22741
22742 * regex.c: Include "character.h" instead of "charset.h".
22743 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22744 (regex_compile): Accept a range whose starting and ending
22745 character have different leading bytes.
22746 (analyse_first): Adjust for the above change.
22747
22748 * search.c: Include "character.h" instead of "charset.h".
22749 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22750 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22751
22752 * syntax.c: Include "character.h" instead of "charset.h".
22753 (syntax_parent_lookup): Delete.
22754 (Fmodify_syntax_entry): Accept a cons as CHAR.
22755 (skip_chars): Adjust for the new multibyte form.
22756 (init_syntax_once): Call char_table_set_range instead of directly
22757 accessing the structure of a char table.
22758
22759 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22760 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22761 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22762 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22763
22764 * term.c: Include "buffer.h" and "character.h".
22765 (encode_terminal_code, write_glyphs): Adjust for the new
22766 code-conversion API.
22767 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22768
22769 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22770
22771 * xdisp.c: Include "character.h".
22772 (get_next_display_element): Adjust for the new multibyte form.
22773 (disp_char_vector): Adjust for the new char table structure.
22774 (decode_mode_spec_coding): Adjust for the new structure of
22775 coding system.
22776 (decode_mode_spec): Adjust for the new code-conversion API.
22777
22778 * xfaces.c: Include "character.h" instead of "charset.h".
22779 (load_face_font): Adjust for the change of choose_face_font and
22780 FS_LOAD_FONT.
22781 (generate_ascii_font): New function.
22782 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22783 (set_font_frame_param): Adjust for the change of choose_face_font.
22784 (free_realized_face): Make it public.
22785 (free_realized_faces_for_fontset): Rename from
22786 free_realized_multibyte_face. Free also faces realized for ASCII.
22787 (choose_face_font): Change arguments. Adjust for the change of
22788 fontset_font_pattern and FS_LOAD_FONT.
22789
22790 * xfns.c: Include "character.h".
22791 (x_encode_text): Adjust for the new code-conversion API.
22792
22793 * xselect.c: Don't include "charset.h".
22794 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22795
22796 * xterm.c: Include "character.h".
22797 (x_encode_char): New argument CHARSET. Change caller.
22798 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22799 Call ENCODE_CHAR instead of SPLIT_CHAR.
22800 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22801 CHAR_WIDTH instead of CHARSET_WIDTH.
22802 (XTread_socket): Adjust for the new code-conversion API.
22803 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22804 (x_load_font): Adjust for the change of struct font.
22805
228062008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22807
22808 * xfaces.c (face_at_buffer_position): Remove unused vars.
22809
228102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22811
22812 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22813 Fix overflow checking.
22814
228152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22816
22817 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22818 Cancel previous change.
22819
228202008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22821
22822 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22823 ccl->eight_bit_control. Fix check for buffer overflow.
22824 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22825 (ccl_driver): Initialize extra_bytes to 0.
22826
228272008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22828
22829 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22830 return it ORed with ctrl_modifier.
22831
228322008-01-29 Miles Bader <miles@gnu.org>
22833
22834 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22835
228362008-01-28 Jason Rumney <jasonr@gnu.org>
22837
22838 * w32.c (stat): Don't double check for networked drive.
22839
228402008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22841
22842 * window.c (run_window_configuration_change_hook): New function.
22843 Code extracted from set_window_buffer. Set the selected frame.
22844 (set_window_buffer): Use it.
22845 * window.h (run_window_configuration_change_hook): Declare.
22846 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22847
22848 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22849
228502008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22851
22852 * Makefile.in: Remove references to unused macros.
22853
228542008-01-26 Eli Zaretskii <eliz@gnu.org>
22855
22856 * w32.c (g_b_init_get_sid_sub_authority)
22857 (g_b_init_get_sid_sub_authority_count): New static variables.
22858 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22859 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22860 (init_user_info): Use them to retrieve uid and gid.
22861 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22862 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22863 st_uid and st_gid of the file.
22864
228652008-01-26 Jason Rumney <jasonr@gnu.org>
22866
22867 * w32.c (logon_network_drive): New function.
22868 (stat): Use it.
22869
228702008-01-26 Chong Yidong <cyd@stupidchicken.com>
22871
22872 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22873 invisible text covered with an ellipsis.
22874
228752008-01-25 Richard Stallman <rms@gnu.org>
22876
22877 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22878 jump back to beginning. Move some other initializations after that.
22879 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22880 New variables.
22881 (syms_of_xdisp): Init them.
22882
22883 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22884
22885 * buffer.c (reset_buffer_local_variables):
22886 Implement `permanent-local-hook'.
22887 (Qpermanent_local_hook): New variable.
22888 (syms_of_buffer): Init and staticpro it.
22889
228902008-01-25 Michael Albinus <michael.albinus@gmx.de>
22891
22892 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22893
228942008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22895
22896 * fns.c (Fclrhash): Return TABLE.
22897
228982008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22899
22900 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22901 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22902 is set even without positional changes.
22903 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22904
22905 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22906
229072008-01-23 Jason Rumney <jasonr@gnu.org>
22908
22909 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22910
22911 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22912 the unicode range available in MULE by locale-coding-system.
22913 Improve dbcs lead byte detection. Set event timestamp and modifiers
22914 earlier.
22915
229162008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22917
22918 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22919 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22920 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22921 when used on child processes.
22922
229232008-01-21 Michael Albinus <michael.albinus@gmx.de>
22924
22925 * dbusbind.c (Fdbus_method_return_internal): Rename from
22926 Fdbus_method_return.
22927 (Fdbus_unregister_object): Move to dbus.el.
22928 (Fdbus_call_method, Fdbus_method_return_internal)
22929 (Fdbus_send_signal): Improve debug messages.
22930
229312008-01-20 Martin Rudalics <rudalics@gmx.at>
22932
22933 * undo.c (undo_inhibit_record_point): New variable.
22934 (syms_of_undo): Initialize it.
22935 (record_point): Don't record point when undo_inhibit_record_point
22936 is set.
22937
229382008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22939
22940 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22941
22942 * xdisp.c (Qauto_hscroll_mode): New var.
22943 (syms_of_xdisp): Initialize it.
22944 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22945 window's buffer.
22946 (hscroll_windows): Don't check automatic_hscrolling_p here.
22947
22948 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22949 vscroll if we're setting window-buffer to the value it already has.
22950
229512008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22952
22953 * m/intel386.h: Remove references to XENIX.
22954
229552008-01-17 Andreas Schwab <schwab@suse.de>
22956
22957 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22958 instead of HAVE_X86_64_LIB64_DIR.
22959 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22960
229612008-01-17 Glenn Morris <rgm@gnu.org>
22962
22963 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22964 to HAVE_X86_64_LIB64_DIR.
22965
229662008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22967
22968 * s/irix3-3.h:
22969 * s/irix4-0.h:
22970 * s/386-ix.h:
22971 * s/domain.h:
22972 * s/hpux9-x11r4.h:
22973 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22974
22975 * sysdep.c: Remove code containing references to symbols defined
22976 by unsupported systems.
22977
229782008-01-16 Glenn Morris <rgm@gnu.org>
22979
22980 * coding.c (select-safe-coding-system-function): Doc fix.
22981
229822008-01-15 Glenn Morris <rgm@gnu.org>
22983
22984 * config.in: Revert 2008-01-13 change: this is a generated file.
22985
229862008-01-13 Tom Tromey <tromey@redhat.com>
22987
22988 * lisp.h: Fix typo.
22989
229902008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22991
22992 * m/sequent-ptx.h:
22993 * m/sequent.h:
22994 * s/ptx.h:
22995 * s/ptx4-2.h:
22996 * s/ptx4.h: Remove files for systems no longer supported.
22997
22998 * callproc.c (Fcall_process): Fix previous change.
22999
230002008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23001
23002 * unexsunos4.c: Remove file, system not supported anymore.
23003
23004 * m/mips.h:
23005 * m/intel386.h:
23006 * callproc.c:
23007 * config.in:
23008 * ecrt0.c:
23009 * emacs.c:
23010 * fileio.c:
23011 * frame.c:
23012 * getpagesize.h:
23013 * keyboard.c:
23014 * lread.c:
23015 * process.c:
23016 * puresize.h:
23017 * sysdep.c:
23018 * systty.h:
23019 * syswait.h:
23020 * unexec.c:
23021 * xdisp.c:
23022 * alloc.c: Remove code containing references to symbols defined by
23023 unsupported systems.
23024
230252008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23026
23027 * coding.c (detect_coding_mask): Fix previous change.
23028
230292008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23030
23031 * coding.c (detect_coding_iso2022): New arg
23032 latin_extra_code_state. Allow Latin extra codes only
23033 when *latin_extra_code_state is nonzero.
23034 (detect_coding_mask): If there is a NULL byte, detect the encoding
23035 as UTF-16 or binary. If Latin extra codes exist, detect the
23036 encoding as ISO-2022 only when there's no other proper encoding is
23037 found.
23038
230392008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23040
23041 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23042 #ifdef MAC_OS.
23043
230442008-01-08 Richard Stallman <rms@gnu.org>
23045
23046 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23047
230482008-01-06 Nick Roberts <nickrob@snap.net.nz>
23049
23050 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23051 menu bar in parentheses.
23052
230532008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23054
23055 * m/7300.h:
23056 * m/acorn.h:
23057 * m/alliant-2800.h:
23058 * m/alliant.h:
23059 * m/alliant1.h:
23060 * m/alliant4.h:
23061 * m/altos.h:
23062 * m/amdahl.h:
23063 * m/apollo.h:
23064 * m/att3b.h:
23065 * m/aviion-intel.h:
23066 * m/aviion.h:
23067 * m/celerity.h:
23068 * m/clipper.h:
23069 * m/cnvrgnt.h:
23070 * m/convex.h:
23071 * m/cydra5.h:
23072 * m/delta88k.h:
23073 * m/dpx2.h:
23074 * m/dual.h:
23075 * m/elxsi.h:
23076 * m/f301.h:
23077 * m/gould-np1.h:
23078 * m/gould.h:
23079 * m/i860.h:
23080 * m/ibmps2-aix.h:
23081 * m/ibmrt-aix.h:
23082 * m/ibmrt.h:
23083 * m/irist.h:
23084 * m/is386.h:
23085 * m/isi-ov.h:
23086 * m/mega68.h:
23087 * m/mg1.h:
23088 * m/news-r6.h:
23089 * m/news-risc.h:
23090 * m/news.h:
23091 * m/nh3000.h:
23092 * m/nh4000.h:
23093 * m/ns16000.h:
23094 * m/ns32000.h:
23095 * m/nu.h:
23096 * m/orion.h:
23097 * m/orion105.h:
23098 * m/paragon.h:
23099 * m/pfa50.h:
23100 * m/plexus.h:
23101 * m/pyramid.h:
23102 * m/pyrmips.h:
23103 * m/sh3el.h:
23104 * m/sps7.h:
23105 * m/sr2k.h:
23106 * m/stride.h:
23107 * m/sun1.h:
23108 * m/sun2.h:
23109 * m/sun3-68881.h:
23110 * m/sun3-fpa.h:
23111 * m/sun3-soft.h:
23112 * m/sun3.h:
23113 * m/sun386.h:
23114 * m/symmetry.h:
23115 * m/tad68k.h:
23116 * m/tahoe.h:
23117 * m/targon31.h:
23118 * m/tek4300.h:
23119 * m/tekxd88.h:
23120 * m/tower32.h:
23121 * m/tower32v3.h:
23122 * m/ustation.h:
23123 * m/wicat.h:
23124 * m/xps100.h:
23125 * s/cxux.h:
23126 * s/cxux7.h:
23127 * s/dgux.h:
23128 * s/dgux4.h:
23129 * s/dgux5-4-3.h:
23130 * s/dgux5-4r2.h:
23131 * s/esix.h:
23132 * s/esix5r4.h:
23133 * s/hiuxmpp.h:
23134 * s/hiuxwe2.h:
23135 * s/iris3-5.h:
23136 * s/iris3-6.h:
23137 * s/isc2-2.h:
23138 * s/isc3-0.h:
23139 * s/isc4-0.h:
23140 * s/isc4-1.h:
23141 * s/newsos5.h:
23142 * s/newsos6.h:
23143 * s/osf1.h:
23144 * s/osf5-0.h:
23145 * s/riscix1-1.h:
23146 * s/riscix12.h:
23147 * s/sco4.h:
23148 * s/sco5.h:
23149 * s/sunos4-0.h:
23150 * s/sunos4-1.h:
23151 * s/sunos413.h:
23152 * s/sunos4shr.h:
23153 * s/umax.h:
23154 * s/unipl5-2.h:
23155 * s/xenix.h:
23156 * cxux-crt0.s:
23157 * unexapollo.c:
23158 * unexconvex.c:
23159 * unexenix.c:
23160 * unexsni.c: Remove files for systems no longer supported.
23161
23162 * m/intel386.h: Remove references to unsupported systems.
23163
23164 * w32.c (get_emacs_configuration): Remove reference to i860.
23165
23166 * sysdep.c: Remove dead code.
23167
231682008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23169
23170 * s/rtu.h:
23171 * m/masscomp.h: Remove files. Platform is obsolete.
23172
231732008-01-04 Michael Albinus <michael.albinus@gmx.de>
23174
23175 * dbusbind.c (Fdbus_method_return): New function.
23176 (xd_read_message): Add the serial number to the event.
23177 (Fdbus_register_method): Activate the function.
23178
231792008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23180
23181 * keyboard.c (read_key_sequence): Fix typo.
23182
231832008-01-03 Michael Albinus <michael.albinus@gmx.de>
23184
23185 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23186 (xd_signature, xd_append_arg): Handle element type detection for
23187 empty arrays.
23188 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23189 SDATA () calls; this must be solved more general.
23190 (Fdbus_register_signal): Use SBYTES instead of strlen.
23191
231922008-01-03 Magnus Henoch <magnus@zemdatav>
23193
23194 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23195 unsigned int for byte values (necessary for big-endian platform).
23196 (Fdbus_call_method): Handle the case of no returned arguments.
23197
231982007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23199
23200 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23201
232022007-12-31 Magnus Henoch <mange@freemail.hu>
23203
23204 * dbusbind.c (xd_signature): Signature of variant is just "v".
23205
232062007-12-30 Michael Albinus <michael.albinus@gmx.de>
23207
23208 * dbusbind.c: Fix several errors and compiler warnings.
23209 Reported by Tom Tromey <tromey@redhat.com>.
23210 (XD_ERROR, XD_DEBUG_MESSAGE)
23211 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23212 (xd_append_arg): Part for basic D-Bus types rewritten.
23213 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23214 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23215 appropriate.
23216 (xd_read_message): Return Qnil. Don't signal an error; it is not
23217 useful during event reading.
23218 (Fdbus_register_signal): Signal an error if the check for
23219 FUNCTIONP fails.
23220 (Fdbus_register_method): New function. The implementation is not
23221 complete, the call of the function signals an error therefore.
23222 (Fdbus_unregister_object): New function, renamed from
23223 Fdbus_unregister_signal. The initial check signals an error, if
23224 the object is not well formed.
23225
232262007-12-30 Richard Stallman <rms@gnu.org>
23227
23228 * textprop.c (get_char_property_and_overlay):
23229 Signal error if POSITION is out of range in a buffer.
23230
232312007-12-29 Martin Rudalics <rudalics@gmx.at>
23232
23233 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23234 because the original parameters are in pure storage now.
23235
232362007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23237
23238 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23239
232402007-12-22 Eli Zaretskii <eliz@gnu.org>
23241
23242 * callint.c (syms_of_callint) <command-history>: Add reference to
23243 history-length in the doc string.
23244
232452007-12-17 Jason Rumney <jasonr@gnu.org>
23246
23247 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23248 before passing as wParam.
23249
232502007-12-22 Michael Albinus <michael.albinus@gmx.de>
23251
23252 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23253 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23254 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23255 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23256 as number.
23257 (Fdbus_call_method): Fix docstring.
23258
232592007-12-21 Michael Albinus <michael.albinus@gmx.de>
23260
23261 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23262 New macros.
23263 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23264 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23265 Simplify.
23266 (xd_signature): New function.
23267 (xd_append_arg): Compute also signatures. Major rewrite.
23268 (xd_retrieve_arg): Make debug messages friendly.
23269 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23270 Check for signatures of arguments.
23271
232722007-12-19 Michael Albinus <michael.albinus@gmx.de>
23273
23274 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23275 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23276 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23277 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23278 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23279 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23280 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23281 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23282 (xd_retrieve_value): Remove. Functionality included in ...
23283 (xd_append_arg): New function.
23284 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23285
232862007-12-16 Michael Albinus <michael.albinus@gmx.de>
23287
23288 * dbusbind.c (top): Include <stdio.h>.
23289 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23290 dbus_message_new_method_call and dbus_message_new_signal.
23291 (Fdbus_register_signal): Rename unique_name to uname.
23292 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23293 non-existing unique name. Fix typos in matching rule. Return an
23294 object which is useful in Fdbus_unregister_signal.
23295 (Fdbus_unregister_signal): Reimplementation, in order to remove
23296 only the corresponding entry.
23297 (Vdbus_registered_functions_table): Change the order of entries.
23298 Apply these changes in xd_read_message and Fdbus_register_signal.
23299
233002007-12-16 Andreas Schwab <schwab@suse.de>
23301
23302 * fileio.c (Finsert_file_contents): Fix overflow check to not
23303 depend on undefined integer overflow.
23304
233052007-12-14 Jason Rumney <jasonr@gnu.org>
23306
23307 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23308 for characters above 127.
23309
233102007-12-13 Jason Rumney <jasonr@gnu.org>
23311
23312 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23313 before dereferencing array.
23314 (lookup_vk_code): Remove zero comparison.
23315
233162007-12-14 Michael Albinus <michael.albinus@gmx.de>
23317
23318 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23319 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23320 Use `unsigned int' instead of `uint'.
23321 (xd_read_message, Fdbus_register_signal): Split expressions into
23322 multiple lines before operators "&&" and "||", according to the
23323 GNU Coding Standards.
23324
233252007-12-14 Eli Zaretskii <eliz@gnu.org>
23326
23327 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23328
233292007-12-12 Juri Linkov <juri@jurta.org>
23330
23331 * buffer.c (Frename_buffer): In interactive spec replace
23332 `read-buffer' with `read-string' that uses `buffer-name-history'
23333 as history, and the current buffer's name as default.
23334
233352007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23336
23337 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23338 manipulating the backtrace manually.
23339 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23340 (struct backtrace, backtrace_list): Remove.
23341 (command_loop_1): Remove dead var `no_direct'.
23342
23343 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23344 preserve non-built-in buffer-local variables.
23345 (Fkill_all_local_variables): Don't re-create&re-set permanent
23346 buffer-local variables.
23347
233482007-12-09 Juri Linkov <juri@jurta.org>
23349
23350 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23351 Lisp code that uses `read-buffer' with current buffer as default.
23352
233532007-12-08 Michael Albinus <michael.albinus@gmx.de>
23354
23355 * dbusbind.c (xd_read_message): Generate an event for every
23356 registered handler. There might be several handlers registered
23357 for the same signal.
23358 (Fdbus_register_signal): Don't overwrite a registration for the
23359 same signal. Add a new registration if handlers are different.
23360 (Vdbus_registered_functions_table): Rework doc string.
23361
233622007-12-07 Michael Albinus <michael.albinus@gmx.de>
23363
23364 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23365 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23366 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23367 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23368 Unify argument lists.
23369 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23370 arguments and hash table keys. Use unique name for service.
23371 (Fdbus_unregister_signal): Remove checks.
23372 (Vdbus_registered_functions_table): Fix doc string.
23373
233742007-12-05 Magnus Henoch <mange@freemail.hu>
23375
23376 * process.c (make_process): Initialize pty_flag to 0.
23377
233782007-12-05 Jason Rumney <jasonr@gnu.org>
23379
23380 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23381 specified XBMs.
23382
233832007-12-05 Richard Stallman <rms@gnu.org>
23384
23385 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23386
233872007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23388
23389 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23390 New variable.
23391 (mac_try_close_socket) [MAC_OSX]: New function.
23392 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23393 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23394
23395 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23396 Use mac_try_close_socket.
23397
233982007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23399
23400 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23401 reloc_base.
23402 (copy_dysymtab): Compute relocation base here.
23403 (rebase_reloc_address) [__ppc64__]: New function.
23404 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23405 changed.
23406
234072007-12-05 Jason Rumney <jasonr@gnu.org>
23408
23409 * w32proc.c (sys_spawnve): Quote args with wildcards.
23410
234112007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23412
23413 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23414 __objc_* sections.
23415 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23416
234172007-12-05 Michael Albinus <michael.albinus@gmx.de>
23418
23419 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23420 Move check for Vdbus_registered_functions_table to
23421 xd_read_queued_messages.
23422 (xd_read_queued_messages): Protect xd_read_message calls by
23423 internal_condition_case_1.
23424
234252007-12-04 Michael Albinus <michael.albinus@gmx.de>
23426
23427 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23428 Qdbus_system_bus and Qdbus_session_bus, respectively.
23429 (Vdbus_intern_symbols): Remove.
23430 (Vdbus_registered_functions_table): New hash table.
23431 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23432 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23433 Rewrite in order to manage registered functions by hash table
23434 Vdbus_registered_functions_table.
23435
234362007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23437
23438 * xterm.c: Update URL to Window Manager Specification in comment.
23439
234402007-12-02 Michael Albinus <michael.albinus@gmx.de>
23441
23442 * config.in (HAVE_DBUS): Add.
23443
23444 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23445 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23446 (obj): Add $(DBUS_OBJ).
23447 (LIBES): Add $(DBUS_LIBS).
23448 (dbusbind.o): New target.
23449
23450 * dbusbind.c: New file.
23451
23452 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23453
23454 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23455 (Qdbus_event): New Lisp symbol.
23456 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23457 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23458 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23459
23460 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23461
234622007-12-01 Richard Stallman <rms@gnu.org>
23463
23464 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23465
234662007-11-30 Jason Rumney <jasonr@gnu.org>
23467
23468 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23469 (w32con_reset_terminal_modes): Clear screen buffer.
23470 (w32_face_attributes): Don't use color indexes that are out of range.
23471 Only reverse the default colors.
23472
23473 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23474 WINDOWSNT.
23475
23476 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23477
234782007-11-29 Jason Rumney <jasonr@gnu.org>
23479
23480 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23481 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23482 if the terminal colors are initialized.
23483 (unspecified_fg, unspecified_bg): Remove unused declarations.
23484
234852007-11-29 Andreas Schwab <schwab@suse.de>
23486
23487 * keyboard.c (apply_modifiers): Fix typo.
23488
234892007-11-29 Richard Stallman <rms@gnu.org>
23490
23491 * keymap.c (Fcurrent_local_map): Doc fix.
23492
234932007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23494
23495 * s/gnu-kfreebsd.h: New file.
23496
234972007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23498
23499 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23500 Don't cast redundantly.
23501
23502 * keyboard.c (KEY_TO_CHAR): New macro.
23503 (parse_modifiers, apply_modifiers): Accept integer arguments.
23504 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23505 for chars and symbol keys.
23506 After doing such remapping, apply function-key-map again.
23507
235082007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23509
23510 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23511 compiled anymore.
23512
235132007-11-26 Andreas Schwab <schwab@suse.de>
23514
23515 * process.c (list_processes_1): Fix indentation level of the
23516 command column.
23517
235182007-11-23 Andreas Schwab <schwab@suse.de>
23519
23520 * editfns.c (Fformat): Handle %c specially since it requires the
23521 argument to be of type int.
23522
235232007-11-23 Markus Triska <markus.triska@gmx.at>
23524
23525 * emacs.c (main): Call init_editfns before init_process, since
23526 init_process sets Vprocess_connection_type depending on OS release.
23527
235282007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23529
23530 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23531 (find_symbol_value): Use do_symval_forwarding.
23532
23533 * data.c (set_internal): Set the value in the `cons-cell' (for
23534 Buffer_Local_values) not only for frame-local variables.
23535
235362007-11-22 Andreas Schwab <schwab@suse.de>
23537
23538 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23539 values to sprintf.
23540 * keymap.c (Fsingle_key_description): Likewise.
23541 * print.c (print_object): Likewise.
23542
235432007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23544
23545 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23546 file for image is nil.
23547
235482007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23549
23550 * term.c: Include stdarg.h.
23551 (fatal): Implement using varargs.
23552 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23553
235542007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23555
23556 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23557 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23558 Update call to buffer_slot_type_mismatch.
23559 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23560 (buffer_slot_type_mismatch): Update.
23561 * buffer.c (buffer_local_types): Remove.
23562 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23563 (defvar_per_buffer): Set the type in the buffer_objfwd.
23564
235652007-11-21 Jason Rumney <jasonr@gnu.org>
23566
23567 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23568 CreateFileMapping returns NULL on failure.
23569
235702007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23571
23572 * search.c (Fset_match_data): Remove the `evaporate' feature.
23573 (unwind_set_match_data): Don't use the `evaporate' feature.
23574
235752007-11-21 Jason Rumney <jasonr@gnu.org>
23576
23577 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23578
23579 * w32console.c (w32con_write_glyphs): Remove unused variables.
23580
235812007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23582
23583 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23584
23585 * s/darwin.h (MULTI_KBOARD): Remove.
23586
23587 * macfns.c (x_create_tip_frame, Fx_create_frame)
23588 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23589
235902007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23591
23592 * buffer.c (Fbuffer_local_value): Remove redundant test.
23593 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23594 than in `current-buffer' to match the comment.
23595 Do the swap using swap_in_global_binding.
23596
23597 * data.c (store_symval_forwarding, set_internal):
23598 * eval.c (specbind): Remove dead code.
23599
23600 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23601 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23602 Since we do not want to see internal Lisp_*fwd objects here.
23603
236042007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23605
23606 * sysdep.c (init_system_name): Use getaddrinfo if available.
23607
23608 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23609 (x_scroll_bar_note_movement): start, end, with, height in struct
23610 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23611
236122007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23613
23614 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23615
236162007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23617
23618 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23619 This undoes Richard's change of 14-Oct-2002.
23620
23621 * alloc.c (allocate_other_vector):
23622 * lisp.h (allocate_other_vector): Remove.
23623
23624 * window.c (struct save_window_data): Move non-lisp data to the end
23625 and make it `int' rather than Lisp_Object.
23626 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23627 Done wrap/unwrap integer values.
23628 (Fset_window_configuration, compare_window_configurations):
23629 Update use of fields to their new types.
23630
23631 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23632 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23633 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23634 (SET_SCROLL_BAR_X_WINDOW): Remove.
23635 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23636 Access the new x_window field directly.
23637 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23638 Don't wrap/unwrap integers into Lisp_Objects.
23639 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23640 (x_scroll_bar_report_motion):
23641 Don't wrap/unwrap integers into Lisp_Objects.
23642 (x_term_init): Use SDATA.
23643 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23644 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23645 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23646 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23647 * xfns.c (x_set_background_color):
23648 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23649 Access the new x_window field directly.
23650
23651 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23652 (allocate_pseudovector): Make non-static.
23653
23654 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23655 (allocate_pseudovector): Declare.
23656 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23657
236582007-11-15 Andreas Schwab <schwab@suse.de>
23659
23660 * editfns.c (Fformat): Correctly format EMACS_INT values.
23661 Also take precision into account when formatting an integer.
23662
23663 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23664
236652007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23666
23667 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23668 (syms_of_keyboard): Defsubr it.
23669
23670 * data.c (swap_in_global_binding): Fix longstanding bug where
23671 store_symval_forwarding was not called with the right second argument,
23672 thus causing objfwd-ing from being dropped.
23673
236742007-11-14 Juanma Barranquero <lekktu@gmail.com>
23675
23676 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23677 (Fx_display_pixel_height, Fx_display_planes)
23678 (Fx_display_color_cells, Fx_server_max_request_size)
23679 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23680 (Fx_display_visual_class, Fx_display_save_under):
23681 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23682 (Fx_display_pixel_height, Fx_display_planes)
23683 (Fx_display_color_cells, Fx_server_max_request_size)
23684 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23685 (Fx_display_mm_height, Fx_display_mm_width)
23686 (Fx_display_backing_store, Fx_display_visual_class)
23687 (Fw32_select_font, Fx_display_save_under):
23688 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23689 (Fx_display_pixel_height, Fx_display_planes)
23690 (Fx_display_color_cells, Fx_server_max_request_size)
23691 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23692 (Fx_display_save_under): Fix typos in docstrings.
23693
236942007-11-14 Juanma Barranquero <lekktu@gmail.com>
23695
23696 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23697 corresponding to deleted entries; they are an implementation detail.
23698 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23699 Remove variables.
23700 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23701 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23702 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23703 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23704 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23705 (Fw32_define_rgb_color, Fw32_load_color_file)
23706 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23707 Fix typos in docstrings.
23708 (Fx_server_version): Reflow docstring.
23709 (Fw32_shell_execute): Doc fixes.
23710
237112007-11-13 Juanma Barranquero <lekktu@gmail.com>
23712
23713 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23714 if w32_parse_hot_key returned nil.
23715
237162007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23717
23718 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23719
237202007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23721
aac0c6e3
MR
23722 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23723
23724 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23725
23726 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23727 Remove W32_SCROLL_BAR_CLICK_EVENT.
23728
23729 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23730 Add MULTIMEDIA_KEY_EVENT.
23731
23732 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23733 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23734 (make_lispy_event) [WINDOWSNT]: Use it to translate
23735 MULTIMEDIA_KEY_EVENT.
23736
23737 * w32term.h (WM_APPCOMMAND): Define if not already.
23738 (GET_APPCOMMAND_LPARAM): Likewise.
23739
23740 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23741 WM_APPCOMMAND.
23742
23743 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23744 (syms_of_w32fns): Export and initialize it.
23745 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23746
237472007-11-09 Chong Yidong <cyd@stupidchicken.com>
23748
23749 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23750 twice.
23751
23752 * xdisp.c (handle_face_prop): Fix last change.
23753
237542007-11-09 Richard Stallman <rms@gnu.org>
23755
23756 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23757 not just for after-strings and before-strings.
23758 Call face_for_overlay_string and pass the overlay to it.
23759 (handle_display_prop): Determine whether property came from an overlay.
23760 Pass OVERLAY arg to handle_single_display_spec.
23761 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23762 (load_overlay_strings): Fill in it->string_overlays.
23763 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23764
23765 * xfaces.c (face_for_overlay_string): Function renamed from
23766 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23767
23768 * dispextern.h (struct it): New elt string_overlays.
23769 New elt from_overlay, also in stack.
23770 Rearrange a few elements.
23771 (face_for_overlay_string): Decl renamed from
23772 face_at_buffer_position_no_overlays, and add argument.
23773
237742007-11-09 Richard Stallman <rms@gnu.org>
23775
23776 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23777 to get the base face for an overlay string.
23778
23779 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23780
23781 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23782
23783 * xdisp.c (handle_stop): Move some code out of loop.
23784
237852007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23786
23787 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23788 Fix conversion from Lisp object to ATSUFontID.
23789
237902007-11-09 Jason Rumney <jasonr@gnu.org>
23791
23792 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23793
237942007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23795
23796 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23797 Don't assume regions are aligned to page boundary.
23798 (print_load_command_name): Add LC_UUID if defined.
23799
238002007-11-09 Richard Stallman <rms@gnu.org>
23801
23802 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23803
238042007-11-07 Jason Rumney <jasonr@gnu.org>
23805
23806 * s/windows95.h: Remove.
23807
238082007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23809
23810 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23811 abort with a message on unhandled store_type values.
23812
238132007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23814
23815 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23816 Remove HAVE_X11R5 and HAVE_X11R4.
23817
238182007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23819
23820 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23821
238222007-11-01 Johan Bockgård <bojohan@gnu.org>
23823
23824 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23825 Don't set s->stippled_p here, since it has already been set by
23826 x_set_glyph_string_gc from x_draw_glyph_string.
23827
238282007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23829
23830 * sunfns.c: Remove file.
23831
23832 * m/sun386.h:
23833 * m/sun2.h:
23834 * m/sparc.h: Remove Sun windows code.
23835
238362007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23837
23838 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23839 (init_keyboard): Set current_kboard's window-system to nil.
23840 (tty_read_avail_input): Typo.
23841 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23842
238432007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23844
23845 * s/usg5-4.h:
23846 * s/usg5-3.h:
23847 * s/ptx.h:
23848 * m/is386.h:
23849 * m/ibmps2-aix.h:
23850 * Makefile.in: Remove all mentions of X10.
23851
23852 * dispnew.c (syms_of_display): Don't mention version 10.
23853
238542007-10-28 Juanma Barranquero <lekktu@gmail.com>
23855
23856 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23857 ($(BLD)/abbrev.$(O)): Remove.
23858
238592007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23860
23861 Rewrite abbrev.c in Elisp.
23862 * image.c (Qcount): Don't declare as extern.
23863 (syms_of_image): Initialize and staticpro `Qcount'.
23864 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23865 * emacs.c (main): Don't call syms_of_abbrev.
23866 * Makefile.in (obj): Remove abbrev.o.
23867 (abbrev.o): Remove.
23868 * abbrev.c: Remove.
23869
238702007-10-26 Martin Rudalics <rudalics@gmx.at>
23871
23872 * window.c (window_min_size_2): Don't count header-line.
23873
238742007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23875
23876 * frame.h (struct frame): Move all bit fields after the first bit
23877 field to take advantage of the available space. Group all the
23878 chars together to reduce wasted space due to padding.
23879
238802007-10-26 Juanma Barranquero <lekktu@gmail.com>
23881
23882 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23883
23884 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23885 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23886 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23887 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23888 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23889 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23890 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23891 (last_marked, mark_object_loop_halt): Make static.
23892
23893 * frame.c (syms_of_frame) <delete-frame-functions>:
23894 Fix typo in docstring.
23895
238962007-10-25 Juanma Barranquero <lekktu@gmail.com>
23897
23898 * w32.c (init_environment): Fix tiny memory leak.
23899 (w32_get_resource): Remove unused variable `ok'.
23900
239012007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23902
23903 Make `window-system' into a keyboard-local variable (rather than
23904 frame-local as done originally by multi-tty).
23905
23906 * keyboard.h (struct kboard): Add Vwindow_system.
23907 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23908 (mark_kboards): Mark Vwindow_system.
23909
23910 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23911 (init_display): Don't set the obsolete `window-system' frame-param.
23912
23913 * xterm.c (x_term_init):
23914 * w32term.c (w32_create_terminal):
23915 * term.c (init_tty): Set Vwindow_system.
23916 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23917 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23918
23919 * xfns.c (Fx_create_frame, x_create_tip_frame):
23920 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23921 * macfns.c (Fx_create_frame):
23922 Don't set the obsolete `window-system' frame-param.
23923
23924 * frame.h (Qwindow_system): Remove.
23925 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23926 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23927
239282007-10-24 Richard Stallman <rms@gnu.org>
23929
23930 * frame.c (x_figure_window_size): For fullscreen case,
23931 set USPosition | PPosition without clobbering rest of window_prompting.
23932
23933 * keyboard.c (Fcurrent_idle_time): Doc fix.
23934
23935 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23936
239372007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23938
23939 * process.c (unwind_request_sigio): Only define if __ultrix__.
23940
23941 * callproc.c (child_setup): Remove spurious *.
23942
23943 * lisp.h (Fget_text_property): Declare.
23944 (have_menus_p): Declare it here rather than in sys-dep header files.
23945 * macterm.h (have_menus_p):
23946 * msdos.h (have_menus_p):
23947 * xterm.h (have_menus_p): Remove.
23948
23949 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23950 (Fmake_variable_frame_local): Just check the variable's const-ness
23951 rather than checking nil or t.
23952
239532007-10-22 Jason Rumney <jasonr@gnu.org>
23954
23955 * w32fns.c: Include math.h.
23956 (w32_abort): Declaration moved to nt/config.nt.
23957
23958 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23959 (abort): Redefinition moved to nt/config.nt.
23960
23961 * m/windowsnt.h: Remove.
23962
239632007-10-22 Juanma Barranquero <lekktu@gmail.com>
23964
23965 * emacs.c (Fdump_emacs): Fix typo in message.
23966 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23967 <installation-directory>: Reflow docstring.
23968
239692007-10-22 Juri Linkov <juri@jurta.org>
23970
23971 * minibuf.c: Allow minibuffer default to be a list of default values.
23972 With empty input use the first element of this list as returned default.
23973 (string_to_object)
23974 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23975 (read_minibuf): If defalt is cons, set histstring to its car.
23976 (Fread_string): If default_value is cons, set val to its car.
23977 (Fread_buffer): If def is cons, use its car.
23978 (Fcompleting_read): If defalt is cons, set val to its car.
23979
239802007-10-21 Michael Albinus <michael.albinus@gmx.de>
23981
23982 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23983
239842007-10-20 Juanma Barranquero <lekktu@gmail.com>
23985
23986 * doc.c (Fdocumentation): Check for advice in all cases.
23987
239882007-10-19 Chong Yidong <cyd@stupidchicken.com>
23989
23990 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23991
239922007-10-19 Richard Stallman <rms@gnu.org>
23993
23994 * doc.c (Fdocumentation): Check for and handle an advised function.
23995
239962007-10-19 Juanma Barranquero <lekktu@gmail.com>
23997
23998 * process.c (Fset_process_filter): Doc fix.
23999
240002007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24001
24002 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24003 which caused key-translation-map to applied repeatedly (thus breaking
24004 double-mode).
24005
240062007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24007
24008 * xselect.c (x_own_selection, x_handle_selection_clear)
24009 (x_clear_frame_selections):
24010 * w32menu.c (list_of_panes, list_of_items):
24011 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24012 * textprop.c (validate_plist, interval_has_all_properties)
24013 (interval_has_some_properties, interval_has_some_properties_list)
24014 (add_properties, text_property_list):
24015 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24016 * minibuf.c (Fassoc_string):
24017 * macselect.c (x_own_selection, x_clear_frame_selections)
24018 (Fx_disown_selection_internal):
24019 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24020 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24021
240222007-10-17 Chong Yidong <cyd@stupidchicken.com>
24023
24024 * process.c: Link to libs for calling res_init() if available.
24025 (Fmake_network_process): Call res_init() before getaddrinfo or
24026 gethostbyname, if possible.
24027
240282007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24029
24030 * lread.c (read1): Set pvectype for char_tables.
24031
24032 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24033 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24034 Add type checks.
24035 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24036
24037 * alloc.c (free_misc): Use XMISCTYPE.
24038 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24039
240402007-10-17 Glenn Morris <rgm@gnu.org>
24041
24042 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24043 (syms_of_minibuf): Add Qcompletion_ignore_case.
24044 * dired.c (Qcompletion_ignore_case): Change to external.
24045 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24046 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24047 (Fread_file_name): Use it rather than intern'ing.
24048
24049 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24050 (Fread_coding_system): Ignore case of user input.
24051
240522007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24053
24054 * xdisp.c (handle_display_prop): Ignore display specs after
24055 replacing one when string text is being replaced.
24056 (handle_single_display_spec): Pretend as if characters with display
24057 property haven't been consumed only when buffer text is being replaced.
24058
240592007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24060
24061 * xfns.c (Fx_create_frame, Fx_display_list):
24062 * window.c (window_fixed_size_p, enlarge_window)
24063 (shrink_window_lowest_first):
24064 * macterm.c (init_font_name_table):
24065 * macfns.c (Fx_create_frame, Fx_display_list):
24066 * lread.c (close_load_descs):
24067 * keyboard.c (read_char_x_menu_prompt):
24068 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24069 * coding.c (code_convert_region_unwind): Test the type of an object
24070 rather than just !NILP before extracting data from it.
24071
24072 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24073
24074 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24075 (XMISCANY): New macro.
24076 (XMISCTYPE): Use it.
24077 (struct Lisp_Misc_Any): New type.
24078 (union Lisp_Misc): Use it.
24079 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24080 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24081 (find_symbol_value, set_internal, default_value, Fset_default)
24082 (Fmake_variable_buffer_local, Fmake_local_variable)
24083 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24084 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24085 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24086 * alloc.c (allocate_buffer): Set the size and tag.
24087 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24088 Use XMISCANY.
24089 (die): Follow the GNU convention for error messages.
24090 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24091 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24092 tag any more.
24093 (set_buffer_internal_1):
24094 * frame.c (store_frame_param):
24095 * eval.c (specbind):
24096 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24097
24098 * doc.c (Fsnarf_documentation): Simplify.
24099
241002007-10-14 Juanma Barranquero <lekktu@gmail.com>
24101
24102 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24103 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24104
241052007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24106
24107 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24108
241092007-10-14 Juanma Barranquero <lekktu@gmail.com>
24110
24111 * eval.c (do_autoload): Don't save autoloads.
24112
24113 * data.c (Ffset): Save autoload of the function being set.
24114
241152007-10-07 John Paul Wallington <jpw@pobox.com>
24116
24117 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24118 parameter before setting up faces.
24119
241202007-10-13 Eli Zaretskii <eliz@gnu.org>
24121
24122 * ccl.c (Fregister_code_conversion_map):
24123 * keyboard.c (append_tool_bar_item): Reformat last change.
24124
24125 * lisp.h (eabs): Rename from `abs'. All callers changed.
24126
241272007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24128
24129 * buffer.c (add_overlay_mod_hooklist):
24130 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24131 * fontset.c (make_fontset):
24132 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24133 (append_tool_bar_item):
24134 * macmenu.c (grow_menu_items):
24135 * w32menu.c (grow_menu_items):
24136 * xmenu.c (grow_menu_items): Use larger_vector.
24137
241382007-10-13 Eli Zaretskii <eliz@gnu.org>
24139
24140 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24141 selected frame'' on MSDOS).
24142
241432007-10-12 Martin Rudalics <rudalics@gmx.at>
24144
24145 * frame.c (Qexplicit_name): New variable.
24146 (x_report_frame_params): Report it in parameter alist.
24147 (syms_of_frame): Intern and staticpro it.
24148
241492007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24150
24151 * macfns.c (x_create_tip_frame): Set terminal for frame.
24152
241532007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24154
24155 * frame.c (Qenvironment): Remove.
24156 (syms_of_frame) <Qenvironment>: Don't initialize.
24157 (Fdelete_frame): Don't treat the `environment' param specially.
24158 * frame.h (Qenvironment): Don't declare.
24159 * callproc.c (set_initial_environment): Don't set unused frame param.
24160
24161 * frame.c (Fframe_with_environment): Remove.
24162 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24163
24164 * lisp.h (Fframe_with_environment): Don't declare.
24165
241662007-10-10 Juanma Barranquero <lekktu@gmail.com>
24167
24168 * indent.c (indent_tabs_mode, last_known_column)
24169 (last_known_column_modified): Make static.
24170 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24171
241722007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24173
24174 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24175
241762007-10-09 Jason Rumney <jasonr@gnu.org>
24177
24178 * w32term.c (x_set_window_size): Disable code that attempts to tell
24179 Lisp code about a size change before it actually happens.
24180
241812007-10-09 Richard Stallman <rms@gnu.org>
24182
24183 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24184 return HANDLED_RETURN.
24185
241862007-10-08 Martin Rudalics <rudalics@gmx.at>
24187
24188 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24189 when there's an unread command event.
24190
24191 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24192 window autoselection act appropriately when leaving selected frame.
24193 (syms_of_frame): Initialize focus_follows_mouse.
24194 * frame.h (focus_follows_mouse): Extern it.
24195 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24196 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24197 * msdos.c (dos_rawgetc): Likewise.
24198 * w32term.c (w32_read_socket): Likewise.
24199 * xterm.c (handle_one_xevent): Likewise.
24200 * xdisp.c (syms_of_xdisp): In doc-string of
24201 mouse-autoselect-window mention focus-follows-mouse.
24202
242032007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24204
24205 * macterm.c (mac_load_query_font): Fix missing return value.
24206 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24207 Add BLOCK_INPUT.
24208
242092007-10-08 Richard Stallman <rms@gnu.org>
24210
24211 * xdisp.c (get_window_cursor_type): Implement documented behavior
24212 for cursor-in-non-selected-windows = t.
24213
242142007-10-08 Jason Rumney <jasonr@gnu.org>
24215
24216 * w32.c (w32_get_resource): Always close registry keys.
24217
242182007-10-08 Jason Rumney <jasonr@gnu.org>
24219
24220 * makefile.w32-in (LIBS): Add COMCTL32.
24221
24222 * w32fns.c (globals_of_w32fns): Init common controls.
24223
242242007-10-08 Richard Stallman <rms@gnu.org>
24225
24226 * image.c (our_memory_buffer): Rename from omfib_buffer.
24227
242282007-10-08 Richard Stallman <rms@gnu.org>
24229
24230 * buffer.c (Foverlays_at): Doc fix.
24231
242322007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24233
24234 * fns.c (Fplist_put): Preserve uneven tail data.
24235
242362007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24237
24238 * termhooks.h (enum event_kind): Remove trailing comma.
24239
24240 * frame.h (enum): Remove trailing comma.
24241
242422007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24243
24244 * w32proc.c (delete_child): Don't terminate threads of zombies.
24245
242462007-10-08 Martin Rudalics <rudalics@gmx.at>
24247
24248 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24249
24250 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24251 last-repeatable-command.
24252 (init_kboard): Initialize Vlast_repeatable_command.
24253 (command_loop_1): Set it to real_this_command unless that was
24254 bound to an input event.
24255 (mark_kboards): Mark it.
24256
242572007-10-08 Richard Stallman <rms@gnu.org>
24258
24259 * eval.c (condition-case): Doc fix.
24260
242612007-10-08 Masatake YAMATO <jet@gyve.org>
24262
24263 * xfaces.c (tty_supports_face_attributes_p): Fix code
24264 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24265 was copied and not edited.
24266
242672007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24268
24269 Add new `input-decode-map' keymap and use it for terminal
24270 escape sequences.
24271 * keyboard.h (struct kboard): Add Vinput_decode_map.
24272 Remove Vlocal_key_translation_map.
24273 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24274 (init_kboard): Init input-decode-map.
24275 Replace local-key-translation-map back with key-translation-map.
24276 (syms_of_keyboard): Declare input-decode-map.
24277 Remove local-key-translation-map. Update docstrings.
24278 (mark_kboards): Mark Vinput_decode_map.
24279 Don't mark Vlocal_key_translation_map.
24280 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24281 Replace local-key-translation-map back with key-translation-map.
24282 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24283 Bind in input-decode-map rather than function-key-map.
24284
24285 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24286 This was made redundant by the previous introduction of XSETPVECTYPE.
24287
242882007-10-09 Richard Stallman <rms@gnu.org>
24289
24290 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24291
242922007-09-29 Richard Stallman <rms@gnu.org>
24293
24294 * eval.c (internal_condition_case_2, internal_condition_case_1)
24295 (internal_condition_case): Reenable abort if x_catching_errors ()
24296 to see if that really happens and why.
24297
242982007-10-06 Andreas Schwab <schwab@suse.de>
24299
24300 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24301
243022007-10-04 Juanma Barranquero <lekktu@gmail.com>
24303
24304 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24305
243062007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24307
24308 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24309
243102007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24311
24312 * window.h (struct window):
24313 * window.c (struct save_window_data, struct saved_window):
24314 * termhooks.h (struct terminal):
24315 * process.h (struct Lisp_Process):
24316 * frame.h (struct frame):
24317 * buffer.h (struct buffer):
24318 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24319 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24320 The size field of (pseudo)vectors is now unsigned.
24321 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24322
24323 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24324 Turn `count' into an integer.
24325
24326 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24327 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24328 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24329 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24330 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24331
24332 * alloc.c (allocate_pseudovector): New fun.
24333 (ALLOCATE_PSEUDOVECTOR): New macro.
24334 (allocate_window, allocate_terminal, allocate_frame)
24335 (allocate_process): Use it.
24336 (mark_vectorlike): New function.
24337 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24338 (mark_terminals): Use it.
24339 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24340 (Fmake_byte_code): Use XSETPVECTYPE.
24341
24342 * frame.c (Fframe_parameters): Minor simplification.
24343
24344 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24345
24346 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24347
24348 * buffer.c (Fget_buffer_create, init_buffer_once):
24349 * lread.c (defsubr):
24350 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24351
24352 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24353 defined differently in the m/*.h files.
24354 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24355 (XSETPVECTYPE): New macro.
24356 (XSETPSEUDOVECTOR): Use it.
24357
24358 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24359 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24360
24361 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24362 * lread.c (defvar_per_buffer):
24363 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24364
24365 * window.c (candidate_window_p): Only consider as visible frames that
24366 are on the same terminal.
24367
24368 * m/ibms390x.h (MARKBIT): Remove unused macro.
24369
243702007-10-01 Juanma Barranquero <lekktu@gmail.com>
24371
24372 * lread.c (Fload): Fix typo in docstring.
24373
243742007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24375
24376 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24377 of a non-zero value can't yield zero.
24378
243792007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24380
24381 * term.c (term_clear_mouse_face, term_mouse_highlight)
24382 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24383
24384 * print.c (safe_debug_print): Use XHASH.
24385
24386 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24387 Lisp elements such as tags.
24388 (XHASH): New macro.
24389 (EQ): Use it.
24390 (SREF, SSET, STRING_COPYIN): Use SDATA.
24391 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24392
24393 * alloc.c (mark_terminal): Remove left-over declaration.
24394 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24395 (allocate_vectorlike): Remove type argument. Adjust callers.
24396 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24397 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24398
24399 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24400 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24401 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24402 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24403 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24404 Use them.
24405
24406 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24407 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24408 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24409
244102007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24411
24412 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24413 loaded by default.
24414
244152007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24416
24417 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24418 on this tty.
24419 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24420
24421 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24422 Update all users.
24423 (handle_one_term_event): Use Gpm_DrawPointer.
24424 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24425 Signal errors instead of returning nil. Always return nil.
24426 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24427 Make it a noop if gpm-mouse was not activated.
24428 (syms_of_term): Update names.
24429
244302007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24431
24432 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24433 (init_sys_modes): Check that gpm_tty is the current tty.
24434
24435 * alloc.c (allocate_terminal): Set the vector size to only count the
24436 lisp fields. Initialize those to nil.
24437 (mark_object): Don't treat terminals specially.
24438 (mark_terminal): Remove.
24439 (mark_terminals): Use mark_object instead.
24440
24441 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24442 the GC to the beginning.
24443
24444 * indent.h:
24445 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24446
24447 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24448
244492007-09-25 Jason Rumney <jasonr@gnu.org>
24450
24451 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24452
24453 * w32console.c (create_w32cons_output): Remove.
24454
24455 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24456
24457 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24458 (reset_sys_modes): Use reset_terminal_modes_hook.
24459
244602007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24461
24462 * eval.c (do_autoload): Don't output any message.
24463
244642007-09-24 Juri Linkov <juri@jurta.org>
24465
24466 * emacs.c (standard_args): Change priority of "--no-splash"
24467 from 40 to 3. Add "--no-desktop" with the same priority.
24468
244692007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24470
24471 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24472 and optimize the case where they are all 1.
24473
244742007-09-23 Johannes Weiner <hannes@saeurebad.de>
24475
24476 * lisp.h (abs): Define if not defined.
24477 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24478 Don't define `abs', since it's defined in lisp.h.
24479
244802007-09-22 Eli Zaretskii <eliz@gnu.org>
24481
24482 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24483 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24484 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24485 (init_tty): Use DEV_TTY instead of "/dev/tty".
24486 [WINDOWSNT]: No need to protect from NAME arg being null.
24487
244882007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24489
24490 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24491 up the tty state.
24492
244932007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24494
24495 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24496 (gpm_tty): Change its type.
24497 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24498 (gpm_tty): Change its type and initialize it.
24499 (Fterm_open_connection): Check the frame is indeed a tty.
24500 Use the new gpm_tty.
24501 (Fterm_close_connection): Use the new gpm_tty.
24502 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24503 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24504
245052007-09-21 Juanma Barranquero <lekktu@gmail.com>
24506
24507 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24508 underline_color, to draw strike-through.
24509
245102007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24511
24512 * lisp.h (allocate_terminal): Declare.
24513
24514 * window.c (candidate_window_p): Consider frames that are being placed
24515 by the user as somewhere between visible and iconified.
24516 (window_loop): Prefer windows on the current frame.
24517 (Fselect_window): Move the use of select-frame to the beginning so we
24518 can just delegate all the work (it'll call us back anyway).
24519
24520 * frame.c (Qdisplay_environment_variable):
24521 * frame.h (Qdisplay_environment_variable): Delete.
24522
24523 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24524 of the first arg, since that value may be a union.
24525
24526 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24527 parameter rather than Qdisplay_environment_variable. If all else
24528 fails, look for DISPLAY in initial-environment.
24529
245302007-09-21 Glenn Morris <rgm@gnu.org>
24531
24532 * Makefile.in (emacstool): Remove target.
24533 (lisp, shortlisp): Remove termdev.elc.
24534
245352007-09-21 Markus Triska <markus.triska@gmx.at>
24536
24537 * xterm.c (x_delete_display): Compile session management conditionally.
24538
245392007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24540
24541 * callproc.c (getenv_internal_1): New function.
24542 (getenv_internal): Use it.
24543 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24544
24545 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24546 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24547 (Fset_terminal_parameter): Work with dead terminals as well.
24548 (Fmodify_terminal_parameters): Remove.
24549
24550 * terminal.c (get_terminal): Handle terminals.
24551 Make sure the terminal returned is live.
24552 (create_terminal): Use allocate_terminal.
24553 (mark_terminals): Move to alloc.c.
24554 (delete_terminal): Use terminal->name as liveness status.
24555 NULL out fields after freeing their contents.
24556 Don't deallocate the object.
24557 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24558 rather than an int.
24559 (Fterminal_live_p): Accept non-integer arguments.
24560 (Fterminal_list): Return terminal objects rather than an ints.
24561
24562 * alloc.c (enum mem_type): New member for `terminal' objects.
24563 (allocate_terminal): New function.
24564 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24565 Handle terminals.
24566 (mark_terminal): New fun.
24567 (mark_terminals): Move from terminal.c.
24568
24569 * term.c (get_tty_terminal): Don't treat output_initial specially.
24570 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24571 (delete_tty): Use terminal->name as liveness status.
24572
24573 * termhooks.h (struct terminal): Make it into a pseudovector.
24574 Remove `deleted' replaced by checking `name's nullness.
24575
24576 * print.c (print_object): Handle terminals.
24577
24578 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24579 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24580
24581 * frame.c (make_terminal_frame):
24582 * keyboard.c (tty_read_avail_input):
24583 * w32term.c (x_delete_terminal):
24584 * xfns.c (Fx_create_frame, x_create_tip_frame):
24585 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24586
245872007-09-20 Glenn Morris <rgm@gnu.org>
24588
24589 * process.c (Fmake_network_process): Doc fix.
24590
245912007-09-19 Jason Rumney <jasonr@gnu.org>
24592
24593 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24594
245952007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24596
24597 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24598 Fix a C warning regarding variable constness.
24599
24600 * xterm.c (handle_one_xevent): Fix a C warning.
24601
246022007-09-18 Jason Rumney <jasonr@gnu.org>
24603
24604 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24605
246062007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24607
24608 * gtkutil.c (gdpy_def): New variable.
24609 (xg_initialize): Initialize gdpy_def.
24610 (xg_display_close): If no other display exists, set gdpy_def to a
24611 new connection.
24612
246132007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24614
24615 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24616 when we have no file name for the icon.
24617 (xg_tool_bar_expose_callback): Remove.
24618 (xg_create_tool_bar): Don't connect expose signal to
24619 xg_tool_bar_expose_callback.
24620 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24621
246222007-09-16 Andreas Schwab <schwab@suse.de>
24623
24624 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24625 values instead of zapping them.
24626
246272007-09-14 Glenn Morris <rgm@gnu.org>
24628
24629 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24630 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24631 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24632 scope and rename to omfib_buffer for clarity.
24633 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24634
246352007-09-14 Kenichi Handa <handa@m17n.org>
24636
24637 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24638
246392007-09-13 Jason Rumney <jasonr@gnu.org>
24640
24641 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24642
24643 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24644
24645 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24646 (mac_term_init): Call here instead, passing rif.
24647
246482007-09-13 Glenn Morris <rgm@gnu.org>
24649
24650 * s/hpux.h: No longer define `static' as nothing.
24651
246522007-09-13 Johan Bockgård <bojohan@gnu.org>
24653
24654 * callint.c (Fcall_interactively): Remove unused var `fun'.
24655
246562007-09-12 Romain Francoise <romain@orebokech.com>
24657
24658 * window.c (prefer_window_split_horizontally, display_buffer):
24659 Revert 2007-09-08 change.
24660
246612007-09-12 Glenn Morris <rgm@gnu.org>
24662
24663 * alloca.c: Remove file.
24664 * Makefile.in (alloca): Do not undef.
24665 (allocaobj, alloca.o): Remove.
24666 (otherobj): Remove allocaobj.
24667 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24668 * regex.c (C_ALLOCA): Remove all references and code that was only
24669 used when this was defined.
24670 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24671 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24672 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24673
24674 * Makefile.in (SOURCES, unlock, relock): Delete.
24675
24676 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24677 (menu_grab_callback): All uses changed.
24678
24679 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24680 (x_reply_selection_request): All uses changed.
24681
246822007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24683
24684 * lread.c (load_warn_old_style_backquotes): Change message to look
24685 better when it appears in the middle of byte-compiler messages.
24686
246872007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24688
24689 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24690
24691 * xterm.c (x_create_terminal): Add comment.
24692
24693 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24694
246952007-09-10 Richard Stallman <rms@gnu.org>
24696
24697 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24698
246992007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24700
24701 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24702 (DEFUN): Document `intspec', use it instead of `prompt'.
24703
24704 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24705
24706 * data.c (Finteractive_form): If the interactive specification starts
24707 with a `(', use it as a Lisp form.
24708
24709 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24710 name and file modes.
24711
24712 * callint.c (Fcall_interactively): Comment fixes.
24713
247142007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24715
24716 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24717 and compiled functions.
24718
247192007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24720
24721 * window.c (prefer_window_split_horizontally): New variable.
24722 (display_buffer): Consider splitting window horizontally depending
24723 on prefer_window_split_horizontally.
24724
247252007-09-08 Eli Zaretskii <eliz@gnu.org>
24726
24727 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24728
247292007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24730
24731 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24732
24733 * frame.c (x_set_frame_parameters): Check number is positive before
24734 using XFASTINT.
24735
24736 * window.c (freeze_window_start): Don't presume selected_window holds
24737 a window object.
24738 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24739
247402007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24741
24742 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24743
247442007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24745
24746 * window.c (Vsplit_window_preferred_function): New var.
24747 (Fdisplay_buffer): Use it.
24748 (syms_of_window): Export, and initialize it.
24749
247502007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24751
24752 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24753
247542007-09-06 Glenn Morris <rgm@gnu.org>
24755
24756 * gtkutil.c (menu_grab_callback) <cnt>:
24757 * xselect.c (x_reply_selection_request) <cnt>: Move static
24758 variable to file scope.
24759
247602007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24761
24762 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24763 consistent values of selected_frame and selected_window.
24764
247652007-09-04 Jason Rumney <jasonr@gnu.org>
24766
24767 * w32console.c (initialize_w32_display): Zero unused hooks.
24768
247692007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24770
24771 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24772 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24773
247742007-09-04 Jason Rumney <jasonr@gnu.org>
24775
24776 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24777 in w32console.c. Set up input. Remove XXX comments that have been
24778 confirmed as correct.
24779
24780 * s/ms-w32.h (MULTI_KBOARD): Define.
24781
24782 * w32console.c (one_and_only_w32cons): Remove.
24783 (initialize_w32_display): Take terminal argument.
24784
24785 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24786 initialize_w32_display.
24787 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24788
24789 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24790
24791 * keyboard.c (discard_mouse_events): Discard it.
24792 (make_lispy_event): Translate it to a lisp event.
24793 (lispy_wheel_names): Add wheel-left and right events.
24794 (syms_of_keyboard): Enlarge wheel_syms.
24795
24796 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24797 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24798
24799 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24800
24801 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24802 from WM_MOUSEHWHEEL.
24803 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24804
24805 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24806 terminal.
24807
24808 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24809 keyboard for the terminal.
24810
248112007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24812
24813 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24814 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24815 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24816 and resume-tty-function to resume-tty-hook.
24817 (Fsuspend_tty, Fresume_tty): Use new names.
24818
248192007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24820
24821 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24822 if it starts with "n:".
24823
248242007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24825
24826 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24827
248282007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24829
24830 * frame.h:
24831 * frame.c (Qterm_environment_variable): Remove.
24832 (syms_of_frame): Don't init and staticpro it.
24833
24834 * callproc.c (getenv_internal): Remove special case for $TERM.
24835
24836 * callproc.c (Vinitial_environment): New variable.
24837 (set_initial_environment): Initialize it.
24838 (syms_of_callproc): Declare it.
24839 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24840 TERM under which a process runs is never related to the TERM in which
24841 Emacs is running.
24842
248432007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24844
24845 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24846 * s/darwin.h: ... do it here.
24847
248482007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24849
24850 * lisp.h (set_initial_environment): Rename from set_global_environment.
24851
24852 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24853 removed by mistake on the multi-tty branch.
24854
24855 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24856 (Fmodify_frame_parameters): Return a value.
24857
24858 * image.c (png_load): Comment-out var only used in commented-out code.
24859
24860 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24861 before passing it to mark_object.
24862
24863 * xfaces.c (internal_resolve_face_name): Return a value.
24864 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24865
24866 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24867 (x_icon): Comment-out var only used in commented-out code.
24868
248692007-08-29 Romain Francoise <romain@orebokech.com>
24870
24871 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24872 QUIT hasn't been provided.
24873
248742007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24875
24876 * callproc.c (child_setup, getenv_internal): Use the
24877 display-environment-variable and term-environment-variable frame params.
24878 (set_initial_environment): Initialise Vprocess_environment.
24879
24880 * config.in: Disable multi-keyboard support on a mac.
24881
24882 * frame.c (Qterm_environment_variable)
24883 (Qdisplay_environment_variable): New variables.
24884 (syms_of_frame): Intern and staticpro them.
24885 (Fmake_terminal_frame): Disable output method test.
24886
24887 * frame.h: Declare them here.
24888
24889 * macfns.c (x_set_mouse_color): Get rif from the frame.
24890 (x_set_tool_bar_lines): Don't use updating_frame.
24891 (mac_window): Add 2 new parameters for consistency with other systems.
24892 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24893 frame parameters following what is done in X11 and w32. Don't use
24894 FRAME_MAC_DISPLAY_INFO.
24895 (Fx_open_connection, start_hourglass): Remove window-system check.
24896 (x_create_tip_frame): Get the keyboard from the terminal.
24897
24898 * macmenu.c: Reorder includes.
24899 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24900
24901 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24902 terminal parameter.
24903 (x_clear_frame): Add a frame parameter.
24904 (note_mouse_movement): Get rif from the frame.
24905 (mac_term_init): Initialize the terminal.
24906 (mac_initialize): Make static and move terminal initialization ...
24907 (mac_create_terminal): ... to this new function.
24908
24909 * macterm.h (struct mac_display_info): Add terminal.
24910 (mac_initialize): Delete declaration.
24911
24912 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24913
24914 * sysdep.c: Comment out text after #endif.
24915
24916 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24917 is defined. Better initialize ttys in windows. Use terminal
24918 specific mouse_position_hook.
24919
24920 * termhooks.h (union display_info): Add mac_display_info.
24921
24922 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24923 Set the default minibuffer frame, window_system and the rest of the
24924 frame parameters following what is done in X11.
24925
24926 * w32term.c (w32_initialize): Make static.
24927
24928 * xselect.c (x_handle_selection_clear): Only access
24929 terminal->kboard when MULTI_KBOARD is defined.
24930
24931 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24932 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24933
249342007-08-29 Jason Rumney <jasonr@gnu.org>
24935
24936 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24937 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24938
24939 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24940 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24941
24942 * keyboard.c (restore_kboard_configuration): Only define when
24943 MULTI_KBOARD defined.
24944
24945 * makefile.w32-in: Update dependancies from Makefile.in.
24946 (OBJ1): Add terminal.$(O)
24947
24948 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24949 Don't define function body.
24950 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24951
24952 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24953
24954 * w32.c (request_sigio, unrequest_sigio): Remove.
24955
24956 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24957 (w32con_clear_frame, w32con_clear_end_of_line)
24958 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24959 (w32con_delete_glyphs, w32con_set_terminal_window)
24960 (scroll_line, w32_sys_ring_bell): Add frame arg.
24961 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24962 Add terminal arg.
24963 (PICK_FRAME): Remove.
24964 (w32con_write_glyphs): Use frame specific terminal coding.
24965 (one_and_only_w32cons): New global variable.
24966 (initialize_w32_display): Use it for storing hooks.
24967 (create_w32cons_output): New function.
24968
24969 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24970 arg a frame.
24971
24972 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24973 Set window_system.
24974 (x_set_tool_bar_lines): Don't use updating_frame.
24975 (Fx_create_frame): Set terminal and ref count.
24976 (Fx_open_connection): Remove window-system check.
24977
24978 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24979
24980 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24981 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24982 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24983 Add frame arg.
24984 (x_delete_terminal, w32_create_terminal): New functions.
24985 (w32_term_init): Create a terminal.
24986 (w32_initialize): Move terminal specific initialization to
24987 w32_create_terminal.
24988
24989 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24990 (w32_clear_rect, w32_clear_area): Use background from frame.
24991 (w32_display_info): Add terminal.
24992 (w32_sys_ring_bell, x_delete_display): Declare here.
24993
24994 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24995
24996 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24997
249982007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24999
25000 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25001 Fix get_named_tty calls for the controlling tty.
25002
250032007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25004
194d44e7 25005 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25006
250072007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25008
25009 * term.c (tty_insert_glyphs): Add missing first parameter.
25010
250112007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25012
25013 * buffer.c (Fbuffer_list, Fbury_buffer):
25014 Take frame->buried_buffer_list into account.
25015
25016 * cm.c (current_tty): New variable, for cmputc().
25017 (cmputc): Use it.
25018 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25019 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25020 (cmgoto): Add tty parameter. Pass it on to calccost().
25021 Use emacs_tputs() instead of tputs().
25022
25023 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25024 tputs().
25025 (current_tty): New variable, for cmputc().
25026 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25027
25028 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25029 (internal_condition_case, internal_condition_case_1)
25030 (internal_condition_case_2): Don't abort when x_catching_errors.
25031
25032 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25033 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25034 prevent crashes caused by bogus longjmps in read_char.
25035
25036 * keymap.h (Fset_keymap_parent): Add EXFUN.
25037
25038 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25039 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25040 Remove redundant definition.
25041
25042 * macfns.c (x_set_mouse_color, x_make_gc):
25043 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25044
25045 * w32term.c (x_free_frame_resources):
25046 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25047 (w32_initialize): Use the accessor macros for terminal characteristics.
25048
25049 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25050 Use the accessor macros for terminal characteristics.
25051 * msdos.c (internal_terminal_init): Use the accessor macros for
25052 terminal characteristics.
25053 (ScreenVisualBell, internal_terminal_init):
25054 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25055
25056 * termopts.h (no_redraw_on_reenter): Declare.
25057
25058 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25059 (mark_terminals, mark_ttys): Declare.
25060 (Fgarbage_collect): Call them.
25061 (mark_object): Mark buried_buffer_list.
25062
25063 * prefix-args.c: Include stdlib.h for exit.
25064
25065 * syssignal.h: Add comment.
25066
25067 * indent.c: Include stdio.h.
25068
25069 * window.h (Vinitial_window_system): Declare.
25070 (Vwindow_system): Delete declaration.
25071
25072 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25073
25074 * image.c (lookup_image): Don't initialize `c' until the xasserts
25075 have been run.
25076
25077 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25078 FRAME_FOREGROUND_PIXEL.
25079
25080 * print.c (print_preprocess): Don't lose print_depth levels while
25081 iterating.
25082
25083 * widget.c (update_from_various_frame_slots):
25084 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25085
25086 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25087 frames.
25088 (window_internal_height): Remove bogus make_number call.
25089 (init_window_once): Call make_terminal_frame with two zero parameters.
25090
25091 * fileio.c (Fread_file_name): Update comment.
25092
25093 * callint.c (Fcall_interactively):
25094 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25095 Make sure it is correctly unwound.
25096
25097 * xsmfns.c (x_session_close): New function.
25098
25099 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25100 Delete declarations.
25101
25102 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25103 (x_output): Remove background_pixel and foreground_pixel fields.
25104 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25105 (x_delete_device, x_session_close): Declare.
25106
25107 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25108 (read_filtered_event): Call `read_char' with a local
25109 `wrong_kboard_jmpbuf'.
25110
25111 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25112 Don't call single_kboard_state. Use FRAME_RIF.
25113
25114 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25115 systems.
25116
25117 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25118 (Fframe_with_environment, Fset_input_meta_mode)
25119 (Fset_quit_char): EXFUN.
25120 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25121 (init_sys_modes, reset_sys_modes): Update prototypes.
25122 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25123
25124 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25125 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25126 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25127 Delete declarations.
25128 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25129 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25130 New declarations.
25131
25132 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25133 already does that during init_display(). Call syms_of_keymap
25134 before syms_of_keyboard. Call `syms_of_terminal'.
25135 Call set_initial_environment, not set_process_environment.
25136 (shut_down_emacs): Call reset_all_sys_modes() instead of
25137 reset_sys_modes().
25138
25139 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25140 (internal_resolve_face_name, resolve_face_name_error): New functions.
25141 (resolve_face_name): Protect against loops and errors thrown by Fget.
25142 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25143 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25144
25145 * scroll.c: Replace CURTTY() with local variables throughout the
25146 file (where applicable).
25147 (calculate_scrolling, calculate_direct_scrolling)
25148 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25149 characteristics.
25150
25151 * keymap.c (Vfunction_key_map): Remove.
25152 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25153 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25154 (Vkey_translation_map): Remove.
25155 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25156 (Fdescribe_buffer_bindings)
25157 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25158 Update for terminal-local key-translation-map.
25159
25160 * Makefile.in (callproc.o): Update dependencies.
25161 (lisp, shortlisp): Add termdev.elc.
25162 (obj): Add terminal.o.
25163 (terminal.o): Add dependencies.
25164 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25165 (data.o, fns.o): Add termhooks.h dependency.
25166 (SOME_MACHINE_LISP): Add dnd.elc.
25167 (minibuf.o): Fix typo.
25168 Update dependencies.
25169
25170 * data.c (do_symval_forwarding, store_symval_forwarding)
25171 (find_symbol_value): Use the selected frame's keyboard, not
25172 current_kboard.
25173
25174 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25175 Vwindow_system.
25176
25177 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25178 Fmenu_bar_open.
25179 (syms_of_xmenu): Update defsubr.
25180 (mouse_position_for_popup, Fx_popup_menu)
25181 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25182 (set_frame_menubar, free_frame_menubar)
b97439ce 25183 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25184 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25185 an X frame.
25186
25187 * xselect.c (x_own_selection): Abort if not an X frame.
25188 (some_frame_on_display): Check if it is an X frame.
25189 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25190
25191 * coding.c: Include frame.h and termhooks.h.
25192 (terminal_coding, keyboard_coding): Delete.
25193 (Fset_terminal_coding_system_internal)
25194 (Fset_keyboard_coding_system_internal)
25195 (Fkeyboard_coding_system)
25196 (Fterminal_coding_system): Add a terminal parameter.
25197 Get terminal_coding from the terminal.
25198 (init_coding_once): Don't call setup_coding_system here.
25199
25200 * dispextern.h (set_scroll_region, turn_off_insert)
25201 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25202 (tty_clear_end_of_line, tty_setup_colors)
25203 (delete_tty, updating_frame)
25204 (produce_special_glyphs, produce_glyphs, write_glyphs)
25205 (insert_glyphs): Remove.
25206 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25207 (tty_turn_off_highlight, get_tty_size): Add declaration.
25208 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25209
25210 * frame.h (enum output_method): Add output_initial.
25211 (struct x_output): Delete.
25212 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25213 Access foreground_pixel and background_pixel directly from the frame.
25214 (tty_display): Delete.
25215 (struct frame): Add buried_buffer_list, foreground_pixel,
25216 background_pixel and terminal. Delete kboard.
25217 (union output_data): Add tty.
25218 (FRAME_KBOARD): Get the kboard from the terminal.
25219 (FRAME_INITIAL_P): New macro.
25220 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25221 (Qterm_environment_variable, Qdisplay_environment_variable)
25222 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25223 New declarations.
25224
25225 * termchar.h (tty_output, tty_display_info): New structures.
25226 (tty_list): Declare.
25227 (FRAME_TTY, CURTTY): New macros.
25228 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25229 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25230 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25231 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25232
25233 * callproc.c: Include frame.h and termhooks.h, for terminal
25234 parameters.
25235 (add_env): New function.
25236 (child_setup): Use it.
25237 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25238 (getenv_internal): Fix get_terminal_param call.
25239 (Fgetenv_internal, egetenv): Update doc.
25240 (syms_of_callproc): Initialize Vprocess_environment to nil.
25241 Register and initialize them. Remove obsolete defvars. Update doc
25242 strings.
25243 (child_setup): Handle Vlocal_environment_variables.
25244 (getenv_internal): Add terminal parameter.
25245 Handle Vlocal_environment_variables.
25246 (Fgetenv_internal): Add terminal parameter.
25247 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25248 environment in a frame (not terminal) parameter. Update doc strings.
25249 (set_initial_environment): Rename from set_global_environment.
25250 Store Emacs environment in initial frame parameter.
25251
25252 * xdisp.c (redisplay_internal): Update references to
25253 `previous_terminal_frame'.
25254 (display_mode_line, Fformat_mode_line): Replace calls to
25255 `push_frame_kboard' with `push_kboard'.
25256 (get_glyph_string_clip_rects): Add extra parentheses and
25257 braces to prevent compiler warnings.
25258 (calc_pixel_width_or_height): Add xassert to check that the
25259 frame is alive. Don't call `lookup_image' on a termcap frame.
25260 (message2_nolog, message3_nolog, redisplay_internal)
25261 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25262 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25263 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25264 (Fx_display_pixel_width, Fx_display_pixel_height)
25265 (Fx_display_planes, Fx_display_color_cells)
25266 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25267 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25268 (Fx_display_backing_store, Fx_display_visual_class)
25269 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25270 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25271
25272 * xfns.c (x_set_foreground_color x_set_background_color)
25273 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25274 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25275 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25276 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25277 terminal that is being deleted.
25278 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25279 frame parameter, and make sure it overrides any user-supplied setting.
25280 (Fx_close_connection, Fx_synchronize): Unify argument names with
25281 the rest of the DEFUNs.
25282
25283 * dispnew.c (Fsend_string_to_terminal): Update call to
25284 `get_tty_terminal'.
25285 (Fredraw_frame, Fsend_string_to_terminal)
25286 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25287 FRAME_TERMCAP_P and FRAME_TTY.
25288 (window_change_signal): Don't believe width/height values that are
25289 impossibly small.
25290 (Vinitial_window_system): Rename from Vwindow_system.
25291 (termscript, Wcm, rif): Delete.
25292
25293 * termhooks.h (struct terminal): New struct containing the
25294 previously global text display hooks and new members NAME,
25295 DELETED and PARAM_ALIST.
25296 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25297 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25298 (FRAME_RIF): New macros.
25299 (get_terminal_param, get_device): New declarations.
25300 (termscript): Delete declaration.
25301
25302 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25303 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25304 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25305 FRAME_FOREGROUND_PIXEL.
25306 (x_fully_uncatch_errors): Disable definition.
25307 (x_scroll_bar_expose): Fix reference to foreground pixel.
25308 (XTread_socket): Disable loop on all X displays.
25309 (x_delete_terminal): Don't set terminal->deleted and let
25310 delete_terminal delete the frames on the terminal.
25311 (x_delete_display): Doc update to reflect changes in
25312 delete_terminal.
25313 (x_display_info) <terminal>: Move member earlier in the struct.
25314 (deleting_tty): Remove old variable.
25315 (Fsuspend_tty): Call clear_tty_hooks.
25316 (Fresume_tty, init_tty): Call set_tty_hooks.
25317 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25318 errors on X frames.
25319 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25320 (handle_one_xevent): Initialize `f' to NULL.
25321 (x_delete_terminal, x_create_terminal): New functions.
25322 (XTset_terminal_modes, XTreset_terminal_modes)
25323 (XTread_socket, x_connection_closed, x_term_init)
25324 (x_term_init, x_delete_display): Add terminal parameter.
25325 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25326 X connections.
25327
25328 * frame.c: Include termchar.h.
25329 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25330 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25331 (Qdisplay_environment_variable): New vars.
25332 (Fframep): Deal with output_initial.
25333 (Fframe-live-p): Doc fix.
25334 (Fwindow-system): New function.
25335 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25336 (make_terminal_frame): Don't create frames on a terminal that is
25337 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25338 (store_frame_param): Check for found_for_frame before calling XFRAME.
25339 (Fmake_terminal_frame): Handle NULL tty names correctly.
25340 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25341 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25342 frames to refer to a deleted frame in their 'environment parameter.
25343 (Fframe_with_environment): New function.
25344 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25345 (get_future_frame_param): New function.
25346 (Fmake_terminal_frame): Use it.
25347 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25348
25349 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25350 * sysdep.c (reset_sys_modes): Update for renames.
25351
25352 * keyboard.c (tty_read_avail_input): New function.
25353 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25354 (syms_of_keyboard): Defsubr them.
25355 (Fset_input_meta_mode, Fset_quit_char): New functions.
25356 (Fset_input_mode): Split to above functions.
25357 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25358 parameter. Use it in call to `read_char'.
25359 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25360 Set wrong_kboard_jmpbuf correctly in recursive calls.
25361 Use current_kboard to access Vkeyboard_translate_table.
25362 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25363 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25364 Update longjmp invocations. Remember the original current_kboard,
25365 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25366 changes it. Comment out unnecessary calls to
25367 `record_single_kboard_state' and `any_kboard_state'.
25368 Update recursive calls.
25369 (wrong_kboard_jmpbuf): Remove global variable.
25370 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25371 Handle deleted interrupted_kboards correctly; that is a legal
25372 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25373 and read_char calls. Abort if interrupted_kboard died in read_char.
25374 (any_kboard_state, single_kboard_state)
25375 (push_frame_kboard): Remove function.
25376 (pop_kboard): Switch out of single_kboard mode if the kboard has
25377 been deleted. Remove unused variable. Help debugging by not
25378 changing current_kboard unnecessarily. Set current_kboard to the
25379 kboard of the selected frame when the stored kboard object has
25380 been deleted before pop_kboard.
25381 (temporarily_switch_to_single_kboard): Change first parameter to a
25382 frame pointer. Throw an error when caller wants to change kboards
25383 while in single_kboard mode. Don't push_kboard if we weren't in
25384 single kboard state. Don't pop_kboard if we popped into any
25385 kboard state.
25386 (restore_kboard_configuration): Abort if pop_kboard changed the
25387 kboard in single_kboard mode. Call pop_kboard only after setting
25388 up single_kboard mode.
25389 (Frecursive_edit): Switch to single_kboard mode only in nested
25390 command loops.
25391 (cmd_error, command_loop, command_loop_1, timer_check):
25392 Comment out unnecessary call to `any_kboard_state' and
25393 `record_single_kboard_state'.
25394 (delete_kboard): Exit single_kboard mode if we have just deleted
25395 that kboard. Use FRAME_KBOARD.
25396 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25397 `fatal_error_signal'.
25398 (record_single_kboard_state): Don't push_kboard if we weren't in
25399 single kboard state. Don't pop_kboard if we popped into any
25400 kboard state.
25401 (push_frame_kboard): Rename to push_kboard.
25402 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25403 (read_avail_input): Read input from all terminals.
25404 (mark_kboards): Also mark Vkeyboard_translate_table.
25405 (kbd_buffer_store_event_hold): Simplify condition.
25406 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25407 (Vkeyboard_translate_table): Move to struct kboard.
25408 (init_kboard): Initialize Vkeyboard_translate_table.
25409 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25410 Vkeyboard_translate_table. Update doc strings. Update docs of
25411 local-function-key-map and function-key-map.
25412
25413 * terminal.c: New file.
25414
25415 * term.c: Include errno.h.
25416 (Vring_bell_function, device_list, initial_device)
25417 (next_device_id, ring_bell, update_begin, update_end)
25418 (set_terminal_window, cursor_to, raw_cursor_to)
25419 (clear_to_end, clear_frame, clear_end_of_line)
25420 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25421 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25422 (syms_of_term): Move their initialization to terminal.c.
25423 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25424 (Ftty_display_color_cells)
25425 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25426 (clear_tty_hooks, set_tty_hooks)
25427 (init_tty, maybe_fatal): New functions.
25428 (Ftty_type): Return nil if terminal is not on a tty instead of
25429 throwing an error. Doc update.
25430 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25431 Doc update. Initialize new subrs and variables.
25432 (delete_tty): Use terminal->deleted.
25433 (tty_set_terminal_modes): Rename from set_terminal_modes.
25434 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25435 (set_scroll_region): Rename to `tty_set_scroll_region'.
25436 (turn_on_insert): Rename to `tty_turn_on_insert'.
25437 (turn_off_insert): Rename to `tty_turn_off_insert'.
25438 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25439 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25440 (toggle_highligh): Rename to `tty_toggle_highlight'.
25441 (background_highlight): Rename to `tty_background_highlight'.
25442 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25443 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25444 (tty_set_scroll_region, tty_background_highlight)
25445 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25446 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25447 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25448 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25449 Add static modifier.
25450 (tty_reset_terminal_modes, tty_set_terminal_window)
25451 (tty_set_scroll_region, tty_background_highlight)
25452 (tty_highlight_if_desired, tty_cursor_to)
25453 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25454 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25455 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25456 renames.
25457
254582007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25459
25460 * keyboard.c: Qrtl is new.
25461 (parse_tool_bar_item): Handle :rtl keyword.
25462 (syms_of_keyboard): Intern :rtl keyword.
25463
25464 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25465
25466 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25467 so no Lisp code is executed.
25468 (file_for_image, find_rtl_image): New functions.
25469 (xg_get_image_for_pixmap): Use file_for_image.
25470 (update_frame_tool_bar): If direction is RTL, use RTL image if
25471 defined. Use Gtk stock images if defined.
25472
254732007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25474
25475 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25476 for nonexistent or zero-width glyph in composition glyph.
25477
254782007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25479
25480 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25481
25482 * xdisp.c (Finvisible_p): New function.
25483 (syms_of_xdisp): defsubr it.
25484
254852007-08-24 Juanma Barranquero <lekktu@gmail.com>
25486
25487 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25488 Doc fixes.
25489
254902007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25491
25492 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25493
254942007-08-24 Martin Rudalics <rudalics@gmx.at>
25495
25496 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25497 whether decoding has modified buffer contents.
25498
254992007-08-24 Jason Rumney <jasonr@gnu.org>
25500
25501 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25502 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25503 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25504 (init_svg_functions) [HAVE_NTGUI]: New function.
25505 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25506 (svg_load_image): Use them.
25507 (svg_load_image) [HAVE_NTGUI]: Implement background.
25508
255092007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25510
25511 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25512 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25513 (LIBX): Remove @RSVG_LIBS@.
25514 (LIBES): Add $(RSVG_LIBS).
25515
25516 * image.c (svg_load_image): Blend with specified background if exists.
25517 Use IMAGE_BACKGROUND. Add Mac OS Support.
25518
25519 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25520 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25521 Remove macros.
25522 [MAC_OSX] (socket_callback): Do nothing.
25523 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25524 ReceiveNextEvent.
25525 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25526 socket_callback.
25527 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25528
255292007-08-22 Glenn Morris <rgm@gnu.org>
25530
25531 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25532
255332007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25534
25535 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25536
25537 * image.c: Add support for SVG images. Some additional comments
25538 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25539 (svg_image_p): New function to test for SVG image.
25540 (svg_load): New function to load SVG image.
25541 (svg_load_image): New function, helper for svg_load.
25542 (Qsvg): New Lisp_object.
25543 (svg_keyword_index): New enum.
25544 (svg_format): New static `image_keyword' struct.
25545 (svg_type): New static `image_type' struct.
25546 (librsvg/rsvg.h): Include it.
25547
255482007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25549
25550 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25551
255522007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25553
25554 * lread.c (Qold_style_backquotes): New var.
25555 (syms_of_lread): Init and staticpro it.
25556 (load_warn_old_style_backquotes): New fun.
25557 (Fload): Use them to warn about old style backquotes.
25558 (end_of_file_error, Fload): Remove unused vars.
25559
25560 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25561
25562 * lread.c (Vold_style_backquotes): New var.
25563 (syms_of_lread): Init and export it to Elisp.
25564 (read1): Set it when we find an old-style (back)quote.
25565
255662007-08-22 Jason Rumney <jasonr@gnu.org>
25567
25568 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25569
255702007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25571
25572 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25573
255742007-08-19 Richard Stallman <rms@gnu.org>
25575
25576 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25577
255782007-08-19 Andreas Schwab <schwab@suse.de>
25579
25580 * alloc.c (pure): Round PURESIZE up.
25581
255822007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25583
25584 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25585 active frame.
25586
255872007-08-16 Richard Stallman <rms@gnu.org>
25588
25589 * eval.c (Fcommandp): Add parens to clarify.
25590
25591 * minibuf.c (Fall_completions): Use enum for type of table.
25592
25593 * emacs.c (USAGE2): Improve text.
25594
255952007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25596
25597 * term.c (tty_default_color_capabilities): Declare static
25598 variables in file scope, to avoid HPUX compiler problem.
25599
256002007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25601
25602 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25603 to gtk_toolbar_insert.
25604
256052007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25606
25607 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25608
25609 * insdel.c (reset_var_on_error): New fun.
25610 (signal_before_change, signal_after_change):
25611 Use it to reset (after|before)-change-functions to nil in case of error.
25612 Bind inhibit-modification-hooks to t.
25613 Don't bind (after|before)-change-functions to nil while they run.
25614
256152007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25616
25617 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25618 filling pixmap with stippled background.
25619
256202007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25621
25622 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25623 Don't use invisible frame as parent window for repositioning.
25624
256252007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25626
25627 * print.c (new_backquote_output): Rename from old_backquote_output.
25628 (print): Inverse its logic (according to its name) so as to match the
25629 behavior of new_backquote_flag in lread.c.
25630
256312007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25632
25633 * gmalloc.c (posix_memalign): New function.
25634
25635 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25636 ActivateControl/DeactivateControl here.
25637 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25638 frame-notice-user-settings is non-nil.
25639 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25640 for kEventParamFMFontStyle.
25641 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25642 mac_pass_command_to_system and mac_pass_control_to_system here.
25643 (XTread_socket): Call ActivateControl/DeactivateControl here.
25644 (XTread_socket) [TARGET_API_MAC_CARBON]:
25645 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25646 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25647 for window repositioning.
25648
256492007-08-08 Glenn Morris <rgm@gnu.org>
25650
25651 * Replace `iff' in doc-strings and comments.
25652
256532007-08-07 Chong Yidong <cyd@stupidchicken.com>
25654
25655 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25656
256572007-08-07 Martin Rudalics <rudalics@gmx.at>
25658
25659 * fileio.c (Finsert_file_contents): Run format-decode and
25660 after_insert_file_functions on entire buffer when REPLACE is
25661 non-nil and inhibit modification_hooks and point_motion_hooks.
25662 For consistency, run after_insert_file_functions iff something
25663 got inserted. Move signal_after_change and update_compositions
25664 after code running after_insert_file_functions. Make sure that
25665 undo_list doesn't record intermediate steps of the decoding process.
25666
256672007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25668
25669 * emacs.c (main)
25670 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25671 Call malloc_enable_thread on interactive startup.
25672
25673 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25674 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25675 [USE_PTHREAD]: Conditionalize with it.
25676 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25677 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25678 New functions.
25679
256802007-08-06 Chong Yidong <cyd@stupidchicken.com>
25681
25682 * xdisp.c (redisplay_window): When restoring original buffer
25683 position, make sure it is still valid.
25684
25685 * image.c (png_load): Ignore png-supplied background color.
25686
256872007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25688
25689 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25690 Use kCFAbsoluteTimeIntervalSince1970.
25691
25692 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25693 New variable.
25694 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25695 event loop should be quit.
25696 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25697 Quit dialog event loop if quit_dialog_event_loop is set.
25698
25699 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25700 (Selection): New typedef. Use instead of ScrapRef.
25701 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25702 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25703 (mac_clear_selection): Rename from clear_scrap.
25704 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25705 scrap_has_target_type. All uses changed.
25706 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25707 (mac_selection_has_target_p): New functions.
25708 (mac_put_selection_value): Rename from put_scrap_string.
25709 (mac_get_selection_value): Rename from get_scrap_string.
25710 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25711 (put_scrap_private_timestamp, scrap_has_target_type)
25712 (get_scrap_private_timestamp): Remove functions.
25713 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25714 (x_own_selection, x_get_local_selection):
25715 Use mac_valid_selection_value_p.
25716 (x_own_selection): Don't use put_scrap_private_timestamp.
25717 Record OWNERSHIP-INFO into Vselection_alist instead.
25718 (x_get_local_selection): Don't check type if request is local.
25719 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25720 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25721
257222007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25723
25724 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25725 add comment explaining why.
25726
257272007-08-03 Richard Stallman <rms@gnu.org>
25728
25729 * fileio.c (Fvisited_file_modtime): Use make_time.
25730
257312007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25732
25733 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25734 build.
25735
257362007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25737
25738 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25739
257402007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25741
25742 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25743
257442007-07-30 Richard Stallman <rms@gnu.org>
25745
25746 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25747
257482007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25749
25750 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25751
257522007-07-28 Nick Roberts <nickrob@snap.net.nz>
25753
25754 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25755 remote default-directory.
25756
25757 * buffer.c (mode-line-format): Update doc string.
25758
257592007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25760
25761 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25762 scroll bar gap.
25763 (x_scroll_bar_create): Set bar->fringe_extended_p.
25764 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25765 on frame edge. Check fringe background extension. Don't clear
25766 extended fringe background area.
25767
25768 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25769 (w32_fill_area): Enclose multiple statements with do ... while (0).
25770
25771 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25772 Extend fringe background to scroll bar gap.
25773 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25774 Set bar->fringe_extended_p.
25775 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25776 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25777 background extension. Don't clear extended fringe background area.
25778
25779 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25780 New member fringe_extended_p.
25781
257822007-07-25 Glenn Morris <rgm@gnu.org>
25783
25784 * Relicense all FSF files to GPLv3 or later.
25785
25786 * COPYING: Switch to GPLv3.
25787
257882007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25789
25790 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25791
25792 * data.c (Finteractive_form): Check for the presence of an
25793 `interactive-form' symbol property more thoroughly.
25794
25795 * data.c (Finteractive_form): Use an `interactive-form' property if
25796 present, analogous to the function-documentation property.
25797
257982007-07-24 Jason Rumney <jasonr@gnu.org>
25799
25800 * w32fns.c (x_real_positions): Get real position from OS instead of
25801 calculating it.
25802
258032007-07-23 Jason Rumney <jasonr@gnu.org>
25804
25805 * filelock.c (current_lock_owner): Allow for @ sign in username.
25806
258072007-07-22 Nick Roberts <nickrob@snap.net.nz>
25808
25809 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25810 remote default-directory.
25811
25812 * buffer.c (mode-line-format): Describe above case in doc string.
25813
258142007-07-20 Eli Zaretskii <eliz@gnu.org>
25815
25816 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25817 Define if not defined.
25818
258192007-07-18 Jason Rumney <jasonr@gnu.org>
25820
25821 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25822
258232007-07-18 Richard Stallman <rms@gnu.org>
25824
25825 * data.c (Fsetq_default): Doc fix.
25826
25827 * eval.c (Fsetq): Doc fix.
25828
258292007-07-18 Juanma Barranquero <lekktu@gmail.com>
25830
25831 * coding.c (Ffind_operation_coding_system):
25832 * eval.c (For, Fand): Doc fixes.
25833 Reported by Johan Bockgård.
25834
258352007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25836
25837 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25838
25839 * xterm.h: Declare x_ewmh_activate_frame.
25840
25841 * xterm.c (x_ewmh_activate_frame): New function.
25842 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25843
258442007-07-17 Martin Rudalics <rudalics@gmx.at>
25845
25846 * window.c (Fdisplay_buffer): If largest or LRU window is the
25847 only window, split it even if it is not eligible for splitting.
25848 This restores the original behavior broken by the 2007-07-15
25849 change.
25850
258512007-07-17 Glenn Morris <rgm@gnu.org>
25852
25853 * abbrev.c (abbrev_check_chars): New function.
25854 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25855 Call abbrev_check_chars to check abbrev characters are word
25856 constituents. Doc fix.
25857
258582007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25859
25860 * process.c (Fstart_process, Fmake_network_process)
25861 (read_process_output): Fix up last changes.
25862
258632007-07-16 Eli Zaretskii <eliz@gnu.org>
25864
25865 * makefile.w32-in (clean): Don't delete *~.
25866
258672007-07-16 Andreas Schwab <schwab@suse.de>
25868
25869 * window.c (Fdisplay_buffer): Use NILP.
25870 (Fset_window_scroll_bars): Likewise.
25871
258722007-07-15 Martin Rudalics <rudalics@gmx.at>
25873
25874 * window.c (window_min_size_2): New function.
25875 (window_min_size_1, size_window, Fdisplay_buffer)
25876 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25877 windows without mode- or header-lines when window-min-height is
25878 too small.
25879 (size_window): Reset nodelete_p after testing it, following an
25880 earlier note by Kim F. Storm.
25881 (display_buffer): Do not set split_height_threshold to twice the
25882 value of window_min_height to avoid changing the value of a
25883 customizable variable. Rather explicitly check whether the
25884 height of the window that shall be splitted is at least as large
25885 as split_height_threshold.
25886 (Fwindow_full_width_p): New defun.
25887 (syms_of_window): Defsubr it.
25888
25889 * window.h: Add EXFUN for Fwindow_full_width_p.
25890
258912007-07-14 Jason Rumney <jasonr@gnu.org>
25892
25893 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25894
258952007-07-14 Richard Stallman <rms@gnu.org>
25896
25897 * eval.c (maybe_call_debugger): New function.
25898 (find_handler_clause): Use maybe_call_debugger.
25899 Call it when the handler says `debug'.
25900 Eliminate DEBUGGER_VALUE_PTR.
25901 (Fsignal): Eliminate debugger_value.
25902 (Qdebug): New variable.
25903 (syms_of_eval): Initialize it.
25904
259052007-07-14 Juanma Barranquero <lekktu@gmail.com>
25906
25907 * eval.c (Fprogn):
25908 * keyboard.c (Ftrack_mouse):
25909 * print.c (Fwith_output_to_temp_buffer):
25910 * window.c (Fsave_window_excursion): Doc fix.
25911
259122007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25913
25914 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25915
259162007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25917
25918 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25919 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25920 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25921 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25922 Remove unused encoding_carryover.
25923 * process.c: Adjust all functions accordingly.
25924
259252007-07-12 Richard Stallman <rms@gnu.org>
25926
25927 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25928
259292007-07-11 Jason Rumney <jasonr@gnu.org>
25930
25931 * makefile.w32-in (LIBS): Include OLE32.
25932
25933 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25934 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25935
259362007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25937
25938 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25939 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25940 from a Lisp_Object into a bare pointer.
25941 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25942 Adjust the code correspondingly.
25943
25944 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25945
25946 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25947 (term_show_mouse_face): Remove unused var `j'.
25948 (handle_one_term_event): Remove unused vars `i' and `j'.
25949 Don't cast return value of ttyname since it's not necessary.
25950
259512007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25952
25953 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25954 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25955
25956 * fns.c (map_char_table): Use an array of int for `indices' rather than
25957 an array of Lisp_Objects (which are only ever integers anyway).
25958 (Fmap_char_table): Update caller.
25959 * lisp.h: Update prototype.
25960 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25961 * fontset.c (Ffontset_info):
25962 * casetab.c (set_case_table): Update callers.
25963
25964 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25965
25966 * keymap.c (struct accessible_keymaps_data)
25967 (struct where_is_internal_data): New structures.
25968 (accessible_keymaps_1, where_is_internal_1): Use them to change
25969 interface to adhere to the one used by map_keymap.
25970 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25971 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25972
25973 * keymap.h (map_keymap_function_t): More informative prototype.
25974
259752007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25976
25977 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25978 (looking_at_1): Don't change search_regs and last_thing_searched
25979 if `inhibit-changing-match-data' is non-nil.
25980 (string_match_1, search_buffer, set_search_regs): Likewise.
25981 (syms_of_search): Add Lisp level definition for
25982 `inhibit-changing-match-data' and set it to nil.
25983 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25984 start and end of the match, instead of using values in search_regs.
25985
259862007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25987
25988 * minibuf.c (Fcompleting_read): New value `confirm-only'
25989 for `require-match'.
25990
259912007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25992
25993 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25994 part of the 2007-06-27 change to syms_of_fileio.
25995
259962007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25997
25998 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25999 Check WINDOWP before using XWINDOW. Consolidate return statements.
26000
260012007-06-27 Richard Stallman <rms@gnu.org>
26002
26003 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26004
260052007-06-27 Juanma Barranquero <lekktu@gmail.com>
26006
26007 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26008
260092007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26010
26011 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26012 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26013 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26014 (_free_internal, memalign): Use them.
26015 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26016 Initialize to PTHREAD_MUTEX_INITIALIZER.
26017 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26018 (morecore_nolock): Rename from morecore. All uses changed.
26019 Use only nolock versions of internal allocation functions.
26020 (_malloc_internal_nolock, _realloc_internal_nolock)
26021 (_free_internal_nolock): New functions created from
26022 _malloc_internal, _realloc_internal, and _free_internal.
26023 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26024 Copy hook value to automatic variable before its use.
26025 (memalign): Copy hook value to automatic variable before its use.
26026
260272007-06-26 Kenichi Handa <handa@m17n.org>
26028
26029 * coding.c (Ffind_operation_coding_system): Docstring improved.
26030 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26031
260322007-06-25 David Kastrup <dak@gnu.org>
26033
26034 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26035 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26036 cater for additional parameter.
26037
26038 * keymap.h: Adjust number of parameters to `current-active-maps'.
26039
26040 * doc.c (Fsubstitute_command_keys): Adjust call of
26041 `current-active-maps'.
26042
260432007-06-25 David Kastrup <dak@gnu.org>
26044
26045 * callint.c (Fcall_interactively): Make the parsing of interactive
26046 specs somewhat more readable.
26047
260482007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26049
26050 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26051 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26052 if extended background has already been filled.
26053
260542007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26055
26056 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26057 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26058
26059 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26060 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26061 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26062 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26063 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26064 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26065 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26066 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26067 Run timers during dialog popup.
26068 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26069
260702007-06-21 Jason Rumney <jasonr@gnu.org>
26071
26072 * image.c (convert_mono_to_color_image): Swap fore and background.
26073
260742007-06-20 Jason Rumney <jasonr@gnu.org>
26075
26076 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26077 (w32_free_bdf_font): Unmap memory not handle.
26078
260792007-06-20 Sam Steingold <sds@gnu.org>
26080
26081 * gmalloc.c (__morecore): Fix the declaration to comply with the
26082 definition.
26083
260842007-06-20 Juanma Barranquero <lekktu@gmail.com>
26085
26086 * w32term.c (w32_delete_display): Remove leftover declaration.
26087 (w32_define_cursor, w32_initialize): Make static.
26088
26089 * w32.c (_wsa_errlist): Fix typo in error message.
26090 (init_environment): Ignore any environment variable from the
26091 registry having a null value.
26092
260932007-06-20 Glenn Morris <rgm@gnu.org>
26094
26095 * Makefile.in (LIBGIF): Default to -lgif.
26096
260972007-06-17 Jason Rumney <jasonr@gnu.org>
26098
26099 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26100 unicode strings.
26101
261022007-06-16 Juanma Barranquero <lekktu@gmail.com>
26103
26104 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26105 Fix typo in docstring.
26106
261072007-06-16 Eli Zaretskii <eliz@gnu.org>
26108
26109 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26110 and their keybindings.
26111
261122007-06-15 Chong Yidong <cyd@stupidchicken.com>
26113
26114 * composite.c (update_compositions): Fix last fix.
26115
261162007-06-14 Jason Rumney <jasonr@gnu.org>
26117
26118 * w32.c (get_process_times_fn): New function pointer.
26119 (globals_of_w32): Intialize it if present in kernel32.dll.
26120 (w32_get_internal_run_time): New function.
26121
26122 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26123
261242007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26125
26126 * composite.c (update_compositions): Check the validness of
26127 compositions.
26128
261292007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26130
26131 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26132 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26133
26134 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26135 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26136
26137 * macgui.h (USE_MAC_TOOLBAR): New define.
26138
26139 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26140 Return immediately unless popup is activated.
26141
26142 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26143 background to scroll bar gap.
26144 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26145 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26146 scroll bars on frame edge. Check fringe background extension.
26147 Don't clear extended fringe background area.
26148 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26149 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26150 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26151 [USE_MAC_TOOLBAR]: New macros.
26152 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26153 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26154 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26155 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26156 [USE_MAC_TOOLBAR]: New functions.
26157 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26158 manually if previous repositioning has failed.
26159 (mac_handle_keyboard_event): Use precomputed event kind.
26160 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26161 as tool bar item click. Handle mouse movement over tool bar items.
26162
26163 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26164 toolbar_win_gravity.
26165 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26166 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26167 Add externs.
26168
26169 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26170 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26171
261722007-06-14 Chong Yidong <cyd@stupidchicken.com>
26173
26174 * image.c (search_image_cache): Remove unused variable.
26175
261762007-06-13 Chong Yidong <cyd@stupidchicken.com>
26177
26178 * xfns.c, xmenu.c: Link to xaw3d if available.
26179
261802007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26181
26182 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26183 frame_foreground and frame_background.
26184
26185 * image.c (lookup_image): Save frame foreground and background colors.
26186 (search_image_cache): Check if saved and current frame colors match.
26187
261882007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26189
26190 * regex.c (regex_compile): Remove the `regnum' counter.
26191 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26192
261932007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26194
26195 * term.c: Include intervals.h to declare Fget_text_property.
26196
261972007-06-10 Jason Rumney <jasonr@gnu.org>
26198
26199 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26200
262012007-06-08 Juanma Barranquero <lekktu@gmail.com>
26202
26203 * callint.c (Fcall_interactively):
26204 * editfns.c (Fdelete_and_extract_region):
26205 * fileio.c (Fread_file_name):
26206 * fns.c (Fmapconcat):
26207 * keyboard.c (cmd_error_internal):
26208 * keymap.c (Fkey_description):
26209 * lread.c (openp):
26210 * minibuf.c (read_minibuf):
26211 * search.c (wordify):
26212 * sunfns.c (sel_read):
26213 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26214 * xfns.c (x_default_scroll_bar_color_parameter):
26215 * xmenu.c (menu_help_callback):
26216 * xselect.c (Fx_get_atom_name):
26217 * xterm.c (x_term_init): Use empty_unibyte_string.
26218
262192007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26220
26221 * alloc.c (init_strings): Initialize canonical empty strings.
26222 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26223 canonical empty string when the requested size is 0.
26224
26225 * emacs.c (empty_unibyte_string): Rename from empty_string.
26226 (empty_multibyte_string): New canonical empty string.
26227 (syms_of_emacs): Don't initialize empty_string.
26228
26229 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26230 string, if appropriate.
26231 (empty_unibyte_string, empty_multibyte_string): New externs.
26232 (empty_string): Remove extern.
26233
26234 * lread.c (syms_of_lread): Use empty_unibyte_string.
26235
262362007-06-07 Jason Rumney <jasonr@gnu.org>
26237
26238 * s/ms-w32.h: Don't define HAVE_TZNAME.
26239
26240 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26241
262422007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26243
26244 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26245
26246 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26247 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26248
26249 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26250 Don't call next handler.
26251 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26252 Remove argument. Install handler to application.
26253 (set_frame_menubar): Don't change deep_p.
26254 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26255 FRAME_OUTER_TO_INNER_DIFF_Y.
26256 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26257 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26258 [HAVE_DIALOGS]: New macros.
26259 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26260 Use them.
26261 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26262
26263 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26264 init_service_handler. All callers changed. Return OSStatus value.
26265
26266 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26267 All callers changed so as not to call SetPortWindowPort.
26268 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26269 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26270 mac_draw_string_common.
26271 (mac_draw_image_string_qd): Likewise.
26272 (mac_draw_string_common): Use them. Add INLINE.
26273 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26274 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26275 GetGlobalMouse.
26276 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26277 and FRAME_OUTER_TO_INNER_DIFF_Y.
26278 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26279 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26280 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26281 repositioning window to mac_handle_window_event.
26282 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26283 saving window location to mac_handle_window_event
26284 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26285 (install_menu_target_item_handler): Remove argument in extern.
26286 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26287 Also accept command events.
26288 (do_keystroke): New function created from XTread_socket.
26289 (init_command_handler): Remove functions.
26290 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26291 and save window location by kEventWindowShowing and kEventWindowHiding
26292 handlers here. Don't call next handler for window state change and
26293 focus events.
26294 (mac_handle_application_event, mac_handle_keyboard_event)
26295 [TARGET_API_MAC_CARBON]: New functions.
26296 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26297 kEventWindowShowing and kEventWindowHiding events. Move installation
26298 of mouse, font, text input and menu target item handlers to
26299 install_application_handler.
26300 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26301 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26302 New function.
26303 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26304 Register it.
26305 (XTread_socket) [TARGET_API_MAC_CARBON]:
26306 Consolidate SendEventToEventTarget calls.
26307 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26308 Move application activation handler to mac_handle_application_event.
26309 Move keyboard handler to mac_handle_keyboard_event.
26310 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26311 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26312 init_command_handler. Call install_application_handler.
26313
26314 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26315 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26316
263172007-06-07 Glenn Morris <rgm@gnu.org>
26318
26319 * emacs.c (main): Use `emacs-copyright' in --version output.
26320
263212007-06-06 Chong Yidong <cyd@stupidchicken.com>
26322
26323 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26324
263252007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26326
26327 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26328
26329 * macgui.h: Replace WindowPtr with WindowRef.
26330
26331 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26332 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26333 Replace ControlHandle with ControlRef.
26334 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26335
26336 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26337 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26338 Replace ControlHandle with ControlRef.
26339 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26340 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26341
26342 * macterm.h (struct scroll_bar): Rename member control_handle_low
26343 and control_handle_high to control_ref_low and control_ref_high.
26344 All uses changed.
26345 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26346 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26347 respectively. All uses changed.
26348 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26349 (install_window_handler, remove_window_handler): Replace WindowPtr
26350 with WindowRef in externs.
26351
263522007-06-05 Juanma Barranquero <lekktu@gmail.com>
26353
26354 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26355
263562007-06-03 Nick Roberts <nickrob@snap.net.nz>
26357
26358 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26359
26360 * frame.c (Fmouse_position, Fmouse_pixel_position):
26361 Condition on HAVE_GPM too.
26362
26363 * term.c (term_mouse_highlight): Remove unused variables.
26364 (Fterm_open_connection): Set gpm_zerobased to 1.
26365 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26366 Use zero based co-ordinates.
26367 (handle_one_term_event): Report a drag as mouse movement too.
26368
26369 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26370
263712007-06-03 Chong Yidong <cyd@stupidchicken.com>
26372
26373 * image.c (search_image_cache): New function. Require background
26374 color match if background color is unspecified in the image spec.
26375 (uncache_image, lookup_image): Use it.
26376
263772007-06-01 Juanma Barranquero <lekktu@gmail.com>
26378
26379 * window.c (Fshrink_window): Reflow docstring.
26380
263812007-06-02 Chong Yidong <cyd@stupidchicken.com>
26382
26383 * Version 22.1 released.
26384
263852007-06-01 Richard Stallman <rms@gnu.org>
26386
26387 * xfns.c (x_encode_text): Add GCPRO.
26388
263892007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26390
26391 * xfns.c (x_set_name_internal): Save encoded name before
26392 x_encode_text in case string data is relocated.
26393
263942007-05-31 Richard Stallman <rms@gnu.org>
26395
26396 * buffer.c (syms_of_buffer): Doc fix.
26397
263982007-05-30 Nick Roberts <nickrob@snap.net.nz>
26399
26400 * sysdep.c (init_sys_modes): Add rather than replace with
26401 O_NONBLOCK.
26402
26403 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26404 term_mouse_moveto.
26405
26406 * termhooks.h (term_mouse_moveto): New extern.
26407
26408 * term.c (mouse_face_window): Rename...
26409 (Qmouse_face_window): ...to this.
26410 (term_show_mouse_face, term_clear_mouse_face)
26411 (term_mouse_highlight): Use Qmouse_face_window.
26412 (term_mouse_moveto): New function.
26413 (term_mouse_position): Make it work.
26414 (syms_of_term): Uncomment assignment to mouse_position_hook.
26415 Staticpro Qmouse_face_window.
26416
264172007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26418
26419 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26420 around current_column call.
26421
264222007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26423
26424 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26425 * xdisp.c (next_element_from_buffer):
26426 * window.c (delete_window):
26427 * term.c (term_mouse_highlight):
26428 * msdos.c (getdefdir):
26429 * macterm.c (mac_create_bitmap_from_bitmap_data)
26430 (init_font_name_table):
26431 * fns.c (Fsxhash):
26432 * data.c (Fmake_local_variable):
26433 * ccl.c (ccl_driver): Likewise.
26434
264352007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26436
26437 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26438 Call mac_wakeup_from_rne on window size change.
26439
264402007-05-25 Chong Yidong <cyd@stupidchicken.com>
26441
26442 * image.c (uncache_image): Fix typo.
26443
264442007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26445
26446 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26447
264482007-05-22 Richard Stallman <rms@gnu.org>
26449
26450 * xterm.c (x_connection_closed): Remove NO_RETURN.
26451
264522007-05-22 Martin Rudalics <rudalics@gmx.at>
26453
26454 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26455
264562007-05-21 Chong Yidong <cyd@stupidchicken.com>
26457
26458 * image.c (uncache_image): New function.
26459 (Fimage_refresh): New function.
26460
264612007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26462
26463 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26464
264652007-05-20 Nick Roberts <nickrob@snap.net.nz>
26466
26467 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26468 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26469
264702007-05-20 Nick Roberts <nickrob@snap.net.nz>
26471
26472 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26473 conditional on [HAVE_GPM_H].
26474
264752007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26476
26477 * syntax.c (skip_chars): Update syntax-table only after we checked that
26478 the new location is valid.
26479
264802007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26481
26482 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26483 mac_get_window_bounds.
26484
264852007-05-20 Nick Roberts <nickrob@snap.net.nz>
26486
26487 * Makefile.in (LIBGPM): Allow it to be set from configure.
26488 If set then link Emacs with it.
26489
26490 * config.in: Regenerate.
26491
26492 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26493 New externs.
26494
26495 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26496 Include gpm.h.
26497 (handle_one_term_event, term_gpm): New externs.
26498
26499 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26500 and allow it to be interrupted by SIGIO.
26501
26502 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26503 (wait_reading_process_output): Wait on gpm_fd too.
26504 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26505 (add_gpm_wait_descriptor_called_flag): New variable.
26506 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26507
26508 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26509 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26510 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26511 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26512 (make_lispy_event): Add case GPM_CLICK_EVENT.
26513 (read_avail_input): Handle mouse input.
26514
26515 * term.c (write_glyphs_with_face): New function.
26516 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26517 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26518 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26519 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26520 (last_mouse_x, last_mouse_y): New variables.
26521 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26522 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26523 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26524 (Fterm_close_connection): New functions.
26525 (term_init): Initialise mouse_face_window.
26526
265272007-05-19 Chong Yidong <cyd@stupidchicken.com>
26528
26529 * xdisp.c (redisplay_window): If first window line is a
26530 continuation line, recompute the new window start instead of
26531 recentering.
26532
265332007-05-18 Glenn Morris <rgm@gnu.org>
26534
26535 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26536 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26537
265382007-05-17 Glenn Morris <rgm@gnu.org>
26539
26540 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26541
265422007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26543
26544 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26545 dead key repeat and up events.
26546
265472007-05-14 Chong Yidong <cyd@stupidchicken.com>
26548
26549 * image.c (pbm_load): Check image size for monochrome pbm.
26550
265512007-05-13 Chong Yidong <cyd@stupidchicken.com>
26552
26553 * xterm.c (XTread_socket): Revert last change.
26554
265552007-05-12 Chong Yidong <cyd@stupidchicken.com>
26556
26557 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26558
26559 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26560
265612007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26562
26563 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26564 mixup (YAILOM).
26565
265662007-05-07 Andreas Schwab <schwab@suse.de>
26567
26568 * keymap.c (Flookup_key): Fix typo in last change.
26569
265702007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26571
26572 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26573 mapping for unibyte strings.
26574
265752007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26576
26577 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26578 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26579
265802007-04-29 Richard Stallman <rms@gnu.org>
26581
26582 * insdel.c (replace_range): For undo, record insertion first.
26583
265842007-04-29 Andreas Schwab <schwab@suse.de>
26585
26586 * lisp.h (VECSIZE): Use OFFSETOF.
26587
265882007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26589
26590 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26591 disabled lines.
26592
265932007-04-28 Richard Stallman <rms@gnu.org>
26594
26595 * lread.c (read_escape): In a string, \s is always space.
26596
265972007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26598
26599 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26600
26601 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26602 submenu for menu bar items.
26603
26604See ChangeLog.10 for earlier changes.
26605
26606;; Local Variables:
26607;; coding: utf-8
26608;; add-log-time-zone-rule: t
aac0c6e3
MR
26609;; End:
26610
e3eb1dae 26611 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26612
26613 This file is part of GNU Emacs.
26614
26615 GNU Emacs is free software: you can redistribute it and/or modify
26616 it under the terms of the GNU General Public License as published by
26617 the Free Software Foundation, either version 3 of the License, or
26618 (at your option) any later version.
26619
26620 GNU Emacs is distributed in the hope that it will be useful,
26621 but WITHOUT ANY WARRANTY; without even the implied warranty of
26622 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26623 GNU General Public License for more details.
26624
26625 You should have received a copy of the GNU General Public License
26626 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26627
26628;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40